/* ==========================================================================
   全球人寿保险观察 · PHP 版样式
   设计语言：明亮商业蓝（对齐 Next.js 主站）
   ========================================================================== */

/* Montserrat 可变字体（仅拉丁子集，37 KB），中文回落到系统字体 */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #196bde;
  --brand-dark: #0f4fa8;
  --brand-deep: #123a6b;
  --brand-50: #eaf2fe;
  --brand-100: #d6e6fd;
  --brand-200: #b9d4fb;
  --bg: #ffffff;
  --bg-soft: #f4f8fd;
  --ink: #1d2a3d;
  --ink-soft: #33445c;
  --muted: #5a6b80;
  --line: #e2e9f4;
  --line-strong: #cbd8ea;
  --amber: #a2620a;
  --amber-bg: #fff6e5;
  --amber-line: #f3ddb4;
  --red: #b93b2e;
  --red-bg: #fdeeec;
  --green: #0d7a58;
  --green-bg: #e8f7f1;
  --green-line: #c6ebdc;
  --red-line: #f4cdc7;
  --indigo: #3b4fa8;
  --indigo-line: #d5ddf7;

  /* 语义色：主题只需覆盖这一组，不必重写选择器 */
  --surface: #ffffff;        /* 卡片、表格、按钮等主体表面 */
  --surface-2: #fafcff;      /* 行悬停 */
  --surface-3: #f2f4f7;      /* 次级标签底 */
  --surface-4: #eef2fd;      /* 靛蓝标签底 */
  --surface-5: #f6f6f6;
  --surface-6: #f2f5fa;      /* 来源小标签底 */
  --line-soft: #e0e6ee;
  --ink-faint: #8494a8;      /* 辅助说明文字 */
  --ink-ghost: #94a3b8;      /* 更弱的说明文字 */
  --ink-muted-2: #62718a;
  --code-bg: #12213a;
  --code-ink: #d7e3f4;
  --hero-dot: #d7e2f0;
  --brand-shadow: rgba(25, 107, 222, 0.7);

  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(18, 58, 107, 0.05);
  --shadow: 0 1px 2px rgba(18, 58, 107, 0.04), 0 10px 28px -14px rgba(18, 58, 107, 0.18);
  --shadow-lg: 0 2px 4px rgba(18, 58, 107, 0.04), 0 24px 48px -24px rgba(18, 58, 107, 0.28);
  --wrap: 1180px;
  --font: "Montserrat", -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; line-height: 1.28; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.25em; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-deep); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部工具条 ---------- */
.topbar { background: var(--brand-deep); color: rgba(255, 255, 255, 0.72); font-size: 12.5px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; }
.topbar-note { margin: 0; letter-spacing: 0.01em; }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a { color: rgba(255, 255, 255, 0.72); }
.topbar-links a:hover { color: #fff; text-decoration: none; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 28px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.brand-text em { font-style: normal; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav > a, .nav-more-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 11px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; white-space: nowrap;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.main-nav > a:hover, .nav-more-btn:hover { background: var(--brand-50); color: var(--brand-dark); text-decoration: none; }
.main-nav > a.on { background: var(--brand-50); color: var(--brand-dark); }
.nav-more { position: relative; }
.nav-more-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 168px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.nav-more.open .nav-more-panel { display: block; }
.nav-more-panel a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: var(--ink-soft); text-decoration: none; font-weight: 500;
}
.nav-more-panel a:hover { background: var(--brand-50); color: var(--brand-dark); text-decoration: none; }
.nav-search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-left: 6px;
  border-radius: 50%; color: var(--ink-soft);
}
.nav-search:hover { background: var(--brand-50); color: var(--brand-dark); }

.nav-toggle, .nav-burger { display: none; }

/* ---------- 通用排版 ---------- */
.page-head { padding: 44px 0 8px; max-width: 860px; }
.page-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.lead { margin-top: 14px; font-size: 1.02rem; color: var(--muted); line-height: 1.85; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.page-meta i { font-style: normal; color: var(--ink); font-weight: 600; margin-right: 6px; }

/* 面包屑：与 .wrap 同宽居中（此前贴在窗口最左边，短屏上几乎看不见） */
.crumbs { max-width: var(--wrap); margin: 0 auto; padding: 22px 24px 0; font-size: 12.5px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
/* 已经在 .wrap 里的（文章详情）不再套一层宽度与内边距 */
.article-wrap .crumbs { max-width: none; padding: 20px 0 0; }

.section { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.section-head p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; max-width: 760px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px var(--brand-shadow); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--brand-dark); border-color: var(--brand-200); }
.btn-secondary:hover { border-color: var(--brand); background: var(--brand-50); }
.btn-ghost { color: var(--brand-dark); padding: 12px 6px; }
.btn-ghost:hover { color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; white-space: nowrap;
}
.badge-verified { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.badge-partial { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }
.badge-varies { background: var(--surface-4); color: var(--indigo); border-color: var(--indigo-line); }
.badge-unavailable { background: var(--surface-3); color: var(--ink-muted-2); border-color: var(--line-soft); }
.badge-not_applicable { background: var(--surface-5); color: var(--ink-muted-2); border-color: var(--line-soft); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  background: var(--brand-50); color: var(--brand-dark); border: 1px solid var(--brand-100);
}
.pill-amber { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }
.pill-gray { background: var(--surface-3); color: var(--ink-muted-2); border-color: var(--line-soft); }

/* ---------- 卡片与栅格 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- 事实字段 ---------- */
.fact { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact-top { margin-bottom: 8px; }
.fact-summary { font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); }
.fact-line { margin-top: 8px; font-size: 13px; color: var(--muted); }
.fact-line b { color: var(--ink-soft); font-weight: 600; margin-right: 8px; }
.fact-points { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.fact-points li { margin-bottom: 4px; }
.fact-asof { margin-top: 8px; font-size: 11.5px; color: var(--ink-faint); }
.src-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; }
.src-chips > span:first-child { color: var(--ink-faint); margin-right: 2px; }
.src-chip {
  padding: 2px 8px; border-radius: 5px; background: var(--surface-6); color: var(--muted);
  border: 1px solid var(--line-soft); text-decoration: none;
}
.src-chip:hover { background: var(--brand-50); color: var(--brand-dark); text-decoration: none; }
.src-official { background: var(--brand-50); color: var(--brand-dark); border-color: var(--brand-100); }

/* ---------- 提示块 ---------- */
.callout {
  padding: 18px 20px; border-radius: 12px; margin: 20px 0;
  border: 1px solid var(--line); background: var(--bg-soft);
  font-size: 14px; line-height: 1.8;
}
.callout-title { font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.callout-body > * + * { margin-top: 8px; }
.callout-info { background: var(--bg-soft); border-color: var(--line-strong); }
.callout-info .callout-title { color: var(--brand-dark); }
.callout-warn { background: var(--amber-bg); border-color: var(--amber-line); }
.callout-warn .callout-title { color: var(--amber); }
.callout-danger { background: var(--red-bg); border-color: var(--red-line); }
.callout-danger .callout-title { color: var(--red); }
.callout-ok { background: var(--green-bg); border-color: var(--green-line); }
.callout-ok .callout-title { color: var(--green); }
.callout ul { margin-top: 6px; padding-left: 1.1em; }

/* ---------- 内容元信息 ---------- */
.review-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px; margin: 22px 0 0; padding: 16px 18px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
}
.review-meta dt { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.review-meta dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left; font-weight: 700; font-size: 12px; letter-spacing: 0.02em;
  color: var(--muted); background: var(--bg-soft);
  padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }

/* ---------- 空状态 ---------- */
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--brand-deep); color: rgba(255, 255, 255, 0.7); padding: 56px 0 28px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .footer-name { color: #fff; font-weight: 700; font-size: 16px; }
.footer-en { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-top: 2px; }
.footer-note { margin-top: 14px; font-size: 12.5px; line-height: 1.85; color: rgba(255, 255, 255, 0.6); max-width: 320px; }
.site-footer h3 { color: #fff; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer .footer-grid > div > a { display: block; font-size: 13.5px; color: rgba(255, 255, 255, 0.68); padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-stats {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px; color: rgba(255, 255, 255, 0.55);
}
.footer-stats b { color: #fff; font-weight: 700; margin-right: 4px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px; color: rgba(255, 255, 255, 0.42);
}
.footer-bottom p { max-width: 760px; }

/* ---------- 首页 ---------- */
.hero { padding: 60px 0 20px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); line-height: 1.18; margin-top: 18px; letter-spacing: -0.02em; }
.hero h1 .hl { color: var(--brand); }
.hero-lead { margin-top: 20px; font-size: 1.05rem; line-height: 1.85; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 12.5px; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: var(--brand); flex-shrink: 0; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-card-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 16px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.hero-card-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--hero-dot); }
.hero-card-bar span { margin-left: 8px; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.hero-card-body { padding: 20px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.hero-metric { background: var(--bg-soft); border-radius: 10px; padding: 12px; }
.hero-metric b { display: block; font-size: 19px; color: var(--brand-dark); line-height: 1.2; }
.hero-metric span { font-size: 10.5px; color: var(--muted); }
.hero-rows { display: flex; flex-direction: column; gap: 9px; }
.hero-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px;
}
.hero-row p { color: var(--ink-soft); font-weight: 500; }
.hero-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 7px; }
.hero-bar i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.hero-note { margin-top: 14px; font-size: 10.5px; color: var(--ink-ghost); line-height: 1.6; }

.feature-card { position: relative; }
.feature-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-50); color: var(--brand-dark);
  font-size: 13px; font-weight: 700;
}
.feature-card h3 { font-size: 1.02rem; margin-top: 14px; }
.feature-card p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.feature-stat { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.01em; }

.cta-band { background: var(--brand-deep); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { color: rgba(255, 255, 255, 0.7); margin-top: 12px; max-width: 640px; font-size: 14.5px; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

.stat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-cell { background: var(--surface); padding: 22px 18px; }
.stat-cell b { display: block; font-size: 26px; color: var(--brand-dark); line-height: 1.1; letter-spacing: -0.02em; }
.stat-cell span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- 列表行 ---------- */
.row-list { border-top: 1px solid var(--line); }
.row-item {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) 160px;
  gap: 24px; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.row-item:hover { background: var(--surface-2); text-decoration: none; }
.row-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.row-item:hover .row-title { color: var(--brand); }
.row-desc { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.row-meter { display: flex; align-items: center; gap: 10px; }
.meter { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.meter-num { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ---------- 明细页 ---------- */
.detail-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
/* 栅格子项默认 min-width:auto，长标题会把整列撑宽；显式压回 0 才不会横向溢出 */
.detail-grid > * { min-width: 0; }
.side-nav { position: sticky; top: 92px; }
.side-nav h2 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.side-nav ol { list-style: none; padding: 0; margin: 0; counter-reset: sn; }
.side-nav li { counter-increment: sn; }
.side-nav a {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px;
  padding: 7px 0; font-size: 12.5px; color: var(--muted); text-decoration: none; line-height: 1.5;
  overflow-wrap: anywhere;
}
.side-nav a::before { content: counter(sn, decimal-leading-zero); font-size: 10px; color: var(--ink-ghost); padding-top: 2px; }
.side-nav a:hover { color: var(--brand); text-decoration: none; }

.sec-block { padding: 30px 0; border-top: 1px solid var(--line); }
.sec-block:first-of-type { border-top: 0; padding-top: 8px; }
.sec-block > h2 { font-size: 1.16rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-num { font-size: 11px; color: var(--brand); background: var(--brand-50); border-radius: 6px; padding: 3px 7px; font-weight: 700; }

/* ---------- 概念卡 ---------- */
.concept-card { border-left: 3px solid var(--brand-100); }
.concept-card h3 { font-size: 1rem; }
.concept-en { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-ghost); margin-top: 2px; }
.concept-one { margin-top: 10px; font-size: 13px; color: var(--ink-soft); line-height: 1.75; }
.kv { display: grid; grid-template-columns: 76px 1fr; gap: 6px 10px; margin-top: 12px; font-size: 12.5px; }
.kv dt { color: var(--ink-faint); }
.kv dd { margin: 0; color: var(--ink-soft); }

/* ---------- 文章 ---------- */
.article-body { font-size: 15.5px; line-height: 1.95; color: var(--ink-soft); max-width: 760px; }
.article-body > * + * { margin-top: 18px; }
.article-body h2 { font-size: 1.32rem; margin-top: 40px; }
.article-body h3 { font-size: 1.1rem; margin-top: 30px; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-top: 7px; }
.article-body blockquote {
  margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--brand);
  background: var(--bg-soft); border-radius: 0 10px 10px 0; color: var(--ink-soft); font-size: 14.5px;
}
.article-body img { border-radius: 12px; margin: 24px 0; }
.article-body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; color: var(--brand-dark); }
.code-block {
  background: var(--code-bg); color: var(--code-ink); padding: 16px 18px; border-radius: 10px;
  overflow-x: auto; font-size: 13px; line-height: 1.7;
}
.code-block code { background: none; color: inherit; padding: 0; }

.article-card h3 { font-size: 1.02rem; margin-top: 10px; }
.article-card .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 11.5px; color: var(--muted); }
.article-card p.excerpt { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 5px; }
input[type="text"], input[type="password"], input[type="email"], input[type="search"],
input[type="url"], input[type="datetime-local"], select, textarea {
  width: 100%; padding: 10px 13px; font-size: 14px; font-family: inherit;
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 420px; }

/* ---------- 搜索 ---------- */
.search-box { display: flex; gap: 10px; max-width: 620px; }
.search-box input { flex: 1; padding: 13px 16px; font-size: 15px; border-radius: 10px; }

/* ---------- 文本工具 ---------- */
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 22px; }
.mb-4 { margin-bottom: 22px; }
.stack > * + * { margin-top: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .header-in { gap: 16px; }
  .main-nav > a { padding: 8px 8px; font-size: 14px; }
  .brand-text em { display: none; }
}

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .side-nav { position: static; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--bg-soft); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .row-item { grid-template-columns: 1fr 120px; gap: 12px; }
  .row-desc { display: none; }
}

@media (max-width: 780px) {
  .topbar-note { display: none; }
  .topbar-in { justify-content: flex-end; height: 34px; }
  .header-in { height: 62px; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 40px; height: 40px; margin-left: auto; cursor: pointer; border-radius: 8px;
  }
  .nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; border-radius: 2px; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 62px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav > a, .nav-more-btn { padding: 11px 10px; font-size: 15.5px; }
  .nav-more-panel { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav-search { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .hero h1 { font-size: 1.9rem; }
  .page-head { padding-top: 30px; }
  .wrap { padding: 0 18px; }
  .row-item { grid-template-columns: 1fr; gap: 6px; }
  .row-meter { justify-content: flex-start; }
  .table-wrap { border-radius: 10px; }
}

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

@media print {
  .topbar, .site-header, .site-footer, .side-nav, .hero-actions { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
