/* ============================================================
   ObtStar Global Styles
   自定义设计系统（无第三方 CSS 框架，全部类名为自定义）
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;900&display=swap');

/* ── 基础配色（浅色模式默认值）───────────────────────── */
:root {
  --primary:       #4F46E5;
  --primary-light: #6366F1;
  --secondary:     #7C3AED;
  --accent:        #06B6D4;
  --accent2:       #10B981;
  --danger:        #EF4444;
  --warn:          #F59E0B;

  --bg-base:       #F8FAFC;
  --bg-white:      #FFFFFF;
  --bg-subtle:     #F1F5F9;
  --bg-glass:      rgba(255,255,255,0.85);

  --text-title:    #0F172A;
  --text-body:     #334155;
  --text-muted:    #64748B;
  --text-inv:      #FFFFFF;

  --border:        rgba(148,163,184,0.25);
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 24px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-glow:   0 0 40px rgba(79,70,229,0.15);

  /* 圆角变量 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ── 深色模式配色 ───────────────────────────────────── */
[data-theme="dark"] {
  --primary:       #818CF8;
  --primary-light: #A5B4FC;
  --secondary:     #A78BFA;
  --accent:        #22D3EE;
  --accent2:       #34D399;
  --danger:        #F87171;
  --warn:          #FBBF24;

  --bg-base:       #0F172A;
  --bg-white:      #1E293B;
  --bg-subtle:     #1E293B;
  --bg-glass:      rgba(15,23,42,0.85);

  --text-title:    #F1F5F9;
  --text-body:     #CBD5E1;
  --text-muted:    #94A3B8;
  --text-inv:      #0F172A;

  --border:        rgba(148,163,184,0.15);
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:     0 4px 24px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 40px rgba(129,140,248,0.3);
}

/* 深色模式覆盖 */
[data-theme="dark"] body {
  background: var(--bg-base);
  color: var(--text-body);
}

[data-theme="dark"] .hero {
  background: linear-gradient(160deg, #1E1B4B 0%, #0F172A 40%, #1E1B4B 100%);
}

/* Hero 区域深色模式下的按钮 */
[data-theme="dark"] .hero .btn-ghost {
  background: rgba(99, 102, 241, 0.25);
  color: white;
  border: 1px solid rgba(129, 140, 248, 0.4);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .hero .btn-ghost:hover {
  background: rgba(99, 102, 241, 0.4);
  color: white;
}

[data-theme="dark"] .navbar {
  background: rgba(15,23,42,0.85);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(15,23,42,0.95);
}

[data-theme="dark"] .btn-ghost {
  background: rgba(30,41,59,0.8);
  color: var(--text-title);
  border-color: var(--border);
}

[data-theme="dark"] .btn-ghost:hover {
  background: #1E293B;
}

[data-theme="dark"] .report-card,
[data-theme="dark"] .report-card-sm {
  background: var(--bg-white);
  border-color: var(--border);
}

[data-theme="dark"] .stat-card {
  background: var(--bg-white);
  border-color: var(--border);
}

[data-theme="dark"] .glass-panel {
  background: rgba(30,41,59,0.8);
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .toc-nav {
  background: var(--bg-white);
  border-color: var(--border);
}

[data-theme="dark"] .chapter-item {
  background: var(--bg-white);
  border-color: var(--border);
}

[data-theme="dark"] .hero-dashboard {
  background: rgba(30,41,59,0.9);
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .mini-card {
  background: linear-gradient(135deg, #1E293B, #334155);
  border-color: rgba(129,140,248,0.2);
}

[data-theme="dark"] .mini-card-title {
  color: #F1F5F9;
}

[data-theme="dark"] .search-input {
  background: var(--bg-white);
  border-color: var(--border);
  color: var(--text-title);
}

[data-theme="dark"] .filter-chip {
  background: var(--bg-white);
  border-color: var(--border);
  color: var(--text-body);
}

[data-theme="dark"] .filter-chip:hover {
  background: rgba(129,140,248,0.15);
}

[data-theme="dark"] .section {
  background: var(--bg-base);
}

[data-theme="dark"] .section-sm {
  background: var(--bg-white);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: var(--primary);
}

/* 深色模式文字修复 */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text-title);
}

[data-theme="dark"] p {
  color: var(--text-body);
}

[data-theme="dark"] a {
  color: var(--primary-light);
}

[data-theme="dark"] a:hover {
  color: var(--primary);
}

/* 报告卡片深色模式 */
[data-theme="dark"] .report-card {
  background: var(--bg-white);
  border-color: var(--border);
}

[data-theme="dark"] .report-card-title {
  color: var(--text-title);
}

[data-theme="dark"] .report-card-subtitle {
  color: var(--text-muted);
}

[data-theme="dark"] .report-card-summary {
  color: var(--text-body);
}

[data-theme="dark"] .report-card-meta {
  color: var(--text-muted);
}

/* 标签深色模式 - 增加对比度 */
[data-theme="dark"] .tag {
  background: rgba(129, 140, 248, 0.2);
  color: var(--primary-light);
}

/* 侧边栏深色模式 */
[data-theme="dark"] .sidebar {
  background: var(--bg-white);
  border-color: var(--border);
}

[data-theme="dark"] .sidebar-title {
  color: var(--text-title);
}

/* 工具栏深色模式 */
[data-theme="dark"] .toolbar-left,
[data-theme="dark"] .toolbar-right {
  color: var(--text-body);
}

/* 筛选器深色模式 */
[data-theme="dark"] .sort-select,
[data-theme="dark"] .sort-select:focus {
  background: var(--bg-white);
  border-color: var(--border);
  color: var(--text-body);
}

/* CTA 区域样式 */
.cta-title {
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* CTA 区域深色模式 - 保持深色背景不变 */
[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4F46E5 100%);
}

[data-theme="dark"] .cta-title {
  color: white;
}

[data-theme="dark"] .cta-desc {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .btn-cta-secondary {
  background: rgba(129, 140, 248, 0.2);
  color: white;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

[data-theme="dark"] .btn-cta-secondary:hover {
  background: rgba(129, 140, 248, 0.3);
}

/* 按钮深色模式 */
[data-theme="dark"] .btn-ghost {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-title);
  border: 1px solid var(--border);
}

[data-theme="dark"] .btn-ghost:hover {
  background: #1E293B;
  color: var(--text-title);
}

[data-theme="dark"] .btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1.5px solid var(--primary-light);
}

[data-theme="dark"] .btn-outline:hover {
  background: rgba(129, 140, 248, 0.15);
  color: var(--primary-light);
}

/* 精选卡片深色模式 */
[data-theme="dark"] .card-featured {
  background: linear-gradient(135deg, #312E81 0%, #4F46E5 100%);
}

[data-theme="dark"] .mini-card {
  background: linear-gradient(135deg, #1E293B, #334155);
}

[data-theme="dark"] .mini-card-title {
  color: var(--text-title);
}

/* 主题切换按钮 */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.theme-toggle:hover {
  background: rgba(79,70,229,0.1);
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="dark"] .theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-moon { display: block; }

/* 深色模式下的导航切换按钮 */
[data-theme="dark"] .nav-toggle {
  background: var(--bg-white);
  border-color: var(--border);
  color: var(--text-title);
}
[data-theme="dark"] .nav-toggle:hover {
  background: rgba(129,140,248,0.15);
  border-color: var(--primary);
}
:not([data-theme="dark"]) .theme-toggle .fa-sun { display: block; }
:not([data-theme="dark"]) .theme-toggle .fa-moon { display: none; }

/* ── 报告详情页暗色模式 ──────────────────────────────── */
[data-theme="dark"] .detail-hero {
  background: linear-gradient(160deg, #0F172A 0%, #1E293B 40%, #1E1B4B 100%);
}
[data-theme="dark"] .detail-hero-bg {
  opacity: 0.12;
}
[data-theme="dark"] .detail-hero-glow {
  opacity: 0.2;
}
[data-theme="dark"] .detail-section {
  background: #1E293B;
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .detail-section-title {
  color: #F1F5F9;
  border-bottom-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .ds-icon {
  background: linear-gradient(135deg, rgba(79,70,229,0.2), rgba(124,58,237,0.15));
}
[data-theme="dark"] .summary-text {
  color: #CBD5E1;
}
[data-theme="dark"] .info-panel {
  background: #1E293B;
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .info-panel-item {
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .info-panel-label {
  color: #94A3B8;
}
[data-theme="dark"] .info-panel-value {
  color: #F1F5F9;
}
[data-theme="dark"] .report-cover {
  border: 1px solid rgba(255,255,255,0.1);
}
[data-theme="dark"] .cover-content {
  color: #F1F5F9;
}
[data-theme="dark"] .cover-grid {
  opacity: 0.15;
}
[data-theme="dark"] .highlight-item {
  background: rgba(79,70,229,0.08);
}
[data-theme="dark"] .highlight-item:hover {
  background: rgba(79,70,229,0.15);
}
[data-theme="dark"] .chapter-item {
  background: rgba(30,41,59,0.6);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .chapter-item:hover {
  border-color: rgba(79,70,229,0.4);
  background: rgba(79,70,229,0.1);
}
[data-theme="dark"] .detail-toc .toc-nav {
  background: #1E293B;
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .toc-title {
  color: #94A3B8;
}
[data-theme="dark"] .toc-item {
  color: #CBD5E1;
}
[data-theme="dark"] .toc-item:hover {
  background: rgba(79,70,229,0.15);
  color: #818CF8;
}
[data-theme="dark"] .toc-item.active {
  background: rgba(79,70,229,0.2);
  color: #818CF8;
}
[data-theme="dark"] .toc-num {
  color: #64748B;
}
[data-theme="dark"] .share-btn {
  background: rgba(30,41,59,0.8);
  border-color: rgba(255,255,255,0.1);
  color: #CBD5E1;
}
[data-theme="dark"] .share-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
[data-theme="dark"] .quickStats {
  background: rgba(30,41,59,0.85);
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .breadcrumb {
  color: #64748B;
}
[data-theme="dark"] .breadcrumb a {
  color: #64748B;
}
[data-theme="dark"] .breadcrumb a:hover {
  color: #818CF8;
}
[data-theme="dark"] .loading-spinner {
  border-color: rgba(255,255,255,0.1);
  border-top-color: var(--primary);
}
[data-theme="dark"] .error-container {
  color: #F1F5F9;
}
[data-theme="dark"] .section-label {
  background: rgba(79,70,229,0.15);
  color: #818CF8;
}

/* ── 报告详情页按钮优化 ──────────────────────────────── */
/* Hero 区域的操作按钮 */
[data-theme="dark"] #heroActions .btn-ghost {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255,255,255,0.15);
  color: #E2E8F0;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
[data-theme="dark"] #heroActions .btn-ghost:hover {
  background: rgba(79,70,229,0.25);
  border-color: rgba(129,140,248,0.5);
  color: #F1F5F9;
}
[data-theme="dark"] #heroActions .btn-ghost i {
  color: #94A3B8;
}
[data-theme="dark"] #heroActions .btn-ghost:hover i {
  color: #818CF8;
}

/* ── Footer 暗色模式 ────────────────────────────────── */
[data-theme="dark"] .footer {
  background: #0F172A;
  border-top: 1px solid rgba(255,255,255,0.06);
}
[data-theme="dark"] .footer-logo {
  background: linear-gradient(135deg, #818CF8, #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .footer-links a {
  color: rgba(255,255,255,0.5);
}
[data-theme="dark"] .footer-links a:hover {
  color: #818CF8;
}

/* ── 设计 Token ────────────────────────────────────── */
:root {
  --primary:       #4F46E5;
  --primary-light: #818CF8;
  --secondary:     #7C3AED;
  --accent:        #06B6D4;
  --accent2:       #10B981;
  --danger:        #EF4444;
  --warn:          #F59E0B;

  --bg-base:       #F8FAFC;
  --bg-white:      #FFFFFF;
  --bg-subtle:     #F1F5F9;
  --bg-glass:      rgba(255,255,255,0.72);

  --text-title:    #1E293B;
  --text-body:     #475569;
  --text-muted:    #64748B;
  --text-inv:      #FFFFFF;

  --border:        rgba(148,163,184,0.25);
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 24px rgba(79,70,229,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:     0 16px 48px rgba(79,70,229,0.16), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-glow:   0 0 40px rgba(79,70,229,0.35);

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --radius-full:   9999px;

  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-base);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── 滚动条美化 ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── 排版 ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--secondary); }

/* ── 布局容器 ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }
@media (min-width: 1280px) { .container { padding: 0 3rem; } }

/* ── 导航栏 ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
/* 导航容器 - 内部flex布局 */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-md);
}
.navbar .logo {
  font-size: 1.375rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.navbar .logo span { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(79,70,229,0.1);
  color: var(--primary);
}
.nav-cta {
  padding: 0.45rem 1.125rem !important;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
  transition: all var(--transition) !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,70,229,0.45) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-title);
  border-radius: 2px;
  transition: all var(--transition);
}
/* 移动端导航切换按钮（与 .hamburger 功能相同） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-title);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 4px;
}
.nav-toggle:hover {
  background: rgba(79,70,229,0.1);
  border-color: var(--primary);
}
.nav-toggle i {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .hamburger, .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 0.75rem 1rem; }
}

/* ── 页面主体偏移（避免固定导航遮挡） ───────────────── */
.page-body { padding-top: 68px; }

/* ── Hero 区 ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #EEF2FF 0%, #F8FAFC 40%, #EDE9FE 100%);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(79,70,229,0.1);
  border: 1px solid rgba(79,70,229,0.25);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-title);
  margin-bottom: 1.25rem;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-body);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.hero-stat-item { text-align: left; }
.hero-stat-num {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── 按钮系统 ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 18px rgba(79,70,229,0.38);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,70,229,0.48);
  color: white;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: rgba(79,70,229,0.07);
  transform: translateY(-1px);
  color: var(--primary);
}
.btn-ghost {
  background: rgba(255,255,255,0.8);
  color: var(--text-title);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: var(--text-title);
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 2.25rem; font-size: 1rem; }

/* ── 报告卡片 ────────────────────────────────────────── */
.report-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.report-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,70,229,0.035) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.report-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(79,70,229,0.3); }
.report-card:hover::before { opacity: 1; }

.report-card-accent {
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transition: width var(--transition);
}
.report-card:hover .report-card-accent { width: 6px; }

.report-card-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.report-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.report-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}
.report-card-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.report-card-summary {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.report-card-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.report-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: rgba(79,70,229,0.08);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition-fast);
}
.tag:hover { background: rgba(79,70,229,0.15); }
.tag.tag-accent { background: rgba(6,182,212,0.1); color: #0891B2; }
.tag.tag-green { background: rgba(16,185,129,0.1); color: #059669; }
.tag.tag-yellow { background: rgba(245,158,11,0.1); color: #D97706; }
.tag.tag-purple { background: rgba(124,58,237,0.1); color: #7C3AED; }

/* ── Featured 卡片（首页置顶大卡） ─────────────────── */
.card-featured {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #1E1B4B 100%);
  color: white;
  border: none;
  padding: 2.25rem;
}
.card-featured::before { background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, transparent 60%); }
.card-featured .report-card-title { color: white; font-size: 1.125rem; }
.card-featured .report-card-subtitle { color: rgba(255,255,255,0.65); }
.card-featured .report-card-summary { color: rgba(255,255,255,0.8); }
.card-featured .report-card-meta { color: rgba(255,255,255,0.5); border-top-color: rgba(255,255,255,0.12); }
.card-featured .tag { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }
.card-featured .report-card-accent { background: linear-gradient(to bottom, var(--accent), var(--primary-light)); }

/* ── 分类筛选标签栏 ──────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-body);
  transition: all var(--transition-fast);
  user-select: none;
}
.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79,70,229,0.06);
}
.filter-chip.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}

/* ── 搜索框 ─────────────────────────────────────────── */
.search-wrap {
  position: relative;
  max-width: 480px;
  width: 100%;
}
.search-wrap .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1rem;
}
.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-white);
  font-size: 0.9375rem;
  color: var(--text-title);
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12), var(--shadow-sm);
}
.search-input::placeholder { color: var(--text-muted); }

/* ── 章节卡（详情页） ─────────────────────────────── */
.chapter-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-white);
  transition: all var(--transition);
}
.chapter-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.chapter-num {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── 亮点列表 ───────────────────────────────────────── */
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(79,70,229,0.04);
  border-left: 3px solid var(--primary);
  font-size: 0.9rem;
  color: var(--text-body);
  transition: background var(--transition-fast);
}
.highlight-item:hover { background: rgba(79,70,229,0.08); }
.highlight-item .hi-icon { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* ── 进度条 ─────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 2000;
  transition: width 0.1s linear;
  border-radius: 0 3px 3px 0;
}

/* ── Section 通用样式 ───────────────────────────────── */
.section {
  padding: 5rem 0;
}
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-header {
  margin-bottom: 3rem;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(79,70,229,0.08);
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--text-body);
  max-width: 600px;
  margin-top: 0.75rem;
  line-height: 1.8;
}

/* ── 卡片网格 ───────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .section-lg { padding: 5rem 0; }
}

/* ── 统计卡 ─────────────────────────────────────────── */
.stat-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.1;
}
.stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.375rem; }

/* ── 渐变分割线 ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  border: none;
}

/* ── 玻璃态面板 ─────────────────────────────────────── */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

/* ── 面包屑 ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.5; }

/* ── 侧边目录导航 ───────────────────────────────────── */
.toc-nav {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.toc-nav::-webkit-scrollbar { width: 4px; }
.toc-title { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.875rem; }
.toc-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0.125rem;
}
.toc-item:hover { background: rgba(79,70,229,0.06); color: var(--primary); }
.toc-item.active { background: rgba(79,70,229,0.1); color: var(--primary); font-weight: 600; }
.toc-item .toc-num { color: var(--text-muted); font-size: 0.75rem; flex-shrink: 0; padding-top: 2px; }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: #0F172A;
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 2rem;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.footer h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.social-link:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* ── 空状态 ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-title { font-size: 1.125rem; font-weight: 600; color: var(--text-title); margin-bottom: 0.5rem; }
.empty-desc { font-size: 0.9rem; color: var(--text-muted); }

/* ── 徽章 ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-featured { background: linear-gradient(135deg, #F59E0B, #EF4444); color: white; }
.badge-new { background: linear-gradient(135deg, var(--accent2), #0D9488); color: white; }

/* ── AOS 动画增强 ───────────────────────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ── 骨架屏 ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 关于页时间线 ──────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 1.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.375rem;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.375rem;
}
.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.375rem;
}
.timeline-desc { font-size: 0.875rem; color: var(--text-body); line-height: 1.7; }

/* ── 书签按钮 ───────────────────────────────────────── */
.bookmark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.bookmark-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79,70,229,0.08);
}

.bookmark-btn.bookmark-active {
  border-color: var(--primary);
  background: rgba(79,70,229,0.12);
  color: var(--primary);
}

.bookmark-btn.bookmark-active:hover {
  background: rgba(79,70,229,0.2);
}

.bookmark-btn.sm {
  width: 30px;
  height: 30px;
  font-size: 0.875rem;
  border-radius: 8px;
}

.bookmark-btn.lg {
  width: 44px;
  height: 44px;
  font-size: 1.125rem;
  border-radius: 12px;
}

/* ── 回到顶部按钮 ───────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 20px rgba(79,70,229,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

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

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

.back-to-top:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}

/* ── 通用工具类 ─────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-gradient-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.bg-gradient-hero { background: linear-gradient(160deg, #EEF2FF 0%, #F8FAFC 40%, #EDE9FE 100%); }
.rounded-card { border-radius: var(--radius-lg); }
.shadow-card { box-shadow: var(--shadow-md); }
.border-subtle { border: 1px solid var(--border); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── 动效工具 ───────────────────────────────────────── */
.hover-lift { transition: transform var(--transition), box-shadow var(--transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── 响应式调整 ─────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-stats { gap: 1.5rem; }
  .hero-title { font-size: 2rem; }
  .filter-bar { gap: 0.375rem; }
  .filter-chip { font-size: 0.8125rem; padding: 0.4rem 0.8rem; }
}
