/*
 * 加密货币资讯网 - 前端样式系统
 * ========================================
 * Design Tokens：
 *   主色：#2563EB（蓝色）→ 专业、信任、科技
 *   中性色：Slate 灰阶
 *   模式：纯亮色
 *   字体：Poppins (标题) + Open Sans (正文) → 现代无衬线
 *   布局：12列响应式网格
 *
 * 响应式断点：
 *   ≥ 1200px  → 桌面（三列）
 *   768-1199px → 平板（两列）
 *   < 768px    → 手机（单列）
 * ======================================== */

/* ========== Google Fonts ========== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* ========== CSS 变量 ========== */
:root {
    /* 主色调 */
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #DBEAFE;
    --primary-dark: #1E40AF;

    /* 中性色 - Slate灰阶 */
    --gray-50:  #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* 语义色 */
    --success:  #16A34A;
    --warning:  #F59E0B;
    --danger:   #DC2626;
    --info:     #0EA5E9;

    /* 标签色 */
    --tag-slide:      #8B5CF6;
    --tag-featured:   #F59E0B;
    --tag-recommend:  #EF4444;

    /* 表面色 */
    --bg-page:        #F8FAFC;
    --bg-card:        #FFFFFF;
    --bg-nav:         #FFFFFF;
    --bg-footer:      #1E293B;

    /* 文字色 */
    --text-primary:   #0F172A;
    --text-secondary: #475569;
    --text-muted:     #64748B;
    --text-inverse:   #F8FAFC;
    --text-link:      #2563EB;

    /* 边框 */
    --border-light:   #E2E8F0;
    --border-medium:  #CBD5E1;

    /* 排版 */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:    'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --text-xs:    0.75rem;   /* 12px */
    --text-sm:    0.875rem;  /* 14px */
    --text-base:  1rem;      /* 16px */
    --text-lg:    1.125rem;  /* 18px */
    --text-xl:    1.25rem;   /* 20px */
    --text-2xl:   1.5rem;    /* 24px */
    --text-3xl:   1.875rem;  /* 30px */

    --leading-tight:   1.25;
    --leading-normal:  1.6;
    --leading-relaxed: 1.75;

    /* 间距 - 基于4px体系 */
    --space-1:  0.25rem;  /* 4px */
    --space-2:  0.5rem;   /* 8px */
    --space-3:  0.75rem;  /* 12px */
    --space-4:  1rem;     /* 16px */
    --space-5:  1.25rem;  /* 20px */
    --space-6:  1.5rem;   /* 24px */
    --space-8:  2rem;     /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */

    /* 圆角 */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  16px;
    --radius-full: 9999px;

    /* 阴影 */
    --shadow-sm:  0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.04);

    /* 过渡 */
    --transition-fast:   150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow:   300ms ease;

    /* 容器 */
    --container-max: 1280px;
    --container-pad: 1.5rem;

    /* z-index */
    --z-sticky:    100;
    --z-overlay:   200;
    --z-modal:     300;

    /* 幻灯片高度 */
    --slide-height: 320px;
}

/* ========== CSS Reset ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

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

ul, ol {
    list-style: none;
}

/* Focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========== 容器 ========== */
.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* ========== 头部导航 ========== */
.site-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.site-header a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.site-header a:hover {
    color: #ffffff;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: var(--space-4);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-area:hover {
    color: #ffffff;
}

.logo-img {
    height: 40px;
    width: auto;
}

.site-name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

/* 汉堡菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
    /* Touch target ≥ 44px */
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* 导航 */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-wrap: wrap;
}

.main-nav li a {
    display: block;
    padding: var(--space-3) var(--space-6);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-base);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.main-nav li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

/* ========== 主要内容区 ========== */
.site-main {
    min-height: 60vh;
    padding-top: var(--space-6);
    padding-bottom: var(--space-10);
}

/* ========== 幻灯片 ========== */
.slideshow {
    position: relative;
    height: var(--slide-height);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-6);
    background: var(--gray-200);
}

.slides-track {
    position: relative;
    height: 100%;
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.slide-item.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-6);
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.slide-caption h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.slide-caption h3 a {
    color: #fff;
}

.slide-caption h3 a:hover {
    text-decoration: underline;
}

.slide-time {
    font-size: var(--text-xs);
    opacity: 0.8;
}

.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    z-index: 10;
}

.slide-prev { left: var(--space-4); }
.slide-next { right: var(--space-4); }

.slide-prev:hover, .slide-next:hover {
    background: #fff;
    color: var(--primary);
}

.slide-dots {
    position: absolute;
    bottom: var(--space-3);
    right: var(--space-4);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* ========== 区域标题 ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-more {
    font-size: var(--text-sm);
    color: #ffffff;
    background: #2250A9;
    font-weight: 500;
    transition: all var(--transition-fast);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.section-more:hover {
    color: #ffffff;
    background: #1a3f85;
}

/* ========== 首页第二行 ========== */
.home-row-2 {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.home-left {
    min-width: 0;
}

.home-right {
    min-width: 0;
}

/* ========== 加密货币网格（4行3列） ========== */
.crypto-grid-section {
    margin-bottom: 0;
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.crypto-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.crypto-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.crypto-card-img {
    display: block;
    height: 120px;
    overflow: hidden;
    background: var(--gray-100);
}

.crypto-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.crypto-card:hover .crypto-card-img img {
    transform: scale(1.05);
}

.crypto-card-body {
    padding: var(--space-3);
}

.crypto-card-body h3 {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-1);
    line-height: var(--leading-tight);
}

.crypto-card-body h3 a {
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crypto-card-body h3 a:hover {
    color: var(--primary);
}

.crypto-card-summary {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crypto-card-time {
    font-size: 11px;
    color: var(--gray-400);
}

/* ========== 侧边栏 ========== */
.side-panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.side-list li {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
}

.side-list li:last-child {
    border-bottom: none;
}

.side-list-img {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
}

.side-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-list-content {
    flex: 1;
    min-width: 0;
}

.side-list-content h4 {
    margin-bottom: var(--space-1);
    line-height: var(--leading-tight);
}

.side-list-content h4 a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-list-content h4 a:hover {
    color: var(--primary);
}

.side-list-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* 纯文字列表（无图时） */
.side-list li .side-list-content:first-child,
.side-list li:not(:has(.side-list-img)) .side-list-content {
    margin-left: 0;
}

/* ========== 首页第三行 ========== */
.home-row-3 {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-6);
}

/* ========== TAB切换面板 ========== */
.tab-panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tab-header {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    background: var(--gray-50);
}

.tab-btn {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    /* Touch target ≥ 44px */
    min-height: 48px;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(37,99,235,0.04);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-content {
    padding: var(--space-4);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-light);
}

.tab-list li:last-child {
    border-bottom: none;
}

.tab-list li a {
    color: var(--text-primary);
    font-size: var(--text-sm);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: var(--space-3);
}

.tab-list li a:hover {
    color: var(--primary);
}

.tab-list li span {
    font-size: var(--text-xs);
    color: var(--text-muted);
    flex-shrink: 0;
}

.tab-empty {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-8);
    font-size: var(--text-sm);
}

/* ========== 面包屑 ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ========== 栏目列表页 ========== */
.list-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-6);
    align-items: start;
}

.list-main {
    min-width: 0;
}

.list-sidebar {
    min-width: 0;
}

.list-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary-light);
}

@media (max-width: 991px) {
    .list-layout {
        grid-template-columns: 1fr;
    }
}

.article-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.article-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.article-item-img {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
}

.article-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-item-img img {
    transform: scale(1.05);
}

.article-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.article-item-content h2 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    line-height: var(--leading-tight);
}

.article-item-content h2 a {
    color: var(--text-primary);
}

.article-item-content h2 a:hover {
    color: var(--primary);
}

.article-item-summary {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: var(--leading-relaxed);
}

.article-item-meta {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
    margin-left: var(--space-1);
}

.tag-recommend {
    background: #FEF2F2;
    color: #DC2626;
}

.tag-featured {
    background: #FFFBEB;
    color: #D97706;
}

.tag-slide {
    background: #F5F3FF;
    color: #7C3AED;
}

/* ========== 文章详情页 ========== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-6);
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.detail-sidebar {
    min-width: 0;
}

.detail-article {
    /* full width inside left column */
}

.detail-header {
    margin-bottom: var(--space-6);
}

.detail-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: var(--space-8);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
    align-items: center;
}

.detail-meta a {
    color: var(--primary);
}

.detail-cover {
    margin-bottom: var(--space-6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
}

.detail-cover img {
    width: 100%;
}

.detail-summary {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: var(--space-4) var(--space-5);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: var(--space-6);
    font-size: var(--text-base);
    color: var(--gray-700);
    line-height: var(--leading-relaxed);
}

.detail-content {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    word-wrap: break-word;
}

/* 富文本内容样式 */
.detail-content h2,
.detail-content h3,
.detail-content h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.detail-content h2 {
    font-size: var(--text-2xl);
    background: #DBEAFE;
    color: #1e3a5f;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
}
.detail-content h3 { font-size: var(--text-xl); }
.detail-content h4 { font-size: var(--text-lg); }

.detail-content p {
    margin-bottom: var(--space-4);
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
}

.detail-content ul,
.detail-content ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.detail-content ul {
    list-style-type: disc;
}

.detail-content ol {
    list-style-type: decimal;
}

.detail-content li {
    margin-bottom: var(--space-1);
    padding-left: var(--space-1);
}

.detail-content blockquote {
    border-left: 4px solid var(--primary);
    padding: var(--space-3) var(--space-5);
    margin: var(--space-4) 0;
    background: var(--gray-50);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
}

.detail-content pre {
    background: var(--gray-800);
    color: var(--gray-100);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: var(--space-4);
}

.detail-content code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
}

.detail-content a {
    color: var(--primary);
    text-decoration: underline;
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-4);
}

.detail-content table th,
.detail-content table td {
    border: 1px solid var(--border-light);
    padding: var(--space-3);
    text-align: left;
}

.detail-content table th {
    background: var(--gray-50);
    font-weight: 600;
}

/* 相关推荐 */
.related-section {
    margin-top: var(--space-12);
}

.related-section .section-title {
    margin-bottom: var(--space-4);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.related-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.related-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-img {
    display: block;
    height: 120px;
    overflow: hidden;
    background: var(--gray-100);
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item h4 {
    padding: var(--space-3) var(--space-3) var(--space-1);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
}

.related-item h4 a {
    color: var(--text-primary);
}

.related-item h4 a:hover {
    color: var(--primary);
}

.related-item span {
    display: block;
    padding: 0 var(--space-3) var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ========== 页脚 ========== */
.site-footer {
    background: var(--bg-footer);
    color: var(--text-inverse);
    padding: var(--space-8) 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-label {
    font-size: var(--text-sm);
    opacity: 0.7;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

.footer-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.5);
    text-align: center;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

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

.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    cursor: default;
}

.pagination .page-prev,
.pagination .page-next {
    font-weight: 600;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-4);
    color: var(--text-muted);
    font-size: var(--text-lg);
}

/* ========== prefers-reduced-motion ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ============================================= */
/*              响应式设计                         */
/* ============================================= */

/* ---------- 平板：768px - 1199px ---------- */
@media (max-width: 1199px) {
    .home-row-2,
    .home-row-3 {
        grid-template-columns: 1fr 280px;
        gap: var(--space-4);
    }

    .crypto-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-item-img {
        width: 160px;
        height: 120px;
    }

    .detail-title {
        font-size: var(--text-2xl);
    }
}

/* ---------- 平板竖屏：768px - 991px ---------- */
@media (max-width: 991px) {
    .home-row-2,
    .home-row-3 {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        margin-top: var(--space-6);
    }

    /* 平板竖屏时币圈资讯和OKX用紧凑布局 */
    .side-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .side-list li {
        border-bottom: none;
        padding: 0;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- 手机：< 768px ---------- */
@media (max-width: 767px) {
    :root {
        --container-pad: 1rem;
        --slide-height: 220px;
    }

    /* 移动端字体加大 */
    body {
        font-size: 1.125rem;
    }

    .site-name {
        font-size: var(--text-lg);
    }

    .main-nav li a {
        font-size: var(--text-lg);
    }

    .section-title {
        font-size: var(--text-xl);
    }

    .crypto-card-body h3 {
        font-size: var(--text-base);
    }

    .side-list-content h4 a {
        font-size: var(--text-base);
    }

    .article-item-content h2 {
        font-size: var(--text-lg);
    }

    .detail-title {
        font-size: var(--text-2xl);
    }

    .detail-content {
        font-size: var(--text-base);
    }

    .detail-content h2 {
        font-size: var(--text-xl);
    }

    /* 汉堡菜单显示 */
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: var(--space-2) 0;
    }

    .main-nav li a {
        padding: var(--space-3) var(--space-5);
        border-radius: 0;
        font-size: var(--text-base);
        color: rgba(255, 255, 255, 0.85);
    }

    .main-nav li a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }

    /* 第二行单列 */
    .home-row-2,
    .home-row-3 {
        grid-template-columns: 1fr;
    }

    /* 加密货币2列 */
    .crypto-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .crypto-card-img {
        height: 90px;
    }

    /* 侧边栏 */
    .side-list {
        display: block;
    }

    .side-list li {
        display: flex;
        gap: var(--space-3);
        padding: var(--space-3) 0;
        border-bottom: 1px solid var(--border-light);
    }

    /* TAB按钮 */
    .tab-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        flex: none;
        white-space: nowrap;
        min-width: 80px;
    }

    /* 文章项 */
    .article-item {
        flex-direction: column;
    }

    .article-item-img {
        width: 100%;
        height: 180px;
    }

    .article-item-content h2 {
        font-size: var(--text-base);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-img {
        height: 100px;
    }

    .detail-title {
        font-size: var(--text-xl);
    }

    .detail-meta {
        gap: var(--space-2);
        font-size: var(--text-sm);
    }

    .breadcrumb {
        font-size: var(--text-sm);
    }
}

    /* 幻灯片导航按钮 */
    .slide-prev, .slide-next {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .slide-caption {
        padding: var(--space-4);
    }

    .slide-caption h3 {
        font-size: var(--text-base);
    }
}

/* ---------- 小手机：< 480px ---------- */
@media (max-width: 479px) {
    .crypto-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .site-name {
        font-size: var(--text-base);
    }

    .header-row {
        height: 56px;
    }

    .logo-img {
        height: 32px;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .site-header,
    .site-footer,
    .related-section,
    .breadcrumb {
        display: none;
    }

    body {
        background: #fff;
    }

    .detail-layout {
        display: block;
    }

    .detail-article {
        max-width: 100%;
    }

    .detail-sidebar {
        margin-top: var(--space-6);
    }
}
