
:root {
    /* 字体 */
    --main-font-family: 'Open Sans', sans-serif;
    --heading-font-family: 'Montserrat', sans-serif;
    --font-size: 16px;

    /* 主色调 */
    --main-color: #3644D9;
    --optional-color: #2E3AB8;

    /* UI 颜色 */
    --white-color: #ffffff;
    --black-color: #515355;
    --paragraph-color: #6B7C8F;
    --transition: .4s;

    /* 主题颜色 */
    --haosns-bg-main: #f5f6f7;
    --haosns-bg-block: #fff;
    --haosns-bg-btn-a: #f2f3f5;
    --haosns-bg-btn-b: #ffbebb;
    --haosns-bg-btn-hover: #ffbebb;
    --haosns-bg-rgb-a: rgb(255 255 255 / .5);
    --haosns-color-block: #fff;
    --haosns-color-main: #333;
    --haosns-color-btn: #777;
    --haosns-color-btn-hover: #ffbebb;
    --haosns-color-link: #777;
    --haosns-color-link-hover: #111;
    --haosns-color-desc: #999;
    --haosns-color-border: #f1f1f1;
    --haosns-color-border-hover: #f1f1f1;

    /* 渐变色 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 深色主题 */
.haosns-theme-dark {
    --haosns-bg-main: #17191c;
    --haosns-bg-block: #232426;
    --haosns-bg-btn-a: #2a1a3a;
    --haosns-bg-btn-b: #28131c;
    --haosns-bg-btn-hover: #225488;
    --haosns-bg-rgb-a: rgb(0 0 0 / 50%);
    --haosns-color-block: #eee;
    --haosns-color-main: #e4e6eb;
    --haosns-color-btn: #aaa;
    --haosns-color-btn-hover: #fff;
    --haosns-color-link: #eee;
    --haosns-color-link-hover: #fff;
    --haosns-color-desc: #776;
    --haosns-color-border: #775;
    --haosns-color-border-hover: #774;
}

/* 帖子列表“加载更多”按钮 */
.haosns-post-loading-more {
    margin: 15px auto;
    width: 100px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    height: 2.3rem;
    padding: 0 3rem;
    border-radius: 0.4rem;
    background: #3d3a4e;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 400%;
    color: #fff;
    border: none;
    cursor: pointer;
}

.haosns-post-loading-more:hover::before {
    transform: scaleX(1);
}

.haosns-loadinginfo {
    position: relative;
    z-index: 1;
}

.haosns-post-loading-more::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
    width: 100%;
    height: inherit;
    border-radius: inherit;
    background: linear-gradient(82.3deg,
            rgba(150, 93, 233, 1) 10.8%,
            rgba(99, 88, 238, 1) 94.3%);
    transition: all 0.475s;
}


.no-more-posts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}

/* 列表加载中动画 */
.haosns-loader {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.haosns-da-loading:before,
.haosns-da-loading:after {
    position: absolute;
    top: 0;
    content: '';
}

.haosns-da-loading:before {
    left: -19.992px;
}

.haosns-da-loading:after {
    left: 19.992px;
    -webkit-animation-delay: 0.32s !important;
    animation-delay: 0.32s !important;
}

.haosns-da-loading:before,
.haosns-da-loading:after,
.haosns-da-loading {
    background: #076fe5;
    -webkit-animation: loading-keys-app-loading 0.8s infinite ease-in-out;
    animation: loading-keys-app-loading 0.8s infinite ease-in-out;
    width: 13.6px;
    height: 32px;
}

.haosns-da-loading {
    text-indent: -9999em;
    margin: auto;
    position: absolute;
    right: calc(50% - 6.8px);
    top: calc(50% - 16px);
    -webkit-animation-delay: 0.16s !important;
    animation-delay: 0.16s !important;
}


/* 个人主页：列表隐私提示与空状态 */
.haosns-privacy-tip-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    border-radius: 12px;
    margin: 20px 0;
}

.haosns-privacy-tip-icon {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #95a5a6;
}

.haosns-privacy-tip-text {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

/* 帖子列表骨架屏（搜索、加载中占位） */
.haosns-skeleton-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.haosns-skeleton {
    background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 37%, #f0f2f5 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: 4px;
}

.haosns-skeleton-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.haosns-skeleton-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
}

.haosns-skeleton-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.haosns-skeleton-name {
    width: 120px;
    height: 16px;
}

.haosns-skeleton-time {
    width: 80px;
    height: 12px;
}

.haosns-skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.haosns-skeleton-line {
    width: 100%;
    height: 16px;
}

.haosns-skeleton-line-short {
    width: 70%;
}

.haosns-skeleton-image-box {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-top: 5px;
}

.haosns-skeleton-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.haosns-skeleton-btn {
    width: 60px;
    height: 20px;
}

/* 关注/粉丝用户列表通用样式 */
.haosns-follow-user-list {
    background-color: #fff;
    width: 100%;
    display: grid;
    box-sizing: border-box;
    border-radius: 4px;
}

.haosns-follow-user-list li {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 20px 15px;
}

.haosns-follow-user-list li:last-child {
    border: none;
}

.haosns-follow-user-list li .avatarimg {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.haosns-follow-user-list li .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.haosns-follow-user-list li .info .name {
    font-size: 16px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.haosns-follow-user-list li .info .name span {
    margin-left: 5px;
}

.haosns-follow-user-list li .info .desc {
    color: #666;
    font-size: 12px;
}

.haosns-follow-user-list li .btn {
    display: flex;
    align-items: center;
}

.haosns-follow-user-list li .btn>span {
    background-color: #ff5473;
    color: #fff;
    font-size: 14px;
    padding: 0 10px;
    min-width: 68px;
    min-height: 30px;
    line-height: 30px;
    text-align: center;
    box-sizing: border-box;
    border-radius: 2px;
    cursor: pointer;
}

.haosns-follow-user-list li .btn span.had {
    background-color: #ccc;
}

.haosns-follow-user-list .haosns-more {
    margin-top: 20px;
}

/*个人资料卡片*/
.myInfo {
    color: #fff;
    font-weight: 400;
    font-size: 12px;
}

/*  导航栏 */
.main-content-wrapper1 .navbar-area {
    position: fixed;
    background-color: var(--main-color);
    -webkit-box-shadow: 0 0 12px 0 rgba(0, 0, 0, .12);
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, .12);
    z-index: 999;
    height: auto;
    top: 0;
    left: 0;
    width: 100%
}

.main-content-wrapper::-webkit-scrollbar {
    display: none !important;
}

.main-content-wrapper .navbar-area {
    position: fixed;
    background-color: var(--main-color);
    -webkit-box-shadow: 0 0 12px 0 rgba(0, 0, 0, .12);
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, .12);
    z-index: 999;
    height: auto;
    top: 0;
    left: 0;
    width: 100%
}

.navbar-brand {
    flex-shrink: 0;
    min-width: fit-content;
}

.main-content-wrapper .navbar-area .main-navbar .navbar {
    padding: 10px 40px;
    display: flex;
    flex-wrap: nowrap;
}

.main-content-wrapper .navbar-area .main-navbar .navbar .navbar-burger-menu {
    cursor: pointer;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    position: relative;
    z-index: 9999
}

.main-content-wrapper .navbar-area .main-navbar .navbar .navbar-burger-menu span {
    height: 1px;
    width: 35px;
    background: var(--white-color);
    display: block;
    margin: 8px 0;
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out
}

.main-content-wrapper .navbar-area .main-navbar .navbar .navbar-burger-menu.active span.top-bar {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transform-origin: 10% 10%;
    transform-origin: 10% 10%
}

.main-content-wrapper .navbar-area .main-navbar .navbar .navbar-burger-menu.active span.middle-bar {
    opacity: 0
}

.main-content-wrapper .navbar-area .main-navbar .navbar .navbar-burger-menu.active span.bottom-bar {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-transform-origin: 10% 90%;
    transform-origin: 10% 90%;
    margin-top: 5px
}

.main-content-wrapper .navbar-area .main-navbar .navbar .search-box {
    position: relative;
    width: 430px
}

.main-content-wrapper .navbar-area .main-navbar .navbar .search-box .input-search {
    display: block;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 50px;
    background-color: #2e3ab8;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    color: var(--white-color);
    font-size: var(--font-size);
    font-weight: 400;
    padding: 0 0 0 25px;
    -webkit-box-shadow: none;
    box-shadow: none;
    outline: 0
}

/* 全部圈子页：中间内容列（恢复正常左对齐布局，避免与右侧卡片拉开过大间距） */
.main-content-wrapper > .col-lg-9 {
    float: none;
    margin: 0 0 24px 0; /* 顶部预留给导航高度，左右不再居中 */
}

/* 右侧列默认按栅格显示，由具体页面控制是否展示 */
.main-content-wrapper > .col-lg-3 {
    /* 保持默认显示，用于右侧创建星球卡片等 */
}

.main-content-wrapper .navbar-area .main-navbar .navbar .search-box .input-search::-webkit-input-placeholder {
    color: var(--white-color);
    -webkit-transition: var(--transition);
    transition: var(--transition)
}

.main-content-wrapper .navbar-area .main-navbar .navbar .search-box .input-search:-ms-input-placeholder {
    color: var(--white-color);
    -webkit-transition: var(--transition);
    transition: var(--transition)
}

.main-content-wrapper .navbar-area .main-navbar .navbar .search-box .input-search::-ms-input-placeholder {
    color: var(--white-color);
    -webkit-transition: var(--transition);
    transition: var(--transition)
}

.main-content-wrapper .navbar-area .main-navbar .navbar .search-box .input-search::placeholder {
    color: var(--white-color);
    -webkit-transition: var(--transition);
    transition: var(--transition)
}

.main-content-wrapper .navbar-area .main-navbar .navbar .search-box .input-search:focus::-webkit-input-placeholder {
    color: transparent
}

.main-content-wrapper .navbar-area .main-navbar .navbar .search-box .input-search:focus:-ms-input-placeholder {
    color: transparent
}

.main-content-wrapper .navbar-area .main-navbar .navbar .search-box .input-search:focus::-ms-input-placeholder {
    color: transparent
}

.main-content-wrapper .navbar-area .main-navbar .navbar .search-box .input-search:focus::placeholder {
    color: transparent
}

.main-content-wrapper .navbar-area .main-navbar .navbar .search-box button {
    position: absolute;
    right: 0;
    top: 1px;
    height: 50px;
    background-color: transparent;
    border: none;
    color: var(--white-color);
    border-radius: 5px;
    font-size: 18px;
    padding: 0 20px
}

.main-content-wrapper .navbar-area .main-navbar .navbar .others-options .option-item {
    margin-right: 25px
}

.main-content-wrapper .navbar-area .main-navbar .navbar .others-options .option-item:last-child {
    margin-right: 0
}

.main-content-wrapper .navbar-area .main-navbar .navbar .others-options .option-item .home-btn i {
    color: var(--white-color);
    font-size: 25px;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    display: inline-block
}

.main-content-wrapper .navbar-area .main-navbar .navbar .others-options .option-item .home-btn i:hover {
    -webkit-transform: translateX(1px);
    transform: translateX(1px)
}

.main-content-wrapper .navbar-area .main-navbar .navbar .others-options .option-item .friend-requests-nav-item .friend-requests-btn {
    position: relative;
    margin-right: 5px
}

/*   热门圈子*/
.haosns-hot-circle-widget {
    margin-top: 16px;
}

.haosns-hot-circle {
    background: var(--haosns-bg-block);
    border-radius: 10px;
    padding: 16px 14px 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.haosns-hot-circle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.haosns-hot-circle-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.haosns-hot-circle-icon {
    font-size: 18px;
}

.haosns-hot-circle-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--haosns-color-main);
}

.haosns-hot-circle-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.haosns-hot-circle-item {
    display: flex;
    align-items: center;
    padding: 6px 4px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--haosns-color-main);
    transition: background-color 0.18s ease, transform 0.12s ease;
}

.haosns-hot-circle-item:hover {
    background-color: rgba(54, 68, 217, 0.06);
    transform: translateY(-1px);
}

.haosns-hot-circle-rank {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    color: #fff;
    background: linear-gradient(135deg, #ff7a18 0%, #ffb347 100%);
}

.haosns-hot-circle-item:nth-child(n+4) .haosns-hot-circle-rank {
    background: #e0e4f5;
    color: #4b5563;
}

.haosns-hot-circle-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--haosns-color-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.haosns-hot-circle-text-circle {
    display: inline-block;
    color: #818cf8;
    margin-right: 4px;
}

.haosns-hot-circle-empty {
    font-size: 13px;
    color: var(--haosns-color-desc);
    padding: 4px 2px 0;
}


/* 通用侧边栏标题布局：图标 + 文本 */
.haosns-widget-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.haosns-widget-title-icon {
    font-size: 16px;
}

.haosns-recent-online-widget {
    margin-top: 0;
    margin-bottom: 14px;
}

.haosns-recent-online-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px 6px 20px;
}

.haosns-recent-online-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--haosns-color-main);
}

.haosns-recent-online-list {
    padding: 0 18px 10px 20px;
    /* 与标题保持同一列起始位置 */
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.haosns-recent-online-item {
    display: flex;
    align-items: center;
    padding: 6px 4px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--haosns-color-main);
    transition: background-color 0.18s ease, transform 0.12s ease;
}

.haosns-recent-online-item:hover {
    background-color: rgba(54, 68, 217, 0.05);
    transform: translateY(-1px);
}

.haosns-recent-online-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    overflow: hidden;
    margin-right: 8px;
    flex-shrink: 0;
}

.haosns-recent-online-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.haosns-recent-online-content {
    flex: 1;
    min-width: 0;
}

.haosns-recent-online-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}

.haosns-recent-online-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--haosns-color-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.haosns-recent-online-level img {
    height: 14px;
    display: block;
}

.haosns-recent-online-meta {
    font-size: 13px;
    color: var(--haosns-color-desc);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.haosns-widget-visitor .content {
    padding: 0 18px 10px 20px;
}

.visitor-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.visitor-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.visitor-item:last-child {
    border-bottom: none;
}

.visitor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.visitor-avatar .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.visitor-item .userinfo {
    flex: 1;
    min-width: 0;
}

.visitor-item .userinfo .nickname {
    font-size: 14px;
    font-weight: 500;
    color: var(--haosns-color-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visitor-item .userinfo .updatetime {
    margin-top: 2px;
    font-size: 13px;
    color: var(--haosns-color-desc);
}

.visitor-end {
    padding: 6px 0 0;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/*  今日活跃榜单 */
.haosns-today-active-widget {
    margin-bottom: 16px;
}

.haosns-today-active-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px 6px 20px;
}

.haosns-today-active-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--haosns-color-main);
}

.haosns-today-active-list {
    padding: 0 18px 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.haosns-today-active-item {
    display: flex;
    align-items: center;
    padding: 5px 4px;
    border-radius: 8px;
    transition: background-color 0.16s ease, transform 0.12s ease;
}

.haosns-today-active-item:hover {
    background-color: rgba(54, 68, 217, 0.04);
    transform: translateY(-1px);
}

.haosns-today-active-rank {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    background: linear-gradient(135deg, #6ee7b7 0%, #22c55e 100%);
    color: #064e3b;
}

.haosns-today-active-item:nth-child(n+4) .haosns-today-active-rank {
    background: #e5e7eb;
    color: #4b5563;
}

.haosns-today-active-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    margin-right: 8px;
    flex-shrink: 0;
}

.haosns-today-active-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.haosns-today-active-content {
    flex: 1;
    min-width: 0;
}

.haosns-today-active-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}

.haosns-today-active-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--haosns-color-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.haosns-today-active-time {
    font-size: 12px;
    color: var(--haosns-color-desc);
    flex-shrink: 0;
}

.haosns-today-active-desc {
    font-size: 12px;
    color: var(--haosns-color-desc);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.haosns-today-active-empty {
    font-size: 13px;
    color: var(--haosns-color-desc);
    padding: 6px 0 10px;
    text-align: center;
}

/*  实时动态*/
.haosns-rt-widget {
    margin-bottom: 18px;
}

.haosns-rt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px 6px 20px;
}

.haosns-rt-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--haosns-color-main);
}

.haosns-rt-list.haosns-auto-scroll {
    max-height: none;
    overflow-y: visible;
    margin: 0 12px 10px 20px;
    padding-right: 0;
}

.haosns-rt-item {
    display: flex;
    align-items: flex-start;
    padding: 5px 2px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--haosns-color-main);
    transition: background-color 0.16s ease, transform 0.12s ease;
}

.haosns-rt-item:hover {
    background-color: rgba(148, 163, 184, 0.12);
    transform: translateY(-1px);
}

.haosns-rt-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    margin-right: 8px;
    flex-shrink: 0;
}

.haosns-rt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.haosns-rt-content {
    flex: 1;
    min-width: 0;
}

.haosns-rt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}

.haosns-rt-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--haosns-color-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.haosns-rt-time {
    font-size: 12px;
    color: var(--haosns-color-desc);
    flex-shrink: 0;
}

.haosns-rt-desc {
    font-size: 12px;
    color: var(--haosns-color-desc);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.haosns-rt-widget .haosns-auto-scroll::-webkit-scrollbar {
    width: 4px;
}

.haosns-rt-widget .haosns-auto-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.haosns-rt-widget .haosns-auto-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 999px;
}

/*弹窗样式*/
.toastcontainer1 {
    display: none;
    position: fixed;
    background: white;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

@keyframes PrivacyIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes PrivacyOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.98);
    }
}


[data-simplebar] {
    position: relative;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: flex-start
}

.simplebar-wrapper {
    overflow: hidden;
    width: inherit;
    height: inherit;
    max-width: inherit;
    max-height: inherit
}

.simplebar-mask {
    direction: inherit;
    position: absolute;
    overflow: hidden;
    padding: 0;
    margin: 0;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: auto !important;
    height: auto !important;
    z-index: 0
}

.simplebar-offset {
    direction: inherit !important;
    box-sizing: inherit !important;
    resize: none !important;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 0;
    margin: 0;
    -webkit-overflow-scrolling: touch
}

.simplebar-content-wrapper {
    direction: inherit;
    box-sizing: border-box !important;
    position: relative;
    display: block;
    height: 100%;
    width: auto;
    visibility: unset;
    overflow: auto;
    max-width: 100%;
    max-height: 100%
}

.simplebar-content:after,
.simplebar-content:before {
    content: ' ';
    display: table
}

.simplebar-placeholder {
    max-height: 100%;
    max-width: 100%;
    width: 100%;
    pointer-events: none
}

.simplebar-height-auto-observer-wrapper {
    box-sizing: inherit !important;
    height: 100%;
    width: 100%;
    max-width: 1px;
    position: relative;
    float: left;
    max-height: 1px;
    overflow: hidden;
    z-index: -1;
    padding: 0;
    margin: 0;
    pointer-events: none;
    flex-grow: inherit;
    flex-shrink: 0;
    flex-basis: 0%
}

.simplebar-height-auto-observer {
    box-sizing: inherit;
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 1000%;
    width: 1000%;
    min-height: 1px;
    min-width: 1px;
    overflow: hidden;
    pointer-events: none;
    z-index: -1
}

.simplebar-track {
    z-index: 1;
    position: absolute;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden
}

[data-simplebar].simplebar-dragging .simplebar-content {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none
}

[data-simplebar].simplebar-dragging .simplebar-track {
    pointer-events: all
}

.simplebar-scrollbar {
    position: absolute;
    right: 2px;
    width: 3px;
    min-height: 10px
}

.simplebar-scrollbar:before {
    position: absolute;
    content: '';
    background: #dee1e7;
    border-radius: 7px;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity .2s linear
}

.simplebar-track .simplebar-scrollbar.simplebar-visible:before {
    opacity: .5;
    transition: opacity 0s linear
}

.simplebar-track.simplebar-vertical {
    top: 0;
    width: 5px
}

.simplebar-track.simplebar-vertical .simplebar-scrollbar:before {
    top: 2px;
    bottom: 2px
}

.simplebar-track.simplebar-horizontal {
    left: 0;
    height: 5px
}

.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before {
    height: 100%;
    left: 2px;
    right: 2px
}

.simplebar-track.simplebar-horizontal .simplebar-scrollbar {
    right: auto;
    left: 0;
    top: 2px;
    height: 3px;
    min-height: 0;
    min-width: 10px;
    width: auto
}

[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical {
    right: auto;
    left: 0
}

.hs-dummy-scrollbar-size {
    direction: rtl;
    position: fixed;
    opacity: 0;
    visibility: hidden;
    height: 500px;
    width: 500px;
    overflow-y: hidden;
    overflow-x: scroll
}


/* 背景图片优化 - 增强清晰度 */
.my-profile-inner-box .profile-cover-image img,
.my-profile-inner-box .profile-cover-image a img {
    /* 图片渲染优化 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;

    /* 锐化滤镜 - 让图片更清晰 */
    filter: contrast(1.05) saturate(1.1) brightness(1.02);

    /* 抗锯齿优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* 保持宽高比 */
    object-fit: cover;
    object-position: center;

    /* 确保高质量显示 */
    width: 100%;
    height: auto;
    min-height: 200px;
}

/* 鼠标悬停时额外增强 */
.my-profile-inner-box .profile-cover-image:hover img {
    filter: contrast(1.08) saturate(1.15) brightness(1.03);
    transition: filter 0.3s ease;
}

/* 背景图片（如果用作背景） */
.my-profile-inner-box .profile-cover-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* 锐化背景 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

@media (min-width: 992px) {
    .author-content {
        display: flex !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        position: relative !important;
    }

    .content-left,
    .content-center,
    .content-right {
        float: none !important;
    }

    .content-left,
    .content-right {
        height: auto !important;
        min-height: 1px !important;
        display: block !important;
    }

    .theiaStickySidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        box-shadow: 0 2px 4px 0 #00000010;
        top: 80px !important;
        z-index: 90;
        width: 100% !important;
        transform: none !important;
        transition: top 0.3s ease;

        box-sizing: border-box !important;
    }

    .haosns-sticky-container {
        position: relative !important;
        overflow: visible !important;
        height: auto !important;
    }
}

@media (max-width: 991px) {
    .author-content {
        display: flex !important;
        flex-direction: column;
    }

    .theiaStickySidebar {
        position: static !important;
    }
}

/* Restored Mobile Image Optimization */
@media (max-width: 768px) {
    .my-profile-inner-box .profile-cover-image img {
        /* 移动端稍微降低锐化强度，避免过度 */
        filter: contrast(1.03) saturate(1.08) brightness(1.01);
    }
}


/* 
 * Mobile Enhancement & Responsive Fixes
 * 移动端增强与响应式修复样式表
 * 不覆盖核心样式，仅做针对性优化
 */

/* ==========================================
   1. 全局移动端优化
   ========================================== */
@media (max-width: 768px) {

    /* 增加点击区域，防止误触 */
    a,
    button,
    .btn,
    .icon-btn {
        touch-action: manipulation;
        /* 优化点击延迟 */
    }

    /* 修复移动端字体过小问题 */
    body {
        -webkit-text-size-adjust: 100%;
    }

    /* 优化滚动体验 */
    .scrollable-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================
   2. 帖子详情页移动端优化 (Post Detail)
   ========================================== */
@media (max-width: 768px) {

    /* 调整详情页左右内边距，避免内容贴边 */
    .haosns-article-content .content-detail {
        padding: 15px !important;
        margin-bottom: 10px !important;
    }

    /* 标题字体适配 */
    .haosns-article-content .content-detail .header h1 {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    /* 视频播放器自适应 */
    .post-video video {
        width: 100% !important;
        height: auto !important;
        max-height: 50vh;
        /* 防止竖屏视频过高 */
    }

    /* 底部操作栏 (点赞/评论) 优化 */
    .article-bar-left {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 10px 0;
        z-index: 100;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

    /* 底部栏存在时，给正文底部增加留白，防止遮挡 */
    .haosns-article-main {
        padding-bottom: 60px !important;
    }

    /* 单个操作项样式调整 */
    .article-bar-left li {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* 隐藏原有的悬浮效果文字，移动端直接显示图标+数字 */
    .article-bar-left li .tips-content {
        display: none !important;
    }

    .article-bar-left li span {
        font-size: 12px;
        margin-top: 2px;
        margin-left: 0 !important;
        /* 移除原有的左边距 */
    }
}

/* ==========================================
   3. 评论区移动端优化
   ========================================== */
@media (max-width: 768px) {

    /* 评论输入框优化 */
    .haosns-comment-textarea-box {
        padding: 10px !important;
    }

    /* 输入框高度自适应 */
    .haosns-comment-textarea-box .emoji-editor {
        min-height: 40px !important;
        width: 100% !important;
        /* 强制满宽 */
    }

    /* 评论工具栏 (表情/图片/按钮) 布局调整 */
    .haosns-form-bar.comment {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }

    /* 评论按钮增大点击区域 */
    .haosns-form-bar.comment .haosns-btn {
        padding: 6px 15px !important;
    }

    /* 子回复缩进调整，节省屏幕空间 */
    .haosns-comment-list .comment-item .comment-footer .left-actions {
        width: 100% !important;
        /* 满宽 */
    }
}

/* ==========================================
   4. 键盘遮挡修复 (iOS/Android)
   ========================================== */
/* 当输入框获得焦点时，确保它在可视区域内 */
.haosns-comment-textarea-box .emoji-editor:focus,
.comment-reply input:focus,
.reply-reply-input input:focus {
    scroll-margin-bottom: 50vh;
    /* 现代浏览器支持：让滚动定位时保留底部空间 */
}

/* ==========================================
   5. 图片网格自适应
   ========================================== */
@media (max-width: 768px) {

    /* 帖子九宫格图片：手机端改为 3列 或 2列 自适应 */
    .post-images .post-image {
        width: calc((100% - 10px) / 3) !important;
        /* 3列布局 */
        margin: 0 5px 5px 0 !important;
    }

    /* 去除每行最后一个的右边距 */
    .post-images .post-image:nth-child(3n) {
        margin-right: 0 !important;
    }

    .post-images .post-image img {
        height: 100px !important;
        /* 统一高度 */
    }
}



/* 聊天弹窗遮罩层 */
#haosns-chat-shade {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 19891016;
    opacity: 0;
}

/* 聊天弹窗 */
#haosns-chat-popup {
    z-index: 19891017;
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
}

#haosns-chat-popup.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* 右侧固定栏中的按钮样式增强 */
#haosns-chat-button,
#haosns-top-button {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
    cursor: pointer;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#haosns-chat-button:hover,
#haosns-top-button:hover {
    transform: translateY(-2px);
}

#haosns-chat-button:active,
#haosns-top-button:active {
    transform: translateY(0) scale(0.95);
}

/* 回到顶部按钮（右侧固定栏） */
#haosns-top-button {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    position: relative;
}

#haosns-top-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#haosns-top-button:not(.show) {
    transform: translateY(10px) scale(0.9);
}

#haosns-top-button:hover.show:not(.scrolling) {
    transform: translateY(-2px) scale(1.05);
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
}

#haosns-top-button:active.show {
    transform: translateY(0) scale(0.95);
}

/* 滚动中的状态 */
#haosns-top-button.scrolling {
    animation: scrollToTopPulse 0.8s ease-in-out infinite;
    background-color: rgba(0, 123, 255, 0.2);
    border-radius: 4px;
}

@keyframes scrollToTopPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* 回到顶部按钮（底部） */
.go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    will-change: opacity, transform;
}

.go-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.go-top:hover:not(.scrolling) {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.go-top:active {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

/* 滚动中的状态 */
.go-top.scrolling {
    animation: scrollToTopBounce 0.8s ease-in-out infinite;
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

@keyframes scrollToTopBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

.go-top i {
    font-size: 22px;
    transition: transform 0.2s ease;
}

.go-top:hover i {
    transform: translateY(-2px);
}

/* 添加脉冲动画效果（可选，在显示时） */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.6);
    }
}

.go-top.active:not(:hover) {
    animation: pulse 2s ease-in-out infinite;
}

/* 确保聊天弹窗在移动端也能正常显示 */
@media (max-width: 768px) {
    #haosns-chat-popup {
        width: 90% !important;
        height: 80% !important;
        left: 5% !important;
        top: 10% !important;
    }
}

/* 右侧固定栏中的按钮图标对齐 */
#haosns-chat-button svg,
#haosns-top-button i {
    vertical-align: middle;
}

/* 聊天弹窗关闭按钮样式增强 */
#haosns-chat-popup-close {
    transition: background-color 0.2s ease;
}

#haosns-chat-popup-close:hover {
    background-color: #f0f0f0;
}

/*帖子内容详情*/
.haosns-article-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1
}

.haosns-article-content:has(~.haosns-sticky-container) {
    max-width: calc(100% - 320px);
}

.haosns-article-main .haosns-form-btn .smile {
    position: relative
}

.haosns-article-main .haosns-form-btn .smile .haosns-emotion-box {
    right: unset
}

.haosns-article-content .content p:after {
    content: "\00a0"
}

.haosns-article-content .content-detail {
    padding: 20px;
    background: #f3f3f3;
    border-radius: 5px
}

.haosns-article-content .content-detail .header {
    position: relative;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px #eee solid;
    min-height: 40px;
    margin-bottom: 20px
}

.haosns-article-content .content-detail .header .left {
    flex: 1
}


    /* 评论区筛选标签样式：最新 / 热门 / 作者 */
    .haosns-comment-menu {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        border-bottom: 1px solid #f0f0f0;
        padding: 5px 10px;
        font-size: 13px;
    }

    .haosns-comment-menu .comment-count {
        margin-right: 8px;
        color: #666;
    }

    .haosns-comment-menu li {
        list-style: none;
        padding: 4px 10px;
        border-radius: 999px;
        cursor: pointer;
        color: #666;
        transition: all 0.2s ease;
    }

    .haosns-comment-menu li.on {
        background: #336591;
        color: #fff;
        font-weight: 500;
        box-shadow: 0 0 0 1px rgba(51, 101, 145, 0.1);
    }
.haosns-article-content .content-detail .header .left h1 p {
    font-size: 22px;
    font-weight: 600;
    color: #252933;
    line-height: 26px
}

.haosns-article-content .content-detail .header .left .info {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 45px;
    color: #777
}

.haosns-article-content .content-detail .header .left .info span {
    font-size: 13px
}

.haosns-article-content .content-detail .header .left .info .feature {
    display: flex;
    align-items: center;
    gap: 5px
}

.haosns-article-content .content-detail .header .left .info .feature a {
    color: var(--haosns-theme-color)
}

.haosns-article-content .content-detail .header .left .info .feature a:not(:last-child)::after {
    content: ","
}

.haosns-article-content .content-detail .header .more {
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer
}

.haosns-article-content .content-detail .header .more i {
    font-size: 20px;
    color: #999
}

.haosns-article-main.immerse .content-bar li:not(:last-child) {
    display: none
}

.content-detail .content {
    position: relative;
    overflow: hidden
}

.content-detail .content:has(>table) {
    overflow-x: auto
}

.content-detail .content img {
    max-width: 80%
}

.content-detail .content a {
    color: #2196f3
}

.haosns-article-content .content-detail .tag-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    padding: 15px 0
}

.haosns-article-content .content-detail .tag-list a {
    display: flex;
    background: #f5f5f5;
    line-height: 25px;
    border-radius: var(--haosns-border-radius-btn, 3px);
    position: relative;
    overflow: hidden;
    color: #777;
    border: 1px #f1f1f1 solid;
    gap: 1px
}

.haosns-article-content .content-detail .tag-list i {
    font-size: 12px;
    width: 20px;
    text-align: center
}

.haosns-article-content .content-detail .tag-list m {
    padding-right: 7px
}

.article-bar-bottom {
    display: flex;
    gap: 20px;
    justify-content: space-evenly;
    background: #fff;
    border-radius: var(--haosns-border-radius);
    padding: 10px 0
}

.article-bar-bottom li {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    flex-direction: column
}

.article-bar-bottom li i {
    color: #8a919f;
    transition: .3s;
    font-size: 28px
}

.article-bar-bottom li .haosns-like {
    color: var(--haosns-theme-color)
}

.article-bar-bottom li .haosns-shoucang3 {
    color: var(--haosns-theme-color)
}

.article-bar-bottom li:hover i {
    color: #333
}

.article-bar-bottom li span {
    position: absolute;
    left: 35px;
    top: 0;
    background: #c2c8d1;
    color: #fff;
    font-size: 12px;
    padding: 0 5px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 10px;
    height: 18px;
    line-height: 18px
}

.article-bar-bottom .haosns-like+span {
    background: var(--haosns-theme-color)
}

.article-bar-bottom li .haosns-shoucang3+span {
    background: var(--haosns-theme-color)
}

.article-bar-bottom li .haosns-immerse {
    font-size: 26px
}

.article-bar-left {
    position: fixed;
    margin-left: -80px;
    z-index: 2;
    width: 50px;
    display: grid;
    gap: 20px
}

.article-bar-left li {
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 3px 0 rgba(50, 50, 50, .04);
    background: #fff;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer
}

.article-bar-left li i {
    color: #8a919f;
    transition: .3s;
    font-size: 22px
}

.article-bar-left li .haosns-like {
    color: #ffbebb
}

.article-bar-left li .haosns-shoucang3 {
    color: #ffbebb
}

.article-bar-left li:hover i {
    color: #333
}

.article-bar-left li span {
    position: absolute;
    left: 35px;
    top: 0;
    background: #c2c8d1;
    color: #fff;
    font-size: 12px;
    padding: 0 5px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 10px;
    height: 18px;
    line-height: 18px
}

.article-bar-left .haosns-like+span {
    background: #c2c8d1
}

.article-bar-left li .haosns-shoucang3+span {
    background: #c2c8d1
}

.haosns-article-content .file-list {
    padding: 10px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.haosns-article-content .file-list a {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    border: 1px #eee dashed;
    position: relative;
    justify-content: center;
    min-width: 0
}

.haosns-article-content .file-list .file-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    gap: 2px
}

.haosns-article-content .file-list .file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center
}

.haosns-article-content .file-list .file-icon em {
    font-size: 40px
}

.haosns-article-content .file-list .name {
    color: #333;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.haosns-article-content .file-list .count {
    font-size: 12px;
    font-style: normal;
    color: #999;
    line-height: 18px;
    display: flex;
    gap: 5px
}

.content-detail .content-hide {
    background: #fff8f8;
    padding: 20px;
    border-radius: var(--haosns-border-radius);
    border: 1px #ffe8e8 dashed;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden
}

.content-detail .content-hide .hide-message {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 13px;
    color: #999;
    gap: 5px
}

.content-detail .content-hide .hide-message i {
    display: flex;
    margin: auto;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f1d8d8;
    color: #f75f2f;
    font-size: 26px;
    border-radius: 100%
}

.content-detail .content-hide .hide-btn {
    display: flex;
    gap: 20px
}

.content-detail .content-hide .hide-btn li {
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    border-radius: var(--haosns-border-radius-btn);
    line-height: 35px;
    text-align: center;
    transition: .3s;
    padding: 0 30px;
    position: relative;
    background: var(--haosns-theme-color)
}

.content-detail .content-hide .hide-btn li:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--haosns-border-radius-btn);
    background: linear-gradient(to right, rgb(255 255 255 / 30%), transparent)
}

.content-detail .content-hide .hide-btn .reg {
    background: #31bdec
}

.content-detail .content-hide .hide-btn .login {
    background: var(--haosns-theme-color)
}

.content-detail .content-hide .hide-tips {
    position: absolute;
    left: 0;
    top: 0;
    background: #fbdfdf;
    padding: 0 10px;
    line-height: 25px;
    color: #ff5722;
    border-radius: 0 0 3px 0;
    font-size: 13px
}

.content-detail .content-hide .hide-btn .vip {
    background: #f75f2f
}

.haosns-article-content iframe[src*="player.bilibili.com"] {
    width: 100%;
    height: 350px
}

.content-detail .content th {
    border: 1px solid #ccc;
    min-width: 50px;
    height: 28px;
    background-color: #f1f1f1
}

.content-detail .content td {
    border: 1px solid #ccc;
    padding: 5px
}

.content-detail ol {
    counter-reset: list-0
}

.content-detail ol li::before {
    content: counter(list-0, decimal) ". ";
    counter-increment: list-0;
    position: absolute;
    left: 0
}

.content-detail .content video {
    max-height: 300px;
    min-width: 50%
}



/* 视频播放按钮样式 */
.popup-youtube:hover {
    /* transform: translate(-50%, -50%) scale(1.1) !important;
    background: white !important; */
}

/* 点赞后的样式 */
.post-stats li a.liked i {
    color: #ff4d6d !important;
}


.comment-form-modern input:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    background: white !important;
}

/* 返回顶部按钮动画 */
.go-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.go-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.go-top.active:hover {
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5) !important;
    transition: all 0.2s ease;
}

.go-top.active:active {
    transform: translateY(-2px) scale(1.05) !important;
    transition: all 0.1s ease;
}

/* 聊天时间显示样式 */
.chat-time {
    font-size: 12px !important;
    color: #999 !important;
    text-align: center !important;
    margin: 8px auto !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 10px;
    display: block;
    max-width: fit-content;
}

.message-container {
    width: 100%;
    margin-bottom: 15px;
}

.chat-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.chat-content-wrapper.self {
    flex-direction: row-reverse;
}

/* 好友信息显示样式 */
#friend-info-overlay {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

#friend-info-overlay h3 {
    font-weight: 600 !important;
    color: #333 !important;
}

#friend-info-overlay p {
    color: #666 !important;
}

#send-message-btn {
    background: #07c160 !important;
    color: white !important;
    border: none !important;
    padding: 10px 30px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    font-weight: 500 !important;
}

#send-message-btn:hover {
    background: #06ad56 !important;
}

#send-message-btn:active {
    background: #059748 !important;
    transform: translateY(1px);
}



/* 分享弹窗样式 */
.share-dialog-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.2s ease;
}

.share-dialog-box {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.share-dialog-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.share-dialog-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.share-search {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-search svg {
    flex-shrink: 0;
    fill: #999;
}

.share-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.share-search input::placeholder {
    color: #999;
}

.share-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.share-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.share-list-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.share-list-item:hover {
    background: #f8f9fa;
}

.share-list-item.selected {
    background: #e3f2fd;
}

.share-list-item img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.share-list-item-info {
    flex: 1;
    min-width: 0;
}

.share-list-item-info .name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-list-item-info .desc {
    font-size: 13px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-dialog-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.share-dialog-footer button {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

/* 登录提示弹窗样式 */
.login-toast-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999999;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.login-toast-box {
    background: white;
    border-radius: 12px;
    padding: 30px 40px;
    min-width: 320px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.7);
    opacity: 0;
    animation: popIn 0.4s ease 0.1s forwards;
}

.login-toast-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.login-toast-icon.success {
    color: #52c41a;
}

.login-toast-icon.error {
    color: #ff4d4f;
}

.login-toast-icon.warning {
    color: #faad14;
}

.login-toast-icon.info {
    color: #1890ff;
}

.login-toast-title {
    font-size: 20px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 10px;
}

.login-toast-message {
    font-size: 15px;
    color: #595959;
    line-height: 1.6;
}



/* 编辑弹窗布局 */
.haosns-main-publish-editor {
    display: flex !important;
    gap: 20px !important;
    min-height: 600px !important;
    align-items: stretch !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(226, 232, 240, 1);
    padding: 20px !important;
}

.publish-editor-left {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 600px !important;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 1);
    padding: 12px 12px 10px;
}

.publish-editor-left .box.content {
    flex: 1 !important;
    min-height: 300px !important;
}

.publish-editor-right {
    flex: 1 !important;
    min-height: 600px !important;
    display: flex !important;
    flex-direction: column !important;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 1);
    padding: 12px 12px 10px;
}

.publish-editor-right .list-right {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.publish-editor-left .box.content .emoji-editor {
    min-height: 300px !important;
    max-height: none !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px 11px !important;
    line-height: 1.6 !important;
    box-shadow: none !important;
}

.publish-editor-left .box.btn {
    margin-top: auto;
}

.news-feed-area .haosns-sns-publish {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 1);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    padding: 14px 16px;
}

.haosns-sns-publish .publish-title {
    margin-bottom: 8px;
}

.haosns-sns-publish .publish-title input {
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(209, 213, 219, 1);
    font-size: 13px;
}

.haosns-sns-publish .publish-content {
    border-radius: 10px;
    border: 1px solid rgba(229, 231, 235, 1);
    background: #ffffff;
}

.haosns-sns-publish .publish-content .textarea .emoji-editor {
    padding: 10px 11px;
    min-height: 72px;
    font-size: 13px;
    line-height: 1.6;
    background: #ffffff;
    border-radius: 10px 10px 0 0;
}

.haosns-sns-publish .haosns-img-upload-list {
    padding: 6px 10px 4px;
}

.haosns-sns-publish .haosns-form-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 6px 15px;
    border-top: 1px solid rgba(229, 231, 235, 1);
    font-size: 12px;
}

.haosns-sns-publish .haosns-form-bar .title,
.haosns-sns-publish .haosns-form-bar .smile,
.haosns-sns-publish .haosns-form-bar .img,
.haosns-sns-publish .haosns-form-bar .aite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    color: #4b5563;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.haosns-sns-publish .haosns-form-bar .title:hover,
.haosns-sns-publish .haosns-form-bar .smile:hover,
.haosns-sns-publish .haosns-form-bar .img:hover,
.haosns-sns-publish .haosns-form-bar .aite:hover {
    background: #f3f4f6;
    color: #111827;
    transform: translateY(-1px);
}

.haosns-sns-publish .haosns-form-bar .haosns-btn {
    white-space: nowrap;
    min-width: 80px;
    padding: 0 16px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3644d9, #5465ff);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(54, 68, 217, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    margin-left: auto;
}

@media (max-width: 768px) {
    .haosns-sns-publish .haosns-form-bar {
        row-gap: 6px;
    }

    .haosns-sns-publish .haosns-form-bar .haosns-btn {
        margin-top: 4px;
    }
}

.haosns-sns-publish .haosns-form-bar .haosns-btn:hover {
    
}

.haosns-sns-publish .haosns-form-bar .haosns-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(54, 68, 217, 0.35);
}

/* 新版发帖工具条（图片 / 视频 / 表情 / 话题 / @好友） */
.haosns-publish-tools-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.haosns-publish-tool {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    cursor: pointer;
    color: #4b5563;
    font-size: 12px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.haosns-publish-tool .icon {
    font-size: 14px;
}

.haosns-publish-tool .label {
    font-size: 12px;
    white-space: pre;
}

.haosns-publish-tool svg {
    display: none;
}

.haosns-publish-tool:hover {
    background: #f3f4f6;
    color: #111827;
    transform: translateY(-1px);
}

.haosns-publish-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.haosns-post-composer-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 1);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    margin-bottom: 12px;
}

.haosns-post-composer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.haosns-post-composer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    display: block;
}

.haosns-post-composer-avatar-emoji {
    font-size: 22px;
    line-height: 1;
}

.haosns-post-composer-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.haosns-post-composer-placeholder {
    font-size: 14px;
    color: #111827;
}

.haosns-post-composer-meta {
    font-size: 12px;
    color: #6b7280;
}

.haosns-post-composer-action {
    flex-shrink: 0;
}

.haosns-post-composer-button {
    border-radius: 999px;
    padding: 9px 16px;
    border: none;
    outline: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: linear-gradient(135deg, #3644D9, #6366f1);
    box-shadow: 0 6px 18px rgba(54, 68, 217, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.haosns-post-composer-button span.icon {
    font-size: 16px;
}

.haosns-post-composer-button:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 10px 24px rgba(54, 68, 217, 0.6);
    filter: brightness(1.03);
}

.haosns-post-composer-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(54, 68, 217, 0.4);
}

.haosns-publish-modal-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.haosns-publish-modal-panel {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(226, 232, 240, 1);
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.haosns-publish-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(229, 231, 235, 1);
}

.haosns-publish-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.haosns-publish-modal-title .icon {
    font-size: 18px;
}

.haosns-publish-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(209, 213, 219, 1);
    background: #ffffff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.haosns-publish-modal-close:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.haosns-publish-modal-body {
    padding-top: 8px;
}

.haosns-publish-modal-panel .haosns-sns-publish {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.haosns-publish-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 16px;
    min-height: 340px;
}

.haosns-publish-left {
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 1);
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.haosns-publish-left .publish-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.haosns-publish-left .publish-content .textarea {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.haosns-publish-left .publish-content .textarea .emoji-editor {
    flex: 1;
}

.haosns-publish-left-header {
    margin-bottom: 4px;
}

.haosns-publish-left-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
}

.haosns-publish-left-header-main strong {
    font-size: 14px;
    color: #111827;
}

.haosns-publish-left-header-main .sub {
    font-size: 12px;
    color: #9ca3af;
}

.haosns-publish-right {
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 1);
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.haosns-publish-right-section {
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 1);
    padding: 8px 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.haosns-publish-right-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.haosns-publish-right-title strong {
    font-size: 13px;
    color: #111827;
}

.haosns-publish-right-body {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.haosns-publish-vis-btn {
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid rgba(209, 213, 219, 1);
    background: #ffffff;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.haosns-publish-vis-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.haosns-publish-tag {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid rgba(209, 213, 219, 1);
    color: #4b5563;
}

.haosns-publish-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4b5563;
}

.haosns-publish-checkbox input {
    margin: 0;
}

/* 右键菜单样式 */
.comment-context-menu {
    position: fixed;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 120px;
    padding: 4px 0;
    animation: fadeIn 0.15s ease;
}



/*登录与个人卡片占位样式*/
.haosns-widget-login .content {
    margin: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat
}

.haosns-widget-login .content .bg {
    height: 110px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center
}

.haosns-widget-login .content .bg:before {
    content: none;
}

.haosns-widget-login .content .bg .avatarimg {
    background: rgba(255, 255, 255, .3);
    width: 60px;
    height: 60px;
    border-radius: 100%;
    position: relative
}

.haosns-widget-login .content .bg .avatarimg:hover {
    opacity: 1
}

.haosns-widget-login .content .bg .avatarimg i {
    bottom: 0;
    right: 0
}

.haosns-widget-login .content .name {
    font-size: 17px;
    line-height: 35px;
    text-align: center;
    padding: 0 51px
}

.haosns-widget-login .content .info {
    text-align: center;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    gap: 3px
}

.haosns-widget-login .content .info .haosns-honor {
    color: #fff
}

.haosns-widget-login .content .desc {
    font-size: 13px;
    color: #fff;
    padding: 5px;
    text-align: center;
    line-height: 20px
}

.haosns-widget-login .content .number {
    display: flex;
    align-items: center;
    padding: 10px 0
}

.haosns-widget-login .content .number a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.haosns-widget-login .content .number a:last-of-type {
    border: 0
}

.haosns-widget-login .content .number a b {
    color: #fff;
    font-size: 16px
}
/*搜索区域*/

.hot-search-header {
    padding: 16px 20px;
    background: #3e60e3;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hot-search-header i {
    font-size: 18px;
    animation: flicker 2s infinite;
}

/* 热搜下拉列表样式 */
.hot-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 300px; /* 最小宽度 */
    max-width: 100%; /* 最大宽度 */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    overflow-x: hidden; /* 禁止横向滚动 */
    z-index: 1000;
    /* 初始状态 - 隐藏 */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-5px) scale(0.96);
    pointer-events: none;
    /* 使用更流畅的缓动函数 */
    transition: opacity 0.18s ease-out,
                transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0s linear 0.18s;
}

/* 显示状态 */
.hot-search-dropdown.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    /* 显示时立即可见，无延迟 */
    transition: opacity 0.18s ease-out,
                transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0s linear 0s;
}
/*发布帖子*/
haosns-form-bar.comment .btn {
    justify-self: end
}

.haosns-form-bar .bbs-select {
    grid-column-start: 6;
    line-height: 30px
}

.haosns-form-bar>div {
    min-width: 40px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;

}

.haosns-form-btn {
    display: flex;
    line-height: 30px;
    height: 30px;
    flex: 1;
    align-items: center;
    position: relative;
    z-index: 9
}

.haosns-form-btn li {
    width: 35px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    color: #666
}

.haosns-form-btn li>i {
    display: flex;
    align-items: center;
    justify-content: center
}

.haosns-form-btn li:hover>i {
    opacity: .7
}

.haosns-form-btn li .haosns-aite2 {
    transform: translateY(1px)
}

.haosns-sns-publish .publish-content .bbs-select i {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 12px;
    transform: scale(.8) rotate(180deg);
    transition: .3s;
    height: inherit;
    width: inherit;
    border: none;
    margin-top: inherit
}

.haosns-sns-publish .publish-content .bbs-select i:after {
    content: "\e607";
    font-family: haosns-icon !important
}

.haosns-sns-publish .publish-content .layui-form-selected i {
    transform: scale(.8) rotate(0)
}

.haosns-sns-publish .publish-content .bbs-select .layui-input {
    border: 0;
    text-align: right;
    max-width: 135px;
    padding-right: 15px;
    line-height: 30px;
    height: 30px
}

.haosns-sns-publish .publish-content .bbs-select .layui-anim {
    text-align: center;
    left: unset;
    right: 0
}

.haosns-sns-publish .publish-content .bbs-select .layui-anim .layui-this {
    color: var(--haosns-theme-color)
}

.haosns-sns-publish .publish-content .bbs-select .layui-input:focus {
    border: 0;
    box-shadow: unset
}

.haosns-sns-publish .publish-content .haosns-btn {
    height: 26px;
    line-height: 26px;
    min-height: 26px;
    min-width: 60px;
    padding: 0;
    width: 60px
}

.sns-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: var(--haosns-header-height);
    border-radius: var(--haosns-border-radius);
    z-index: 100;
    padding: 15px;
    background: #fff;
    margin-bottom: 10px;
    overflow: hidden
}

.sns-menu li {
    position: relative;
    padding: 0 10px;
    height: 30px;
    cursor: pointer;
    line-height: 30px;
    color: var(--haosns-color-btn);
    font-size: 14px;
    border-radius: 4px;
}

.sns-menu .on {
    background: var(--main-color);
    color: #fff
}

.sns-menu li:hover {
    color: #2f363c
}

.sns-menu li.on:hover {
    color: #fff;
    background: #2f363c;
}

.sns-menu .haosns-menu-sort-icon {
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    font-size: 14px;
    width: 25px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--haosns-theme-color);
    border-radius: 0 5px;
    opacity: 0
}

.sns-menu:hover .haosns-menu-sort-icon {
    opacity: 1
}

.sns-menu-left .sns-main-center {
    margin-left: 130px
}

.sns-menu-left .sns-menu {
    position: fixed;
    width: 115px;
    margin: 20px 0 0 -130px;
    flex-direction: column
}

.sns-menu-left .sns-menu li {
    line-height: 35px;
    border-radius: var(--haosns-border-radius);
    background: 0 0;
    transition: .3s;
    color: #333;
    cursor: pointer;
    text-align: center;
    width: 100%;
    height: 35px
}

.sns-menu-left .sns-menu .on {
    background: #2f363c;
    color: #fff
}

.sns-menu-left .sns-menu li:hover {
    background: var(--haosns-theme-color);
    color: #fff
}

.haosns-menu-types .box {
    position: relative;
    overflow: hidden;
    padding: 15px
}

.haosns-menu-types .box .title {
    display: flex;
    align-items: center;
    margin-bottom: 10px
}

.haosns-menu-types .box .title span {
    flex: 1;
    font-size: 16px
}

.haosns-menu-types .box .title em {
    font-size: 13px;
    color: #aaa
}

.haosns-menu-types .box .menu-list {
    position: relative;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(5, 1fr)
}

.haosns-menu-types .box .menu-list li {
    position: relative;
    text-align: center;
    line-height: 35px;
    background: #fff;
    border-radius: 5px;
    border: 1px #ddd solid;
    cursor: pointer
}

.haosns-menu-types .box-a .menu-list li {
    background: #eee;
    border-color: #eee
}

.haosns-menu-types .box .menu-list li:after {
    content: "\e6e3";
    font-family: haosns-icon !important;
    position: absolute;
    top: -8px;
    right: 2px;
    color: #999
}

.haosns-menu-types .box-a .menu-list li:after {
    transform: rotate(45deg)
}

.haosns-menu-types .box .menu-list li:hover {
    opacity: .7
}

.haosns-menu-types .btn {
    width: 100px;
    text-align: center;
    background-color: var(--haosns-theme-color);
    color: #fff;
    margin: 10px auto 20px;
    padding: 6px 5px;
    border-radius: var(--haosns-border-radius-btn);
    cursor: pointer
}

.haosns-menu-types .layui-layer-content {
    height: auto !important
}

.haosns-boy {
    background: #007aff;
    color: #fff
}

.haosns-girl {
    background: #eb4ba3;
    color: #fff
}

.sidebar-tags-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px
}

.sidebar-tags-content a {
    line-height: 33px;
    border: 1px #eee solid;
    padding: 0 10px;
    color: #777;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px
}

.sidebar-tags-content a:hover {
    background: #eee;
    color: #000
}

.haosns-more {
    display: flex;
    align-items: center;
    justify-content: center
}

.haosns-more span {
    position: relative;
    cursor: pointer;
    padding: 7px 20px;
    border-radius: var(--haosns-border-radius-btn);
    background-color: #f9f9f9;
    color: #333;
    border: 1px solid #aaa;
    height: 38px
}

.haosns-more span:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--haosns-border-radius-btn);
    background-color: var(--haosns-theme-color);
    transform: scale(0, 1);
    transform-origin: right;
    transition: transform ease-out .5s
}

.haosns-more span:hover font {
    color: #fff;
    position: relative
}

.haosns-more span:hover:before {
    transform: scale(1, 1);
    transform-origin: left
}

.haosns-bar-menu {
    position: fixed;
    bottom: 0;
    left: calc(50% + (var(--haosns-theme-width)/ 2) + 15px)
}

.haosns-bar-menu li {
    width: 45px;
    height: 45px;
    background: #fff;
    position: relative;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 3px #ddd;
    border-radius: 3px
}

.haosns-bar-menu li.top {
    display: none
}

.haosns-bar-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%
}

.haosns-bar-menu li>i {
    font-size: 20px;
    transition: .3s
}

.haosns-bar-menu li:hover i {
    color: var(--haosns-theme-hover-color)
}

.haosns-bar-menu li .title {
    position: absolute;
    left: 70px;
    background: var(--haosns-theme-color);
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 3px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: .3s
}

.haosns-bar-menu li .chat-number {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    color: #fff;
    background-color: #ff3b30;
    padding: 2px;
    min-width: 15px;
    height: 15px;
    line-height: 1;
    display: flex;
    border-radius: 15px;
    align-items: center;
    justify-content: center
}

.haosns-bar-menu li:hover .title {
    visibility: visible;
    opacity: 1;
    left: 55px
}

 .header-login {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    cursor: pointer;
}

.header-login .login-line {
    height: 14px;
    background-color: #e5eef7;
    width: 1px;
    position: relative
}

.header-login li:hover {
    color: #ffffff70;
}

.haosns-footer {
    border-top: 1px #ddd solid
}

.haosns-main-footer {
    height: auto;
    line-height: 25px
}

.haosns-footer-row {
    position: relative;
    margin: 0 auto;
    width: var(--haosns-theme-width);
    display: flex;
    flex-wrap: wrap;
    padding: 30px 0;
    text-align: left
}

.haosns-footer-row .item.logo {
    width: 260px;
    margin-right: 30px
}

.haosns-footer-row .item.menu {
    flex: 1
}

.haosns-footer-row .item.qrcode {
    flex: 0 0 auto
}

.haosns-footer-row h3 {
    font-weight: 500;
    color: #333;
    font-size: 16px;
    margin-bottom: 10px
}

.haosns-footer-row .item p {
    height: 36px;
    line-height: 36px
}

.haosns-footer-row .item p,
.haosns-footer-row .item p a {
    color: #666
}

.haosns-footer-row .item.qrcode .qrcode-list {
    display: flex;
    padding-top: 10px;
    gap: 10px
}

.haosns-footer-row .item.qrcode .qrcode-list li {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column
}

.haosns-footer-row .item.qrcode .qrcode-list span {
    color: #333
}

.haosns-footer-row .item.qrcode .qrcode-list img {
    width: 90px;
    height: 90px;
    border-radius: 2px;
    border: 1px solid #787b92
}

.haosns-footer-copyright {
    margin: 0 auto;
    width: var(--haosns-theme-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 300;
    height: 35px
}

.haosns-footer-copyright a,
.haosns-footer-copyright p {
    color: #333
}

.post-card-content {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 10px
}

.post-card-content .cover {
    height: 36px;
    width: 36px;
    border-radius: 2px;
    -o-object-fit: cover;
    object-fit: cover
}

.post-card-content .title {
    line-height: 18px;
    overflow: hidden;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 12px;
    color: #474747;
    letter-spacing: .8px
}

.tag-main {
    display: flex
}

.tag-main-left {
    width: 100px;
    position: relative
}

.tag-main-left li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background: #fff;
    margin-bottom: 10px;
    padding: 0 5px;
    border: 1px #eee solid;
    border-radius: 5px;
    cursor: pointer;
    transition: .3s;
    font-size: 15px
}

.tag-main-left .on,
.tag-main-left li:hover {
    background: var(--haosns-theme-color);
    color: #fff
}

.tag-main-center {
    flex: 1;
    margin: 0 15px
}

.tag-main-right {
    width: 300px
}

.haosns-widget-tag-info {
    padding: 85px 0 20px 0;
    text-align: center
}

.haosns-widget-tag-info .info-bg {
    background-size: cover;
    width: 100%;
    height: 125px;
    position: absolute;
    top: 0
}

.haosns-widget-tag-info .info-bg:before {
    content: "";
    background: linear-gradient(0deg, #fff, rgb(255 255 255 / 0));
    height: 100%;
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%
}

.haosns-widget-tag-info .info-bg i {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    text-shadow: 0 0 3px #000
}

.haosns-widget-tag-info .info-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative
}

.haosns-widget-tag-info .info-logo img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    box-shadow: 0 0 10px #fff
}

.haosns-widget-tag-info .info-name {
    font-size: 21px;
    color: #000;
    line-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center
}

.haosns-widget-tag-info .info-name m {
    font-size: 18px;
    color: #333;
    padding: 0 2px
}

.haosns-widget-tag-info .info-desc {
    padding: 15px;
    font-size: 14px;
    color: #777
}

.haosns-widget-tag-info .info-number {
    display: flex;
    align-items: center;
    justify-content: center
}

.haosns-widget-tag-info .info-number span {
    flex: 1;
    border-right: 1px #eee solid
}

.haosns-widget-tag-info .info-number span:last-of-type {
    border: 0
}

.haosns-widget-tag-info .info-number span n {
    font-size: 17px;
    line-height: 35px;
    color: #000;
    display: block
}

.haosns-widget-tag-info .info-number span p {
    color: #777
}

.haosns-widget-tag-info .info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 20px 0;
    gap: 10px
}

.haosns-widget-tag-info .info-btn span {
    flex: 1;
    line-height: 35px;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: .3s
}

.haosns-widget-tag-info .info-btn span:hover {
    opacity: .7
}

.haosns-widget-tag-info .info-btn .publish {
    background-color: var(--haosns-theme-color)
}

.haosns-widget-tag-info .info-btn .follow {
    background-color: #fe5051
}

.haosns-widget-tag-info .info-btn .follow.had {
    background-color: #d6d6d6
}

.haosns-widget-tag-info .info-btn .tag-publish {
    background: var(--haosns-theme-color)
}

.haosns-cloud-album-container {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 10px;
    position: relative;
    width: 100%;
    overflow: hidden
}

.haosns-cloud-album-container .haosns-more-loading {
    grid-column: 1/-1
}

.haosns-cloud-album-container .layui-flow-more {
    grid-column: 1/-1
}

.haosns-cloud-album-container .layui-flow-more a cite {
    background: 0 0;
    font-size: 0
}

.haosns-cloud-album-popup .layui-layer-content {
    padding: 15px
}

.haosns-cloud-album-container li {
    cursor: pointer;
    position: relative;
    border: 1px #eee solid;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
    height: 138px
}

.haosns-cloud-album-container li .gif {
    background-color: rgb(0 0 0 / 60%);
    color: #fff;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 2px;
    position: absolute;
    right: 2px;
    bottom: 2px
}

.haosns-cloud-album-container li.ok:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: .6;
    border-radius: 4px
}

.haosns-cloud-album-container li.ok>i {
    position: absolute;
    color: #1be23d;
    font-size: 30px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 30px;
    height: 30px
}

.haosns-cloud-album-container li:hover {
    opacity: .8
}

.haosns-cloud-album-container li img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: var(--haosns-img-object-position, center);
    object-position: var(--haosns-img-object-position, center)
}

#haosns-cloud-album-page {
    position: absolute;
    bottom: 0;
    max-width: 80%
}

#haosns-cloud-album-page .layui-laypage a {
    margin: 2px 5px 2px
}

#haosns-cloud-album-page .layui-laypage span {
    margin: 2px 5px 2px
}

.haosns-emotion-box {
    position: relative;
    width: 400px;
    height: 300px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.haosns-emotion-box .header {
    display: flex;
    height: 35px;
    line-height: 35px;
    gap: 10px;
    padding: 0 10px;
    color: var(--haosns-theme-color)
}

.haosns-emotion-box .header li {
    cursor: pointer;
    border-bottom: 2px #fff solid;
    transition: .3s;
    white-space: nowrap;
    padding: 0 5px;
    line-height: 35px
}

.haosns-emotion-box .header li img {
    width: 20px;
    height: 20px;
    object-fit: cover
}

.haosns-emotion-box .header li i {
    font-size: 20px
}

.haosns-emotion-box .header li.on {
    border-color: var(--haosns-theme-color);
    color: var(--haosns-theme-color)
}

.haosns-emotion-box .content {
    position: relative;
    overflow-x: hidden;
    margin: 5px 5px 10px;
    flex: 1
}

.haosns-emotion-box .box {
    display: none;
    gap: 5px;
    padding: 5px;
    max-height: 235px
}

.haosns-emotion-box .box.on {
    display: grid
}

.haosns-emotion-box .box span {
    width: 100%;
    aspect-ratio: 1;
    cursor: pointer
}

.haosns-emotion-box .box span img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    transform: translateZ(0);
    transition: transform .3s
}

.haosns-emotion-box .box span:hover img {
    transform: translateZ(0) scale(1.2)
}

.haosns-emotion-box .emotion-type-img {
    grid-template-columns: repeat(11, 1fr)
}

.haosns-emotion-box .emotion-type-big_img {
    grid-template-columns: repeat(8, 1fr)
}

.haosns-emotion-box .emotion-type-text {
    grid-template-columns: repeat(4, 1fr)
}

.haosns-emotion-box .box.emotion-type-text span {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f7f7f7;
    aspect-ratio: inherit;
    height: 35px;
    cursor: pointer;
    color: #333
}

.haosns-emotion-box .haosns-emotion-close {
    position: absolute;
    right: 7px;
    cursor: pointer;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center
}

.haosns-emotion-box .content::-webkit-scrollbar-track {
    background: 0 0
}

.haosns-emotion-box .content::-webkit-scrollbar {
    width: 5px
}

@-webkit-keyframes haosns-downbit {
    0% {
        opacity: .3;
        transform: translate3d(0, -5px, 0)
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0)
    }
}

@keyframes haosns-downbit {
    0% {
        opacity: .3;
        transform: translate3d(0, -5px, 0)
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0)
    }
}

.haosns-publish-type {
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 10px;
    right: 0;
    top: 40px;
    position: absolute;
    z-index: 10;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    border: 1px solid #eee;
    cursor: default;
    border-radius: 4px;
    box-shadow: 1px 1px 4px rgb(0 0 0 / 8%);
    background-color: #fff;
    color: #5f5f5f;
    -webkit-animation-name: haosns-downbit;
    animation-name: haosns-downbit;
    -webkit-animation-duration: .3s;
    -webkit-animation-fill-mode: both;
    animation-duration: .3s;
    animation-fill-mode: both
}

/*聊天样式*/

.haosns-chat-content-container .file .chat-content,
.haosns-chat-content-container .file.self .chat-content {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #f5f5f5
}

.haosns-chat-content-container .chat-box.location .chat-content:before,
.haosns-chat-content-container .file .chat-content:before,
.haosns-chat-content-container .file.self .chat-content:before {
    border-color: transparent
}

.haosns-chat-content-container .file .chat-content .file-info {
    color: #333;
    margin-right: 20px
}

.haosns-chat-content-container .file .chat-content .file-icon em {
    font-size: 30px;
    color: #ccc
}

.haosns-chat-content-container .file .chat-content .file-info span {
    display: block
}

.haosns-chat-content-container .file .chat-content .file-info .file-name {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 50%
}

.haosns-chat-content-container .file .chat-content .file-info .file-size {
    font-size: 12px;
    color: #8e8e8e
}

.haosns-chat-content-container .chat-box.video .chat-content,
.haosns-chat-content-container .chat-box.video.self .chat-content {
    background-color: #fff;
    border: 1px solid #f5f5f5;
    padding: 0;
    line-height: 0;
    overflow: hidden;
    cursor: pointer
}

.haosns-chat-content-container .chat-box.video .chat-content:before,
.haosns-chat-content-container .chat-box.video.self .chat-content:before {
    border-color: transparent
}

.haosns-chat-content-container .chat-box.video .video-info {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    background: rgb(0 0 0 / 20%)
}

.haosns-chat-content-container .chat-box.video .video-info.loading .chat-loading {
    border: 2px solid #fff;
    border-top-color: rgba(0, 0, 0, .2);
    border-right-color: rgba(0, 0, 0, .2);
    border-bottom-color: rgba(0, 0, 0, .2)
}

.haosns-chat-content-container .chat-box.video .video-info.loading .progress {
    margin-top: 25px
}

.haosns-chat-content-container .chat-box.video .video-info.play i {
    font-size: 35px;
    opacity: .8;
    color: #dbdada
}

.haosns-chat-content-container .chat-box.video .chat-content:hover .video-info.play i {
    opacity: 1;
    color: #fff
}

.haosns-chat-content-container .chat-box.video .video-info .haosns-more-loading {
    margin: 0
}

.haosns-chat-content-container .chat-box.tips.receive-redbag .chat-tips-content {
    background: 0 0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center
}

.haosns-chat-content-container .chat-box.tips.receive-redbag .chat-tips-content i {
    font-size: 14px;
    margin-right: 5px;
    color: #d75e5e
}

.haosns-chat-content-container .chat-box.tips.receive-redbag .chat-tips-content span {
    color: #ff9500;
    margin-left: 5px
}

.haosns-chat-content-container .chat-box .chat-content .video-dom {
    position: relative
}

.haosns-chat-content-container .chat-box .chat-content .video-dom .seconds {
    position: absolute;
    right: 6px;
    font-size: 12px;
    bottom: 12px;
    color: #fff
}

.haosns-chat-content-container .chat-box.location .chat-content {
    background-color: #f1f1f1;
    border: 1px solid #f2f2f2;
    padding: 0;
    width: 240px
}

.haosns-chat-content-container .chat-box.location .location-top {
    padding: 5px 8px;
    box-sizing: border-box;
    background-color: #fff
}

.haosns-chat-content-container .chat-box.location .location-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333
}

.haosns-chat-content-container .chat-box.location .location-address {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.haosns-chat-content-container .chat-box.location .chat-content img {
    width: 100%;
    max-width: inherit;
    border-radius: 0 0 4px 4px;
    height: 80px;
    object-fit: cover
}

.haosns-chat-bar {
    border-top: 1px solid #ebebeb;
    height: 38px;
    position: relative;
    padding: 0 20px;
    display: flex;
    align-items: center
}

.haosns-chat-bar>div {
    /* display: flex;
    height: 38px;
    align-items: center */
}

.haosns-chat-bar .bar-left {
    flex: 1
}

.haosns-chat-bar>div i {
    padding: 0 10px;
    cursor: pointer;
    line-height: 38px
}

.haosns-chat-footer {
    position: relative;
    height: 140px
}

.haosns-chat-footer .emoji-editor {
    width: 100% !important;
    padding: 5px 10px 0 20px !important;
    height: 100px !important;
    line-height: 20px !important;
    overflow: auto;
    resize: none;
    background: #fff
}

.haosns-chat-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    right: 20px;
}

.haosns-chat-btn button {
    line-height: 32px;
    padding: 0 20px;
    background-color: #e7e7e7;
    border-radius: 3px;
    cursor: pointer
}

.haosns-chat-btn button:hover,
.haosns-chat-search button:hover {
    opacity: .8
}

.haosns-chat-content-scroll-bottom {
    position: absolute;
    right: 0;
    top: -50px;
    height: 20px;
    padding: 16px 12px;
    line-height: 20px;
    font-size: 12px;
    background-color: #fff;
    border-radius: 16px 0 0 16px;
    color: #07c160;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 1px 1px 50px rgba(0, 0, 0, .3)
}

.haosns-chat-video-popup {
    background-color: transparent;
    box-shadow: none
}

.haosns-chat-video-popup .layui-layer-content {
    display: flex;
    align-items: center;
    justify-content: center
}

.chat-video-box {
    width: 100%;
    min-height: 100px;
    max-height: 90%
}

.chat-video-box .art-video-player {
    display: block !important;
    width: 100% !important
}

.chat-video-box video {
    object-fit: cover
}

.haosns-chat-history-container {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 8px 16px
}

.haosns-chat-history-container li:has(> .history-item-recall) {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999
}

.haosns-chat-history-container li:not(:has(> .history-item-recall)) {
    display: grid;
    grid-template-columns: 40px 1fr 70px;
    gap: 10px
}

.haosns-chat-history-container li {
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid hsl(0deg 0% 0% / 5%)
}

.haosns-chat-history-container .history-item-avatar {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 2px;
    border: 1px solid hsl(0deg 0% 0% / 10%)
}

.haosns-chat-history-container .history-item-center {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.haosns-chat-history-container .history-chat-content {
    word-wrap: break-word;
    word-break: break-all;
    flex-shrink: 1
}

.haosns-chat-popup {
    overflow: hidden
}

.haosns-chat-popup .layui-layer-close {
    position: relative;
    width: 16px;
    height: 16px;
    line-height: 18px;
    margin-left: 1px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    color: #000;
    right: 0;
    top: 0;
    background-color: transparent;
    border: none;
    padding: 0;
    font-weight: 400
}

.haosns-chat-popup .layui-layer-close:hover {
    background-color: transparent
}

.haosns-chat-container {
    display: flex;
    position: relative;
    height: 100%
}

.haosns-chat-left {
    width: 240px;
    height: 100%;
    position: relative;
    border-right: 1px solid #eaeaea
}

.haosns-chat-search {
    height: 60px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    width: 100%
}

.haosns-chat-search input {
    background-color: rgb(232 232 232 / 40%);
    padding: 5px 8px;
    border-radius: 2px;
    min-width: 60%;
    flex: 1;
    line-height: 18px
}

.haosns-chat-search button {
    padding: 5px 8px;
    line-height: 18px;
    background-color: rgb(232 232 232 / 40%);
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px
}

.haosns-chat-user-list {
    background-color: rgb(232 232 232 / 20%);
    height: calc(100% - 60px);
    overflow-x: hidden;
    overflow-y: auto
}

.haosns-chat-user-list::-webkit-scrollbar {
    width: 2px
}

.haosns-chat-item {
    gap: 10px;
    cursor: pointer;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff
}

.haosns-chat-item.top {
    background-color: rgb(0 0 0 / 2%)
}

.haosns-chat-item:hover {
    background-color: rgb(0 0 0 / 2%)
}

.haosns-chat-item[data-active="true"] {
    background-color: rgb(0 0 0 / 5%);

}

.haosns-chat-item:visited {
    background-color: rgb(0 0 0 / 2%);
}

.haosns-chat-item .avatar-box {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    border: 1px solid hsl(0deg 0% 0% / 10%)
}

.haosns-chat-item .avatar-box .user-top {
    position: absolute;
    background-color: #07c160;
    color: #fff;
    font-size: 10px;
    padding: 0 2px;
    border-radius: 2px;
    top: -5px;
    left: -5px
}

.haosns-chat-item .avatar-box .unread-count {
    position: absolute;
    background-color: #ff3b30;
    color: #fff;
    font-size: 10px;
    top: -5px;
    left: 25px;
    padding: 2px;
    min-width: 12px;
    height: 12px;
    line-height: 1;
    display: flex;
    border-radius: 15px;
    align-items: center;
    justify-content: center
}

.haosns-chat-item .avatar img {
    width: 100%;
    height: 100%
}

.haosns-chat-item .info {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.haosns-chat-item .info .name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.haosns-chat-item .info .name font {
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    flex: 1
}

.haosns-chat-item .info .name span {
    color: #999;
    font-size: 12px
}

.haosns-chat-item .info .msg {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: #666;
    line-height: 20px;
    height: 20px
}

.haosns-chat-item .info .msg .haosns-emoji {
    width: 24px;
    height: 24px
}

.haosns-chat-header {
    height: 50px;
    line-height: 50px;
    padding-left: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid hsl(0deg 0% 0% / 10%)
}

.haosns-chat-header-cursor-move {
    height: 50px;
    flex: 1
}

.haosns-chat-right {
    flex: 1;
    width: 668px;
}

.haosns-chat-sidebar {
    width: 60px;
    border-right: 1px solid hsl(0deg 0% 0% / 10%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5px
}

.haosns-chat-sidebar .sidebar-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px
}

.haosns-chat-sidebar .sidebar-head .user-info {
    width: 40px;
    height: 40px;
    position: relative
}

.haosns-chat-sidebar .sidebar-head .chat-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px
}

.haosns-chat-sidebar .sidebar-head .chat-menu li {
    width: 40px;
    height: 40px;
    padding: 5px;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.haosns-chat-sidebar .sidebar-head .chat-menu li.on {
    color: #07c160
}

.haosns-chat-sidebar .sidebar-head .chat-menu li:hover {
    background-color: hsl(0deg 0% 0% / 10%)
}

.haosns-chat-sidebar .sidebar-head .chat-menu li i {
    font-size: 20px
}

.haosns-chat-sidebar .sidebar-head .chat-menu li .all-unread-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff3b30;
    color: #fff;
    font-size: 10px;
    padding: 2px;
    min-width: 12px;
    height: 12px;
    line-height: 1;
    display: flex;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden
}

.haosns-chat-sidebar .sidebar-head .chat-menu li .all-unread-count:not(:empty) {
    opacity: 1;
    visibility: visible
}

.haosns-chat-content-container {
    height: 312px;
    overflow-x: hidden;
    overflow-y: auto
}

.haosns-chat-content-container::-webkit-scrollbar {
    width: 4px
}

.haosns-chat-content-container .chat-box {
    display: flex;
    padding: 15px 20px
}

.haosns-chat-content-container .chat-box:last-child {
    padding-bottom: 40px
}

.haosns-chat-content-container .chat-box.self {
    flex-direction: row-reverse
}

.haosns-chat-content-container .chat-box .avatarimg {
    margin-right: 15px
}

.haosns-chat-content-container .chat-box.self .avatarimg {
    margin-right: 0;
    margin-left: 15px
}

.haosns-chat-content-container .chat-box .avatarimg>a {
    display: block;
    width: 40px;
    height: 40px;
    position: relative
}

.haosns-chat-content-container .chat-box .chat-info {
    max-width: 80%
}

.haosns-chat-content-container .chat-box.self .user-info {
    text-align: right
}

.haosns-chat-content-container .chat-box .user-info {
    margin-bottom: 10px
}

.haosns-chat-content-container .chat-box .chat-content {
    padding: 10px;
    border-radius: 8px;
    word-break: break-word;
    background: #f3f3f3;
    line-height: 24px;
    position: relative;
    display: inline-block;
    min-width: 10px;
    min-height: 24px;
    margin-bottom: 5px
}
.haosns-chat-content-container .chat-box .chat-content p{
    display: flex;
}
        /* Toast 动画 */
        @keyframes toastSlideDown {
            from {
                opacity: 0;
                transform: translate(-50%, -20px);
            }
            to {
                opacity: 1;
                transform: translate(-50%, 0);
            }
        }
        @keyframes toastSlideUp {
            from {
                opacity: 1;
                transform: translate(-50%, 0);
            }
            to {
                opacity: 0;
                transform: translate(-50%, -20px);
            }
        }
.haosns-chat-content-container .chat-box .chat-content img:not(.haosns-emoji) {
    max-width: 150px;
    max-height: 100%;
    border-radius: 8px;
    display: block
}

.haosns-chat-content-container .chat-box.self .chat-content {
    background-color: #95ec6a;;
    color: #fff;
    float: right
}

.haosns-chat-content-container .chat-box.img .chat-content,
.haosns-chat-content-container .chat-box.redbag .chat-content,
.haosns-chat-content-container .chat-box.share .chat-content {
    padding: 0;
    background-color: #ffff
}

.haosns-chat-content-container .chat-box.img .chat-content:before,
.haosns-chat-content-container .chat-box.redbag .chat-content:before,
.haosns-chat-content-container .chat-box.share .chat-content:before {
    display: none
}

.haosns-chat-content-container .chat-box.self.img .chat-content {
    text-align: right
}

.haosns-chat-content-container .chat-box .chat-content:before {
    content: '';
    position: absolute;
    left: -10px;
    top: 15px;
    width: 0;
    height: 0;
    border-style: solid dashed dashed;
    border-color: #eee transparent transparent;
    overflow: hidden;
    border-width: 12px;
    z-index: -1
}

.haosns-chat-content-container .chat-box.self .chat-content:before {
    border-color: #95ec6a transparent transparent;
    right: -10px;
    left: inherit
}

/* Fix emoji vertical alignment in chat */
.haosns-chat-content-container .chat-box .chat-content .haosns-emoji {
    display: inline-block !important;
    vertical-align: text-bottom;
    margin: 0 1px;
    width: 22px !important;
    height: 22px !important;
}

.nickname2{
    color: #000000;
}
.haosns-chat-content-container .chat-box .chat-quote {
    background-color: #f1f1f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #888;
    max-height: 32px;
    overflow: hidden;
    clear: both
}

.haosns-chat-content-container .chat-box>i.error {
    color: #fb2519;
    margin-right: 5px;
    display: flex;
    align-items: center
}

.haosns-chat-content-container .chat-box.tips {
    display: block;
    text-align: center
}

.haosns-chat-content-container .chat-box.tips .chat-tips-content {
    display: inline-block;
    margin: auto;
    background-color: #d5d5d5;
    padding: 4px 15px;
    font-size: 12px;
    border-radius: 20px;
    color: #fff;
    word-break: break-word
}

.haosns-chat-content-container .chat-box.tips.time .chat-tips-content {
    background-color: #fff;
    color: #999
}

.haosns-chat-content-container .audio-detail-msg {
    display: flex;
    align-items: center;
    cursor: pointer
}

.haosns-chat-content-container .audio-detail-msg .seconds {
    padding-right: 5px
}

.haosns-chat-content-container .audio-detail-msg .audio-style {
    display: flex;
    align-items: center;
    padding-right: 10px
}

.haosns-chat-content-container .audio-detail-msg .small {
    border: 3px solid #4c4c4c;
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box
}

.haosns-chat-content-container .audio-detail-msg .middle {
    width: 16px;
    height: 16px;
    margin-left: -11px;
    opacity: 1;
    border: 2px solid #4c4c4c;
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box
}

.haosns-chat-content-container .audio-detail-msg .large {
    width: 24px;
    height: 24px;
    margin-left: -19px;
    opacity: 1;
    border: 2px solid #4c4c4c;
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box
}

.haosns-chat-content-container .chat-box.self .audio-detail-msg {
    flex-direction: row-reverse
}

.haosns-chat-content-container .self .audio-detail-msg .audio-style {
    flex-direction: row-reverse
}

.haosns-chat-content-container .self .audio-detail-msg .small {
    border: 3px solid #fff;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box
}

.haosns-chat-content-container .self .audio-detail-msg .middle {
    width: 16px;
    height: 16px;
    margin-right: -11px;
    margin-left: 0;
    opacity: 1;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box
}

.haosns-chat-content-container .self .audio-detail-msg .large {
    width: 24px;
    height: 24px;
    margin-right: -19px;
    margin-left: 0;
    opacity: 1;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box
}

.haosns-chat-content-container .audio-detail-msg .play .middle {
    animation: show2 1.2s ease-in-out infinite
}

.haosns-chat-content-container .audio-detail-msg .play .large {
    animation: show3 1.2s ease-in-out infinite
}

@keyframes show2 {
    0% {
        opacity: 0
    }

    10% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

@keyframes show3 {
    0% {
        opacity: 0
    }

    50% {
        opacity: 1
    }

    60% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

.haosns-chat-history-container .history-chat-content img:not(.haosns-emoji) {
    max-width: 150px;
    border-radius: 8px;
    cursor: pointer
}

.haosns-chat-history-container .history-chat-time,
.haosns-chat-history-container .history-user-name {
    font-size: 12px;
    color: #999
}

.haosns-chat-history-container .history-chat-content .video-dom {
    position: relative;
    width: 150px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer
}

.haosns-chat-history-container .history-chat-content .video-dom .seconds {
    position: absolute;
    right: 6px;
    font-size: 12px;
    bottom: 12px;
    color: #fff
}

.haosns-chat-history-container .history-chat-content .video-info {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    background: rgb(0 0 0 / 20%)
}

.haosns-chat-history-container .history-chat-content .video-info.loading .chat-loading {
    border: 2px solid #fff;
    border-top-color: rgba(0, 0, 0, .2);
    border-right-color: rgba(0, 0, 0, .2);
    border-bottom-color: rgba(0, 0, 0, .2)
}

.haosns-chat-history-container .history-chat-content .video-info.loading .progress {
    margin-top: 25px
}

.haosns-chat-history-container .history-chat-content .video-info.play i {
    font-size: 35px;
    opacity: .8;
    color: #dbdada
}

.haosns-chat-history-container .history-chat-content:hover .video-info.play i {
    opacity: 1;
    color: #fff
}

.haosns-chat-history-container .history-chat-content .video-info .haosns-more-loading {
    margin: 0
}

.haosns-chat-history-container .history-chat-content .chat-location-box {
    background-color: #f1f1f1;
    border: 1px solid #f2f2f2;
    border-radius: 8px;
    overflow: hidden
}

.haosns-chat-history-container .history-chat-content .location-top {
    padding: 5px 8px;
    box-sizing: border-box;
    background-color: #fff
}

.haosns-chat-history-container .history-chat-content .location-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333
}

.haosns-chat-history-container .history-chat-content .location-address {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.haosns-chat-history-container .history-chat-content .chat-location-box img {
    max-width: 100%;
    border-radius: 0
}

.haosns-chat-history-container .history-chat-content .audio-detail-msg {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #eee;
    padding: 5px 10px;
    border-radius: 4px;
    color: #333;
    position: relative;
    min-width: 10px;
    min-height: 24px;
    max-width: 50%
}

.haosns-chat-history-container .history-chat-content .audio-detail-msg .seconds {
    padding-right: 5px
}

.haosns-chat-history-container .history-chat-content .audio-detail-msg .audio-style {
    display: flex;
    align-items: center;
    padding-right: 10px
}

.haosns-chat-history-container .history-chat-content .audio-detail-msg .small {
    border: 3px solid #4c4c4c;
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box
}

.haosns-chat-history-container .history-chat-content .audio-detail-msg .middle {
    width: 16px;
    height: 16px;
    margin-left: -11px;
    opacity: 1;
    border: 2px solid #4c4c4c;
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box
}

.haosns-chat-history-container .history-chat-content .audio-detail-msg .large {
    width: 24px;
    height: 24px;
    margin-left: -19px;
    opacity: 1;
    border: 2px solid #4c4c4c;
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box
}

/* post action dropdown */
.post-more {
  position: relative;
  display: inline-block;
}
.post-more .more-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: #333;
}
.post-more .more-trigger svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.post-more-menu {
  position: absolute;
  right: 0;
  top: 26px;
  min-width: 136px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 6px 0;
  z-index: 1050;
}
.post-more-menu li {
  list-style: none;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
}
.post-more-menu li:hover {
  background: #f5f7fa;
}

/* visibility modal */
.visibility-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity .2s ease;
  will-change: opacity;
}
.visibility-mask.closing { opacity: 0; }
.visibility-dialog {
  width: 360px;
  max-width: calc(100% - 40px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  overflow: hidden;
  transform: translateZ(0) scale(1);
  opacity: 1;
  will-change: transform, opacity;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), opacity .18s ease;
}
.visibility-dialog.closing {
  transform: translateZ(0) scale(.96);
  opacity: 0;
}
.visibility-dialog .dlg-header {
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.visibility-dialog .dlg-body {
  padding: 8px 0;
}
.visibility-dialog .vis-item {
  padding: 12px 16px;
  cursor: pointer;
  color: #333;
  display: flex;
  gap: 7px;
  align-items: center;  
}
.line{
    height: 1px;
    background-color: #f0f0f0;
    margin: 10px 0;
    width: 100%;
}
/* .visibility-dialog .vis-item:hover {
  background: #f7f8fa;
} */
.visibility-dialog .dlg-footer {
  padding: 10px 16px;
  text-align: right;
  border-top: 1px solid #f0f0f0;
  gap: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.visibility-dialog .dlg-footer .btn-close {
  padding: 6px 12px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #fff;
  color: #333;
  cursor: pointer;
}
.yeah{
    padding: 5px 15px;
    background: #2f363c;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.no{
  padding: 5px 15px;
    color: #000000;
    border-radius: 4px;
    border: 1px solid #c3c3c3;
    cursor: pointer;
}
@keyframes visIn { to { transform: translateZ(0) scale(1); } }
@keyframes visOut { to { transform: translateZ(0) scale(.96); opacity: 0; } }
/* ==========================================
   Skeleton Loading Animation (�Ǽ���)
   ========================================== */
@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.skeleton-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.skeleton {
    background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 37%, #f0f2f5 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: 4px;
}

.skeleton-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.skeleton-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
}

.skeleton-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ==========================================
   2. 顶部导航栏修�?(Navbar Crowding)
   ========================================== */
@media (max-width: 991px) {
    /* 小屏幕下隐藏非核心导�?*/
    .navbar-area .others-options .option-item .search-box {
        display: none; /* 手机端隐藏顶部大搜索�?*/
    }
    
    /* 确保右侧图标不换行，保持单行显示 */
    .navbar-area .others-options {
        flex-wrap: nowrap;
        margin-left: auto; /* 推到最右边 */
    }
    
    .navbar-area .others-options .option-item {
        padding: 0 5px; /* 减小间距 */
    }
    
    /* 调整LOGO大小 */
    .navbar-brand img {
        height: 32px !important;
    }
}

@media (min-width: 992px) {
    /* 大屏幕下防止图标被挤�?*/
    .navbar-area .others-options {
        flex-shrink: 0;
        min-width: 300px;
        justify-content: flex-end;
    }
}

/* ==========================================
   3. 首页三栏固定滚动 (Sticky Three-Column Layout)
   ========================================== */
@media (min-width: 992px) {
    /* 1. 让主容器支持 Flexbox 对齐 */
    .content-page-box-area .row {
        display: flex;
        align-items: flex-start; /* 顶部对齐 */
        position: relative;
    }

    /* 2. 左侧边栏固定 */
    .col-lg-3.col-md-12:first-child {
        position: -webkit-sticky;
        position: sticky;
        top: 90px; /* 距离顶部的偏移量（导航栏高度+间距�?*/
        z-index: 10;
        height: auto;
        align-self: flex-start;
    }

    /* 3. 右侧边栏固定 */
    .col-lg-3.col-md-12:last-child {
        position: -webkit-sticky;
        position: sticky;
        top: 90px;
        z-index: 10;
        height: auto;
        align-self: flex-start;
    }

    /* 4. 中间内容�?*/
    .col-lg-6.col-md-12 {
        /* 保持默认滚动 */
        min-height: 100vh; /* 确保中间足够�?*/
    }
}

/* 小屏幕下取消固定，恢复默认堆�?*/
@media (max-width: 991px) {
    .col-lg-3.col-md-12 {
        position: static !important;
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    .col-lg-6.col-md-12 {
        width: 100% !important;
    }
}

@keyframes heart-burst {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.bi-heart-fill,
.bi-star-fill {
    animation: heart-burst 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
}

.actions-like:hover svg,
.video-post-like:hover svg,
.reply-icon:hover:hover {
    transform: scale(1.15);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.actions-like svg,
.video-post-like svg,
.bi-heart,
.bi-heart-fill {
    transition: fill 0.3s ease, transform 0.2s ease;
}
.haosns-btn1:active {
    transform: scale(0.95);
}


a:active,
a:hover {
    outline: 0
}
    * {
        user-select: none;
    }

    .modal-mask {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease;
    }

    .modal-box {
        background: #fff;
        width: 800px;
        height: 500px;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        transform: scale(.9);
        transition: transform .3s ease;
    }

    /* 显示状�?*/
    .modal-mask.show {
        opacity: 1;
        pointer-events: auto;
    }

    .modal-mask.show .modal-box {
        transform: scale(1);
    }


    .close {
        color: #00000096;
        position: absolute;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1
    }

    iframe {
        border: none;
        width: 100%;
        height: 100%
    }
    html,
    body {
        height: 100%;
    }

    body {
        display: flex;
        min-height: 100vh;
        flex-direction: column;
    }

    .copyrights-area p {
        margin: 12px 0;
        text-align: center;
        color: #bdbdbd;
    }

    /* 聊天时间显示样式 */
    .chat-time {
        font-size: 12px !important;
        color: #999 !important;
        text-align: center !important;
        margin: 8px auto !important;
        width: 100% !important;
        position: relative !important;
        z-index: 1 !important;
        background: rgba(255, 255, 255, 0.8);
        padding: 2px 8px;
        border-radius: 10px;
        display: block;
        max-width: fit-content;
    }

    .message-container {
        width: 100%;
        margin-bottom: 15px;
    }

    .chat-content-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .chat-content-wrapper.self {
        flex-direction: row-reverse;
    }

    /* 好友信息显示样式 */
    #friend-info-overlay {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    }

    #friend-info-overlay h3 {
        font-weight: 600 !important;
        color: #333 !important;
    }

    #friend-info-overlay p {
        color: #666 !important;
    }

    #send-message-btn {
        background: #07c160 !important;
        color: white !important;
        border: none !important;
        padding: 10px 30px !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        cursor: pointer !important;
        transition: background 0.3s !important;
        font-weight: 500 !important;
    }

    #send-message-btn:hover {
        background: #06ad56 !important;
    }

    #send-message-btn:active {
        background: #059748 !important;
        transform: translateY(1px);
    }
img {
    display: inline-block;
    border: none;
    vertical-align: middle
}

li {
    list-style: none
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700
}

h5,
h6 {
    font-size: 100%
}

button,
input,
select,
textarea {
    font-size: 100%
}

button,
input,
optgroup,
option,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    outline: 0
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word
}

body {
    line-height: 1.6;
    color: rgba(0, 0, 0, .85);
    font-size: 14px;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif
}

hr {
    height: 0;
    line-height: 0;
    margin: 10px 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid #eee;
    clear: both;
    overflow: hidden;
    background: 0 0
}

a {
    color: #333;
    text-decoration: none
}

a cite {
    font-style: normal
}

.laydate-theme-fullpanel .laydate-set-ym span {
    display: none
}

.skeleton-name {
    width: 120px;
    height: 16px;
}

.skeleton-time {
    width: 80px;
    height: 12px;
}

.skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.skeleton-line {
    width: 100%;
    height: 16px;
}

.skeleton-line.short {
    width: 70%;
}

.skeleton-image-box {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-top: 5px;
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.skeleton-btn {
    width: 60px;
    height: 20px;
}




/* Topic Selection Modal */
.haosns-topic-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.haosns-topic-modal {
    width: 400px;
    max-width: 90%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}
.haosns-topic-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: none;
}
.haosns-topic-modal .modal-header .title {
    font-size: 16px;
    font-weight: bold;
}
.haosns-topic-modal .modal-header i {
    font-size: 24px;
    cursor: pointer;
}
.haosns-topic-modal .modal-input-area {
    padding: 0 15px 15px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #f5f5f5;
}
.haosns-topic-modal .modal-input-area input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px 0;
}
.haosns-topic-modal .modal-input-area .btn-add {
    background: #000;
    color: #fff;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
}
.haosns-topic-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
}
.haosns-topic-modal .section-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}
.haosns-topic-modal .topic-list .topic-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    cursor: pointer;
}
.haosns-topic-modal .topic-list .topic-item .name {
    font-size: 14px;
    color: #333;
}
.haosns-topic-modal .topic-list .topic-item .hot {
    font-size: 12px;
    color: #999;
}
.haosns-topic-modal .modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}
.haosns-topic-modal .selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 30px;
}
.haosns-topic-modal .tag-bubble {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 2px 8px 2px 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.haosns-topic-modal .tag-bubble i {
    background: #ff4d4f;
    color: #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
}
.haosns-topic-modal .btn-confirm {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
