/* =========================================================
   钱路工具站 - 全局样式系统
   设计理念：精致的金融杂志风格，温暖而专业
   ========================================================= */

/* ---------------------------------------------------------
   1. 设计令牌 (Design Tokens)
   --------------------------------------------------------- */
:root {
  /* 色彩系统 - 墨绿与暖金 */
  --ink:          #0f1c15;
  --ink-80:       #1a2e22;
  --ink-60:       #2d4a3a;
  --muted:        #5c7268;
  --muted-light:  #8da898;
  --line:         #d4ddd6;
  --line-light:   #e8ece9;
  --paper:        #f6f5f0;
  --paper-warm:   #f0ede6;
  --panel:        #ffffff;

  --accent:       #0d5c3b;
  --accent-light: #1a7a52;
  --accent-soft:  #e8f0eb;
  --accent-2:     #b8860b;
  --accent-2-light:#d4af37;
  --accent-2-soft:#faf3dc;

  --up:           #c7352c;
  --down:         #12804b;
  --info:         #1a5a8a;

  /* 阴影系统 */
  --shadow-xs:    0 1px 2px rgba(15,28,21,0.04);
  --shadow-sm:    0 2px 8px rgba(15,28,21,0.06);
  --shadow-md:    0 4px 16px rgba(15,28,21,0.08);
  --shadow-lg:    0 8px 32px rgba(15,28,21,0.10);
  --shadow-xl:    0 16px 48px rgba(15,28,21,0.12);
  --shadow-accent:0 4px 20px rgba(13,92,59,0.15);

  /* 圆角系统 */
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  /* 字体系统 */
  --font-display: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', serif;
  --font-body:    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;

  /* 间距系统 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* 过渡 */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------------------------------------------------------
   2. 基础重置与全局样式
   --------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* 页面加载渐入 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

main > * {
  animation: fadeInUp 0.6s var(--transition-base) both;
}
main > *:nth-child(1) { animation-delay: 0.05s; }
main > *:nth-child(2) { animation-delay: 0.12s; }
main > *:nth-child(3) { animation-delay: 0.19s; }
main > *:nth-child(4) { animation-delay: 0.26s; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
a:hover {
  color: var(--accent-light);
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-light); }

/* ---------------------------------------------------------
   3. 头部 (Header)
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  padding: 10px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line-light);
  background: rgba(246, 245, 240, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  transition: box-shadow var(--transition-base);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  transition: transform var(--transition-fast);
}
.brand:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--accent-2-light);
  font-weight: 900;
  font-size: 20px;
  font-family: var(--font-display);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-bounce), box-shadow var(--transition-base);
}
.brand:hover .brand-mark {
  transform: rotate(-3deg) scale(1.05);
  box-shadow: var(--shadow-md);
}

.brand strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--ink-60);
  transition: all var(--transition-fast);
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}
.nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.nav a:hover::after {
  width: 24px;
}

.visit-badge {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line-light);
  white-space: nowrap;
}
.visit-badge span {
  padding: 2px 8px;
}
.visit-badge span + span {
  border-left: 1px solid var(--line-light);
}

/* ---------------------------------------------------------
   4. Hero 区域
   --------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 5vw, 58px) clamp(18px, 5vw, 72px) clamp(40px, 5vw, 64px);
  overflow: hidden;
}

/* Hero 背景装饰 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(13,92,59,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(184,134,11,0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184,134,11,0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1, .page-title h1, .article h1 {
  max-width: 960px;
  margin: 0 auto 16px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

.lead {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

/* ---------------------------------------------------------
   5. 按钮系统
   --------------------------------------------------------- */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-slow);
  z-index: -1;
}
.button:hover {
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.button.primary::before {
  background: var(--accent-2);
}
.button.primary:hover {
  border-color: var(--accent-2);
  box-shadow: var(--shadow-lg);
}

.button.accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.button.accent::before {
  background: var(--accent-light);
}

/* ---------------------------------------------------------
   6. Hero 面板 / 数据卡片
   --------------------------------------------------------- */
.hero-panel {
  align-self: end;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-light);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.hero-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hero-panel span, .hero-panel p, .hero-panel small {
  color: var(--muted);
}
.hero-panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 84px);
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0;
  letter-spacing: -0.03em;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}
.metric-grid div b {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
}
.metric-grid div small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------------------------------------------------------
   7. 页面容器与分区
   --------------------------------------------------------- */
.section, .page-title, .article {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) 0;
}

.page-title {
  position: relative;
  text-align: center;
  border-bottom: 1px solid var(--line-light);
}
.page-title::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: var(--radius-full);
}
.page-title .eyebrow {
  justify-content: center;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.section h2, .article h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 32px;
}

/* 分割线装饰 */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 0 auto;
  max-width: 1200px;
}

/* ---------------------------------------------------------
   8. 卡片系统
   --------------------------------------------------------- */
.card-grid, .tool-grid, .service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.info-card, .tool-card {
  display: block;
  min-height: 160px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.info-card::before, .tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}
.info-card:hover, .tool-card:hover {
  border-color: var(--line);
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.info-card:hover::before, .tool-card:hover::before {
  transform: scaleX(1);
}

.info-card h2, .info-card h3, .tool-card b {
  margin: 0 0 12px;
  line-height: 1.25;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.info-card p, .tool-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.info-card.large { min-height: 200px; }

.info-card strong {
  display: block;
  margin-top: 16px;
  font-size: 24px;
  color: var(--accent-2);
  font-family: var(--font-display);
  font-weight: 700;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.topic-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.topic-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: translateY(-3px);
}

.topic-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.topic-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.35;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.topic-card small {
  color: var(--muted-light);
  font-size: 12px;
}

/* 系列区块 */
.series-block {
  margin-bottom: 56px;
}
.series-block:last-child {
  margin-bottom: 0;
}
.series-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line-light);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}
.series-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
}

/* ---------------------------------------------------------
   9. 表格系统
   --------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-light);
}
.table-wrap h2 {
  padding: 20px 24px 0;
  font-family: var(--font-display);
  font-size: 20px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px;
  font-size: 14px;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
}

th {
  background: var(--soft);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-60);
  position: sticky;
  top: 0;
  z-index: 5;
}

/* 表格圆角 */
table thead tr:first-child th:first-child { border-radius: var(--radius-lg) 0 0 0; }
table thead tr:first-child th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }

tr {
  transition: background var(--transition-fast);
}
tr:hover td {
  background: rgba(232, 240, 235, 0.4);
}
tr:last-child td {
  border-bottom: 0;
}
tr:last-child td:first-child { border-radius: 0 0 0 var(--radius-lg); }
tr:last-child td:last-child  { border-radius: 0 0 var(--radius-lg) 0; }

/* 链接在表格中 */
table a {
  color: var(--accent);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
table a:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

/* ---------------------------------------------------------
   10. 表单与筛选
   --------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-xs);
}

input, select {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--line-light);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all var(--transition-fast);
  outline: none;
}
input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,92,59,0.1);
}
input::placeholder {
  color: var(--muted-light);
}

/* 分页器 */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
}
.pager a {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-light);
  color: var(--ink);
  font-weight: 500;
  transition: all var(--transition-fast);
}
.pager a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}
.pager span {
  padding: 8px 16px;
  color: var(--muted);
}

/* ---------------------------------------------------------
   11. 文章 / 知识库
   --------------------------------------------------------- */
.article { max-width: 880px; }

.article section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-light);
  position: relative;
}
.article section::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.article h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}

.article p {
  margin-bottom: 16px;
  color: var(--ink-80);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-xs);
}

/* 学习路径 */
.learning-path {
  display: grid;
  gap: 16px;
}

.lesson-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line-light);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.lesson-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-slow);
}
.lesson-card:hover {
  border-color: var(--line);
  text-decoration: none;
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.lesson-card:hover::before {
  transform: scaleY(1);
}

.lesson-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  transition: color var(--transition-fast);
}
.lesson-card:hover h2 {
  color: var(--accent);
}

.lesson-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.lesson-number {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--accent-2-light);
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-display);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-bounce);
}
.lesson-card:hover .lesson-number {
  transform: rotate(-5deg) scale(1.08);
}

/* 摘要与目录 */
.article-summary, .toc {
  margin: 28px 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-xs);
}

.article-summary {
  position: relative;
  overflow: hidden;
}
.article-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.article-summary strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.toc {
  display: grid;
  gap: 4px;
}
.toc strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.toc a {
  padding: 10px 0;
  border-top: 1px solid var(--line-light);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: background var(--transition-fast);
}
.toc a:hover {
  color: var(--accent);
  text-decoration: none;
  padding-left: 4px;
}
.toc a:hover::before {
  background: var(--accent);
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  content: "";
  width: 20px;
  height: 20px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.check-list li::after {
  position: absolute;
  left: 5px;
  top: 5px;
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* 知识图表 */
.knowledge-chart {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fffdf7 0%, #faf8f0 100%);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-xs);
}
.knowledge-chart h3 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}

/* K线板 */
.kb-board {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fffdf7 0%, #faf8f0 100%);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-xs);
}
.kb-svg {
  width: 100%;
  height: auto;
  display: block;
}
.kb-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* 流程图 */
.flow-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.flow-node {
  position: relative;
  min-height: 64px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--accent);
  background: linear-gradient(135deg, var(--soft) 0%, #fff 100%);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
}
.flow-node:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* 时间线 */
.timeline-chart {
  display: grid;
  gap: 16px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-light);
  transition: all var(--transition-fast);
}
.timeline-item:hover {
  padding-left: 8px;
}
.timeline-item:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline-item span {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-mono);
}
.timeline-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* 条形图 */
.bar-chart { display: grid; gap: 18px; }
.bar-row {
  display: grid;
  grid-template-columns: minmax(180px, .5fr) minmax(160px, 1fr);
  align-items: center;
  gap: 18px;
}
.bar-label strong, .bar-label span { display: block; }
.bar-label strong { font-size: 15px; font-weight: 600; }
.bar-label span { color: var(--muted); font-size: 13px; margin-top: 2px; }
.bar-track {
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--paper-warm);
  overflow: hidden;
  border: 1px solid var(--line-light);
}
.bar-track span {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1s ease-out;
}

/* 矩阵图 */
.matrix-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.matrix-chart div {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
}
.matrix-chart div:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}
.matrix-chart strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--ink);
}
.matrix-chart p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* K线演示 */
.kline-chart {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 260px;
  padding: 24px;
  background: var(--panel);
  border-radius: var(--radius-md);
}
.kline-stick {
  position: absolute;
  left: 64px;
  top: 32px;
  width: 3px;
  height: 196px;
  background: var(--ink);
  border-radius: var(--radius-full);
}
.kline-body {
  width: 60px;
  height: 120px;
  margin-left: 36px;
  border: 2px solid var(--ink);
  background: rgba(15, 28, 21, .06);
  border-radius: 3px;
  z-index: 1;
}
.kline-body.up {
  border-color: var(--up);
  background: rgba(199, 53, 44, .10);
}
.kline-body.down {
  border-color: var(--down);
  background: rgba(18, 128, 75, .10);
}
.kline-labels {
  display: grid;
  gap: 12px;
}
.kline-labels p {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
  font-size: 14px;
}
.kline-labels span { color: var(--muted); }

/* 文章导航 */
.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.article-nav a {
  min-height: 100px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line-light);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-nav a:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.article-nav a:first-child {
  border-left: 4px solid var(--accent);
}
.article-nav a:last-child {
  border-right: 4px solid var(--accent-2);
  text-align: right;
  align-items: flex-end;
}
.article-nav span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-tool-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 44px;
  padding: 28px;
  border: 1px solid rgba(13, 92, 59, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(232, 240, 235, 0.86), rgba(250, 243, 220, 0.72)),
    var(--panel);
  box-shadow: var(--shadow-sm);
}

.article-tool-cta::before {
  display: none;
}

.article-tool-cta h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 2.6vw, 30px);
}

.article-tool-cta p {
  margin-bottom: 0;
  color: var(--muted);
}

.article-tool-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* 公众号关注入口 */
.wechat-follow {
  width: min(1200px, calc(100% - 48px));
  margin: clamp(32px, 5vw, 64px) auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(13, 92, 59, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(250, 243, 220, 0.7)),
    var(--panel);
  box-shadow: var(--shadow-sm);
}

.wechat-follow--compact {
  max-width: 960px;
  margin-top: 0;
}

.wechat-follow--article {
  width: 100%;
  margin: 44px 0 0;
}

.wechat-follow__copy h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
}

.wechat-follow__copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.wechat-follow__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.wechat-follow__keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.wechat-follow__qr {
  justify-self: end;
  width: 176px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-xs);
  text-align: center;
}

.wechat-follow__qr img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.wechat-follow__qr span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* 提示框 */
.notice, .status-line {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff8df 0%, #faf3dc 100%);
  color: #5a4717;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(184,134,11,0.15);
  box-shadow: var(--shadow-xs);
}
.status-line {
  margin-bottom: 24px;
}

/* 紧凑模式 */
.compact { padding-top: 0; }

/* 工具卡片 */
.tool-card {
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.tool-card b {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-family: var(--font-display);
}

/* ---------------------------------------------------------
   12. 页脚 (Footer)
   --------------------------------------------------------- */
.site-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
  padding: 18px clamp(18px, 4vw, 54px);
  background: var(--ink);
  color: #e8ece9;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.site-footer strong {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
  color: #f7f0d8;
}
.site-footer p {
  max-width: 560px;
  margin: 6px 0 0;
  color: #8da898;
  font-size: 13px;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 620px;
}
.footer-links a {
  color: #c4d4c8;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
  padding: 2px 0;
  white-space: nowrap;
}
.footer-links a:hover {
  color: var(--accent-2-light);
  text-decoration: none;
  transform: translateY(-1px);
}
.footer-links .icp-link,
.footer-links a[href*="beian.miit.gov.cn"] {
  color: #aabbb0;
}
.footer-links .icp-link::before,
.footer-links a[href*="beian.miit.gov.cn"]::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 18px 0 2px;
  vertical-align: -2px;
  background: rgba(196, 212, 200, 0.28);
}

/* ---------------------------------------------------------
   13. 装饰与辅助
   --------------------------------------------------------- */
/* 首页装饰网格背景 */
.decorative-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,28,21,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,28,21,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* 浮动装饰圆 */
.float-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* 数字高亮 */
.number-highlight {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------
   14. 响应式
   --------------------------------------------------------- */
@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 18px;
  }
  .nav {
    width: 100%;
    justify-content: flex-start;
  }
  .visit-badge {
    display: none;
  }

  .hero, .two-column {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 28px 18px 38px;
  }
  .hero h1 {
    font-size: clamp(34px, 12vw, 48px);
    line-height: 1.12;
  }
  .lead {
    font-size: 16px;
  }
  .hero-panel strong { font-size: 48px; }

  .section-head, .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer {
    gap: 14px;
    padding: 18px;
  }
  .site-footer p {
    max-width: none;
  }
  .footer-links {
    justify-content: flex-start;
    gap: 8px 14px;
  }
  .footer-links .icp-link::before,
  .footer-links a[href*="beian.miit.gov.cn"]::before {
    display: none;
  }

  .lesson-card, .bar-row, .timeline-item, .kline-chart, .article-nav {
    grid-template-columns: 1fr;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .article-tool-cta {
    grid-template-columns: 1fr;
  }
  .article-tool-actions {
    justify-content: flex-start;
  }
  .lesson-number { width: 48px; height: 48px; font-size: 16px; }
  .kline-stick { left: 34px; }
  .kline-body { margin-left: 6px; }

  table { min-width: 560px; }

  .article-nav a:last-child {
    text-align: left;
    align-items: flex-start;
    border-left: 4px solid var(--accent-2);
    border-right: 1px solid var(--line-light);
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  main > * {
    animation: none;
  }
}

/* ---------------------------------------------------------
   搜索框
   --------------------------------------------------------- */
.hero-search {
  margin: 20px auto 0;
  width: 100%;
  max-width: 640px;
}

.search-box {
  display: flex;
  gap: 0;
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 2px solid var(--line);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.search-box input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-body);
  background: transparent;
  color: var(--ink);
}

.search-box input::placeholder {
  color: var(--muted-light);
}

.search-btn {
  padding: 16px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-btn:hover {
  background: var(--accent-light);
}

.search-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.search-hint a {
  color: var(--accent);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.search-hint a:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

/* ---------------------------------------------------------
   工具页面
   --------------------------------------------------------- */
.tool-search-bar {
  display: flex;
  gap: 8px;
  max-width: 800px;
  flex-wrap: wrap;
}

.tool-page {
  max-width: 960px;
}

.tool-page .section-head {
  justify-content: center;
  text-align: center;
}

.tool-page .section-head > div {
  width: 100%;
}

.tool-page .eyebrow {
  justify-content: center;
}

.tool-page .lead {
  margin-left: auto;
  margin-right: auto;
}

.tool-page .tool-search-bar,
.tool-page .pick-examples {
  margin-left: auto;
  margin-right: auto;
}

.tool-page .pick-examples {
  justify-content: center;
}

.tool-page .etf-tabs {
  justify-content: center;
}

.tool-search-bar input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
}

.tool-search-bar input:focus {
  border-color: var(--accent);
}

.tool-search-bar .search-btn {
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.tool-search-bar .search-btn:hover {
  background: var(--accent-light);
}

.tool-result {
  margin-top: 24px;
}

.result-card {
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-light);
}

.result-card h3 {
  font-size: 18px;
  margin: 0 0 16px;
  font-family: var(--font-display);
}

.loading-card {
  overflow: hidden;
}

.loading-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.loading-pulse {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: loadingSpin 850ms linear infinite;
  flex: 0 0 auto;
}

.loading-title {
  display: grid;
  gap: 8px;
  width: min(320px, 70%);
}

.loading-title span,
.skeleton-line,
.skeleton-head {
  display: block;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--line-light) 0%, #f7f5ee 42%, var(--line-light) 82%);
  background-size: 220% 100%;
  animation: skeletonSweep 1.15s ease-in-out infinite;
}

.loading-title span:first-child {
  width: 68%;
  height: 16px;
}

.loading-title span:last-child {
  width: 42%;
  height: 10px;
}

.skeleton-table td {
  height: 42px;
}

.skeleton-head {
  width: 58px;
  height: 10px;
}

.skeleton-line {
  height: 12px;
  min-width: 48px;
}

.loading-text {
  display: grid;
  gap: 14px;
  padding: 4px 0 2px;
}

.loading-text .skeleton-line {
  max-width: 760px;
}

@keyframes loadingSpin {
  to { transform: rotate(360deg); }
}

@keyframes skeletonSweep {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-item .label {
  font-size: 12px;
  color: var(--muted);
}

.result-item .value {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pick-examples {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.pick-examples a {
  color: var(--accent);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: background var(--transition-fast);
}

.pick-examples a:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

/* ---------------------------------------------------------
   数据表格
   --------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--line);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-60);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-light);
}

.data-table tr:hover td {
  background: var(--accent-soft);
}

.data-table .val-up {
  color: var(--up);
  font-weight: 600;
}

.data-table .val-down {
  color: var(--down);
  font-weight: 600;
}

/* ---------------------------------------------------------
   移动端强化
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .site-header {
    gap: 12px;
  }

  .nav a {
    padding: 7px 12px;
  }

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

  .wechat-follow {
    grid-template-columns: minmax(0, 1fr) 150px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 128px;
  }

  body {
    font-size: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .brand strong {
    font-size: 16px;
  }

  .nav {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
  }

  .section, .page-title, .article, .wechat-follow {
    width: min(100% - 32px, 1200px);
  }

  .section, .page-title, .article {
    padding: 34px 0;
  }

  .hero h1, .page-title h1, .article h1 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.14;
  }

  .section h2, .article h2 {
    font-size: clamp(23px, 7vw, 31px);
  }

  .card-grid, .tool-grid, .service-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .info-card, .tool-card, .topic-card, .lesson-card {
    min-height: 0;
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .topic-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .topic-card h3 {
    font-size: 19px;
  }

  .hero-actions,
  .article-tool-actions {
    width: 100%;
  }

  .hero-actions .button,
  .article-tool-actions .button {
    flex: 1 1 140px;
  }

  .search-box {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .search-box input,
  .search-box .search-btn {
    width: 100%;
  }

  .search-box .search-btn {
    min-height: 48px;
    border-radius: 0;
  }

  .tool-search-bar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tool-search-bar input,
  .tool-search-bar select,
  .tool-search-bar .search-btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .pick-examples {
    justify-content: flex-start;
    gap: 8px;
  }

  .pick-examples a,
  .etf-tabs .button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .result-card {
    padding: 18px;
    overflow-x: auto;
  }

  .tool-result {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 560px;
    font-size: 13px;
  }

  th, td,
  .data-table th,
  .data-table td {
    padding: 10px;
  }

  .article section {
    padding: 30px 0;
  }

  .article p,
  .check-list li {
    font-size: 15px;
    line-height: 1.8;
  }

  .article-summary, .toc, .knowledge-chart, .kb-board {
    padding: 18px;
    border-radius: var(--radius-md);
  }

  .mini-table-wrap,
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .flow-chart,
  .matrix-chart {
    grid-template-columns: 1fr;
  }

  .wechat-follow {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
    margin: 30px auto;
  }

  .wechat-follow--article {
    width: 100%;
    margin-top: 34px;
  }

  .wechat-follow__qr {
    justify-self: start;
    width: min(168px, 58vw);
  }

  .wechat-follow__keywords {
    gap: 6px;
  }

  .wechat-follow__keywords span {
    font-size: 12px;
    min-height: 28px;
  }
}

@media (max-width: 420px) {
  .section, .page-title, .article, .wechat-follow {
    width: calc(100% - 24px);
  }

  .site-header {
    padding: 10px 12px;
  }

  .hero {
    padding-left: 12px;
    padding-right: 12px;
  }

  .button,
  .search-btn {
    padding-left: 18px;
    padding-right: 18px;
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
