        :root {
            --primary-color: #4D69FF;
            --hover-blue: #3a53d0;
            --bg-light: #f4f7f6;
            --text-main: #2d3748;
            --text-muted: #8a99ad;
            --white: #ffffff;
            --header-height: 60px;
            --radius: 4px;
            --max-width: 1200px;
            --page-padding: 20px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

        body {
            font-family: 'Inter', -apple-system, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-main);
            line-height: 1.5;
        }

        /* --- 1. 半透明加载动画 --- */
        #loader {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(5px);
            display: flex; justify-content: center; align-items: center; z-index: 2000;
            transition: opacity 0.4s ease;
        }
        .spinner { width: 28px; height: 28px; border: 3px solid #eee; border-top: 3px solid var(--primary-color); border-radius: 50%; animation: spin 0.8s linear infinite; }
        @keyframes spin { 100% { transform: rotate(360deg); } }

        /* --- 2. 页眉 --- */
        .header {
            height: var(--header-height);
            background: rgba(255, 255, 255, 0.95);
            border-bottom: 1px solid #eef2f6;
            position: fixed; top: 0; width: 100%; z-index: 1000;
        }
        .header-inner {
            max-width: var(--max-width); height: 100%; margin: 0 auto;
            padding: 0 var(--page-padding);
            display: flex; justify-content: space-between; align-items: center;
        }
        .header-left { display: flex; align-items: center; gap: 30px; }
        .logo-img { height: 26px; }
        
        .main-nav { display: flex; gap: 10px; list-style: none; }
        .main-nav a { 
            text-decoration: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; 
            padding: 8px 12px; border-radius: var(--radius);
            transition: all 0.2s;
        }
        .main-nav a.active { color: var(--primary-color); font-weight: 700; }
        .main-nav a:hover { color: var(--primary-color); background: #f8fafc; }
        
        .header-right { display: flex; align-items: center; gap: 12px; }
        .search-bar { background: #f1f4f9; padding: 6px 12px; border-radius: var(--radius); display: flex; align-items: center; width: 180px; }
        .search-bar input { background: transparent; border: none; outline: none; margin-left: 6px; width: 100%; font-size: 0.85rem; }
        
        .btn { border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.1s; }
        .btn:active { transform: scale(0.95); }
        .btn-register { background: var(--primary-color); color: white; padding: 6px 16px; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; text-decoration: none;}
        .btn-login { color: var(--text-main); font-size: 0.85rem; text-decoration: none; padding: 6px 10px;}

        /* --- 3. 横幅 --- */
        .hero-banner { margin-top: var(--header-height); background: #fff; border-bottom: 1px solid #eef2f6; padding: 35px 0; }
        .hero-banner-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--page-padding); }
        .hero-banner h1 { font-size: 1.4rem; color: var(--primary-color); margin-bottom: 4px; }
        .hero-banner p { color: var(--text-muted); font-size: 0.9rem; }

        /* --- 4. 主容器布局 --- */
        .main-wrapper {
            max-width: var(--max-width); margin: 24px auto; padding: 0 var(--page-padding);
            display: grid; grid-template-columns: 210px 1fr; gap: 30px;
        }

        /* --- 5. 侧栏与备案信息 --- */
        .sidebar-container { display: flex; flex-direction: column; gap: 24px; }
        .sidebar-nav { list-style: none; }
        .sidebar-nav li { 
            padding: 10px 12px; border-radius: var(--radius); cursor: pointer; margin-bottom: 2px;
            color: var(--text-muted); display: flex; align-items: center; gap: 10px; font-size: 0.95rem;
        }
        .sidebar-nav li.active { background: var(--white); color: var(--primary-color); font-weight: 600; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
        .sidebar-nav li:active { transform: scale(0.98); background: #fff; }

        .btn-post { 
            background: var(--primary-color); color: white; padding: 10px; border-radius: var(--radius);
            text-align: center; font-weight: 600; text-decoration: none; width: 100%;
        }

        /* 备案信息默认样式 (电脑端) */
        .mini-footer { padding: 0 12px; font-size: 0.75rem; color: #abbac2; line-height: 1.8; }
        .mini-footer a { color: #abbac2; text-decoration: none; margin-right: 8px; }

        /* 手机端悬浮按钮 */
        .mobile-fab {
            position: fixed; bottom: 25px; right: 20px; width: 56px; height: 56px;
            background: var(--primary-color); color: white; border-radius: 50%;
            display: none; align-items: center; justify-content: center; font-size: 24px;
            box-shadow: 0 4px 12px rgba(77, 105, 255, 0.4); z-index: 999;
        }

        /* --- 6. 帖子卡片 --- */
        .discussion-list { display: flex; flex-direction: column; gap: 10px; }
        .discussion-item {
            background: var(--white); padding: 16px 20px; border-radius: var(--radius);
            display: flex; align-items: center; gap: 16px; border: 1px solid transparent;
            cursor: pointer; transition: all 0.2s;
        }
        .discussion-item:hover { border-color: #e2e8f0; }
        .discussion-item:active { transform: scale(0.99); background-color: #f8fafc; }

        .topic-icon { width: 44px; height: 44px; border-radius: var(--radius); object-fit: cover; background: #f1f4f9; flex-shrink: 0; }
        .content-main { flex-grow: 1; overflow: hidden; }
        .content-main h3 { font-size: 1rem; margin-bottom: 4px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .tag { padding: 2px 8px; border-radius: 2px; background: #f1f4f9; font-size: 0.7rem; color: #718096; margin-right: 6px; }
        
        .item-stats { display: flex; gap: 15px; color: var(--text-muted); font-size: 0.8rem; flex-shrink: 0; }
        .stat-box { display: flex; align-items: center; gap: 4px; min-width: 40px; }

        /* --- 7. 热点特殊样式 --- */
        .hot-item-first { 
            background: linear-gradient(135deg, var(--primary-color) 0%, #6d83ff 100%) !important; 
        }
        .hot-item-second { 
            background: linear-gradient(135deg, #FFD700 0%, #FFE44D 100%) !important; 
        }
        .hot-item-third { 
            background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%) !important; 
        }
        
        /* 前两条热点文字为白色 */
        .hot-item-first h3, .hot-item-first .item-stats,
        .hot-item-first .confirm-title,
        .hot-item-second h3, .hot-item-second .item-stats,
        .hot-item-second .confirm-title {
            color: white !important;
        }
        
        /* 热点确认状态 */
        .discussion-item.confirm-mode {
            animation: slideUp 0.3s ease-out;
            position: relative;
            z-index: 10;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        @keyframes slideUp {
            0% { transform: translateY(10px); opacity: 0.8; }
            100% { transform: translateY(0); opacity: 1; }
        }
        
        .confirm-title {
            font-size: 1rem;
            font-weight: 500;
            color: var(--text-main);
            margin-bottom: 12px;
            line-height: 1.4;
        }
        
        .confirm-buttons {
            display: flex;
            gap: 10px;
            margin-top: 8px;
        }
        
        .confirm-btn {
            padding: 8px 16px;
            border-radius: var(--radius);
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: all 0.2s ease;
            flex: 1;
            text-align: center;
        }
        
        .confirm-btn-primary {
            background: var(--primary-color);
            color: white;
        }
        
        .confirm-btn-primary:hover {
            background: var(--hover-blue);
            transform: translateY(-1px);
        }
        
        .confirm-btn-secondary {
            background: #f1f4f9;
            color: var(--text-muted);
        }
        
        .confirm-btn-secondary:hover {
            background: #e2e8f0;
            transform: translateY(-1px);
        }
        
        .rank-badge { 
            width: 24px; height: 24px; background: rgba(255,255,255,0.2); 
            border-radius: 50%; display: flex; align-items: center; 
            justify-content: center; font-size: 0.8rem; font-weight: bold;
            margin-right: 8px; flex-shrink: 0;
        }
        
        /* --- 8. 收藏页面样式 --- */
        .collection-list { display: flex; flex-direction: column; gap: 10px; }
        .collection-item { 
            background: var(--white); padding: 16px 20px; border-radius: var(--radius);
            display: flex; align-items: center; gap: 16px; border: 1px solid transparent;
            cursor: pointer; transition: all 0.2s; position: relative;
        }
        .collection-item:hover { border-color: #e2e8f0; }
        .collection-item:active { transform: scale(0.99); background-color: #f8fafc; }
        
        .collection-item::before {
            content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
            background: #FFD700; border-radius: var(--radius) 0 0 var(--radius);
        }
        
        /* --- 9. 加载状态 --- */
        .loading-state {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            padding: 40px 20px; color: var(--text-muted);
        }
        
        .loading-spinner {
            width: 40px; height: 40px; border: 3px solid #f1f4f9;
            border-top: 3px solid var(--primary-color); border-radius: 50%;
            animation: spin 1s linear infinite; margin-bottom: 16px;
        }
        
        /* --- 10. 手机端精准适配 (重难点) --- */
        @media (max-width: 768px) {
            .header-inner { padding: 0 15px; }
            .main-nav, .search-bar, .sidebar-container .btn-post { display: none; }
            .mobile-fab { display: flex; }
            
            /* 主容器改为flex布局 */
            .main-wrapper { 
                display: flex; 
                flex-direction: column; 
                padding: 0 15px;
                margin: 15px auto;
            }

            /* 关键修改：侧边栏容器不隐藏，但重新排列内部元素 */
            .sidebar-container { 
                display: flex; 
                flex-direction: column;
                order: 1; /* 确保侧边栏在帖子上面 */
                margin-bottom: 20px;
                width: 100%;
            }
            
            /* 隐藏侧边栏的备案信息 */
            .sidebar-container .mini-footer {
                display: none;
            }
            
            /* 侧边栏导航横向滚动 */
            .sidebar-nav { 
                order: 1;
                display: flex; 
                overflow-x: auto; 
                padding: 10px 0; 
                gap: 8px;
                margin-bottom: 0;
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
            .sidebar-nav::-webkit-scrollbar { display: none; }
            
            .sidebar-nav li { 
                background: #fff; 
                border: 1px solid #eee; 
                margin-bottom: 0; 
                white-space: nowrap; 
                padding: 6px 15px;
                flex-shrink: 0;
            }
            
            /* 帖子列表在下面 */
            .discussion-list, .collection-list, #hot-content { 
                order: 2;
                width: 100%;
            }
            
            /* 增加热点榜单的间距 */
            #hot-content .discussion-item {
                margin-bottom: 8px;
            }
            
            /* 确认按钮在手机端调整 */
            .confirm-buttons {
                flex-direction: column;
            }
            
            .confirm-btn {
                padding: 10px;
                width: 100%;
            }
            
            .discussion-item, .collection-item { 
                padding: 12px; 
                gap: 12px; 
            }
            .item-stats { gap: 10px; }
            
            /* 热点确认标题在手机端调整 */
            .confirm-title {
                font-size: 0.95rem;
                margin-bottom: 10px;
            }
        }
        
        /* --- 热点榜单额外间距 --- */
        #hot-content .discussion-item {
            margin-bottom: 8px;
        }
        /* --- 1. 核心布局与间距 (强制 5px) --- */
        .discussion-list, .collection-list, #hot-content {
            display: none; 
            flex-direction: column !important;
            gap: 5px !important; 
        }

        .active-content { display: flex !important; }

        .discussion-item, .collection-item {
            margin-bottom: 0 !important;
            position: relative;
        }

        /* 移除收藏页面的黄色条条 */
        .collection-item::before { display: none !important; }

        /* --- 2. 手机端适配 (侧栏置顶 & 隐藏冗余) --- */
        @media (max-width: 768px) {
            .main-wrapper {
                display: flex !important;
                flex-direction: column !important;
            }
            .sidebar-container {
                order: -1 !important;
                width: 100% !important;
                margin-bottom: 15px !important;
            }
            /* 手机端隐藏侧栏内的备案信息 */
            .sidebar-container .mini-footer {
                display: none !important;
            }
            #content-area { order: 1 !important; }
        }

        /* --- 3. 热点排行榜分色样式 --- */
        /* 第一名：蓝色/紫色渐变 (对应 style.css hot-item-first) */
        .hot-item-1 { 
            background: linear-gradient(135deg, var(--primary-color) 0%, #6d83ff 100%) !important; 
        }
        /* 第二名：金黄色 (对应 style.css hot-item-second) */
        .hot-item-2 { 
            background: linear-gradient(135deg, #FFD700 0%, #FFE44D 100%) !important; 
        }
        /* 第三名：浅金/米色 (对应 style.css hot-item-third) */
        .hot-item-3 { 
            background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%) !important; 
        }

        /* 前两名文字高亮为白色 */
        .hot-item-1 h3, .hot-item-1 .item-stats, .hot-item-1 .rank-badge,
        .hot-item-2 h3, .hot-item-2 .item-stats, .hot-item-2 .rank-badge {
            color: white !important;
        }

        /* 统一 Rank Badge 在热点页的样式 */
        .rank-badge { 
            width: 24px; height: 24px; background: rgba(255,255,255,0.2); 
            border-radius: 50%; display: flex; align-items: center; 
            justify-content: center; font-size: 0.8rem; font-weight: bold;
            margin-right: 8px; flex-shrink: 0;
        }

        /* 热点确认跳转动画 */
        .discussion-item.confirm-mode {
            animation: slideUp 0.3s ease-out;
            background: #f4f7ff !important;
            border: 1px solid var(--primary-color) !important;
        }
        .discussion-item.confirm-mode p, .discussion-item.confirm-mode .confirm-btn {
            color: var(--text-main) !important; /* 确认模式下恢复深色字体 */
        }
        /* 头像包装器，设为相对定位 */
.icon-wrapper {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

/* V标的具体实现 */
.icon-wrapper::after {
    /* 使用 Remix Icon 的 Check 图标编码 */
    content: '\f253'; 
    font-family: 'remixicon' !important;
    
    /* 位置设定：右下角 */
    position: absolute;
    bottom: -2px;
    right: -2px;
    
    /* 视觉样式 */
    width: 16px;
    height: 16px;
    background-color: #4D69FF; /* 主题蓝色 */
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    
    /* 圆形外观 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    
    /* 白色边圈，使其与头像有间隔感 */
    border: 2px solid #ffffff;
    
    /* 确保不被头像遮挡 */
    z-index: 2;
}

.icon-wrapper.bigv::after {
    background-color: #E8590C;
}

.icon-wrapper.vip::after {
    background-color: #FFB800;
}

/* 兼容：如果想让 V 标在缩小缩放时更清晰 */
@media (max-width: 768px) {
    .icon-wrapper::after {
        width: 14px;
        height: 14px;
        font-size: 8px;
        bottom: -1px;
        right: -1px;
    }
}