/* ============================================
   天龙八部SF - 样式表 v10.0
   ============================================ */

/* ===== 全局重置 ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2236;
    --bg-card-hover: #23304a;
    --text-primary: #e8edf5;
    --text-secondary: #94a3b8;
    --text-muted: #4a5568;
    --accent-gold: #f59e0b;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --border-color: #2a3a5a;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--accent-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 进度条 ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple), var(--accent-pink));
    width: 0;
    z-index: 10000;
    transition: width 0.1s;
}

/* ===== 顶部通知 ===== */
.top-bar {
    padding: 6px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
}
.top-bar a {
    color: #fff;
    text-decoration: underline;
}
.top-bar a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== 导航 ===== */
header {
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #f97316, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .badge {
    font-size: 0.65rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links .active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-gold);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.breadcrumb a {
    color: var(--text-secondary);
}
.breadcrumb a:hover {
    color: var(--accent-gold);
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 12px;
    position: relative;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 12px;
    font-weight: 600;
}

.hero .stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0 24px;
    flex-wrap: wrap;
}

.hero .stats-item {
    text-align: center;
}

.hero .stats-item .number {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .stats-item .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 16px;
    font-size: 1.05rem;
}

/* ===== 按钮 ===== */
.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #0a0e1a;
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(245, 158, 11, 0.5);
    color: #0a0e1a;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--border-color);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ===== 通用 ===== */
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    text-align: center;
    margin-bottom: 12px;
    padding-top: 20px;
}

.section-title span {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
    margin: 0 auto 32px;
    border-radius: 2px;
}

/* ===== 分类导航 ===== */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 16px 0 24px;
}

.category-nav a {
    padding: 6px 18px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.category-nav a:hover,
.category-nav a.active {
    background: var(--border-color);
    color: var(--text-primary);
    border-color: var(--accent-gold);
}

/* ===== 文章卡片 ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-purple);
    box-shadow: var(--shadow);
}

.article-card .article-tag {
    display: inline-block;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.article-card h3 a {
    color: var(--text-primary);
}
.article-card h3 a:hover {
    color: var(--accent-gold);
}

.article-card .article-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.article-card .article-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 12px;
    flex-wrap: wrap;
}

.article-card .article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card .read-more {
    color: var(--accent-blue);
    font-weight: 600;
}
.article-card .read-more:hover {
    color: var(--accent-gold);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 20px 0 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination .ellipsis {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: var(--border-color);
    color: var(--text-primary);
    border-color: var(--accent-gold);
}

.pagination a.active {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    color: #fff;
    border-color: var(--accent-gold);
}

.pagination .ellipsis {
    background: transparent;
    border: none;
    color: var(--text-muted);
}

/* ===== 热门排行 ===== */
.hot-article-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px 32px;
    margin: 20px 0;
}

.hot-article-list ol {
    list-style: none;
    padding: 0;
    counter-reset: hot-counter;
}

.hot-article-list ol li {
    counter-increment: hot-counter;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.hot-article-list ol li:last-child {
    border-bottom: none;
}

.hot-article-list ol li::before {
    content: counter(hot-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--border-color);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.hot-article-list ol li:nth-child(1)::before {
    background: #f59e0b;
    color: #fff;
}

.hot-article-list ol li:nth-child(2)::before {
    background: #94a3b8;
    color: #fff;
}

.hot-article-list ol li:nth-child(3)::before {
    background: #cd7f32;
    color: #fff;
}

.hot-article-list ol li a {
    flex: 1;
    color: var(--text-primary);
}
.hot-article-list ol li a:hover {
    color: var(--accent-gold);
}

.hot-badge {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.hot-category {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--bg-primary);
    flex-shrink: 0;
}

/* ===== 服务器卡片 ===== */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
    opacity: 0;
    transition: opacity var(--transition);
}

.server-card:hover::before {
    opacity: 1;
}

.server-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow);
}

.server-card .name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.server-card .info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.server-card .status {
    display: inline-block;
    padding: 3px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 8px;
    font-weight: 600;
}

.status-hot {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
}
.status-new {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}
.status-recommend {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

.server-card .online {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}
.server-card .online strong {
    color: #4ade80;
}

/* ===== 图片画廊 ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow);
}

.gallery-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.6s;
    background: var(--bg-secondary);
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-card:hover .overlay {
    opacity: 1;
}

/* ===== 灯箱 ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.lightbox img {
    max-width: 92%;
    max-height: 88%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.12);
}

.lightbox .close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    transition: transform var(--transition);
    background: none;
    border: none;
    opacity: 0.7;
}

.lightbox .close:hover {
    transform: rotate(90deg);
    opacity: 1;
}

.lightbox .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox .nav-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lightbox .prev {
    left: 20px;
}
.lightbox .next {
    right: 20px;
}

.lightbox .counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 18px;
    border-radius: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== FAQ ===== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 22px;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--accent-blue);
}

.faq-item h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== 最近更新 ===== */
.recent-updates-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
}

.recent-updates-list ul {
    list-style: none;
    padding: 0;
}

.recent-updates-list ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.recent-updates-list ul li:last-child {
    border-bottom: none;
}

.recent-updates-list ul li a {
    color: var(--text-secondary);
    flex: 1;
}
.recent-updates-list ul li a:hover {
    color: var(--accent-gold);
}

.update-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 12px;
}

/* ===== 标签云 ===== */
.bottom-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 16px 0;
}

.bottom-tag-cloud span {
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-block;
    cursor: default;
}

.tag-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 2px;
}

/* ===== 网站统计 ===== */
.stats-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin: 20px 0;
}

.stats-item {
    text-align: center;
}

.stats-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== 文章详情页 ===== */
.article-detail {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.article-detail h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.article-meta-bar {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.article-body {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.05rem;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body h2 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin: 24px 0 12px;
}

.article-body h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 20px 0 10px;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-body li {
    margin-bottom: 6px;
}

/* ===== 作者信息 ===== */
.author-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin: 16px 0 24px;
    align-items: center;
    flex-wrap: wrap;
}

.author-box .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--bg-secondary);
    object-fit: cover;
}

.author-info h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 4px 0;
}

.author-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #0a0e1a;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 6px;
}

/* ===== 文章互动 ===== */
.article-interaction {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.article-interaction button {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-interaction button:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.article-interaction button.liked {
    background: #f59e0b;
    color: #0a0e1a;
    border-color: #f59e0b;
}

.article-interaction button.collected {
    background: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
}

/* ===== 阅读进度 ===== */
.reading-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.progress-bar-mini {
    flex: 1;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple));
    transition: width 0.3s;
    width: 0%;
}

.progress-text {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: var(--accent-gold);
}

/* ===== 相关文章 ===== */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.related-item {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.related-item:hover {
    border-color: var(--accent-gold);
}

.related-item a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
}
.related-item a:hover {
    color: var(--accent-gold);
}

.related-category {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 2px 10px;
    border-radius: 10px;
    background: var(--bg-card);
}

/* ===== 文章标签 ===== */
.article-tags {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.article-tags span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-tags .tag-item {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 2px 4px 2px 0;
    cursor: default;
}

/* ===== 文章底部导航 ===== */
.article-footer-nav {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

/* ===== 底部 ===== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
}

footer .footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

footer .footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}
footer .footer-links a:hover {
    color: var(--accent-gold);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .hero .stats {
        gap: 24px;
    }
    .hero .stats-item .number {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links {
        justify-content: center;
        gap: 12px;
    }
    .nav-links a {
        font-size: 0.8rem;
        padding: 4px 0;
    }
    .hero {
        padding: 30px 0 24px;
    }
    .hero .stats {
        gap: 16px;
    }
    .hero .stats-item .number {
        font-size: 1.2rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-card img {
        height: 140px;
    }
    .server-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .category-nav {
        gap: 6px;
    }
    .category-nav a {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    .hot-article-list {
        padding: 16px;
    }
    .hot-article-list ol li {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
    .hot-article-list ol li::before {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    .lightbox .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .lightbox .prev {
        left: 10px;
    }
    .lightbox .next {
        right: 10px;
    }
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .article-detail {
        padding: 20px;
    }
    .article-detail h1 {
        font-size: 1.5rem;
    }
    .article-body {
        font-size: 0.95rem;
    }
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    .article-interaction {
        justify-content: center;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .stats-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 6px;
    }
    .nav-links a {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
    .container {
        padding: 0 12px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gallery-card img {
        height: 100px;
    }
    .server-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .server-card {
        padding: 16px;
    }
    .server-card .name {
        font-size: 1rem;
    }
    .pagination a {
        padding: 6px 12px;
        font-size: 0.75rem;
        min-width: 32px;
    }
    .stats-box {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 16px;
    }
    .stats-number {
        font-size: 1.5rem;
    }
}