/* 新西兰中小学教育指南 · 视觉 v2 · 移动优先 · 参考苹果式产品页的克制与层级 */
/* ============ 配色令牌：默认「墨蓝 · 米白」；可选「陶土 · 亚麻」「雾蓝 · 石灰」 ============ */
:root, [data-theme="ink"] {
  --ink: #1f2430; --ink-2: #454b58; --muted: #6a6f7a;
  --hair: rgba(31, 36, 48, 0.09); --hair-strong: rgba(31, 36, 48, 0.16);
  --bg: #f9f7f2; --bg-alt: #f1eee6; --surface: #fffefb; --header-bg: rgba(249, 247, 242, .82);
  --accent: #2f4f8a; --accent-rgb: 47, 79, 138; --accent-hover: #263f6f; --accent-ink: #ffffff;
  --accent-soft: #e8edf7; --accent-soft-ink: #24406e;
  --warm: #c07a3e; --warm-soft: #f9ecdc; --warm-ink: #7d4a1c;
  --neutral-soft: #ecebe6; --neutral-ink: #5a5f68;
  --danger: #a8402f; --danger-soft: #f8e8e3; --focus: #2f4f8a;
}
[data-theme="terracotta"] {
  --ink: #2a2622; --ink-2: #4d4640; --muted: #7a7068;
  --hair: rgba(42, 38, 34, 0.09); --hair-strong: rgba(42, 38, 34, 0.16);
  --bg: #faf7f2; --bg-alt: #f3eee6; --surface: #fffdf9; --header-bg: rgba(250, 247, 242, .82);
  --accent: #b8603f; --accent-rgb: 184, 96, 63; --accent-hover: #9d4f33; --accent-ink: #ffffff;
  --accent-soft: #f7e6de; --accent-soft-ink: #7e3f27;
  --warm: #6f7d4f; --warm-soft: #eef0e4; --warm-ink: #4c5734;
  --neutral-soft: #ece9e2; --neutral-ink: #5b564f;
  --danger: #a8402f; --danger-soft: #f8e8e3; --focus: #b8603f;
}
[data-theme="mist"] {
  --ink: #1e2a35; --ink-2: #44515d; --muted: #66727e;
  --hair: rgba(30, 42, 53, 0.09); --hair-strong: rgba(30, 42, 53, 0.16);
  --bg: #f5f7f9; --bg-alt: #edf0f3; --surface: #ffffff; --header-bg: rgba(245, 247, 249, .82);
  --accent: #4a6b8a; --accent-rgb: 74, 107, 138; --accent-hover: #3b5872; --accent-ink: #ffffff;
  --accent-soft: #e6edf3; --accent-soft-ink: #2f4a63;
  --warm: #b98a4e; --warm-soft: #f6efe2; --warm-ink: #74561f;
  --neutral-soft: #e9ecef; --neutral-ink: #55606b;
  --danger: #a8402f; --danger-soft: #f8e8e3; --focus: #4a6b8a;
}
:root {
  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(31, 36, 48, 0.04), 0 2px 14px rgba(31, 36, 48, 0.05);
  --shadow-2: 0 6px 28px rgba(31, 36, 48, 0.09);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0 0 .45em; font-weight: 650; line-height: 1.18; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.45rem, 4.2vw, 2rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.005em; }
h4 { font-size: 1rem; margin: 16px 0 6px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .4em; }
li::marker { color: var(--muted); }
small, .small { font-size: .875rem; color: var(--muted); line-height: 1.55; }
[id] { scroll-margin-top: 84px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* 顶部提示条 */
.demo-banner { background: var(--bg-alt); color: var(--muted); font-size: .8rem; text-align: center; padding: 7px 20px; border-bottom: 1px solid var(--hair); letter-spacing: .01em; }
.review-banner { background: #3a1410; color: #fff; text-align: center; font-size: .85rem; padding: 9px 20px; }
.review-banner strong { color: #ffd9c7; }

/* 顶栏：毛玻璃 */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--hair); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding-block: 6px; flex-wrap: nowrap; }
.header-inner.is-open { flex-wrap: wrap; }
.header-inner.is-open .brand { flex: 1 1 0; }
.header-inner.is-open .site-nav { flex-basis: 100%; }
.brand { color: var(--ink); display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1 1 auto; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-zh { font-weight: 650; font-size: .95rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-en { font-size: .68rem; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle { flex: none; display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--hair-strong); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .85rem; color: var(--ink); cursor: pointer; transition: background .2s var(--ease); }
.nav-toggle:hover { background: var(--bg-alt); }
.nav-toggle-bar { width: 16px; height: 1.5px; background: var(--ink); position: relative; display: inline-block; transition: transform .25s var(--ease), background .2s; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.nav-toggle-bar::before { top: -5px; } .nav-toggle-bar::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }
.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; animation: fade-down .22s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.site-nav ul { list-style: none; margin: 0; padding: 6px 0 10px; display: flex; flex-direction: column; gap: 2px; }
.site-nav a { display: block; padding: 12px 8px; color: var(--ink-2); border-radius: var(--r-sm); font-size: 1rem; }
.site-nav a:hover { background: var(--bg-alt); text-decoration: none; color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav-cta { margin-top: 8px; }
.nav-cta .btn { width: 100%; text-align: center; }
.subnav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 20px; max-width: 1040px; margin: 0 auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); font-size: .9rem; border: 1px solid var(--hair); background: var(--surface); transition: all .2s var(--ease); }
.subnav a:hover { text-decoration: none; border-color: var(--hair-strong); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 版式节奏 */
main { padding-block: 24px 64px; }
.section { margin-block: 44px; }
.section-tight { margin-block: 24px; }
.lead { font-size: 1.12rem; color: var(--ink-2); line-height: 1.6; max-width: 640px; }
.hero { padding: 28px 0 8px; }
.hero h1 { margin-bottom: .5em; max-width: 20ch; }
.hero .small { max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; align-items: center; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1.2; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(var(--accent-rgb), .22); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 8px 22px rgba(var(--accent-rgb), .28); }
.btn-secondary { background: var(--surface); color: var(--accent); border-color: var(--hair-strong); }
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

/* 卡片与网格 */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.card h3 { margin-top: 0; }
.card .card-q { color: var(--muted); font-size: .86rem; margin-bottom: .5em; letter-spacing: .01em; }
.card-link { color: inherit; display: block; }
.card-link:hover { text-decoration: none; color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--hair-strong); }
.card-link .more { color: var(--accent); font-weight: 600; margin-bottom: 0; }
.two-col { display: grid; gap: 16px; grid-template-columns: 1fr; }

/* 提示块 */
.callout { border-left: 0; background: var(--accent-soft); color: var(--accent-soft-ink); padding: 18px 20px; border-radius: var(--r); margin: 20px 0; }
.callout a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.callout h3 { color: inherit; }
.callout-warn { background: var(--warm-soft); color: var(--warm-ink); }
.callout-note { background: var(--bg-alt); color: var(--ink-2); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* 标记 */
.badge { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; vertical-align: middle; letter-spacing: .01em; line-height: 1.3; white-space: nowrap; }
.badge-fiction { background: var(--warm-soft); color: var(--warm-ink); }
.badge-pending { background: var(--neutral-soft); color: var(--neutral-ink); }
.badge-verified { background: var(--accent-soft); color: var(--accent-soft-ink); }
.badge-neutral { background: var(--neutral-soft); color: var(--neutral-ink); }

/* 步骤 */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 12px; }
.steps li { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 16px 18px 16px 60px; position: relative; margin: 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 700; display: grid; place-items: center; font-size: .88rem; }
.steps h3 { font-size: 1rem; margin-bottom: .25em; }
.steps p { margin: 0; color: var(--ink-2); }

/* 表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0 18px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
th { background: var(--bg-alt); font-weight: 600; color: var(--ink-2); white-space: nowrap; font-size: .84rem; letter-spacing: .01em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s var(--ease); }
tbody tr:hover { background: rgba(0, 0, 0, .015); }
table.kv { min-width: 0; }
table.kv th { width: 40%; background: transparent; white-space: normal; color: var(--muted); font-weight: 500; }
.dl { display: grid; grid-template-columns: 1fr; gap: 4px 16px; margin: 0 0 1em; }
.dl dt { font-weight: 600; color: var(--muted); font-size: .84rem; letter-spacing: .01em; }
.dl dd { margin: 0 0 10px; }

/* 折叠 */
details { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 0 18px; margin-bottom: 10px; transition: box-shadow .2s var(--ease); }
details[open] { box-shadow: var(--shadow-1); }
summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; position: relative; padding-right: 32px; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details > *:not(summary) { padding-bottom: 8px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tag-list li { background: var(--surface); border: 1px solid var(--hair); border-radius: 999px; padding: 6px 12px; font-size: .88rem; margin: 0; }
.plan-option { border-top: 3px solid var(--accent); }
.plan-option .risk { color: var(--warm-ink); }
.sig { border-top: 1px dashed var(--hair-strong); padding-top: 12px; color: var(--muted); font-size: .9rem; }

/* 表单 */
form { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 650; margin-bottom: 10px; padding: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.field { margin-bottom: 18px; }
label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-bottom: 8px; line-height: 1.5; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--hair-strong); border-radius: 12px; background: var(--surface); color: var(--ink); min-height: 46px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea { min-height: 128px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .16); }
.choice { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; transition: background .15s var(--ease), border-color .15s var(--ease); cursor: pointer; }
.choice:hover { background: var(--bg-alt); }
.choice:has(input:checked) { background: var(--accent-soft); border-color: rgba(var(--accent-rgb), .25); }
.choice input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: .88rem; margin-top: 6px; display: none; }
.field.is-invalid .error { display: block; }
.form-summary { border: 1px solid rgba(179, 38, 30, .3); background: var(--danger-soft); color: #7a1c16; padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; display: none; }
.form-summary.is-visible { display: block; }
.char-count { font-size: .82rem; color: var(--muted); text-align: right; margin: 6px 0 0; }
.demo-result { display: none; margin-top: 22px; }
.demo-result.is-visible { display: block; animation: fade-down .3s var(--ease); }
.demo-result pre { white-space: pre-wrap; word-break: break-word; background: var(--bg-alt); padding: 14px 16px; border-radius: 12px; font-size: .9rem; line-height: 1.6; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 页脚 */
.site-footer { background: var(--bg-alt); color: var(--muted); margin-top: 24px; font-size: .84rem; border-top: 1px solid var(--hair); }
.site-footer a { color: var(--ink-2); }
.footer-grid { display: grid; gap: 22px; grid-template-columns: 1fr; padding-block: 32px 12px; }
.footer-title { font-weight: 600; color: var(--ink); margin-bottom: .5em; font-size: .86rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .35em; }
.footer-meta { border-top: 1px solid var(--hair); padding-block: 14px 26px; color: var(--muted); font-size: .78rem; }

/* 五年观察 */
.h1-sub { display: block; font-size: 1rem; font-weight: 500; color: var(--muted); margin-top: .35em; letter-spacing: 0; }
.src-line { font-size: .82rem; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.src-line .badge { margin-left: 2px; }
.src-line.attribution { color: var(--ink-2); border-left: 2px solid var(--hair-strong); padding-left: 10px; margin-top: 6px; }
.filters { display: grid; gap: 12px; grid-template-columns: 1fr; padding: 16px; margin-bottom: 14px; border-radius: var(--r); }
.filter-field label { margin-bottom: 4px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.filter-note { margin: 0; align-self: end; }
.school-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.school-list li { margin: 0; }
.school-card { padding: 22px; }
.school-card h3 { margin-bottom: .1em; font-size: 1.2rem; }
.school-card h3 a { color: var(--ink); }
.school-card h3 a:hover { color: var(--accent); text-decoration: none; }
.school-card > p:last-child { margin-bottom: 0; font-weight: 600; }
.dl.compact { gap: 2px 12px; margin: 12px 0 .8em; }
.dl.compact dt { font-size: .78rem; }
.dl.compact dd { margin-bottom: 6px; }
.school-card[hidden] { display: none; }
sup.fn a { font-weight: 700; padding: 0 2px; }
.fn-list li { margin-bottom: .5em; }

/* 页内章节导航（学校页） */
.toc { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; margin: 6px 0 12px; scrollbar-width: none; position: sticky; top: 56px; z-index: 30; background: linear-gradient(var(--bg) 85%, transparent); }
.toc::-webkit-scrollbar { display: none; }
.toc a { white-space: nowrap; padding: 7px 13px; border-radius: 999px; font-size: .86rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--hair); transition: all .2s var(--ease); }
.toc a:hover { text-decoration: none; border-color: var(--hair-strong); color: var(--ink); }
.toc a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.section-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.section-head .small { margin: 0; }
.eyebrow { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--warm); margin-bottom: 8px; }

/* 桌面 */
@media (min-width: 640px) {
  body { font-size: 17px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .dl { grid-template-columns: 170px 1fr; }
  .dl dd { margin-bottom: 6px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: repeat(3, 1fr) auto; align-items: end; }
  .school-list { grid-template-columns: repeat(2, 1fr); }
  .dl.compact { grid-template-columns: 150px 1fr; }
  .nav-cta .btn { width: auto; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .header-inner { min-height: 60px; }
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 4px; padding: 0; }
  .site-nav a { padding: 8px 12px; font-size: .92rem; border-radius: 999px; }
  .site-nav a[aria-current="page"] { background: var(--bg-alt); }
  .nav-cta { margin-top: 0; margin-left: 10px; }
  main { padding-block: 48px 88px; }
  .section { margin-block: 64px; }
  .hero { padding: 40px 0 12px; }
  .toc { top: 60px; }
  [id] { scroll-margin-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 修正：桌面导航项与按钮不换行 */
.btn { white-space: nowrap; }
.site-nav li { margin: 0; flex: none; }
.site-nav a { white-space: nowrap; }
@media (min-width: 900px) {
  .brand { flex: 0 1 auto; margin-right: 12px; }
  .site-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
  .site-nav ul { flex-wrap: nowrap; }
}
@media (min-width: 900px) and (max-width: 1080px) {
  .site-nav a { padding: 8px 9px; font-size: .86rem; }
  .brand-en { display: none; }
}
@media (min-width: 1100px) {
  .brand { flex: 0 1 auto; }
}

/* 术语与名词解释 */
abbr.term, .term { text-decoration: none; border-bottom: 1px dotted var(--hair-strong); cursor: help; }
.glossary dt { font-weight: 650; margin-top: 18px; font-size: 1.02rem; }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); }
.glossary .en { color: var(--muted); font-weight: 500; font-size: .9em; margin-left: 6px; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.guide-list li { margin: 0; }
.guide-list .card h3 { font-size: 1.08rem; margin-bottom: .3em; }
.guide-list .card p { margin-bottom: .4em; color: var(--ink-2); }
.guide-group { margin-top: 28px; }
.guide-group h2 { font-size: 1.25rem; }
@media (min-width: 640px) { .guide-list { grid-template-columns: repeat(2, 1fr); } }

/* 导航项增多后的桌面紧凑布局 */
@media (min-width: 900px) {
  .site-nav a { padding: 7px 9px; font-size: .88rem; }
  .nav-cta { margin-left: 6px; }
  .nav-cta .btn { padding: 8px 14px; font-size: .84rem; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand-zh { font-size: .92rem; }
  .header-inner { gap: 8px; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .brand-en { display: none; }
  .site-nav a { padding: 7px 7px; font-size: .84rem; }
}

/* 手机菜单里补回"首页"入口由品牌名承担；桌面品牌名保证不被遮挡 */
@media (min-width: 900px) {
  .brand { max-width: 260px; }
  .site-nav { flex: 0 1 auto; margin-left: auto; }
}
@media (min-width: 1200px) { .brand { max-width: 340px; } }
@media (min-width: 1200px) { .site-header .wrap { max-width: 1120px; } }

/* 配色对比页 */
.palette-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.palette-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hair); background: var(--bg); color: var(--ink); padding: 0; }
.palette-card .pc-head { padding: 18px 20px 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.palette-card .pc-body { padding: 0 20px 20px; }
.swatches { display: flex; gap: 6px; margin: 8px 0 14px; }
.swatches span { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(0,0,0,.06); }
.mini-hero h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: .3em; }
.mini-hero p { color: var(--ink-2); }
.mini-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow-1); margin-top: 12px; }
.mini-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
@media (min-width: 900px) { .palette-grid { grid-template-columns: repeat(3, 1fr); } }

/* 顶栏按钮不受导航链接样式覆盖 */
.site-nav .nav-cta .btn-primary, .site-nav .nav-cta .btn-primary:hover { color: var(--accent-ink); background: var(--accent); }
.site-nav .nav-cta .btn-primary:hover { background: var(--accent-hover); }

/* 信任条 / 对比表 / 最近更新 */
.trust-strip { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.trust-strip li { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 14px 16px; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.trust-strip strong { font-size: .98rem; letter-spacing: -0.005em; }
.trust-strip span { color: var(--muted); font-size: .86rem; line-height: 1.5; }
table.compare th[scope="row"] { background: transparent; color: var(--muted); font-weight: 600; white-space: normal; width: 22%; }
table.compare td:last-child { color: var(--ink); font-weight: 500; }
table.compare thead th:last-child { color: var(--accent); }
.updates { list-style: none; padding: 0; margin: 0 0 .6em; }
.updates li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); margin: 0; }
.updates li:last-child { border-bottom: 0; }
.updates time { color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
@media (min-width: 640px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
/* 主标题：更宽的容器 + 平衡换行，避免在词中间断行 */
.hero h1 { max-width: 19em; }

/* 审核修订 */
.callout h2.callout-title { font-size: 1.12rem; letter-spacing: -0.005em; margin-bottom: .5em; color: inherit; }
table.yr { min-width: 0; }
table.yr th[scope="row"] { background: transparent; color: var(--muted); font-weight: 600; white-space: normal; }
table.yr td { font-variant-numeric: tabular-nums; }
table.yr tr.total td, table.yr tr.total th { border-top: 1px solid var(--hair-strong); font-weight: 600; color: var(--ink); }
.glossary dt:target { background: var(--accent-soft); border-radius: 8px; padding: 2px 6px; margin-left: -6px; }
