/* =============================================================
   开放数据探索站 demoD - 统一样式表
   优化版 v2.0 | 新增法律页面 + 统一主菜单 + 搜索框嵌入导航
   数据精炼厂 | 数据清洗 · 数据合集 · 数据打标
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* === CSS 变量 === */
:root {
  /* 精炼厂蓝 */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;

  /* 辅助色 */
  --secondary: #10b981;
  --secondary-light: #34d399;
  --secondary-dark: #059669;
  --accent: #f59e0b;

  /* demoB 配色体系 */
  --blue-900: #0B2647;
  --blue-800: #0D2B4E;
  --blue-700: #123762;
  --blue-600: #1A4A7A;
  --blue-500: #1E5480;
  --blue-400: #2D6A9F;
  --blue-300: #4A8DC4;
  --blue-200: #7EB8E0;
  --blue-100: #C2DCF0;
  --blue-50:  #EDF4FB;

  --amber-600: #D4940A;
  --amber-500: #E8A838;
  --amber-400: #F0B860;
  --amber-300: #F5C978;
  --amber-100: #FEF3DC;

  --green-600: #3A9E6E;
  --green-500: #4CAF82;
  --green-400: #6BC49E;
  --green-100: #E8F7EF;

  --red-500: #E05A3A;
  --red-100: #FDECEA;

  --purple-500: #8B5CF6;
  --purple-100: #F3EEFF;

  /* 背景 */
  --bg:         #F5F8FC;
  --bg-white:   #FFFFFF;
  --bg-card:    #FFFFFF;
  --bg-subtle:  #F0F4FA;
  --bg-dark:    #0B2647;

  /* 文字 */
  --text-900:   #0B1F3A;
  --text-700:   #1A3050;
  --text-600:   #2A4060;
  --text-500:   #3A5070;
  --text-400:   #556B88;
  --text-300:   #7A90A8;
  --text-200:   #A0B5C8;
  --text-100:   #C8D8E8;

  /* demoA 变量 */
  --dark: #1e293b;
  --dark-light: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light: #f1f5f9;
  --lighter: #f8fafc;
  --white: #ffffff;

  /* 边框 */
  --border:     #D8E4F0;
  --border-soft:#EAF0F8;
  --border-strong:#B8CCDE;

  /* 阴影 */
  --shadow-xs:  0 1px 3px rgba(11,38,71,0.06);
  --shadow-sm:  0 2px 8px rgba(11,38,71,0.08);
  --shadow-md:  0 4px 20px rgba(11,38,71,0.10);
  --shadow-lg:  0 8px 40px rgba(11,38,71,0.14);
  --shadow-xl:  0 16px 64px rgba(11,38,71,0.18);

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

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition:      0.25s ease;
  --transition-slow:  0.4s ease;

  /* 布局 */
  --max-w:  1200px;
  --nav-h:  68px;
}

/* === 基础重置 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-600);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* 滚动条 */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--blue-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-400); }

/* 选中文本 */
::selection { background: var(--amber-300); color: var(--blue-900); }

/* === 容器 === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ================================================================
   导航栏 — demoD 统一版
   Logo | 首页|数据集|探索站|帮助|关于 | 搜索框 | 用户区
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(245,248,252,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216,228,240,0.7);
  transition: background var(--transition), border-color var(--transition);
}
.navbar.scrolled {
  background: rgba(11,38,71,0.97);
  border-bottom-color: rgba(255,255,255,0.1);
}
.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 768px) { .navbar-inner { padding: 0 40px; } }
@media (min-width: 1024px) { .navbar-inner { padding: 0 48px; } }

/* Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: white;
  font-weight: 900;
  letter-spacing: -1px;
  transition: transform var(--transition);
}
.navbar-brand-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: contain;
  transition: transform var(--transition);
}
.navbar-brand-logo:hover { transform: scale(1.08); }
.admin-brand-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: contain;
}
.navbar-brand:hover .navbar-brand-mark { transform: rotate(-3deg) scale(1.06); }
.navbar-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.navbar-brand-name { font-size: 16px; font-weight: 700; color: var(--blue-900); }
.navbar.scrolled .navbar-brand-name { color: white; }
.navbar-brand-sub { font-size: 10px; color: var(--text-300); letter-spacing: 1.5px; }
.navbar.scrolled .navbar-brand-sub { color: rgba(255,255,255,0.4); }

/* 导航链接 — demoD 统一5项：首页|数据集|探索站|帮助|关于 */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1px;
}
.nav-link {
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-400);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.nav-link:hover { background: var(--blue-100); color: var(--blue-700); }
.navbar.scrolled .nav-link { color: rgba(255,255,255,0.65); }
.navbar.scrolled .nav-link:hover { background: rgba(255,255,255,0.1); color: white; }
.nav-link.active { color: var(--blue-600); font-weight: 600; }
.navbar.scrolled .nav-link.active { color: var(--amber-400); }

/* 导航搜索框 — 嵌入导航栏 */
.navbar-search {
  flex: 1;
  max-width: 240px;
  display: none;
  position: relative;
}
@media (min-width: 1024px) { .navbar-search { display: block; } }
.navbar-search-input {
  width: 100%;
  height: 34px;
  padding: 0 14px 0 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  font-size: 13px;
  color: var(--text-600);
  transition: all var(--transition-fast);
  outline: none;
}
.navbar-search-input:focus {
  border-color: var(--blue-400);
  background: white;
  box-shadow: 0 0 0 3px rgba(45,106,159,0.1);
}
.navbar-search-input::placeholder { color: var(--text-300); }
.navbar-search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-300);
  pointer-events: none;
}
.navbar-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 340px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  border: 1px solid var(--border-soft);
}
.navbar-search-results.active { display: block; }

/* 移动端菜单 */
.navbar-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.navbar-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blue-700);
  border-radius: 1px;
  transition: all var(--transition);
}
.navbar.scrolled .navbar-toggle span { background: white; }

/* 右上角用户区 */
.navbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-user-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 4px;
  border-radius: 24px;
  background: rgba(0,0,0,0.04);
  text-decoration: none;
  color: var(--text-800);
  transition: all 0.2s;
  border: 1px solid rgba(0,0,0,0.08);
}
.nav-user-link:hover { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.12); }
.navbar.scrolled .nav-user-link { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); color: white; }
.navbar.scrolled .nav-user-link:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.25); }
.nav-user-avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.1); object-fit: cover; }
.nav-user-name { font-size: 13px; font-weight: 600; color: var(--text-800); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar.scrolled .nav-user-name { color: white; }
.navbar.scrolled .nav-user-avatar { border-color: rgba(255,255,255,0.4); }
.navbar:not(.scrolled) .nav-user-avatar { border-color: rgba(0,0,0,0.1); }
.nav-user-pts {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  white-space: nowrap;
}
.nav-user-pts.low { background: linear-gradient(135deg, #ef4444, #dc2626); }
.btn-login-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #07c160, #06ae56);
  border: none;
  color: white;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-login-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(7,193,96,0.35); color: white; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(11,38,71,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  padding: 32px 24px;
  gap: 8px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.1); color: white; }
.mobile-menu .nav-cta-mobile {
  margin-top: 16px;
  background: var(--amber-500);
  color: white !important;
  text-align: center;
  font-weight: 600;
  border-radius: var(--radius-md) !important;
}
.mobile-menu .mobile-user-info {
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu .mobile-user-name { font-size: 14px; font-weight: 700; color: white; }
.mobile-menu .mobile-user-pts { font-size: 12px; color: var(--amber-400); }
.mobile-menu-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 8px 0; }
@media (max-width: 767px) { .navbar-nav { display: none; } .navbar-toggle { display: flex; } .navbar-search { display: none !important; } }
@media (min-width: 768px) { .navbar-toggle { display: none; } .mobile-menu { display: none !important; } }
@media (min-width: 1024px) { .navbar-toggle { display: none; } }

/* ================================================================
   页面主内容
   ================================================================ */
.page-main { padding-top: var(--nav-h); min-height: 100vh; }

/* ================================================================
   英雄区
   ================================================================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-blue {
  background: linear-gradient(150deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-600) 100%);
  color: white;
}
.hero-blue::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black, transparent);
}
.hero-white { background: white; }
.hero-sm { min-height: 420px; }
.hero-md { min-height: 520px; }
.hero-lg { min-height: 640px; }
.hero-xl { min-height: 720px; }

.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber-500);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.7; }
}
.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: inherit;
}
.hero-title .accent { color: var(--amber-400); }
.hero-title .white { color: white; }
.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero-desc.dark { color: var(--text-400); }

/* 搜索框 */
.search-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  gap: 4px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.25);
  max-width: 680px;
}
.search-box .search-select {
  border: none; outline: none;
  padding: 14px 14px;
  font-size: 14px;
  color: var(--text-600);
  background: transparent;
  cursor: pointer;
  min-width: 100px;
}
.search-box .search-input {
  flex: 1;
  border: none; outline: none;
  padding: 14px 12px;
  font-size: 15px;
  color: var(--text-700);
  background: transparent;
}
.search-box .search-btn {
  background: var(--amber-500);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-box .search-btn:hover { background: var(--amber-400); transform: translateY(-1px); }

/* 统计数字 */
.hero-stats { display: flex; gap: 0; margin-top: 48px; flex-wrap: wrap; gap: 16px; }
.hero-stat { text-align: left; padding-right: 32px; border-right: 1px solid rgba(255,255,255,0.15); }
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-size: 34px;
  font-weight: 900;
  color: var(--amber-400);
  font-family: 'Noto Serif SC', serif;
  line-height: 1;
}
.hero-stat-num span { font-size: 18px; font-weight: 700; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; }

/* ================================================================
   按钮
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber-500);
  color: white;
  box-shadow: 0 2px 12px rgba(232,168,56,0.35);
}
.btn-primary:hover { background: var(--amber-400); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(232,168,56,0.45); color: white; }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1.5px solid rgba(255,255,255,0.25); }
.btn-secondary:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); color: white; }
.btn-outline { background: transparent; color: var(--blue-600); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue-400); background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--text-400); border: 1.5px solid transparent; }
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text-600); }
.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.btn-blue { background: var(--blue-700); color: white; }
.btn-blue:hover { background: var(--blue-600); transform: translateY(-1px); color: white; }

/* ================================================================
   卡片
   ================================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-100); transform: translateY(-3px); }
.card-body { padding: 24px; }
.card-body-sm { padding: 16px; }

/* ================================================================
   章节
   ================================================================ */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 112px 0; }
.section-white { background: white; }
.section-blue { background: var(--blue-900); color: white; }
.section-subtle { background: var(--bg-subtle); }
.section-dark { background: var(--bg-white); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-600);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-eyebrow::before { content: ''; display: block; width: 20px; height: 2px; background: var(--amber-500); border-radius: 1px; }
.section-eyebrow:has(+ .section-title:empty)::before { display: none; }
.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-title.white { color: white; }
.section-desc { font-size: 16px; color: var(--text-400); max-width: 580px; line-height: 1.75; }
.section-desc.white { color: rgba(255,255,255,0.65); }
.section-header { margin-bottom: 48px; }
.section-header-center { text-align: center; }
.section-header-center .section-eyebrow { justify-content: center; }
.section-header-center .section-eyebrow::before { display: none; }
.section-header-center .section-desc { margin: 0 auto; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ================================================================
   数据集卡片
   ================================================================ */
.dataset-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dataset-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-200); transform: translateY(-4px); }
.dataset-card-head { padding: 20px 20px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dataset-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.dataset-platform-tag { font-size: 11px; color: var(--text-300); background: var(--bg-subtle); padding: 4px 10px; border-radius: var(--radius-full); border: 1px solid var(--border-soft); white-space: nowrap; }
.dataset-card-body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.dataset-title { font-size: 15px; font-weight: 600; color: var(--text-700); line-height: 1.4; }
.dataset-desc { font-size: 13px; color: var(--text-400); line-height: 1.65; flex: 1; }
.dataset-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.dataset-tag { font-size: 11px; padding: 3px 9px; border-radius: var(--radius-full); font-weight: 500; white-space: nowrap; }
.tag-blue { background: var(--blue-50); color: var(--blue-500); }
.tag-green { background: var(--green-100); color: var(--green-600); }
.tag-amber { background: var(--amber-100); color: var(--amber-600); }
.tag-purple { background: var(--purple-100); color: var(--purple-500); }
.tag-red { background: var(--red-100); color: var(--red-500); }

.dataset-card-foot { padding: 14px 20px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-300); gap: 12px; }
.dataset-meta { display: flex; align-items: center; gap: 12px; }
.dataset-meta-item { display: flex; align-items: center; gap: 4px; }

/* 质量条 */
.quality-bar-wrap { display: flex; align-items: center; gap: 8px; }
.quality-bar { width: 60px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.quality-bar-fill { height: 100%; border-radius: 2px; transition: width 1.2s ease; }
.qb-excellent { background: var(--green-500); }
.qb-good { background: var(--amber-500); }
.qb-fair { background: var(--red-500); }

/* 质量徽章 */
.quality-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.badge-excellent { background: var(--green-100); color: var(--green-600); border: 1px solid var(--green-400); }
.badge-good { background: var(--amber-100); color: var(--amber-600); border: 1px solid var(--amber-400); }
.badge-fair { background: var(--red-100); color: var(--red-500); border: 1px solid rgba(224,90,58,0.3); }
.badge-new { background: var(--blue-50); color: var(--blue-500); border: 1px solid var(--blue-200); }
.badge-icon { font-size: 13px; }

/* ================================================================
   网格布局
   ================================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ================================================================
   表单
   ================================================================ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-600); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-size: 14px; font-family: inherit;
  background: white; color: var(--text-700);
  transition: border-color var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(45,106,159,0.12);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ================================================================
   数据预览表格
   ================================================================ */
.preview-table-wrap { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.preview-table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--blue-900); color: white; gap: 12px; flex-wrap: wrap;
}
.preview-table-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.preview-table-nav { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.preview-table-nav span { opacity: 0.6; }
.preview-table-nav button {
  width: 30px; height: 30px; border-radius: var(--radius-xs);
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1);
  color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.preview-table-nav button:hover { background: rgba(255,255,255,0.2); }
.preview-table-scroll { overflow-x: auto; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 600px; }
.preview-table th {
  text-align: left; padding: 12px 16px; background: var(--blue-800);
  color: rgba(255,255,255,0.85); font-weight: 600; font-size: 12px;
  white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.preview-table td {
  padding: 11px 16px; border-bottom: 1px solid var(--border-soft);
  color: var(--text-500); white-space: nowrap; font-size: 13px;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis;
}
.preview-table tr:last-child td { border-bottom: none; }
.preview-table tr:hover td { background: var(--blue-50); }
.preview-table tr.current td { background: var(--amber-100); }
.preview-table-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: white; border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--text-300); flex-wrap: wrap; gap: 8px;
}

/* ================================================================
   特性卡片
   ================================================================ */
.feature-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft); padding: 28px;
  transition: all var(--transition); display: flex; flex-direction: column; gap: 16px;
}
.feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-200); transform: translateY(-3px); }
.feature-icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.feature-title { font-size: 16px; font-weight: 700; color: var(--blue-900); }
.feature-desc { font-size: 14px; color: var(--text-400); line-height: 1.7; }

/* ================================================================
   流程步骤
   ================================================================ */
.step-card {
  position: relative; background: var(--bg);
  border-radius: var(--radius-lg); padding: 32px 24px;
  border: 1px solid var(--border-soft);
  text-align: center; transition: all var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-200); transform: translateY(-3px); }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  color: white; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-family: 'Noto Serif SC', serif;
}
.step-icon { font-size: 38px; margin-bottom: 14px; }
.step-title { font-size: 16px; font-weight: 700; color: var(--blue-900); margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-400); line-height: 1.65; }
.step-arrow { position: absolute; right: -24px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--amber-400); z-index: 2; display: none; }
@media (min-width: 768px) {
  .steps-row { display: flex; gap: 0; }
  .step-card { flex: 1; border-right: none; }
  .step-card:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .step-card:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
  .step-arrow { display: block; }
}

/* ================================================================
   侧边栏
   ================================================================ */
.layout-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
@media (max-width: 768px) { .layout-sidebar { grid-template-columns: 1fr; } }
.sidebar-nav {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft); overflow: hidden;
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.sidebar-nav-title {
  padding: 16px 20px; font-size: 12px; font-weight: 700;
  color: var(--text-300); text-transform: uppercase; letter-spacing: 1.5px;
  border-bottom: 1px solid var(--border-soft); background: var(--bg-subtle);
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; font-size: 14px; color: var(--text-400);
  border-bottom: 1px solid var(--border-soft);
  transition: all var(--transition-fast); text-decoration: none;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { background: var(--blue-50); color: var(--blue-600); }
.sidebar-link.active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; border-left: 3px solid var(--blue-500); }
.sidebar-link-icon { font-size: 16px; flex-shrink: 0; }

/* ================================================================
   Toast
   ================================================================ */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: var(--blue-900); color: white; padding: 14px 22px;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-xl); transform: translateY(100px); opacity: 0;
  transition: all 0.3s ease; max-width: 360px;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--green-600); }
.toast.error { background: var(--red-500); }
.toast.warning { background: var(--amber-600); }

/* ================================================================
   Modal
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(11,38,71,0.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: white; border-radius: var(--radius-xl);
  max-width: 760px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 36px;
  position: relative; animation: modal-in 0.25s ease;
}
@keyframes modal-in { from { opacity: 0; transform: scale(0.95) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: var(--radius-sm); background: var(--bg-subtle); border: none;
  cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast); color: var(--text-400);
}
.modal-close:hover { background: var(--border); }
.modal-title { font-size: 20px; font-weight: 700; color: var(--blue-900); margin-bottom: 20px; padding-right: 40px; }
.modal-divider { height: 1px; background: var(--border-soft); margin: 20px 0; }

/* ================================================================
   分页
   ================================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 32px 0; }
.pagination-btn {
  min-width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: white; color: var(--text-400);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all var(--transition-fast); display: flex; align-items: center; justify-content: center; padding: 0 12px;
}
.pagination-btn:hover { border-color: var(--blue-400); color: var(--blue-600); }
.pagination-btn.active { background: var(--blue-700); color: white; border-color: var(--blue-700); }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ================================================================
   标签筛选
   ================================================================ */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-chip {
  padding: 7px 16px; border-radius: var(--radius-full); font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border); background: white; color: var(--text-400);
  cursor: pointer; transition: all var(--transition-fast);
}
.filter-chip:hover { border-color: var(--blue-400); color: var(--blue-600); }
.filter-chip.active { background: var(--blue-700); color: white; border-color: var(--blue-700); }

/* ================================================================
   面包屑
   ================================================================ */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-300); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-300); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--blue-500); }
.breadcrumb-sep { color: var(--text-200); }
.breadcrumb-current { color: var(--text-500); font-weight: 500; }

/* ================================================================
   法律/合规框
   ================================================================ */
.legal-box {
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-left: 4px solid var(--blue-500); border-radius: var(--radius-md); padding: 20px 24px;
}
.legal-box-title { font-size: 14px; font-weight: 700; color: var(--blue-700); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.legal-box p { font-size: 13px; color: var(--blue-600); line-height: 1.7; }

/* ================================================================
   Footer
   ================================================================ */
.footer { background: #07152C; padding: 64px 0 32px; color: rgba(255,255,255,0.45); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.07); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-name { font-size: 20px; font-weight: 700; color: white; margin-bottom: 12px; }
.footer-brand-desc { line-height: 1.75; margin-bottom: 20px; }
.footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--amber-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ================================================================
   动画
   ================================================================ */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.5s ease; }
.fade-in.visible { opacity: 1; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ================================================================
   辅助
   ================================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.w-full { width: 100%; }

/* ================================================================
   Ticker
   ================================================================ */
.ticker { background: var(--blue-900); padding: 12px 0; overflow: hidden; }
.ticker-inner { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: ticker-scroll 40s linear infinite; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.6); }
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--amber-500); flex-shrink: 0; }

/* ================================================================
   空状态
   ================================================================ */
.empty-state { text-align: center; padding: 64px 24px; color: var(--text-300); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--text-400); margin-bottom: 8px; }
.empty-state-desc { font-size: 14px; }

/* ================================================================
   搜索下拉
   ================================================================ */
.search-wrap { position: relative; }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  max-height: 380px; overflow-y: auto; z-index: 100; display: none;
}
.search-dropdown.active { display: block; }
.search-result-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; border-bottom: 1px solid var(--border-soft); transition: background var(--transition-fast); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-subtle); }
.search-result-info { flex: 1; min-width: 0; }
.search-result-title { font-size: 14px; font-weight: 600; color: var(--text-700); }
.search-result-sub { font-size: 12px; color: var(--text-300); margin-top: 2px; }

/* ================================================================
   平台滚动
   ================================================================ */
.platform-scroll-wrap {
  overflow: hidden; padding: 20px 0;
  background: linear-gradient(to right, var(--blue-900), transparent 10%, transparent 90%, var(--blue-900));
}
.platform-scroll-track { display: flex; gap: 32px; width: max-content; animation: platform-scroll 30s linear infinite; }
@keyframes platform-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.platform-item { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.45; transition: opacity var(--transition-fast); cursor: pointer; white-space: nowrap; }
.platform-item:hover { opacity: 0.9; }
.platform-icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 24px; }

/* ================================================================
   标签页
   ================================================================ */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border-soft); margin-bottom: 28px; overflow-x: auto; }
.tab { padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--text-400); border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; transition: all var(--transition-fast); }
.tab:hover { color: var(--blue-600); }
.tab.active { color: var(--blue-700); border-bottom-color: var(--blue-600); font-weight: 600; }

/* ================================================================
   用户登录
   ================================================================ */
.nav-user {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border-radius: 24px;
  background: rgba(255,255,255,0.1); transition: all 0.2s;
}
.nav-user:hover { background: rgba(255,255,255,0.15); }
.points-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white; font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.points-badge.low { background: linear-gradient(135deg, #ef4444, #dc2626); }
.btn-login {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #07c160, #06ae56);
  border: none; color: white; padding: 8px 16px; border-radius: 8px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(7,193,96,0.3); }

/* ================================================================
   专题页
   ================================================================ */
.topic-card-v6 {
  background: var(--bg-white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 2rem;
  transition: var(--transition); border: 1px solid var(--border-soft);
}
.topic-card-v6:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.topic-banner-v6 {
  height: 180px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 4rem; position: relative;
}
.topic-banner-v6::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%); }
.topic-banner-content { position: relative; z-index: 1; text-align: center; }
.topic-banner-v6.traffic { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.topic-banner-v6.elderly { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.topic-banner-v6.health { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.topic-banner-v6.business { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.topic-content-v6 { padding: 2rem; }
.topic-header-v6 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.topic-stats-v6 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1rem; background: var(--bg-subtle); border-radius: var(--radius-md); margin-bottom: 1.5rem; }
.topic-stat-v6 { text-align: center; }
.topic-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--blue-600); }
.topic-stat-label { font-size: 0.85rem; color: var(--text-400); }
.refined-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: white; padding: 0.5rem 1rem; border-radius: 25px; font-size: 0.85rem; font-weight: 600; }

/* ================================================================
   FAQ
   ================================================================ */
.faq-v6 { background: var(--bg-white); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); }
.faq-question-v6 { font-size: 1.05rem; font-weight: 600; color: var(--text-700); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question-v6::after { content: '+'; font-size: 1.5rem; color: var(--blue-600); }
.faq-v6.active .faq-question-v6::after { content: '−'; }
.faq-answer-v6 { display: none; color: var(--text-500); line-height: 1.8; padding-top: 1rem; }
.faq-v6.active .faq-answer-v6 { display: block; }

/* ================================================================
   打印
   ================================================================ */
@media print { .navbar, .footer, .no-print { display: none !important; } .page-main { padding-top: 0 !important; } .section { padding: 40px 0; } }

/* ================================================================
   响应式额外
   ================================================================ */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero-stats { flex-direction: column; }
  .hero-stat { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 16px; margin-bottom: 16px; }
  .hero-stat:last-child { border-bottom: none; margin-bottom: 0; }
  .search-box { flex-direction: column; border-radius: var(--radius-md); }
  .search-box .search-select { min-width: unset; border-bottom: 1px solid var(--border); }
}
