/* ==========================================================================
   金数基金 jimshz.com — 全站统一设计系统
   Warm Amber · Apple HIG  ·  v1.0 (2026-10-09)

   加载顺序：fonts.css → style.css → 页面内联样式 → theme.css（最后加载，优先级最高）
   职责：只做视觉统一（配色 / 字阶 / 圆角 / 阴影 / 间距 / 动效），不改动任何文案与 DOM 结构。
   ========================================================================== */

/* ============================ 1. 设计令牌 ============================ */
:root {
  color-scheme: light;

  /* 背景层级 —— 暖米白体系 */
  --bg:          #FBF6EE;
  --bg-2:        #FFF9F0;
  --panel:       #FFFFFF;
  --panel-2:     #FFF6E9;
  --panel-3:     #FDF3E3;
  --fill:        rgba(120, 80, 30, .10);
  --fill-strong: rgba(120, 80, 30, .18);
  --row-hover:   #FFF7EA;
  --seg-active:  #FFFFFF;
  --thead:       #FFF6E9;
  --glass:       rgba(255, 251, 240, .80);
  --glass-line:  rgba(214, 170, 90, .34);

  /* 分隔线 */
  --line:        rgba(120, 80, 30, .12);
  --line-strong: rgba(120, 80, 30, .22);

  /* 文字三档（用透明度表达层级） */
  --txt:         #2B1F12;
  --txt-2:       rgba(69, 42, 3, .66);
  --txt-3:       rgba(69, 42, 3, .38);
  --txt-inv:     #FFF8EC;

  /* 品牌琥珀金 */
  --accent:        #F59E0B;   /* 填充/装饰 */
  --accent-hover:  #D97706;
  --accent-strong: #B45309;   /* 文字/实心底（白底对比度 ≈ 5.0:1） */
  --accent-tint:   rgba(245, 158, 11, .14);
  --accent-tint-2: rgba(180, 83, 9, .10);
  --gold:          #D9A441;
  --gold-light:    #F2D08A;
  --gold-deep:     #8A5A16;

  /* 语义色 —— 中国金融口径：涨红跌绿 */
  --up:        #D93025;  --up-tint:   rgba(217, 48, 37, .10);
  --down:      #17A34A;  --down-tint: rgba(23, 163, 74, .10);
  --warn:      #B45309;  --warn-tint: rgba(180, 83, 9, .10);
  --purple:    #8B5E83;  --purple-tint: rgba(139, 94, 131, .12);
  --teal:      #0E7C6B;  --teal-tint:  rgba(14, 124, 107, .10);
  --blue:      #2F6BA8;  --blue-tint:  rgba(47, 107, 168, .10);

  /* 圆角 */
  --r-xs: 8px;  --r-sm: 10px; --r-md: 12px;
  --r-lg: 16px; --r-xl: 20px; --r-2xl: 24px; --r-pill: 980px;

  /* 阴影 —— 暖调多层柔和 */
  --sh-1: 0 1px 2px rgba(90, 50, 10, .04), 0 4px 14px rgba(90, 50, 10, .05);
  --sh-2: 0 4px 12px rgba(90, 50, 10, .06), 0 16px 38px rgba(90, 50, 10, .09);
  --sh-3: 0 18px 40px rgba(90, 50, 10, .14), 0 40px 90px rgba(90, 50, 10, .18);

  /* 动效 —— 阻尼曲线 */
  --ease:     cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur:      .24s;

  /* 字体 —— SF 优先，中文回退苹方/思源黑 */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
          "Microsoft YaHei", sans-serif;

  /* 节奏 */
  --gap:      20px;
  --sec-pad:  104px;
  --nav-h:    64px;

  /* --------- 兼容旧页面变量名：统一映射到暖色 --------- */
  --white:      #FFFFFF;
  --primary:        #8A5A16;   /* 原深蓝 #1a365d → 暖棕金 */
  --primary-light:  #B4761F;
  --primary-dark:   #2A1A0E;   /* 原近黑 #0d1b2a → 暖深棕 */
  --secondary:      #D9A441;   /* 金 */
  --secondary-light:#F2D08A;
  --text-dark:      #2B1F12;
  --text-gray:      #6B5844;
  --text-light:     #94826C;
  --text-muted:     #8A7660;
  --bg-light:       #FBF6EE;
  --bg-warm:        #FFF8EC;
  --border:         rgba(120, 80, 30, .14);
  --amber:          #F59E0B;
  --amber-light:    #FCD34D;
  --amber-dark:     #B45309;
  --amber-soft:     #FEF3C7;
  --amberbg:        rgba(245, 158, 11, .12);
  --amberbd:        rgba(245, 158, 11, .28);
  --cream:          #FFFBEB;
  --brown:          #3F2A12;
  --brown-light:    #8A5A16;
  --gray-text:      #3A3027;
  --gray-light:     #8A7660;
  --gray-soft:      #F5EFE3;
  --footer-dark:    #2A1A0E;
  --footer-gold:    #F3D9A4;
  --footer-gray:    #C9B79C;
  --radius:         var(--r-xl);
  --radius-lg:      var(--r-2xl);
  --shadow-sm:      var(--sh-1);
  --shadow-md:      var(--sh-2);
  --shadow-soft:    var(--sh-1);
  --shadow-medium:  var(--sh-2);
  --font-title:     var(--font);
  --accent-light:   #FCD34D;
  --accent-dark:    #B45309;
  --success:        #17A34A;
  --warning:        #F59E0B;
  --danger:         #D93025;
  --bull:           #D93025;
  --bear:           #17A34A;
  --neutral:        #8A7660;
  --red:            #D93025;
  --green:          #17A34A;
  --redbg:          rgba(217, 48, 37, .10);
  --greenbg:        rgba(23, 163, 74, .10);
  --bluebg:         rgba(47, 107, 168, .10);
  --redbd:          rgba(217, 48, 37, .26);
  --greenbd:        rgba(23, 163, 74, .26);
  --bluebd:         rgba(47, 107, 168, .26);
  --chip:           #FFF6E9;
  --muted:          #8A7660;
  --ink:            #2B1F12;
  --ai-accent:      #B45309;
  --purple-light:   #A9759F;

  /* Apple 旧变量名同步暖色化 */
  --apple-bg:              #FBF6EE;
  --apple-white:           #FFFFFF;
  --apple-text:            #2B1F12;
  --apple-text-secondary:  #6B5844;
  --apple-blue:            #B45309;
  --apple-blue-hover:      #D97706;
  --apple-gray-light:      rgba(120, 80, 30, .14);
  --apple-gray-mid:        #FBF6EE;
  --apple-radius:          var(--r-xl);
  --apple-radius-lg:       var(--r-2xl);
  --apple-shadow:          var(--sh-1);
  --apple-shadow-hover:    var(--sh-2);
  --nav-bg:                rgba(255, 251, 240, .80);
}

/* ============================ 2. 基础与排版 ============================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--txt);
  line-height: 1.28;
  letter-spacing: -.4px;
  font-weight: 600;
}

p { color: var(--txt-2); }

a { color: var(--accent-strong); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-hover); }

strong, b { color: var(--txt); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

img { max-width: 100%; }

::selection { background: var(--accent-tint); color: var(--txt); }

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* 细滚动条 */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb {
  background: rgba(120, 80, 30, .22);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 980px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(120, 80, 30, .34); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================ 3. 布局容器 ============================ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.section,
.content-section {
  padding: var(--sec-pad) 0;
}

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

/* 区块标题 */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-tint);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.section-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.8px;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--txt-2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================ 4. 导航栏 ============================ */
.header-top {
  background: var(--primary-dark);
  color: var(--txt-inv);
  font-size: 13px;
  padding: 8px 0;
}
.header-top .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.header-contact span { opacity: .9; }
.risk-notice-text { color: var(--gold-light); font-weight: 500; }

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--glass-line);
}

nav {
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  min-height: var(--nav-h);
  gap: 20px;
}
/* 无 .nav-wrap 的旧页面（nav 自带粘性） */
body > nav,
body > header > nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-line);
}
.nav-wrap nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--txt);
  flex: none;
}
.logo-img {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  object-fit: cover;
  box-shadow: var(--sh-1);
  background: #fff;
}
.logo-text-group { display: flex; flex-direction: column; }
.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--txt);
  line-height: 1.2;
  letter-spacing: -.2px;
}
.logo-sub {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--txt-3);
  letter-spacing: .2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--txt-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--txt); }
.nav-links a.active,
.nav-links .active { color: var(--accent-strong); font-weight: 600; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.lang-switcher a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--txt-3);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease);
}
.lang-switcher a:hover { color: var(--txt); background: var(--fill); }
.lang-switcher a.active {
  color: var(--accent-strong);
  font-weight: 600;
  background: var(--accent-tint);
}
.lang-divider { color: var(--txt-3); font-size: 11px; }

/* ============================ 5. 页头 / 英雄区 ============================ */
.hero,
.page-header,
.system-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 104px 0 88px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(245, 158, 11, .16), transparent 70%),
    linear-gradient(180deg, #FFFCF4 0%, #FFF6E6 42%, #FBEBD2 100%);
}
.hero { padding: 128px 0 104px; }
.hero::before,
.page-header::before {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .14) 0%, transparent 70%);
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.hero h1,
.page-header h1,
.system-hero h1 {
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1.12;
  color: var(--txt);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.page-header h1 { font-size: 44px; letter-spacing: -1px; }
.hero h1 span { color: var(--accent-strong); }
.hero p,
.page-header .subtitle,
.system-hero p {
  font-size: 18px;
  color: var(--txt-2);
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, .16);
  border: 1px solid rgba(245, 158, 11, .30);
  color: var(--accent-strong);
  padding: 8px 20px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .3px;
  margin-bottom: 26px;
}
.hero-buttons { display: inline-flex; gap: 12px; margin-bottom: 56px; flex-wrap: wrap; justify-content: center; }
.hero-stats {
  display: flex;
  gap: 56px;
  justify-content: center;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat-item h3 { font-size: 30px; font-weight: 700; color: var(--txt); letter-spacing: -.6px; }
.stat-item p  { font-size: 13px; color: var(--txt-3); margin-top: 4px; }

/* ============================ 6. 卡片族 ============================ */
.card,
.s-card,
.service-card,
.value-card,
.module-card,
.news-item,
.research-card,
.scenario-card,
.quick-stat-card,
.kpi,
.chart-box,
.feature-item,
.ai-lab-card,
.rating-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover,
.s-card:hover,
.service-card:hover,
.value-card:hover,
.module-card:hover,
.news-item:hover,
.research-card:hover,
.scenario-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}

.card { padding: 34px; }
.s-card { border-top: 3px solid var(--gold); }
.s-card:nth-child(1) { border-top-color: #C08A3E; }
.s-card:nth-child(2) { border-top-color: #D97706; }
.s-card:nth-child(3) { border-top-color: #4E8C74; }
.s-card:nth-child(4) { border-top-color: #8A5A16; }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  box-shadow: var(--sh-1);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.icon-purple { background: linear-gradient(135deg, #C79AC0, #8B5E83); }
.icon-amber  { background: linear-gradient(135deg, #FCD34D, #D97706); }
.icon-teal   { background: linear-gradient(135deg, #9CCBB4, #2F7A63); }
.icon-blue   { background: linear-gradient(135deg, #F2D08A, #B4761F); }

.card-title { font-size: 18px; font-weight: 600; color: var(--txt); margin-bottom: 8px; letter-spacing: -.2px; }
.card-desc  { font-size: 14.5px; color: var(--txt-2); line-height: 1.75; }

.service-card { text-align: center; padding: 38px 28px; }
.service-card .card-icon { width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 18px; font-size: 30px; }
.value-card   { text-align: center; padding: 32px 22px; }
.value-card .card-icon { width: 56px; height: 56px; margin: 0 auto 14px; font-size: 26px; }

.feature-item {
  font-size: 14.5px;
  color: var(--txt);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

/* 新闻卡片 */
.news-item { padding: 32px; }
.news-item.featured { border-left: 4px solid var(--accent); }
.news-title { font-size: 21px; font-weight: 600; color: var(--txt); line-height: 1.5; letter-spacing: -.3px; margin-bottom: 12px; }
.news-meta  { color: var(--txt-3); font-size: 13.5px; }
.news-summary { color: var(--txt-2); line-height: 1.85; }
.news-badge {
  background: var(--accent-tint);
  color: var(--accent-strong);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
}
.news-attachment {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px 20px;
  color: var(--txt);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.news-attachment:hover {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
  box-shadow: var(--sh-1);
}

/* 研究卡片 */
.research-card {
  padding: 30px 32px;
  border-left: 4px solid var(--primary);
  border-radius: var(--r-xl);
}
.research-card.featured { border-left-color: var(--gold); }
.research-card h2 { font-size: 21px; font-weight: 600; color: var(--txt); line-height: 1.5; letter-spacing: -.3px; margin-bottom: 12px; }
.research-card h2 a { color: inherit; }
.research-card h2 a:hover { color: var(--accent-strong); }
.research-card .meta { color: var(--txt-3); font-size: 13px; gap: 18px; }
.research-card .summary { color: var(--txt-2); line-height: 1.85; font-size: 14.5px; }
.research-card .date { font-size: 13px; color: var(--txt-3); }
.read-link {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.read-link:hover { gap: 10px; color: var(--accent-hover); }
.research-grid { gap: var(--gap); }
.empty-state { color: var(--txt-3); padding: 80px 0; text-align: center; }

/* 数据块 */
.quick-stats { gap: 14px; }
.quick-stat-card { padding: 22px 20px; text-align: left; }
.quick-stat-card .value { font-size: 24px; font-weight: 700; color: var(--txt); letter-spacing: -.5px; }
.quick-stat-card .label { font-size: 12.5px; color: var(--txt-3); }
.quick-stat-card .sub { font-size: 12.5px; color: var(--txt-3); }
.quick-stat-card .sub.neg { color: var(--down); }

.kpi { padding: 20px 22px; }
.chart-box { padding: 24px; }
.chart-title { font-size: 16px; font-weight: 600; color: var(--txt); }
.chart-sub, .chart-block { color: var(--txt-3); font-size: 13px; }

.scenario-grid { gap: 16px; }
.scenario-card { padding: 22px; }
.scenario-card.bull { border-top: 3px solid var(--up); }
.scenario-card.bear { border-top: 3px solid var(--down); }
.scenario-card.base { border-top: 3px solid var(--gold); }
.scenario-card .scenario-return.bull,
.scenario-card.bull .scenario-return { color: var(--up); }
.scenario-card.bear .scenario-return { color: var(--down); }
.scenario-card.base .scenario-return { color: var(--gold-deep); }

.rating-box { padding: 24px; }
.rating-box .rating-value { color: var(--accent-strong); font-weight: 700; }
.rating-box .rating-details .detail-value { color: var(--txt); font-weight: 600; }

.ai-lab-card {
  border-radius: var(--r-2xl);
  padding: 52px;
  box-shadow: var(--sh-2);
  align-items: center;
}
.ai-lab-icon { border-radius: 18px; box-shadow: var(--sh-1); }
.ai-lab-content h3 { font-size: 24px; font-weight: 700; letter-spacing: -.4px; }
.ai-lab-stat {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.ai-lab-stat:hover { border-color: var(--amberbd); box-shadow: var(--sh-1); }
.ai-lab-stat .stat-num { color: var(--accent-strong); font-size: 26px; font-weight: 700; }

/* ============================ 7. 徽章与标签 ============================ */
.badge,
.pill,
.tag,
.article-badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
  background: var(--fill);
  color: var(--txt-2);
  border: 0;
  white-space: nowrap;
}
.badge.macro     { background: var(--purple-tint); color: var(--purple); }
.badge.viewpoint { background: var(--accent-tint-2); color: var(--accent-strong); }
.badge.industry  { background: rgba(217, 164, 65, .18); color: var(--gold-deep); }
.badge.market    { background: var(--blue-tint); color: var(--blue); }
.badge.amber     { background: var(--accent-tint); color: var(--accent-strong); }
.badge.blue      { background: var(--blue-tint); color: var(--blue); }
.badge.green     { background: var(--down-tint); color: var(--down); }
.badge.red       { background: var(--up-tint); color: var(--up); }
.badge.purple    { background: var(--purple-tint); color: var(--purple); }

.pill { background: var(--panel-2); color: var(--primary); border: 1px solid var(--line); }

/* 涨跌语义 */
.up, .pos, .bull { color: var(--up); }
.down, .neg, .bear { color: var(--down); }
.num.up, .up { color: var(--up) !important; }
.num.down, .down { color: var(--down) !important; }
.highlight { background: linear-gradient(transparent 62%, rgba(245, 158, 11, .26) 0); color: inherit; }

/* ============================ 8. 按钮与筛选 ============================ */
.btn-primary,
.btn-outline,
.filter-btn {
  font-family: var(--font);
  cursor: pointer;
  border-radius: var(--r-pill);
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 15px;
  border: 0;
  box-shadow: 0 2px 10px rgba(180, 83, 9, .22);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(180, 83, 9, .26);
  color: #fff;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line-strong);
  color: var(--txt);
  font-size: 15px;
}
.btn-outline:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  background: var(--accent-tint-2);
}

/* iOS 分段控件（筛选栏） */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  padding: 6px;
  background: var(--fill);
  border-radius: var(--r-md);
  border: 0;
  width: fit-content;
  max-width: 100%;
}
.filter-bar .filter-label { font-size: 13px; color: var(--txt-3); margin-right: 4px; }
.filter-btn {
  background: transparent;
  border: 0;
  color: var(--txt-2);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
}
.filter-btn:hover { color: var(--txt); background: rgba(255, 255, 255, .6); }
.filter-btn.active {
  background: var(--seg-active);
  color: var(--accent-strong);
  font-weight: 600;
  box-shadow: var(--sh-1);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: all var(--dur) var(--ease);
}
.back-link:hover { background: var(--accent-tint); border-color: var(--amberbd); color: var(--accent-hover); }

/* ============================ 9. 表格 ============================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  margin: 22px 0;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th,
th {
  background: var(--thead);
  color: var(--txt-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--txt-2);
  vertical-align: top;
  line-height: 1.7;
}
tbody tr:nth-child(even) td,
tr:nth-child(even) td { background: rgba(255, 246, 233, .55); }
tbody tr:hover td,
tr:hover td { background: var(--row-hover); }
tr:last-child td { border-bottom: 0; }
td strong, th strong { color: var(--txt); }
.num { font-variant-numeric: tabular-nums; }

/* ============================ 10. 文章正文 ============================ */
.art,
.article-main,
.article-body {
  background: var(--panel);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-1);
  border: 1px solid var(--line);
}
.art { padding: 52px 60px; }

.article-header {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 88px 0 64px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(245, 158, 11, .16), transparent 70%),
    linear-gradient(180deg, #FFFCF4 0%, #FFF6E6 42%, #FBEBD2 100%);
  color: var(--txt);
}
.article-header h1,
.article-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.25;
  color: var(--txt);
  position: relative;
  z-index: 1;
}
.article-header .article-subtitle { font-size: 17px; color: var(--txt-2); position: relative; z-index: 1; }
.article-meta {
  color: var(--txt-3);
  font-size: 13.5px;
  position: relative;
  z-index: 1;
}
.article-header::before,
.article-header::after { display: none; }

.article-body { padding: 44px 56px; }
.article-body p,
.art p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--txt-2);
  margin-bottom: 18px;
}
.article-body h2,
.art h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--txt);
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  letter-spacing: -.4px;
}
.article-body h3,
.art h3 {
  font-size: 18.5px;
  font-weight: 600;
  color: var(--primary);
  margin: 30px 0 12px;
}
.article-body h4 { font-size: 16.5px; font-weight: 600; color: var(--txt); margin: 24px 0 10px; }
.article-body ul,
.article-body ol,
.art ul,
.art ol { margin: 0 0 18px 22px; }
.article-body li,
.art li { font-size: 15.5px; line-height: 1.9; color: var(--txt-2); margin-bottom: 8px; }
.article-body strong,
.art strong { color: var(--txt); font-weight: 600; }
.article-body a { color: var(--accent-strong); text-decoration: underline; text-decoration-color: var(--amberbd); text-underline-offset: 3px; }
.article-body figure { margin: 24px 0; }
.article-body figure img { border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.article-body figcaption { font-size: 13px; color: var(--txt-3); text-align: center; margin-top: 8px; }

.art h1 {
  font-size: 34px;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -.8px;
  line-height: 1.3;
}
.art .sub { font-size: 16.5px; color: var(--txt-2); }
.art .aff {
  font-size: 13px;
  color: var(--txt-3);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.art th { background: var(--primary); color: #fff; }
.art blockquote,
.article-body blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  background: var(--panel-2);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  color: var(--txt-2);
  font-size: 15.5px;
  line-height: 1.9;
}
.art .disc {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  font-size: 13.5px;
  color: var(--txt-2);
  line-height: 1.9;
  margin-top: 36px;
}
.art .disc h2 { border: 0; padding: 0; font-size: 16.5px; color: var(--primary); }

/* 正文强调块 */
.callout,
.highlight-box,
.conclusion,
.note {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  margin: 24px 0;
  box-shadow: none;
}
.callout { border-left: 4px solid var(--accent); }
.highlight-box { border-left: 4px solid var(--gold); }
.conclusion { border-left: 4px solid var(--primary); }
.callout p,
.highlight-box p,
.conclusion p,
.note { color: var(--txt-2); font-size: 15px; line-height: 1.85; }
.highlight-box strong,
.conclusion strong { color: var(--accent-strong); }
.callout h3,
.conclusion h3 { color: var(--txt); font-size: 17px; margin-bottom: 10px; }

.article-footer,
.article-footer-inner {
  color: var(--txt-3);
  font-size: 13px;
  background: transparent;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 40px;
}
.article-footer a,
.article-footer-inner a { color: var(--accent-strong); }

/* ============================ 11. 页脚 ============================ */
footer,
.footer {
  background: var(--footer-dark);
  color: var(--footer-gold);
  padding: 56px 0 32px;
  margin-top: 72px;
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto 36px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h4 { font-size: 16px; font-weight: 600; color: var(--footer-gold); margin-bottom: 10px; }
.footer-brand p  { font-size: 13px; color: var(--footer-gray); line-height: 1.8; opacity: 1; }
.footer-links h5 { font-size: 13.5px; font-weight: 600; color: var(--footer-gold); margin-bottom: 14px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a  { font-size: 13px; color: var(--footer-gray); text-decoration: none; line-height: 2; transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--footer-gold); }
.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(243, 217, 164, .18);
  text-align: center;
  font-size: 12.5px;
  color: var(--footer-gray);
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer-bottom p { color: var(--footer-gray); margin-bottom: 6px; font-size: 12.5px; }
.footer-bottom a { color: var(--footer-gold); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ============================ 12. 响应式 ============================ */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ai-lab-card { grid-template-columns: 1fr; padding: 36px; }
  .compliance-content { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .module-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --sec-pad: 64px; }
  .container, .wrap, nav .container, .header-top .container { padding: 0 20px; }
  .nav-links { display: none; }
  .lang-switcher { display: none; }
  .hero { padding: 84px 0 64px; }
  .hero h1, .page-header h1, .system-hero h1 { font-size: 32px; letter-spacing: -.6px; }
  .article-header h1, .article-title { font-size: 27px; }
  .art h1 { font-size: 25px; }
  .hero-stats { flex-direction: column; gap: 14px; }
  .grid-3, .grid-4, .grid2, .feature-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .card, .news-item, .research-card { padding: 22px; }
  .art { padding: 26px 18px; }
  .article-body { padding: 26px 18px; }
  .research-card h2, .news-title { font-size: 18px; }
  .article-body p, .art p { font-size: 15.5px; }
  .filter-bar { width: 100%; }
  .card:hover, .news-item:hover, .research-card:hover, .s-card:hover { transform: none; }
  input, select, textarea { font-size: 16px; }
  /* 裸表格（不在 .table-wrap 内）改为块级横滚，防止长内容撑破正文列宽 */
  .art table,
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .art, .article-main, article { max-width: 100%; overflow-x: hidden; }
}
@media (max-width: 375px) {
  .container, .wrap { padding: 0 14px; }
  .btn-primary, .btn-outline { padding: 0 18px; }
}

/* ============================ 13. 动效降级 ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
