/* ===== style.css - 轻云工具箱·科技简洁版 ===== */
/* 版本: v4.3 | 设计: 简洁大方 + 精致边框 + 横线分隔 */
/* 优化: 评论区域徽章天蓝色主题，图标最小30px自适应 */

/* ============================================
   1. CSS 变量定义
   ============================================ */
:root {
    /* 葫芦娃七兄弟配色 - 作为点缀色 */
    --huluwa-red: #ff4d4d;
    --huluwa-orange: #ff9f4b;
    --huluwa-yellow: #ffd966;
    --huluwa-green: #4ade80;
    --huluwa-blue: #3b82f6;
    --huluwa-purple: #8b5cf6;
    --huluwa-pink: #ec4899;
    
    /* 主色调 - 科技蓝 */
    --primary: #3a86ff;
    --primary-dark: #2666cc;
    --primary-light: #6ea8fe;
    --primary-lighter: #e8f0fe;
    --primary-bg: rgba(58, 134, 255, 0.08);
    
    /* 天蓝色主题色 */
    --sky-blue: #00b4d8;
    --sky-blue-dark: #0077b6;
    --sky-blue-light: #48cae4;
    --sky-blue-glow: rgba(0, 180, 216, 0.4);
    
    /* 辅助色 */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --accent: #f97316;
    
    /* 边框系统 */
    --border-width-thin: 1px;
    --border-width-base: 1px;
    --border-width-thick: 2px;
    
    /* 边框圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* 边框颜色 */
    --border-light: #eef2f6;
    --border-default: #e5e7eb;
    --border-medium: #d1d5db;
    --border-dark: #9ca3af;
    --border-focus: #3a86ff;
    --border-divider: #eceef2;
    
    /* 背景色 */
    --bg-white: #ffffff;
    --bg-gray-50: #fafafa;
    --bg-gray-100: #f8f9fa;
    --bg-gray-150: #f5f5f5;
    --bg-card: #ffffff;
    --body-bg: #f8f9fa;
    
    /* 文字颜色 */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --text-muted: #9ca3af;
    --dark: #1f2937;
    --gray: #6c757d;
    --light-gray: #e5e7eb;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    
    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.35s ease;
    
    /* 布局 */
    --container-max: 1800px;
    --header-height: 64px;
}

/* ============================================
   2. 基础重置 - 修复滚动条问题
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'LXGW WenKai Screen', sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 15px;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   3. 容器布局 - 全宽响应式
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 1600px) {
    .container { max-width: 1600px; }
}
@media (max-width: 1200px) {
    .container { padding: 0 20px; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
}

.main-content {
    flex: 1;
    padding: 24px 0 48px;
    width: 100%;
    overflow: visible;
}

/* ============================================
   4. 导航栏 - 简洁设计
   ============================================ */
.navbar {
    background: var(--bg-white);
    border-bottom: var(--border-width-thin) solid var(--border-light);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-area .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background-image: url('https://www.hirmb.cn/toolbox/images/hlw.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--huluwa-red), var(--huluwa-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 6px;
}

.nav-link {
    padding: 8px 18px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

.nav-search {
    position: relative;
}

.nav-search .search-input {
    padding: 8px 14px 8px 36px;
    background: var(--bg-gray-100);
    border: var(--border-width-thin) solid var(--border-default);
    border-radius: var(--radius-full);
    width: 220px;
    font-size: 13px;
}

.nav-search .search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
}

.nav-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 4px;
    background: var(--bg-white);
    border: var(--border-width-thin) solid var(--border-default);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-info:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--huluwa-red), var(--huluwa-pink));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

@media (max-width: 768px) {
    .nav-links, .nav-search { display: none; }
}

/* ============================================
   5. 搜索筛选区域
   ============================================ */
.search-section {
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 16px;
}

.search-box-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    border: var(--border-width-thin) solid var(--border-light);
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.search-input-wrapper .search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: var(--bg-white);
    border: var(--border-width-thin) solid var(--border-default);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.search-input-wrapper .search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.search-btn {
    padding: 10px 22px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.clear-search-btn {
    padding: 10px 18px;
    background: var(--bg-gray-100);
    border: var(--border-width-thin) solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.clear-search-btn:hover {
    border-color: var(--border-dark);
    background: var(--bg-gray-150);
}

/* 分类筛选 */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    justify-content: center;
}

.category-filter-btn {
    padding: 6px 18px;
    background: var(--bg-white);
    border: var(--border-width-thin) solid var(--border-default);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.category-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.category-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* 筛选状态 */
.filter-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 16px auto;
    padding: 12px 20px;
    background: var(--primary-lighter);
    border-radius: var(--radius-md);
    font-size: 13px;
    max-width: 1200px;
}

.filter-label {
    font-weight: 600;
    color: var(--text-primary);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: var(--bg-white);
    border: var(--border-width-thin) solid var(--border-default);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-secondary);
}

.filter-remove {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
}

.filter-remove:hover { color: var(--danger); }

.filter-clear {
    margin-left: auto;
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-clear:hover { color: var(--primary-dark); }

@media (max-width: 560px) {
    .search-form { flex-direction: column; }
    .search-btn, .clear-search-btn { justify-content: center; width: 100%; }
    .filter-status { flex-direction: column; align-items: flex-start; }
    .filter-clear { margin-left: 0; margin-top: 8px; }
}

/* ============================================
   6. 文章列表 - 修复所有文章对齐问题
   ============================================ */
.articles-list {
    max-width: 100%;
    margin: 32px auto;
    padding: 0 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-list-item {
    display: flex;
    gap: 24px;
    background: var(--bg-white);
    padding: 20px 0;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    border-bottom: var(--border-width-thin) solid var(--border-divider);
    align-items: flex-start;
    min-height: 180px;
    width: 100%;
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-list-item:hover {
    background: var(--bg-gray-50);
}

.article-list-item.article-locked {
    opacity: 0.85;
    position: relative;
    align-items: flex-start;
}

.article-list-item.article-locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
    pointer-events: none;
    border-radius: 0;
}

.article-list-item.article-locked:hover {
    background: var(--bg-white);
    cursor: not-allowed;
}

.article-list-item.article-external {
    align-items: flex-start;
}

.article-list-thumbnail {
    flex-shrink: 0;
    width: 260px;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--bg-gray-100), var(--bg-gray-150));
    margin-top: 0;
    top: 0;
}

.list-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-list-item:hover .list-thumbnail-image {
    transform: scale(1.03);
}

.list-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-gray-100), var(--bg-gray-150));
    color: var(--text-muted);
    font-size: 36px;
}

.article-list-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-vip {
    background: linear-gradient(135deg, var(--huluwa-red), var(--huluwa-pink));
}

.badge-premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.badge-locked {
    background: linear-gradient(135deg, var(--text-tertiary), #6b7280);
}

.badge-external {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.access-restricted-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(200, 35, 51, 0.9));
    backdrop-filter: blur(4px);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.article-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    min-width: 0;
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-top: 0;
}

.list-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.list-title i {
    font-size: 13px;
    color: var(--primary);
}

.article-locked .list-title {
    color: var(--text-tertiary);
}

.list-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-locked .list-excerpt {
    color: var(--text-muted);
}

.list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0;
}

.list-tag {
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.list-tag:hover {
    background: rgba(58, 134, 255, 0.15);
    color: var(--primary-dark);
}

.list-meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    border-top: var(--border-width-thin) solid var(--border-divider);
    padding-top: 12px;
}

.list-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    background: var(--primary-lighter);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.7rem;
}

.list-date, .list-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.list-views {
    margin-left: auto;
    font-weight: 500;
}

.article-locked > div:last-child,
.article-external > div:last-child {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    width: 100%;
}

.article-locked > div:last-child {
    background: #fff9e8;
    border-left: 3px solid var(--warning);
    border-top: var(--border-width-thin) solid #ffe5b4;
    border-right: var(--border-width-thin) solid #ffe5b4;
    border-bottom: var(--border-width-thin) solid #ffe5b4;
}

.article-locked small {
    color: #b85c00;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-external > div:last-child {
    background: var(--primary-bg);
    border-left: 3px solid var(--primary);
    border-top: var(--border-width-thin) solid rgba(58, 134, 255, 0.2);
    border-right: var(--border-width-thin) solid rgba(58, 134, 255, 0.2);
    border-bottom: var(--border-width-thin) solid rgba(58, 134, 255, 0.2);
}

.article-external small {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-external .list-title {
    color: var(--primary) !important;
}

@media (max-width: 768px) {
    .article-list-item {
        flex-direction: column;
        gap: 14px;
        padding: 16px 0;
        align-items: stretch;
        min-height: auto;
    }
    
    .article-list-thumbnail {
        width: 100%;
        height: 180px;
        margin-top: 0;
    }
    
    .article-list-content {
        margin-top: 0;
        padding-top: 0;
    }
    
    .list-title {
        font-size: 1rem;
        margin-top: 0;
    }
    
    .list-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .list-meta-info {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .list-views {
        margin-left: 0;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1920px;
        padding: 0 40px;
    }
    
    .article-list-thumbnail {
        width: 280px;
        height: 170px;
    }
    
    .list-title {
        font-size: 1.35rem;
    }
    
    .list-excerpt {
        font-size: 0.95rem;
        -webkit-line-clamp: 4;
    }
}

@media (min-width: 1201px) and (max-width: 1599px) {
    .article-list-thumbnail {
        width: 240px;
        height: 150px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .article-list-thumbnail {
        width: 200px;
        height: 130px;
    }
    
    .list-title {
        font-size: 1.1rem;
    }
    
    .list-excerpt {
        font-size: 0.85rem;
    }
}

/* ============================================
   7. 分页
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 32px 0;
    padding-top: 20px;
    border-top: var(--border-width-thin) solid var(--border-divider);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-white);
    border: var(--border-width-thin) solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-info {
    margin-left: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
}

@media (max-width: 480px) {
    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ============================================
   8. 统计卡片
   ============================================ */
.stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 32px auto;
    max-width: 100%;
    padding: 0 16px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: var(--border-width-thin) solid var(--border-light);
    min-width: 180px;
    flex: 1;
    max-width: 280px;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary), var(--huluwa-purple));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.stat-subinfo {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

@media (max-width: 560px) {
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card {
        padding: 16px 12px;
        min-width: auto;
        max-width: none;
    }
    .stat-number {
        font-size: 22px;
    }
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .stat-label {
        font-size: 11px;
    }
}

/* ============================================
   9. VIP 提醒区域
   ============================================ */
.vip-alert {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: var(--border-width-thin) solid #fbbf24;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 24px auto;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
}

.vip-alert-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), #f97316);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.vip-alert-content {
    flex: 1;
}

.vip-alert-title {
    font-weight: 700;
    color: #7c2d12;
    margin-bottom: 4px;
    font-size: 1rem;
}

.vip-alert-desc {
    font-size: 0.85rem;
    color: #92400e;
}

.permanent-vip-alert {
    background: linear-gradient(135deg, #FFFDF6, #FFF9E6);
    border: 1.5px solid #FFD700 !important;
}

.permanent-vip-alert .vip-alert-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.permanent-vip-alert .vip-alert-title {
    color: #D4A017;
}

.permanent-vip-alert .vip-alert-desc {
    color: #996515;
}

.permanent-vip-thank-section {
    background: #FFFDF6 !important;
    border: 1.5px solid #FFD700 !important;
    border-radius: var(--radius-lg) !important;
    margin-top: 32px !important;
    padding: 24px !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 768px) {
    .vip-alert {
        display: none !important;
    }
}

/* ============================================
   10. 空状态
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: var(--border-width-thin) solid var(--border-light);
    max-width: 800px;
    margin: 48px auto;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 32px;
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ============================================
   11. 动画效果
   ============================================ */
.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }

/* ============================================
   12. 滚动条美化
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-gray-100);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-dark);
}

/* ============================================
   文章页面专用样式 - 限制宽度，阅读舒适
   ============================================ */
body:not(.tools-page) .container:not(.navbar .container) {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.articles-list {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.search-section {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.pagination {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   文章详情页面专用样式
   ============================================ */
.article-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px 60px;
    flex: 1 0 auto;
    width: 100%;
    overflow: visible;
}

.article-header {
    margin: 40px 0 30px;
    text-align: center;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 25px;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    color: #666;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: #1479d7;
    font-size: 14px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f0f7ff;
    border-radius: 20px;
    flex-shrink: 0;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1479d7, #0d5ba8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.author-name {
    font-weight: 500;
    color: #333;
}

.article-content-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.article-content {
    padding: 50px 60px;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #f8fafc;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.action-btn:hover {
    background: #f0f7ff;
    border-color: #1479d7;
    color: #1479d7;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #f0f7ff;
    color: #1479d7;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #1479d7;
    color: white;
    transform: translateY(-2px);
}

.tag::before {
    content: '#';
}

.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.badge-premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.badge-vip {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.badge-locked {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.access-restricted {
    max-width: 600px;
    margin: 80px auto;
    padding: 40px;
    text-align: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.restricted-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1479d7, #0d5ba8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.restricted-title {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 600;
}

.restricted-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.permanent-vip-section {
    background: linear-gradient(135deg, #fff8e6, #fff0cc);
    border: 1px solid #ffd700;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

/* ============================================
   评论区域 - 天蓝色主题优化版（图标最小30px自适应）
   ============================================ */
.comments-section {
    margin: 50px 0;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.comments-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1479d7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form {
    margin-bottom: 30px;
    position: relative;
}

.form-group {
    margin-bottom: 20px;
}

.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    min-height: 120px;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #1479d7;
    box-shadow: 0 0 0 3px rgba(20, 121, 215, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.comment-count {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.comments-list {
    margin-top: 40px;
}

.comment-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    overflow-wrap: break-word;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1479d7, #0d5ba8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.comment-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ========== 评论用户徽章 - 天蓝色主题 ========== */
.comment-user-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* UID徽章 - 炫彩天蓝色渐变背景 */
.comment-uid-badge {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 50%, #00b4d8 100%) !important;
    background-size: 200% 200% !important;
    color: white !important;
    padding: 6px 16px !important;
    border-radius: 32px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* UID徽章光泽动画 */
.comment-uid-badge::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 70%) !important;
    animation: uidShine 3s infinite linear !important;
}

/* UID徽章悬停效果 */
.comment-uid-badge:hover {
    transform: translateY(-2px) scale(1.02) !important;
    background: linear-gradient(135deg, #48cae4, #0096c7) !important;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.5) !important;
}

/* 永久VIP徽章 */
.comment-permanent-vip-badge {
    background: rgba(0, 180, 216, 0.1) !important;
    color: #0096c7 !important;
    padding: 6px 14px !important;
    border-radius: 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: 1px solid rgba(0, 180, 216, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

.comment-permanent-vip-badge:hover {
    background: rgba(0, 180, 216, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* 管理员徽章 */
.comment-admin-badge {
    background: rgba(0, 180, 216, 0.1) !important;
    color: #0096c7 !important;
    padding: 6px 14px !important;
    border-radius: 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: 1px solid rgba(0, 180, 216, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

.comment-admin-badge:hover {
    background: rgba(0, 180, 216, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* VIP徽章 - 金色风格 */
.comment-vip-badge {
    background: linear-gradient(135deg, #ffecb3 0%, #ffd54f 100%) !important;
    color: #5d4037 !important;
    padding: 6px 14px !important;
    border-radius: 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: 1px solid #ffb300 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

.comment-vip-badge:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3) !important;
}

/* ========== 核心：控制徽章内所有图片尺寸 - 最小30px自适应 ========== */
.comment-user-badges img {
    width: auto !important;
    height: auto !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: none !important;
}

/* GIF动图同样保持最小30px */
.comment-user-badges img[src$=".gif"],
.comment-user-badges img[src*=".gif"] {
    width: auto !important;
    height: auto !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 40px !important;
    max-height: 40px !important;
}

/* 当前用户标签 */
.current-user-tag {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 16px;
    font-weight: 500;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* UID 闪耀动画 */
@keyframes uidShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.comment-date {
    font-size: 12px;
    color: #999;
    margin-left: auto;
    white-space: nowrap;
}

.comment-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.comment-action-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.comment-action-btn:hover {
    background: #f5f5f5;
    color: #1479d7;
}

.comment-action-btn.liked {
    color: #e74c3c;
}

.admin-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.admin-action-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #1479d7, #0d5ba8);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 91, 168, 0.3);
}

.btn-outline {
    background: transparent;
    color: #1479d7;
    border: 1px solid #1479d7;
}

.btn-outline:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1479d7, #6200ea);
    width: 0;
    transition: width 0.1s ease;
}

.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1479d7, #0d5ba8);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(13, 91, 168, 0.3);
    transition: all 0.3s ease;
    font-size: 18px;
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.wechat-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    animation: fadeIn 0.3s ease;
}

.wechat-share-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.wechat-share-qrcode {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.delete-confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.delete-confirm-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.delete-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 30px 0 15px;
    color: #1a1a1a;
    line-height: 1.3;
}

.article-content h1 {
    font-size: 28px;
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 10px;
}

.article-content h2 {
    font-size: 24px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.article-content h3 {
    font-size: 20px;
}

.article-content h4 {
    font-size: 18px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
    overflow-wrap: break-word;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 2em;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid #1479d7;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f0f7ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #333;
}

.article-content pre {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: monospace;
    font-size: 14px;
}

.article-content code {
    background: #f0f0f0;
    color: #d35400;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-content th,
.article-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.article-content th {
    background: #f8fafc;
    font-weight: 600;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.article-content img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stats-section {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.category-stats {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    margin-top: 20px;
}

.article-distribution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .article-content {
        padding: 40px 30px;
        max-width: 95%;
    }
    
    .comments-section {
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 0 15px 40px;
    }
    
    .article-header {
        margin: 20px 0;
    }
    
    .article-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .article-content {
        padding: 25px 20px;
        font-size: 16px;
        max-width: 100%;
    }
    
    .article-actions {
        padding: 15px 20px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        justify-content: space-between;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
    
    .comments-section {
        padding: 25px;
        margin: 30px 0;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-date {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .floating-actions {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .article-distribution {
        grid-template-columns: 1fr;
    }
    
    /* 移动端评论徽章调整 */
    .comment-user-badges {
        gap: 6px;
    }
    
    .comment-uid-badge {
        padding: 5px 12px !important;
        font-size: 13px !important;
        gap: 6px !important;
    }
    
    .comment-permanent-vip-badge,
    .comment-admin-badge,
    .comment-vip-badge {
        padding: 5px 10px !important;
        font-size: 13px !important;
        gap: 6px !important;
    }
    
    .current-user-tag {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }
    
    /* 移动端图片保持最小30px，最大35px */
    .comment-user-badges img {
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 35px !important;
        max-height: 35px !important;
    }
    
    .comment-user-badges img[src$=".gif"],
    .comment-user-badges img[src*=".gif"] {
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 35px !important;
        max-height: 35px !important;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 22px;
    }
    
    .article-content {
        padding: 20px 15px;
        font-size: 15px;
    }
    
    .comments-section {
        padding: 20px 15px;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .tag {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    /* 小屏幕评论徽章调整 */
    .comment-user-badges {
        gap: 5px;
    }
    
    .comment-uid-badge {
        padding: 4px 10px !important;
        font-size: 12px !important;
        gap: 5px !important;
    }
    
    .comment-permanent-vip-badge,
    .comment-admin-badge,
    .comment-vip-badge {
        padding: 4px 8px !important;
        font-size: 11px !important;
        gap: 5px !important;
    }
    
    .current-user-tag {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    
    /* 小屏幕图片保持最小30px，最大32px */
    .comment-user-badges img {
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
    
    .comment-user-badges img[src$=".gif"],
    .comment-user-badges img[src*=".gif"] {
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
}

/* 移动端元信息滚动 */
@media (max-width: 768px) {
    .article-meta {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 15px;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .article-meta::-webkit-scrollbar {
        display: none;
    }
    
    .meta-item {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 5px 10px;
        background: #f8f9fa;
        border-radius: 15px;
        font-size: 12px;
    }
    
    .author-info {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 5px 10px;
        background: #f0f7ff;
        border-radius: 15px;
    }
    
    .author-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .author-name {
        font-size: 12px;
    }
}

/* 字号调节样式 - 强制版本 */
.article-content.font-small,
.article-content.font-small * {
    font-size: 14px !important;
}

.article-content.font-normal,
.article-content.font-normal * {
    font-size: 16px !important;
}

.article-content.font-large,
.article-content.font-large * {
    font-size: 18px !important;
}

.article-content.font-xlarge,
.article-content.font-xlarge * {
    font-size: 20px !important;
}

/* 标题单独控制 */
.font-small h1 { font-size: 1.8em !important; }
.font-normal h1 { font-size: 2em !important; }
.font-large h1 { font-size: 2.2em !important; }
.font-xlarge h1 { font-size: 2.4em !important; }

.font-small h2 { font-size: 1.4em !important; }
.font-normal h2 { font-size: 1.6em !important; }
.font-large h2 { font-size: 1.8em !important; }
.font-xlarge h2 { font-size: 2.0em !important; }