/* Msg2me 默认主题样式 - 现代化设计 */
:root {
    /* 主色调 */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    
    /* 功能色 */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* 文字色 */
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;
    
    /* 背景色 */
    --bg: #f1f5f9;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #a855f7 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-bg-solid: #ffffff;
    
    /* 边框 */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* 阴影 - 多层阴影系统 */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    
    /* 毛玻璃 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(20px);
    
    /* 动画 */
    --transition-fast: 0.15s ease;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 动态背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: block !important;
    flex-direction: column !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    width: 100% !important;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body * {
    box-sizing: border-box;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-purple));
}

/* 选中文本 */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text);
}

/* #89 图标字体禁止文本选中：macOS Chrome/Safari 框选 bootstrap-icons 时，私有区字形
   （如 bi-lightning-charge = U+F46C）会回退渲染成 Apple 彩色 emoji，社区"最新动态"的
   闪电框选后变黄色 ⚡ 即此问题；user-select:none 让选区直接跳过图标节点（文字仍正常可选） */
.bi {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 顶部导航 - 毛玻璃效果 */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}
/* #79：去掉渐变裁切文字效果——background-clip:text 蒙版模式下彩色 emoji（⚡logo）
   会被强制回退为单色字形染成渐变色，与首页 logo（黄色⚡+蓝字）不一致 */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    transition: transform var(--transition);
}
.navbar-brand:hover {
    transform: scale(1.05);
}
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bg-gradient);
    transition: all var(--transition);
    transform: translateX(-50%);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.08);
}
.nav-link:hover::before, .nav-link.active::before {
    width: 60%;
}

/* 布局 */
.container-main {
    max-width: var(--site-wide, 1600px);
    margin: 0 auto;
    padding: 1.5rem 20px;
}
.layout-3col {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    gap: 1.5rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.layout-3col > * { min-width: 0; }
/* 阅读型两栏（社区帖子、资讯详情）：整体收窄居中，主文列约 850px + 300 侧栏，避免宽屏行长失控 */
.layout-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
    min-width: 0;
    max-width: var(--site-col, 1200px);
    margin: 0 auto;
    overflow: hidden;
}
.layout-2col > * { min-width: 0; overflow: hidden; }

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}
.sidebar-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-bottom: 2px;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--m-sel-bg);
    color: var(--m-sel-fg);
}
.sidebar-nav .board-cover {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

/* 卡片 */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: none;
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: var(--shadow-hover);
}

/* 瀑布流 - 使用CSS Grid更稳定（minmax(0,1fr) 防内容撑宽溢出） */
.masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.masonry-3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.masonry-item {
    break-inside: avoid;
    min-width: 0;
}
/* iPad及以上三列 */
@media (min-width: 768px) {
    .masonry, .masonry-3col {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
/* 小屏手机两列 */
@media (max-width: 576px) {
    .masonry, .masonry-3col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.post-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
}
.post-card:hover {
    box-shadow: 0 8px 24px rgba(102,126,234,0.15);
    transform: translateY(-6px);
}
.post-card .post-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.post-cover-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}
.post-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255,255,255,0.5);
    font-size: 2rem;
}
.post-card-body {
    padding: 0.75rem;
}
.post-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}
.post-card-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.post-card-author img,
.post-card-author .rounded-circle {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
    object-fit: cover;
}
.post-card-stats {
    display: flex;
    gap: 0.75rem;
}

/* 帖子列表 */
.thread-list-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.thread-list-item:hover {
    background: #f7fafc;
}
.thread-thumb {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.thread-content {
    flex: 1;
    min-width: 0;
}
.thread-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}
.thread-excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.thread-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 话题标签 */
.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
    transition: opacity 0.2s;
}
.tag:hover { opacity: 0.8; }
.tag-blue { background: #ebf8ff; color: #2b6cb0; }
.tag-purple { background: #faf5ff; color: #6b46c1; }
.tag-green { background: #f0fff4; color: #2f855a; }
.tag-orange { background: #fffaf0; color: #c05621; }
.tag-pink { background: #fff5f7; color: #b83280; }
.tag-teal { background: #e6fffa; color: #285e61; }

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
    color: white;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 文章详情 */
.article-header {
    margin-bottom: 1.5rem;
}
.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.article-carousel {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.article-carousel img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}
.article-content {
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
    overflow-wrap: break-word;
}
.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}
.article-actions {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
    font-size: 0.9rem;
}
.action-btn:hover {
    background: var(--bg);
}
.action-btn.liked {
    color: var(--danger);
}
.action-btn.favorited {
    color: var(--warning);
}

/* 评论区 */
.comment-section {
    margin-top: 2rem;
}
.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.comment-avatar {
    flex-shrink: 0;
}
.comment-body {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.comment-username {
    font-weight: 600;
    font-size: 0.9rem;
}
.comment-time {
    font-size: 0.8rem;
    color: var(--text-light);
}
.comment-content {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.comment-actions {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}
.comment-replies {
    margin-left: 3rem;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
}
.comment-input {
    position: sticky;
    bottom: 0;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

/* 版块卡片 */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.board-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 140px;
    cursor: pointer;
    transition: all 0.2s;
}
.board-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.board-card-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.board-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}
.board-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.board-card-stats {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* 版块横幅 */
.board-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 200px;
    margin-bottom: 1.5rem;
}
.board-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.board-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.8), rgba(118,75,162,0.8));
    display: flex;
    align-items: center;
    padding: 2rem;
    color: white;
}
.board-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.board-hero p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* Tab导航 */
.nav-tabs {
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
}
.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 0;
    color: var(--text-light);
}
.nav-tabs .nav-link.active {
    border-bottom-color: transparent;
    color: var(--m-sel-fg);
    background: var(--m-sel-bg);
}

/* 页脚 */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 2rem 1rem;
    margin-top: 3rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}
.footer a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 0.5rem;
}
.footer a:hover {
    color: var(--primary);
}

/* 黑夜模式 */
body.dark {
    --bg: #1a202c;
    --card-bg: #2d3748;
    --card-bg-solid: #2d3748;
    --text: #e2e8f0;
    --text-secondary: #a8b8cc;
    --text-light: #a0aec0;
    --border: #4a5568;
}
body.dark .thread-list-item:hover {
    background: #2d3748;
}
/* 暗色顶栏上的视图切换锚点（header.php 🎛️）：默认链接蓝在深底上仅 4:1，提亮 */
body.dark a[onclick^="toggleView"] {
    color: #9db8ff;
}

/* 响应式 */
@media (max-width: 992px) {
    .layout-3col {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
    .masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 576px) {
    .layout-2col {
        grid-template-columns: 1fr;
    }
    .masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .article-title {
        font-size: 1.4rem;
    }
    .thread-thumb {
        width: 80px;
        height: 60px;
    }
    .board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 插件关注卡片 */
.plugin-follow-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
    background: var(--card-bg);
}
.plugin-follow-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.plugin-follow-card .card-body {
    padding: 10px 12px !important;
}
.plugin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.plugin-name {
    font-size: 0.85rem;
    font-weight: 600;
}
.plugin-id {
    font-size: 0.7rem;
    display: block;
    margin-top: 1px;
}
.follow-btn {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 15px;
    white-space: nowrap;
}
.follow-btn.followed {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.plugin-latest {
    padding-top: 6px;
    margin-top: 6px;
    border-top: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
}

/* 活跃用户横向头像 */
.active-users-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 8px 0;
}
.active-user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.active-user-avatar:hover {
    transform: scale(1.15);
    z-index: 10;
}
.active-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.active-user-avatar span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}
.rank-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    border: 2px solid var(--card-bg);
}
.rank-1 { background: linear-gradient(135deg, #ffd700, #ffaa00); }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #b87333); }

/* ===== 统计数据横向滚动 ===== */
.stats-marquee {
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 12px 0;
    position: relative;
}
.stats-marquee::before,
.stats-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}
.stats-marquee::before {
    left: 0;
    background: linear-gradient(to right, #667eea, transparent);
}
.stats-marquee::after {
    right: 0;
    background: linear-gradient(to left, #764ba2, transparent);
}
.stats-track {
    display: flex;
    animation: stats-scroll 30s linear infinite;
    gap: 0;
}
.stats-marquee:hover .stats-track {
    animation-play-state: paused;
}
@keyframes stats-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}
.stat-item i {
    font-size: 1.2rem;
    opacity: 0.9;
}
.stat-num {
    font-size: 1.3rem;
    font-weight: 700;
}
.stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
}
.text-purple { color: #d6bcfa !important; }
.text-indigo { color: #c3dafe !important; }
.text-teal { color: #b2f5ea !important; }
.text-green { color: #c6f6d5 !important; }

/* ===== 现代化按钮系统 ===== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn:hover::before {
    left: 100%;
}
.btn-primary {
    background: var(--bg-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius);
}

/* ===== 现代化卡片 ===== */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* ===== 表单现代化 ===== */
.form-control {
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.9);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}
.form-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* ===== 登录注册页面专属 ===== */
.auth-page {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}
.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.auth-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.auth-card {
    /* 卡片固定白底，文字变量固定深色，避免暗色模式下标签淡得看不见 */
    --text: #1e293b;
    --text-secondary: #56607a;
    --text-light: #94a3b8;
    --primary: #4f46e5;
    --border: #e2e8f0;
    --border-light: #eef2f7;
    color: #1e293b;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    animation: authSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-card .form-label { color: #334155; }
.auth-card .form-text { color: #94a3b8; }
.auth-card .form-check-label { color: #64748b; }
.auth-card .text-muted { color: #94a3b8 !important; }
@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-logo-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: var(--bg-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-glow);
    animation: logoPulse 2s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}
.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    padding: 0 1rem;
    color: #6b7280;
}
.auth-social {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
/* 登录/注册页 11 个平台：桌面两行放完，每行 6 个；窄屏每行 4 个 */
.auth-social.auth-social-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 420px) {
    .auth-social.auth-social-6 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.15rem;
}
.auth-social-btn:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}
/* 后台尚未配置的平台：弱化显示，点击仅弹提示 */
.auth-social-btn.auth-social-off {
    border-style: dashed;
    border-color: #dbe2ec;
    opacity: .55;
    cursor: help;
}
.auth-social-btn.auth-social-off:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: none;
    opacity: .8;
}
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
}
/* ===== #226 登录/注册左右分栏：一屏内完成，不再长页滚动 ===== */
.auth-page {
    padding: 0.5rem 1rem;
}
.auth-card.auth-split {
    max-width: 920px;
    padding: 0;
    display: flex;
    overflow: hidden;
}
/* 左栏：品牌面板（渐变底 + 白字） */
.auth-aside {
    flex: 0 0 50%;
    max-width: 50%;
    background: var(--bg-gradient);
    color: #fff;
    padding: 2rem 2.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-aside::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.auth-aside::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.auth-aside .auth-logo-icon {
    margin: 0 0 1.25rem;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
/* 左栏标题不用渐变文字（渐变底上会隐形），纯白 */
.auth-aside .auth-title {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #fff;
    font-size: 1.6rem;
}
.auth-aside .auth-subtitle {
    color: rgba(255, 255, 255, 0.85);
}
.auth-aside .auth-points {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    position: relative;
    z-index: 1;
}
.auth-aside .auth-points li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
}
.auth-aside .auth-points li i {
    font-size: 1.05rem;
    color: #fff;
}
/* #226 左栏上部：图标/标题/副标题/卖点全部居中对齐 */
.auth-aside-top {
    text-align: center;
    position: relative;
    z-index: 1;
}
.auth-aside-top .auth-logo-icon {
    margin-left: auto;
    margin-right: auto;
}
.auth-aside-top .auth-points {
    margin-top: 1.5rem;
}
.auth-aside-top .auth-points li {
    justify-content: center;
}
/* #226 左栏下部：多方式登录/注册（画线隔离） */
.auth-aside-oauth {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    text-align: center;
}
.auth-aside-oauth-title {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
}
.auth-aside-oauth .auth-social {
    margin-bottom: 0;
}
/* 左栏内社交按钮：半透明白底，适配渐变背景 */
.auth-aside-oauth .auth-social-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}
.auth-aside-oauth .auth-social-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}
/* 右栏社交区：默认隐藏，仅窄屏（左栏隐藏）时显示 */
.auth-oauth-mobile {
    display: none;
}
@media (max-width: 768px) {
    .auth-oauth-mobile {
        display: block;
    }
}
/* 右栏：表单区，紧凑化保证一屏放下 */
.auth-main {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.75rem;
}
/* 右栏双列行：用户名+邮箱、密码+确认密码并排，省纵向空间 */
.auth-main .auth-row {
    display: flex;
    gap: 0.75rem;
}
.auth-main .auth-row > div {
    flex: 1;
    min-width: 0;
}
.auth-main .auth-logo {
    margin-bottom: 1.25rem;
}
.auth-main .auth-logo-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    border-radius: 14px;
    margin-bottom: 0.6rem;
}
.auth-main .auth-title { font-size: 1.4rem; }
.auth-main .mb-3 { margin-bottom: 0.5rem !important; }
.auth-main .form-label { margin-bottom: 0.25rem; }
.auth-main .auth-divider { margin: 0.4rem 0; }
.auth-main .auth-social { margin-bottom: 0.25rem; }
/* #226 左栏/右栏社交区一行显示（左栏宽 42% 放 12 格约 30px 每格，右栏窄屏补偿 6 格一行） */
.auth-aside-oauth .auth-social.auth-social-6 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.35rem;
}
.auth-oauth-mobile .auth-social.auth-social-6 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.35rem;
}
.auth-aside-oauth .auth-social-btn, .auth-oauth-mobile .auth-social-btn { padding: 0.3rem 0.15rem; font-size: 1rem; }
.auth-main .auth-footer {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
}
.auth-main .btn-lg { padding: 0.5rem 1rem; font-size: 1rem; }
/* 窄屏：左栏隐藏，退回单栏卡片；双列行退回单列；社交 6 列两行 */
@media (max-width: 768px) {
    .auth-card.auth-split { max-width: 440px; }
    .auth-aside { display: none; }
    .auth-main { padding: 1.5rem 1.5rem; }
    .auth-main .auth-row { flex-direction: column; gap: 0; }
    .auth-main .auth-social.auth-social-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* ===== #229 登录方式 tab 按钮两行（图标上/文字下）+ 6 格验证码 OTP 输入 ===== */
.auth-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    line-height: 1.25;
}
.auth-tab-btn i { font-size: 1.15rem; line-height: 1; }
/* 6 格验证码：每格一位数字，自动跳格/退格回退/粘贴分发，拼装进 hidden 提交 */
.otp-row {
    display: flex;
    gap: 0.5rem;
}
.otp-box {
    width: 44px;
    height: 50px;
    flex: 0 0 auto;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    background: var(--card-bg-solid, #fff);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.otp-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}
.otp-box.otp-filled { border-color: var(--primary); }
@media (max-width: 576px) {
    .otp-row { gap: 0.4rem; }
    .otp-box { width: 40px; height: 46px; font-size: 1.15rem; }
}
/* ===== #230 认证页美化：卡片流光边框 + 渐变主按钮 + 输入框/左栏细节 + 找回密码分栏 ===== */
.auth-card.auth-split {
    position: relative;
    border: none;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.18), 0 8px 24px rgba(15, 23, 42, 0.08);
}
/* 彩色流光边框（伪元素 padding 遮罩法，background-position 动画兼容性最好；perf_border_glow 关闭时全站过滤器统一停动画） */
.auth-card.auth-split::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: linear-gradient(120deg, #667eea, #a855f7, #ec4899, #06b6d4, #667eea);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: authBorderFlow 6s linear infinite;
    pointer-events: none;
    z-index: 3;
}
@keyframes authBorderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* 主操作按钮：渐变 + hover 上浮发光 */
.auth-main .btn-primary.btn-lg,
.auth-main form .btn-primary.w-100 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.auth-main .btn-primary.btn-lg:hover,
.auth-main form .btn-primary.w-100:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.45);
    filter: brightness(1.06);
}
/* tab 按钮 active 态渐变（登录双 tab / 找回三通道统一） */
.auth-tab-btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
/* 输入框：圆角统一 + focus 光晕 */
.auth-main .form-control {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-main .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}
/* OTP 已填格：主色边框 + 浅主色底 */
.otp-box.otp-filled {
    background: rgba(102, 126, 234, 0.06);
}
/* #230 右栏内容垂直居中：找回密码等短表单不再顶头悬空，登录/注册内容撑满时无视觉变化 */
.auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* 左栏 logo 发光 + 卖点胶囊化（内容宽度居中排列） */
.auth-aside .auth-logo-icon {
    box-shadow: 0 0 26px rgba(255, 255, 255, 0.35);
}
.auth-aside .auth-points {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.auth-aside .auth-points li {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
}
/* 左栏下部链接按钮（找回密码页「返回登录」） */
.auth-aside-login-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.6rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}
.auth-aside-login-link:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}
.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.auth-footer a:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    transition: color var(--transition-fast);
}
.password-toggle:hover {
    color: var(--primary);
}
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.5rem;
    background: var(--border);
    overflow: hidden;
}
.password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: all var(--transition);
    width: 0;
}

/* ===== 首页焦点轮播 ===== */
.hero-carousel {
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.hero-slide {
    position: relative;
    overflow: hidden;
}
.hero-slide::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-slide h2 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.carousel-control-prev, .carousel-control-next {
    width: 8%;
    opacity: 0;
    transition: opacity 0.3s;
}
.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

/* ===== 热门榜单 ===== */
.hot-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #e9ecef;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.hot-rank.top {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}
.hot-rank.top + span {
    font-weight: 600;
}

/* ===== 广告位 ===== */
.ad-space {
    margin: 1rem 0;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
}
.ad-space img {
    display: block;
    max-width: 100%;
}

/* ===== 频道快捷入口 ===== */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 1.5rem;
}
.channel-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    border: 1px solid var(--border-color);
}
.channel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    color: var(--primary);
}
.channel-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}
.channel-name {
    font-weight: 600;
    font-size: 0.9rem;
}
.channel-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== 底部Footer ===== */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    backdrop-filter: blur(10px);
}
.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-text {
    color: var(--text-secondary);
    line-height: 1.6;
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}
.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

/* ===== 焦点视频区 ===== */
.hero-video-wrap {
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 热门榜单新样式 ===== */
.hot-list {
    padding: 0.5rem 0;
}
.hot-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    position: relative;
}
.hot-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}
.hot-rank-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #6c757d;
    flex-shrink: 0;
    margin-right: 1rem;
    position: relative;
}
.hot-rank-circle.top {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}
.hot-rank-circle.top:nth-child(1) {
    background: linear-gradient(135deg, #ffd700, #ff9500);
}
.hot-content {
    flex: 1;
    min-width: 0;
}
.hot-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}
.hot-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
}
.hot-bar {
    width: 60px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-left: 1rem;
    flex-shrink: 0;
}
.hot-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ===== 快捷导航滚动条 ===== */
.quick-scroll {
    overflow-x: auto;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}
.quick-scroll::-webkit-scrollbar {
    height: 4px;
}
.quick-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}
.quick-track {
    display: flex;
    gap: 10px;
    width: max-content;
}
.quick-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all var(--transition);
}
.quick-chip:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ============================================
   整站简洁风格覆盖 - 去掉线条/阴影/多余装饰
   ============================================ */

/* 1. 去掉动态背景动画 */
body::before {
    animation: none !important;
    opacity: 0.3;
}

/* 2. 卡片扁平化 - 去掉阴影和边框 */
.card {
    border: none !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    background: #fff !important;
    margin-bottom: 16px;
}

/* 欢迎横幅不覆盖背景 */
.card[style*="linear-gradient"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 16px 20px !important;
    font-weight: 600;
}

.card-body {
    padding: 20px !important;
}

/* 3. 去掉按钮阴影 */
.btn {
    box-shadow: none !important;
    border-radius: 8px !important;
    font-weight: 500;
}

.btn-primary {
    background: #5560d0 !important;
    border-color: #5560d0 !important;
}

.btn-primary:hover {
    background: #5a67d8 !important;
    border-color: #5a67d8 !important;
}

/* 4. 导航栏扁平化 */
.navbar {
    box-shadow: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    background: #fff !important;
    backdrop-filter: none !important;
}

/* 5. 去掉帖子卡片多余边框 */
.post-card,
.thread-item,
.thread-card {
    border: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    border-radius: 0 !important;
}

/* 6. 去掉列表项分隔线以外的装饰 */
.list-group-item {
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 16px 0 !important;
}

.list-group-item:first-child {
    border-top: none !important;
}

/* 7. 表格扁平化 */
.table {
    border: none !important;
}

.table th,
.table td {
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

/* 8. 标签页扁平化 */
.nav-tabs {
    border: none !important;
}

.nav-tabs .nav-link {
    border: none !important;
    color: #764ba2;
    font-weight: 500;
    padding: 8px 16px;
}

.nav-tabs .nav-link.active {
    color: #667eea !important;
    border-bottom: 2px solid #667eea !important;
    background: transparent !important;
}

/* 9. 徽章/标签更简洁 */
.badge {
    font-weight: 500;
    border-radius: 6px;
}

/* 10. 头像更圆润 */
.avatar,
.active-user-avatar img {
    border-radius: 50% !important;
}

/* 11. 页面整体背景更干净 */
body {
    background: #f9fafb !important;
}

/* 12. 侧边栏卡片间距 */
.col-lg-4 .card {
    margin-bottom: 20px;
}

/* 13. 输入框更简洁 */
.form-control {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 10px 14px;
}

.form-control:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* 14. 去掉滚动条装饰 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}


/* 数据统计条 */
.stats-strip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    margin: 20px 0;
    border-radius: 12px;
}
.stats-strip .row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.stat-item {
    padding: 10px;
}
.stat-num {
    font-size: 28px;
    font-weight: bold;
    display: block;
}
.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 数据统计条 - 修正版 */
.stats-strip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}
.stats-strip .stat-item {
    text-align: center;
    color: white;
    text-decoration: none;
    flex: 1;
    min-width: 100px;
}
.stats-strip .stat-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 5px;
}
.stats-strip .stat-num {
    font-size: 24px;
    font-weight: bold;
    display: block;
    line-height: 1.2;
}
.stats-strip .stat-label {
    font-size: 13px;
    opacity: 0.9;
}
.stats-strip .stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
}

/* ===== 顶条：收藏 / 多语言切换器 ===== */
.topbar-link {
    color: #94a3b8;
    text-decoration: none !important;
    font-size: 12px;
    transition: color .2s ease;
}
.topbar-link:hover,
.topbar-link:focus,
.topbar-link:active { color: #60a5fa; text-decoration: none !important; }
.topbar-lang .dropdown-toggle {
    background: transparent;
    border: 0;
    padding: 0;
    color: #94a3b8;
    font-size: 12px;
    box-shadow: none !important;
    transition: color .2s ease;
}
.topbar-lang .dropdown-toggle:hover,
.topbar-lang .dropdown-toggle:focus,
.topbar-lang .dropdown-toggle:active { color: #60a5fa; text-decoration: none !important; }
.topbar-lang .dropdown-toggle::after { margin-left: 4px; vertical-align: 1px; }
/* 下拉菜单必须高于 sticky-top 导航(z-index:1024)，否则被导航栏/搜索框遮挡 */
.topbar-lang .dropdown-menu {
    padding: 4px;
    border-radius: 8px;
    z-index: 1080;
}
.topbar-lang .dropdown-item { border-radius: 6px; padding: 6px 12px; }
/* 语言开关：仅一个地球，呼吸灯效果 */
.topbar-lang-globe {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    animation: topbar-globe-breath 2.6s ease-in-out infinite;
    filter: drop-shadow(0 0 2px rgba(96, 165, 250, .55));
}
@keyframes topbar-globe-breath {
    0%, 100% { opacity: .55; filter: drop-shadow(0 0 1px rgba(96, 165, 250, .3)); }
    50%      { opacity: 1;   filter: drop-shadow(0 0 6px rgba(96, 165, 250, .9)); }
}
.topbar-lang .dropdown-toggle:hover .topbar-lang-globe,
.topbar-lang .dropdown-toggle:focus .topbar-lang-globe { animation-duration: 1.3s; }
.topbar-lang.show .dropdown-toggle .topbar-lang-globe { animation-play-state: paused; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .topbar-lang-globe { animation: none; opacity: 1; }
}
@media (max-width: 576px) {
    /* 顶部小条：隐藏左侧宣传语，语言切换仅显图标 */
    .topbar-actions { white-space: nowrap; }
    .topbar-slogan { display: none; }
    .topbar-lang-name { display: none; }
}
