:root {
    /* 主色调 */
    --primary-color: #1d92c5;
    --primary-hover: #1680ad;
    --primary-light: #e8f4f9;

    /* 辅助色 */
    --black: #1a1a1a;
    --red: #ff4444;
    --red-hover: #ff0000;
    --orange: #ff8c00;
    --orange-hover: #ff7700;

    /* 中性色 */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --border-color: #e5e5e7;

    /* 状态色 */
    --success: #10b981;
    --warning: #ff8c00;
    --error: #ff4444;
    --info: #1d92c5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 13px;
}

/* 为浏览器滚动条保留空间，避免浮动滚动条遮挡右侧内容
   同时隐藏滚动条的可视部分但保留滚动功能 */
html,
body {
    scrollbar-gutter: stable;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

/* WebKit 浏览器（Chrome / Safari / Edge Chromium）: 隐藏滚动条轨道 */
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Header 样式 */
.header.header-mobile {
    background-color: white;
    border-bottom: 1px solid #e5e5e7;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

.header.header-mobile {
    position: sticky;
}

.header-container {
    /* max-width: 1920px; */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid #1680ade0;
    background: radial-gradient(#ff8c0026, var(--bg-primary));
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
    padding-left: 10px
}


.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}

.logo:hover .logo-text {
    color: var(--primary-color);
}

.nav-links {
    display: none;
    /* 隐藏导航链接 */
}

.header-desktop .header-right {
    background: #eaeaea;
    border: 1px solid #126b8e91;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    width: 300px;
    margin-top: 10px;
}

.header-mobile .header-right {
    border: none;
    border-radius: 4px 4px 0 0;
    width: 300px;
}

.search-box {
    position: relative;
}

.search-input {
    /* background-color: #f5f5f7; */
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    padding: 8px 35px 8px 12px;
    color: #1d1d1f;
    width: 280px;
    font-size: 12px;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
}


.user-info {
    display: flex;
    align-items: stretch;
    /* gap: 12px; */
    flex-direction: column;
}

.username {
    color: #1d1d1f;
    font-weight: 600;
    font-size: 14px;
}

.status-badge {
    padding: 6px 0px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge .status-text {
    margin-left: 5px;
}

.status-badge.basic {
    color: #6c757d;
}

.status-badge.platinum {
    color: #ff8c00;

}

@media screen and (min-width: 768px) {
    .user-info .status-badge {
        display: inline-block;
    }

    .user-info .username {
        display: inline-block;
    }
}

.btn {
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    justify-content: center;
}

.btn i {
    flex-shrink: 0;
}

.btn span {
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e8e8ed;
    border-color: var(--primary-color);
}

.btn-orange {
    background-color: #ff6b35;
    color: #fff;
    border: none;
}

.btn-orange:hover {
    background-color: #ff8555;
}

/* Main Content 样式 */
.main-content {
    /* max-width: 1920px; */
    margin: 0 auto;
    /* padding: 0px 10px; */
    min-height: 50vh;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    justify-content: space-between;
    /* padding: 15px 20px 0; */
    border-bottom: 1px solid #ccc;
    background-color: #f8f9fa;
    flex-wrap: wrap;
    gap: 10px;
    /* margin-bottom: 10px; */
    padding-top: 10px;
    align-items: flex-end;
    padding: 10px;
    padding-bottom: 0px;
    border-top: 3px solid var(--warning);
}

/* 响应式：根据视口宽度切换 desktop / mobile header 和 tabs */
/* 默认移动优先：移动端显示，桌面端隐藏 */
.header-desktop,
.category-tabs-desktop {
    display: none !important;
}

.header-mobile,
.category-tabs-mobile {
    display: block !important;
}

/* 桌面 (>=769px)：显示 desktop，隐藏 mobile */
@media (min-width: 769px) {
    .header-desktop {
        display: block !important;
    }

    .profile-wrapper {
        border-top: 3px solid var(--warning);
    }

    .category-tabs-desktop {
        display: flex !important;
    }

    .header-mobile,
    .category-tabs-mobile {
        display: none !important;
    }
}


.category-tabs-inner {
    display: flex;
    gap: 5px;
    flex: 1;
    flex-wrap: nowrap;
}

.tab {
    display: inline-block;
    padding: 3px 15px;
    text-decoration: none;
    color: #006699;
    font-weight: 400;
    font-size: 13px;
    border: 1px solid #1d92c540;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background-color: #6ea9c22b;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    white-space: nowrap;
}

.tab:hover {
    background-color: #f7f7f7;
}

.tab.active {
    background-color: #fff;
    color: #ff6600;
    margin-bottom: -1px;
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 10px;
}

.action-icon-btn {
    background: none;
    border: none;
    color: #006699;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.tag-filter-btn {
    background-color: transparent;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 4px;
    color: #006699;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .12s ease;
}

.tag-filter-btn.tag-filter-off{
    background-color: transparent;
    color: #006699;
    border-color: transparent;
    box-shadow: none;
}

@media screen and (max-width: 768px) {
    .tag-filter-btn{
        padding: 8px 14px;
        border-radius: 999px;
        font-size: 14px;
    }
}

/* 过滤和排序 */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-label {
    color: #6e6e73;
    font-size: 14px;
    font-weight: 600;
}

.filter-select {
    background-color: #ffffff;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

/* 直播间列表 */
.main-body {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.left-content {
    flex: 1;
    min-width: 0;
    padding: 10px;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 40px;
}

.hot-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

.viewer-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.viewer-count.high {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
}

.room-info {
    padding: 5px;
}

.room-title {
    color: #0c6a93;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    /* 确保使用 flex 布局 */
    align-items: center;
    justify-content: center;
    font-size: 8px;
    flex-shrink: 0;
    /* 防止头像被压缩 */
}


.room-streamer {
    color: #6e6e73;
    font-size: 12px;
}

.room-tags {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.tag {
    background-color: #f5f5f7;
    color: #6e6e73;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    border: 1px solid #e5e5e7;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    background-color: #ffffff;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.page-btn:hover {
    background-color: #f5f5f7;
    border-color: var(--primary-color);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer 样式 */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e5e7;
}

.footer-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #1a1a1aab;
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #6e6e73c2;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #e5e5e7;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-compliance {
    background-color: #f8f8fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.footer-compliance p {
    color: #6e6e73;
    font-size: 13px;
    margin: 5px 0;
    line-height: 1.4;
}

.footer-compliance a {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-certifications {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
    justify-content: center;
}

.footer-certifications img {
    max-height: 40px;
}

.footer-bottom p {
    color: #6e6e73;
    font-size: 13px;
    text-align: center;
}

.footer-disclaimer {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.footer-disclaimer p {
    color: #856404;
    font-size: 12px;
    margin: 5px 0;
    line-height: 1.4;
}

.footer-disclaimer a {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    color: #6e6e73;
    font-size: 20px;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* 侧边栏 Tag 样式 (右侧固定展示) */
.right-sidebar {
    max-width: 15%;
    min-width: 300px;
    background: #f8f9fa;
    padding: 0;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    padding: 10px;
    padding-right: 20px;
}


.right-sidebar.hidden {
    display: none;
}

.close-sidebar {
    display: flex;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    justify-content: flex-end;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h3 {
    font-size: 12px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags-container .tag {
    text-decoration: none;
    background-color: transparent;
    border: 1px solid var(--wl-filter-option-border-color, #e0eefb);
    border-radius: 4px;
    box-sizing: border-box;
    color: #0c6a93;
    cursor: pointer;
    display: inline-block;
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 14px;
    margin: 0 5px 5px 0;
    max-width: 100%;
    overflow: hidden;
    padding: 4px 6px;
    text-align: left;
    text-overflow: ellipsis;
}

.tags-container .tag:hover {
    background-color: #e9e9e9
}

.tags-container .tag.active {
    color: white;
    background-color: #0c6a93;
    font-weight: 500;
}


.search-box {
    position: relative;
    /* margin-bottom: 10px; */
}

.search-box input {
    width: 100%;
    padding: 6px 30px 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
}

.search-box i {
    /* position: absolute; */
    right: 10px;
    top: 8px;
    color: #006699;
}

.tag-pagination {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.tag-pagination a {
    color: #006699;
    text-decoration: none;
}

.room-card {
    background: rgb(255, 255, 255);
    border: 0.5px solid rgba(0, 0, 0, 0.09);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    transform: translateY(0px);
}

.room-thumbnail {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--border-color);
}

.room-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.room-streamer {
    font-size: 13px;
    font-weight: 500;
    color: #126b8e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
    font-family: -apple-system, 'PingFang SC', sans-serif;
}

.room-age {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    font-family: -apple-system, 'PingFang SC', sans-serif;
}

.room-title {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    line-height: 1.45;
    overflow: hidden;
    word-break: break-all;
    font-family: -apple-system, 'PingFang SC', sans-serif;
}

@media (max-width: 768px) {
    .search-box i {
        color: gray;
    }

    .header-container {
        flex-wrap: nowrap;
        height: 60px;
        padding: 0 12px;
        gap: 8px;
        justify-content: space-between;
    }

    .right-sidebar {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        background: #f8f9fa;
        padding: 0;
        position: relative;
        flex-shrink: 0;
        transition: all 0.3s ease;
        padding: 10px;
        min-height: 60vh;
    }

    .left-content.hidden {
        display: none;
    }

    .right-sidebar.show {
        display: none;
    }

    .logo {
        flex: 0 0 auto;
        transition: all 0.3s ease;
        order: 1;
    }

    .logo.hidden {
        opacity: 0;
        width: 0;
        overflow: hidden;
        margin: 0;
    }

    .logo img {
        height: 25px;
    }

    .header-right {
        flex: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        min-width: 0;
        order: 2;
        justify-content: flex-end;
    }

    .search-box {
        flex: 0 0 180px;
        transition: flex 0.3s ease;
        order: 1;
        display: flex;
        align-items: center;
    }

    .search-box.expanded {
        flex: 1;
    }

    .search-input {
        width: 100%;
        font-size: 13px;
        padding: 7px 32px 7px 10px;
        height: 36px;
    }

    .user-info {
        display: flex;
        gap: 4px;
        flex-wrap: nowrap;
        flex-shrink: 0;
        order: 2;
        align-items: center;
        flex-direction: row;
    }

    .username {
        display: none;
    }

    .user-info .status-badge {
        padding: 7px 10px !important;
        font-size: 12px !important;
        min-height: 36px !important;
        height: 36px !important;
        display: inline-flex;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        border: 1px solid var(--border-color);

    }

    .user-info .status-badge i {
        margin: 0 !important;
        font-size: 14px !important;
    }

    .user-info .status-badge .status-text,
    .user-info .status-badge span.status-text {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        position: absolute !important;
    }

    .user-info .btn {
        padding: 7px 10px;
        font-size: 12px;
        min-width: auto;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-info .btn span {
        display: none;
    }

    .user-info .btn i {
        font-size: 16px;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
        gap: 6px;
        border-bottom: none;
        background: none;
    }

    .logo img {
        height: 25px;
    }

    .search-box {
        flex: 0 0 140px;
    }

    .search-input {
        font-size: 12px;
        padding: 6px 28px 6px 8px;
        height: 32px;
    }


    .user-info {
        gap: 3px;
    }

    .user-info .btn {
        padding: 6px 8px;
        font-size: 11px;
        min-width: auto;
        height: 32px;
    }

    .user-info .btn i {
        font-size: 14px;
    }

    .user-info .status-badge {
        padding: 6px 8px !important;
        height: 32px !important;
        min-height: 32px !important;
    }

    .user-info .status-badge i {
        font-size: 14px !important;
    }

    .user-info .status-badge .status-text,
    .user-info .status-badge span.status-text {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        position: absolute !important;
    }
}

@media (max-width: 360px) {
    .header-container {
        padding: 0 8px;
        gap: 4px;
    }

    .logo img {
        height: 25px;
    }

    .search-box {
        flex: 0 0 120px;
    }

    .user-info {
        gap: 2px;
    }

    .user-info .btn {
        padding: 5px 6px;
        font-size: 10px;
        height: 28px;
    }

    .user-info .btn i {
        font-size: 13px;
    }

    .user-info .status-badge {
        padding: 5px 6px !important;
        height: 28px !important;
        min-height: 28px !important;
        background-color: transparent !important;
    }

    .user-info .status-badge i {
        font-size: 13px !important;
    }

    .user-info .status-badge .status-text,
    .user-info .status-badge span.status-text {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        position: absolute !important;
    }

    .search-input {
        font-size: 11px;
        padding: 5px 26px 5px 6px;
        height: 28px;
    }
}



/* 播放器容器样式 */
.player-container {
    display: none;
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1d1d1f;
    z-index: 1000;
    overflow: hidden;
}

.player-container.active {
    display: flex;
}

.player-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #000;
    position: relative;
    min-height: 0;
    /* 允许收缩 */
    overflow: hidden;
    /* 防止溢出 */
}

.player-header {
    background: #f8f9fa;
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid #e5e5e7;
    height: 50px;
    /* 确保与聊天栏标题高度一致 */
    flex-shrink: 0;
    /* 防止被压缩 */
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
    /* 允许内容收缩 */
}

.player-info h2 {
    color: #1d1d1f;
    font-size: 15px;
    /* 从 20px 改为 15px */
    margin: 0;
    white-space: nowrap;
    /* 不换行 */
    overflow: hidden;
    /* 隐藏溢出 */
    text-overflow: ellipsis;
    /* 显示省略号 */
    flex: 1;
    min-width: 0;
}

.player-info .live-indicator {
    background-color: var(--red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.player-close {
    background-color: #f5f5f7;
    border: 1px solid #e5e5e7;
    color: #1d1d1f;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-weight: 600;
}

.player-close i {
    font-size: 16px;
}

.player-close:hover {
    background-color: var(--red);
    color: #fff;
    border-color: var(--red);
}

.video-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--black);
    min-height: 0;
    overflow: hidden;
}

.video-container {
    flex: 1;
    position: relative;
    background-color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.video-js {
    width: 100% !important;
    height: 100% !important;
}

.video-js video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 保持视频宽高比 */
    visibility: hidden;
    /* 默认隐藏，但占位 */
    opacity: 0;
    /* 透明度为0 */
}

video {
    visibility: hidden;
}

/* 开始播放时显示 */
.video-js video {
    visibility: visible;
    opacity: 1;
}

/* 视频信息栏 - 固定在底部 */
.video-info-bar {
    background: #f8f9fa;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #e5e5e7;
    flex-shrink: 0;
    height: 52px;
}

.video-info-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.video-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6e6e73;
    font-size: 13px;
}

.video-info-item i {
    color: var(--primary-color);
    font-size: 14px;
}

.video-info-item .count {
    color: #1d1d1f;
    font-weight: 600;
}

.video-info-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-info-bar {
    position: relative;
}

.video-action-btn {
    background: #ffffff;
    border: 1px solid #d2d2d7;
    color: #1d1d1f;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.video-action-btn.liked {
    background: var(--red);
    border-color: var(--red);
    color: #ffffff;
}

.video-action-btn.followed {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #ffffff;
}

.video-action-btn.followed:hover {
    background: #f59e0b;
    border-color: #f59e0b;
}

.video-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ─── 大陆加速面板 ─── */
#proxy-accel-panel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: auto;
    max-width: 50%;
    flex-shrink: 0;
    padding: 4px 8px;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 38px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.proxy-content-expand {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#proxy-accel-panel.collapsed {
    padding-right: 4px;
}

#proxy-accel-panel.collapsed .proxy-content-expand {
    width: 0;
    opacity: 0;
    margin: 0;
    visibility: hidden;
    pointer-events: none;
}

#proxy-accel-panel.collapsed .proxy-collapse-btn i {
    transform: rotate(180deg);
}

.proxy-toggle-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f7;
    color: #6e6e73;
    border: 1px solid #d2d2d7;
}

.proxy-toggle-btn::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.proxy-toggle-on::after {
    background: #4caf50;
    box-shadow: 0 0 8px rgb(46 104 49 / 80%);
}

.proxy-quota-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.proxy-quota-track {
    width: 80px;
    max-width: 100%;
    height: 5px;
    background: #e5e5e7;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.proxy-quota-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: var(--primary-color, #ff6b35);
    transition: width 0.38s ease;
}

.proxy-quota-text {
    font-size: 11px;
    color: #6e6e73;
    font-weight: 500;
    white-space: nowrap;
}

.proxy-buy-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #d2d2d7;
    background: #ffffff;
    color: #6e6e73;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.proxy-buy-btn:hover {
    border-color: var(--primary-color, #ff6b35);
    color: var(--primary-color, #ff6b35);
}

.proxy-collapse-btn {
    background: transparent;
    border: none;
    color: #86868b;
    cursor: pointer;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.proxy-collapse-btn i {
    transition: transform 0.3s ease;
}

/* 大屏幕：面板居中悬浮，不挤压左右信息块 */
@media (min-width: 1280px) {
    #proxy-accel-panel {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }
}

/* 中等屏幕：恢复流式布局，避免遮挡按钮 */
@media (max-width: 1279px) {
    #proxy-accel-panel {
        position: static;
        transform: none;
        min-width: 0;
        max-width: 52%;
        margin: 0 8px;
    }
}

/* closeBtn 只在小屏可见，大屏隐藏 */
#closeBtn {
    display: none;
}

.chat-panel {
    width: 400px;
    background-color: #ffffff;
    border-left: 1px solid #e5e5e7;
    display: flex;
    flex-direction: column;
}

.chat-panel.connecting {
    opacity: 1;
}

.chat-panel.connecting .chat-input,
.chat-panel.connecting .chat-send-btn {
    pointer-events: none;
    opacity: 0.5;
}

.chat-header {
    background: #f8f9fa;
    padding: 15px 15px;
    border-bottom: 2px solid #e5e5e7;
    height: 50px;
}

.chat-header h3 {
    color: var(--primary-color);
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header h3 i {
    color: var(--primary-hover);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
}

.chat-message {
    margin-bottom: 12px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
}

.chat-time {
    font-size: 11px;
    color: #6e6e73;
    margin-bottom: 2px;
}

.chat-username {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.chat-text {
    color: #1d1d1f;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* Different message types */
.chat-message.chat {
    background-color: #f9f9f9;
    border-left-color: var(--primary-color);
}

.chat-message.chat .chat-username {
    color: var(--primary-color);
}

.chat-message.tip {
    background-color: #fff8e1;
    border-left-color: #ff8c00;
}

.chat-message.tip .chat-username {
    color: #ff8c00;
}

.chat-message.lovense {
    background-color: #fce4ec;
    border-left-color: #e91e63;
}

.chat-message.lovense .chat-username {
    color: #e91e63;
}

.chat-message.notice {
    background-color: #e3f2fd;
    border-left-color: #2196f3;
}

.chat-message.notice .chat-username {
    color: #2196f3;
}

.chat-message.status {
    background-color: #f3e5f5;
    border-left-color: #9c27b0;
}

.chat-message.status .chat-username {
    color: #9c27b0;
}

.chat-message.log {
    background-color: #e8f5e8;
    border-left-color: #4caf50;
}

.chat-message.log .chat-username {
    color: #4caf50;
}

.chat-message.raw {
    background-color: #fff3e0;
    border-left-color: #ff9800;
}

.chat-message.raw .chat-username {
    color: #ff9800;
}

.chat-message.goal {
    background-color: #f1f8e9;
    border-left-color: #8bc34a;
}

.chat-message.goal .chat-username {
    color: #8bc34a;
}

.chat-message.purchase {
    background-color: #e8f4fd;
    border-left-color: #03a9f4;
}

.chat-message.purchase .chat-username {
    color: #03a9f4;
}

.chat-message.thresholdGoal {
    background-color: #e8f5e9;
    border-left-color: #4caf50;
}

.chat-message.thresholdGoal .chat-username {
    color: #4caf50;
}

.chat-message.broadcast {
    background-color: #fff8e1;
    border-left-color: #ff9800;
}

.chat-message.broadcast .chat-username {
    color: #ff9800;
}

.chat-input-wrapper {
    padding: 5px;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e7;
    height: 52px;
}

.chat-input-container {
    position: relative;
}

.chat-input {
    width: 100%;
    padding: 10px 50px 10px 10px;
    /* 右侧留空间给按钮 */
    border: 2px solid #d2d2d7;
    border-radius: 6px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-send-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
    min-width: auto;
}

.chat-send-btn span {
    display: none;
    /* 隐藏文字，只显示图标 */
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, var(--orange-hover) 0%, #ff6600 100%);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* 加载动画 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #c0c0c626;
    border-top-color: #717070f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #fff;
    margin-top: 15px;
    font-size: 14px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* VJS spinner 仅在卡顿持续超过 1s 后显示（由 JS 添加 vjs-spinner-delay-show 控制） */
.video-js .vjs-loading-spinner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.video-js.vjs-spinner-delay-show.vjs-waiting .vjs-loading-spinner,
.video-js.vjs-spinner-delay-show.vjs-seeking .vjs-loading-spinner {
    display: flex !important;
    visibility: visible !important;
    opacity: 0.85 !important;
}

/* 清晰度按钮样式 */
.vjs-quality-button {
    position: relative;
}

.vjs-quality-button .vjs-icon-placeholder:before {
    content: 'HD';
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.67;
}

.vjs-quality-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    padding: 8px 0;
    margin-bottom: 10px;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.vjs-quality-menu::before {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
}

.vjs-quality-item {
    padding: 10px 16px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.vjs-quality-item:hover {
    background: rgba(145, 71, 255, 0.2);
}

.vjs-quality-item.selected {
    background: rgba(145, 71, 255, 0.3);
    color: var(--primary-color);
}

.vjs-quality-item .quality-label {
    flex: 1;
}

.vjs-quality-item i {
    color: var(--primary-color);
    font-size: 12px;
    margin-left: 10px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .player-container {
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        z-index: 1000;
    }

    .player-wrapper {
        flex: 0 0 auto;
        min-height: 0;
    }

    .video-wrapper {
        flex: 0 0 auto;
    }

    .video-container {
        width: 100vw;
        height: 56.25vw;
        flex: 0 0 auto;
        position: relative;
    }

    .video-js {
        width: 100vw !important;
        height: 56.25vw;
        position: relative;
    }

    .video-js video {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    .chat-panel {
        width: 100%;
        flex: 1;
        min-height: 0;
        border-left: none;
        border-top: 1px solid #e5e5e7;
        overflow: hidden;
    }

    .chat-messages {
        flex: 1;
        overflow-y: auto;
    }

    .player-header {
        padding: 12px 15px;
        display: none;
    }

    .player-info h2 {
        font-size: 14px;
    }

    /* 小屏时 video-info-bar 只显示图标和数字，隐藏文字 */
    .video-info-bar {
        padding: 10px 15px;
    }



    .video-action-btn span {
        display: none;
    }

    .video-action-btn {
        padding: 6px 10px;
        min-width: auto;
    }

    /* 小屏时显示closeBtn */
    #closeBtn {
        display: flex;
    }

    /* 小屏时隐藏聊天区域的标题栏 */
    .chat-header {
        display: none;
    }

    /* ── 移动端暗色沉浸模式 ── */
    .video-info-bar {
        background: #1a1a1c;
        border-top-color: #2e2e30;
    }

    .video-info-item {
        color: #8a8a8e;
    }

    .video-info-item i {
        color: #4fb3d9;
    }

    .video-info-item .count {
        color: #dcdce0;
    }

    .video-action-btn {
        background: #252527;
        border-color: #3a3a3c;
        color: #d0d0d4;
    }

    .video-action-btn:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: #ffffff;
    }

    .video-action-btn.followed {
        background: #3a2e10;
        border-color: #5a4a20;
        color: #c8a84a;
    }

    .video-action-btn.followed:hover {
        background: #4a3c18;
        border-color: #7a6430;
        color: #d4b45a;
    }

    .video-action-btn.liked {
        background: #3a1a1a;
        border-color: #5a2828;
        color: #d46060;
    }

    .chat-send-btn {
        background: #2a3a42;
        color: #7ec8e0;
        box-shadow: none;
    }

    .chat-send-btn:hover {
        background: #2e4a56;
        box-shadow: none;
    }

    .chat-panel {
        background-color: #1a1a1c;
        border-top-color: #2e2e30;
    }

    .chat-messages {
        background-color: #1a1a1c;
    }

    .chat-message {
        background-color: #242426;
    }

    .chat-message.chat {
        background-color: #21242a;
    }

    .chat-message.tip {
        background-color: #26221a;
    }

    .chat-message.lovense {
        background-color: #261e22;
    }

    .chat-message.notice {
        background-color: #1a2029;
    }

    .chat-message.notice .chat-username {
        color: #5a9fd4;
    }

    .chat-message.status {
        background-color: #221a26;
    }

    .chat-message.status .chat-username {
        color: #9b7fb8;
    }

    .chat-message.log {
        background-color: #1a2620;
    }

    .chat-message.log .chat-username {
        color: #5aab6e;
    }

    .chat-message.raw {
        background-color: #26201a;
    }

    .chat-message.raw .chat-username {
        color: #c48a3a;
    }

    .chat-message.goal {
        background-color: #1e2419;
    }

    .chat-message.goal .chat-username {
        color: #83aa4a;
    }

    .chat-message.purchase {
        background-color: #192029;
    }

    .chat-message.purchase .chat-username {
        color: #3a9dbf;
    }

    .chat-message.thresholdGoal {
        background-color: #1a2620;
    }

    .chat-message.thresholdGoal .chat-username {
        color: #5aab6e;
    }

    .chat-message.broadcast {
        background-color: #26201a;
    }

    .chat-message.broadcast .chat-username {
        color: #c48a3a;
    }

    .chat-time {
        color: #5a5a5e;
    }

    .chat-text {
        color: #c8c8cc;
    }

    .chat-input-wrapper {
        background-color: #1a1a1c;
        border-top-color: #2e2e30;
    }

    .chat-input {
        background-color: #242426;
        border-color: #3a3a3c;
        color: #dcdce0;
    }

    .chat-input:focus {
        border-color: #4fb3d9;
    }

    .chat-input::placeholder {
        color: #5a5a5e;
    }
}

/* 自定义模态框样式 */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.custom-modal-overlay.active {
    display: flex;
}

.custom-modal-box {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e5e7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    color: #1d1d1f;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6e6e73;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

.modal-body {
    padding: 25px;
    flex: 1;
    overflow-y: auto;
}

.modal-body p {
    margin: 0 0 15px 0;
    color: #6e6e73;
    font-size: 14px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e5e5e7;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer .btn {
    min-width: 80px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-danger:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}



.follow-checkbox {
    margin-right: 10px;
}

.selected-count {
    font-size: 13px;
    color: #6e6e73;
    font-weight: 500;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #f5f5f7;
}

.pagination-info {
    display: none;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    background: #ffffff;
    color: #1d1d1f;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f5f7;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    background: #f5f5f7;
    color: #c7c7cc;
    cursor: not-allowed;
    border-color: #e5e5e7;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.page-number {
    font-weight: 600;
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: #6e6e73;
}

.loading-state i {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #6e6e73;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #d2d2d7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 搜索结果下拉框
.search-results.active {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 2px solid #d2d2d7;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: block;
    padding: 5px;
}

.search-results {
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    padding-top: 5px;
    cursor: pointer;
}

.search-result-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gender-icon {
    font-weight: 900;
    font-size: 16px;
    text-shadow: 0 0 1px currentColor;
    display: inline-block;
}

.gender-female {
    color: #ff69b4;
}

.gender-male {
    color: #1e90ff;
}

.gender-couple {
    color: #ff1493;
}

.gender-trans {
    color: #9370db;
} 
*/

/* 密码输入容器 */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    flex: 1;
    padding-right: 40px;
    /* 为眼睛图标留空间 */
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #333;
}

/* 小屏幕上视觉隐藏整个文档的滚动条，但保留滚动能力（只影响显示，不改变 overflow 行为） */
@media (max-width: 768px) {

    html,
    body {
        /* Firefox */
        scrollbar-width: none;
        /* IE/Edge */
        -ms-overflow-style: none;
    }

    /* WebKit 浏览器：对 html 和 body 隐藏滚动条 */
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
}

.password-toggle i {
    font-size: 16px;
}

/* 小屏幕 (<=768px)：显示 mobile，隐藏 desktop（冗余，确保覆盖） */
@media (max-width: 768px) {
    .category-tabs-inner {
        display: flex;
        gap: 5px;
        flex: 1;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: scroll;
    }

    .tab {
        display: inline-block;
        padding: 3px 15px;
        text-decoration: none;
        color: #006699;
        font-weight: 400;
        font-size: 13px;
        border-top: 1px solid transparent;
        border-left: 1px solid transparent;
        border-right: 1px solid transparent;
        border-radius: 4px;
        background-color: transparent;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
        white-space: nowrap;
    }

    .tab:hover {
        background-color: #f7f7f7;
    }

    .tab.active {
        background-color: transparent;
        color: #ff6600;
        border-top: 1px solid transparent;
        border-left: 1px solid transparent;
        border-right: 1px solid transparent;
        padding: 3px;
    }

    .tab:not(.active) {
        border: 1px solid transparent;
        padding: 3px;
    }
}

@media (max-width: 768px) {
    .cn-proxy-active .video-info-left {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .header-desktop,
    .category-tabs-desktop {
        display: none !important;
    }

    .header-mobile {
        display: block !important;
    }

    .category-tabs-mobile {
        display: flex !important;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        /* overflow-x: scroll; */
    }

    .room-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 6px;
    }

    /* WebKit 浏览器：将滚动条高度设为 0 从而隐藏 */
    .category-tabs-inner::-webkit-scrollbar {
        height: 0;
        width: 0;
    }

    .tab i {
        font-size: 12px;
    }

    .tag-filter-btn {
        font-size: 11px;
        padding: 6px 8px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
        gap: 0;
    }

    .tag-filter-btn span {
        display: none;
    }

    .tag-filter-btn i {
        font-size: 14px;
        margin: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .tag-sidebar {
        width: 100%;
        right: -100%;
    }

    .pagination-container {
        padding: 10px 0;
    }

    .pagination-controls {
        gap: 3px;
    }

    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
    }

    .pagination-btn i {
        font-size: 10px;
    }

    /* 在小屏幕上隐藏一些页码按钮 */
    .pagination-btn:not(.active):not(:disabled):nth-child(n+6):nth-last-child(n+4) {
        display: none;
    }

    #proxy-accel-panel {
        gap: 6px;
        padding: 4px 6px;
        min-width: auto;
        max-width: fit-content;
        border-color: #3a3a3c;
        background: #252527;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        height: 32px;
    }

    #proxy-accel-panel.collapsed {
        padding-right: 4px;
    }

    .proxy-toggle-btn {
        padding: 4px 10px;
        font-size: 11px;
        border-radius: 4px;
        background: #f5f5f7;
        color: #6e6e73;
        border-color: #d2d2d7;
    }

    .proxy-toggle-btn::after {
        width: 6px;
        height: 6px;
        background: #878789;
    }

    .proxy-toggle-on {
        background: #252527;
        color: #d0d0d4;
        border-color: #3a3a3c;
    }

    .proxy-toggle-on::after {
        background: #4caf50;
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
        animation: proxy-dot-blink 1.5s infinite ease-in-out;
    }

    .proxy-toggle-off {
        background: #252527;
        color: #878789;
        border-color: #3a3a3c;
    }

    .proxy-quota-track {
        width: 48px;
        max-width: 48px;
        height: 4px;
        background: #3a3a3c;
    }

    .proxy-quota-text {
        font-size: 10px;
        color: #8a8a8e;
    }

    .proxy-buy-btn {
        width: 20px;
        height: 20px;
        font-size: 11px;
        border-color: #3a3a3c;
        background: #252527;
        color: #d0d0d4;
    }

    .proxy-collapse-btn {
        padding: 0 2px;
        font-size: 10px;
        color: #8a8a8e;
    }
}

@media (max-width: 480px) {
    .pagination-btn {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 28px;
    }

    .pagination-btn span {
        display: none;
    }

    .pagination-controls {
        gap: 2px;
    }
}

.user-dropdown {
    background-color: #126b8e;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    font-size: medium;
    border-radius: 4px 4px 0 0;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.user-header .tiny {
    font-size: 10px;
}

.user-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.user-icons .search-box {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.user-icons .search-input {
    background-color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 4px 28px 4px 8px;
    color: #1d1d1f;
    width: 170px;
    font-size: 12px;
}

.user-icons .search-input:focus {
    outline: none;
}

.user-icons .search-btn {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: #126b8e;
    cursor: pointer;
    font-size: 13px;
}

.account-info {
    padding: 8px 12px;
    background-color: #f7f7f7;
    font-size: 11px;
}

.account-info {
    padding: 8px;
    background-color: #f7f7f7;
    font-size: 11px;
    padding-top: 0;
}

.info-row {
    display: flex;
    margin-bottom: 4px;
    align-items: center;
    justify-content: space-between;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row .label {
    width: 70px;
    color: #444;
}

.info-row .value {
    flex-grow: 1;
    color: #444;
}

.info-row .value.bold {
    font-weight: 700;
}

.info-row .action {
    color: #ff6600;
    text-decoration: none;
    font-weight: 600;
}

.info-row .btn {
    padding: 4px 8px;
    font-size: 11px;
    margin-left: 5px;
}

@media (min-width: 769px) {
    .search-box i {
        position: absolute;
    }

    .right-sidebar.show {
        display: block;
    }

    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {

    /* ── 全局 ── */
    body {
        background-color: #f5f5f7;
        color: #111111;
    }

    .main-content {
        background-color: #f5f5f7;
    }

    /* ── 分类 Tab 横向滚动 ── */
    .category-tabs-inner {
        display: flex;
        gap: 0;
        flex: 1;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-tabs-inner::-webkit-scrollbar {
        display: none;
    }

    /* ── Mobile Header ── */
    .header-mobile {
        background: #ffffff;
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    }

    .header-mobile .header-container {
        padding: 0 14px;
        height: 52px;
    }

    .header-mobile .logo img {
        height: 30px;
    }

    /* 搜索框 */
    .header-mobile .search-box {
        position: relative;
        display: flex;
        align-items: center;
    }

    .header-mobile .search-input {
        background: #f0f0f2;
        border: 0.5px solid rgba(0, 0, 0, 0.08);
        border-radius: 20px;
        padding: 7px 12px 7px 32px;
        color: #111111;
        width: 100%;
        font-size: 13px;
        transition: border-color 0.2s, background 0.2s;
    }

    .header-mobile .search-input::placeholder {
        color: #aaaaaa;
    }

    .header-mobile .search-input:focus {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.18);
        outline: none;
    }

    .header-mobile .search-btn {
        position: absolute;
        left: 10px;
        background: none;
        border: none;
        color: #aaaaaa;
        cursor: pointer;
        font-size: 13px;
        padding: 0;
        display: flex;
        align-items: center;
    }

    /* 用户区域 */
    .header-mobile .user-info {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .header-mobile .username {
        display: none !important;
    }

    .header-mobile .status-badge {
        display: none !important;
    }

    /* 按钮 */
    .header-mobile .btn-secondary {
        background: #f0f0f2;
        border: 0.5px solid rgba(0, 0, 0, 0.12);
        color: #555555;
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 18px;
        white-space: nowrap;
    }

    .header-mobile .btn-secondary:hover {
        background: #e8e8ea;
        border-color: rgba(0, 0, 0, 0.18);
    }

    .header-mobile .btn-orange {
        background: #e8440a;
        border: none;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        padding: 6px 14px;
        border-radius: 18px;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }

    .header-mobile .btn-orange:hover {
        background: #c73a07;
    }

    /* ── Mobile Category Tabs ── */
    .category-tabs-mobile {
        background: #ffffff;
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
        padding: 0;
        gap: 0;
        flex-wrap: nowrap;
        align-items: center;
        display: flex;
        justify-content: space-between;
        border-top: none;
    }

    .category-tabs-mobile .category-tabs-inner {
        padding: 0 4px;
        flex: 1;
        min-width: 0;
    }

    .tab {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 12px 16px;
        text-decoration: none;
        color: #aaaaaa;
        font-weight: 500;
        font-size: 13px;
        border: none;
        border-radius: 0;
        background: transparent;
        cursor: pointer;
        transition: color 0.18s;
        position: relative;
        white-space: nowrap;
        letter-spacing: 0.1px;
    }

    .tab i {
        font-size: 12px;
        opacity: 0.7;
    }

    .tab:hover {
        background: transparent;
        color: #555555;
    }

    .tab.active {
        background: transparent;
        color: #111111;
        font-weight: 700;
        border: none;
        border-bottom: none;
        margin-bottom: 0;
        padding: 12px 16px;
    }

    .tab.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 2.5px;
        background: #e8440a;
        border-radius: 2px;
    }

    .tab:not(.active) {
        border: none;
        padding: 12px 16px;
    }

    /* Filter 按钮 */
    .category-tabs-mobile .tag-filter-btn {
        background: transparent;
        border: none;
        border-left: 0.5px solid rgba(0, 0, 0, 0.08);
        color: #aaaaaa;
        font-size: 12px;
        font-weight: 500;
        padding: 10px 14px;
        border-radius: 0;
        gap: 5px;
        flex-shrink: 0;
        white-space: nowrap;
        transition: color 0.18s;
    }
    .category-tabs-mobile .tag-filter-btn.tag-filter-on{
        color:#555
    }
    .category-tabs-mobile .tag-filter-btn i {
        font-size: 12px;
    }

    /* ── 左侧内容区 ── */
    .left-content {
        padding: 8px;
        background-color: #f5f5f7;
    }



    .tag {
        background-color: #f0f0f2;
        color: #666666;
        border-color: rgba(0, 0, 0, 0.08);
    }

    /* ── 分页 ── */
    .pagination-container {
        background-color: #ffffff;
        border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    }

    .pagination-btn {
        background: #ffffff;
        border: 0.5px solid rgba(0, 0, 0, 0.12);
        color: #555555;
        border-radius: 8px;
    }

    .pagination-btn:hover:not(:disabled) {
        background: #f0f0f2;
        border-color: rgba(0, 0, 0, 0.18);
        color: #111111;
    }

    .pagination-btn:disabled {
        background: #f5f5f7;
        color: #cccccc;
        border-color: rgba(0, 0, 0, 0.06);
    }

    .pagination-btn.active {
        background: #e8440a;
        border-color: #e8440a;
        color: #fff;
        font-weight: 700;
    }

    /* ── 右侧筛选侧边栏 ── */
    .right-sidebar {
        background: #ffffff;
        border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    }

    .close-sidebar {
        color: #aaaaaa;
    }

    .close-sidebar:hover {
        color: #111111;
    }

    .filter-section h3 {
        color: #aaaaaa;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        font-weight: 600;
    }

    .tags-container .tag {
        background-color: #f0f0f2;
        border-color: rgba(0, 0, 0, 0.08);
        color: #666666;
        border-radius: 6px;
    }

    .tags-container .tag:hover {
        background-color: #e8e8ea;
        color: #111111;
    }

    .tags-container .tag.active {
        background-color: #e8440a;
        border-color: #e8440a;
        color: #fff;
        font-weight: 600;
    }

    .tag-pagination {
        color: #aaaaaa;
    }

    .tag-pagination a {
        color: #666666;
    }

    .tag-pagination a:hover {
        color: #111111;
    }

    /* sidebar 内搜索框 */
    .right-sidebar .search-box input {
        background: #f0f0f2;
        border-color: rgba(0, 0, 0, 0.08);
        color: #111111;
        border-radius: 8px;
    }

    .right-sidebar .search-box input::placeholder {
        color: #aaaaaa;
    }

    .right-sidebar .search-box input:focus {
        border-color: rgba(0, 0, 0, 0.18);
        outline: none;
    }

    .right-sidebar .search-box i {
        position: absolute;
        color: #aaaaaa;
    }

    /* ── 弹窗 modal ── */
    .custom-modal-overlay {
        background: rgba(0, 0, 0, 0.45);
    }

    .custom-modal-box {
        background: #ffffff;
        border: 0.5px solid rgba(0, 0, 0, 0.08);
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        width: 92%;
        max-height: 85vh;
    }

    .modal-header {
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
        padding: 18px 20px;
    }

    .modal-header h3 {
        color: #111111;
        font-size: 16px;
    }

    .modal-close {
        color: #aaaaaa;
        background: #f0f0f2;
        border-radius: 50%;
        width: 28px;
        height: 28px;
    }

    .modal-close:hover {
        background: #e8e8ea;
        color: #111111;
    }

    .modal-body {
        padding: 18px 20px;
    }

    .modal-body p {
        color: #666666;
    }

    .modal-footer {
        border-top: 0.5px solid rgba(0, 0, 0, 0.08);
        padding: 14px 20px;
    }

    .modal-footer .btn-secondary {
        background: #f0f0f2;
        border-color: rgba(0, 0, 0, 0.10);
        color: #555555;
    }

    .modal-footer .btn-secondary:hover {
        background: #e8e8ea;
        border-color: rgba(0, 0, 0, 0.15);
    }

    .modal-footer .btn-danger {
        background: #e53e3e;
        border: none;
    }

    .modal-footer .btn-danger:hover {
        background: #c53030;
    }

    /* 关注管理弹窗 */
    .follow-checkbox {
        accent-color: #e8440a;
    }

    .selected-count {
        color: #aaaaaa;
    }

    /* ── loading / empty state ── */
    .loading-state {
        color: #aaaaaa;
        background-color: #f5f5f7;
    }

    .loading-state i {
        color: #cccccc;
    }

    .empty-state {
        color: #aaaaaa;
        background-color: #f5f5f7;
    }

    .empty-state i {
        color: #dddddd;
    }

    /* ── footer ── */
    .footer {
        background-color: #ffffff;
        border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    }

    .footer-section h3 {
        color: #aaaaaa;
    }

    .footer-section ul li a {
        color: #bbbbbb;
    }

    .footer-section ul li a:hover {
        color: #555555;
    }

    .footer-bottom {
        border-top: 0.5px solid rgba(0, 0, 0, 0.06);
    }

    .footer-compliance {
        background-color: #f5f5f7;
    }

    .footer-compliance p,
    .footer-bottom p {
        color: #bbbbbb;
    }

    .footer-compliance a {
        color: #999999;
    }

    .footer-disclaimer {
        background-color: #fffaf5;
        border-color: rgba(232, 68, 10, 0.10);
    }

    .footer-disclaimer p {
        color: #c87040;
    }

    .footer-disclaimer a {
        color: #b05a28;
    }

    .social-links a {
        color: #cccccc;
    }

    .social-links a:hover {
        color: #666666;
    }
}