@charset "UTF-8";
/* ==========================================================================
   Jiyinjiance.com — 基因检测与精准医学知识平台
   共享样式表：医学专业视觉 + 中文排版 + 桌面 / 平板 / 手机三端响应式
   ========================================================================== */

:root {
  --brand: #0B5C7A;
  --brand-dark: #08455D;
  --brand-mid: #0E7C9B;
  --brand-light: #E8F3F7;
  --teal: #0C9689;
  --teal-light: #E7F6F3;
  --red: #C0392B;
  --red-soft: #FBEDEB;
  --amber: #B57615;
  --amber-soft: #FDF4E3;
  --green: #1E8A6E;
  --green-soft: #E9F6F1;
  --ink: #172C36;
  --ink-2: #3B5460;
  --ink-3: #607987;
  --muted: #7D939E;
  --line: #DCE8ED;
  --line-2: #EAF1F4;
  --bg: #F5F9FB;
  --bg-2: #EDF4F7;
  --white: #FFFFFF;
  --shadow: 0 2px 10px rgba(11, 92, 122, .06);
  --shadow-hover: 0 10px 28px rgba(11, 92, 122, .13);
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.4; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
/* 触屏设备不应用基础 hover 视觉规则：iOS Safari 首次轻点会先悬停、第二次才跳转 */
@media (hover: hover) {
  a:hover { color: var(--teal); }
}
/* 消除移动端点击延迟，并给出即时的点按高亮 */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(12,150,137,.18); }
img, svg { max-width: 100%; vertical-align: middle; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #4FB3CE; outline-offset: 2px; }
::selection { background: #BFE4EF; color: var(--brand-dark); }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-dark); color: #fff; padding: 10px 18px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--brand-dark); color: #D7EAF1; font-size: 13px; line-height: 1.6;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar p { margin: 0; }
.topbar a { color: #BFE4EF; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 16px; white-space: nowrap; }

/* ---------- 主导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 6px rgba(11,92,122,.05); }
.nav-row { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; color: var(--brand-dark); }
.brand:hover { color: var(--brand-dark); }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-cn { font-size: 18px; font-weight: 800; letter-spacing: .06em; }
.brand-en { font-size: 10px; letter-spacing: .12em; color: var(--muted); font-weight: 500; text-transform: uppercase; margin-top: 3px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav li { margin: 0; position: relative; }
.main-nav a {
  display: block; padding: 10px 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); border-radius: var(--radius-sm); white-space: nowrap;
}
/* hover 效果仅限真正带鼠标的设备：iOS Safari 只要元素存在生效的 :hover 样式，
   首次轻点会先应用 hover 而不跳转，导致链接「要点两下」；触屏改用 :active 按压反馈。 */
@media (hover: hover) {
  .main-nav a:hover { color: var(--brand); background: var(--brand-light); }
  .sub-menu a:hover { background: var(--brand-light); }
  .sub-toggle:hover { background: var(--brand-light); }
  .has-sub:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
}
.main-nav a:active, .sub-menu a:active { color: var(--brand); background: var(--brand-light); }
.sub-toggle:active { background: var(--brand-light); }
.main-nav li.active > a, .main-nav li.active > .nav-item > a { color: var(--brand); background: var(--brand-light); }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--brand-dark); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-cta { flex-shrink: 0; }

/* 一级栏目：文字链接直达栏目页，独立按钮展开子菜单（桌面端 hover 下拉保持不变） */
.nav-item { display: flex; align-items: center; }
.nav-item > a { flex: 1 1 auto; min-width: 0; }
.sub-toggle { display: none; }
.nav-item > a::after { content: ""; display: inline-block; width: 5px; height: 5px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 6px; opacity: .6; }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: .2s ease; list-style: none; margin: 0;
}
/* 键盘 focus 时同样展开下拉（与设备无关，保证可访问性） */
.has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li { margin: 0; }
.sub-menu a { display: block; padding: 9px 12px; font-size: 14px; border-radius: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease; text-align: center;
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(11,92,122,.2); }
.btn-primary:hover { background: var(--brand-mid); }
.btn-outline { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); color: var(--brand-dark); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #0A8579; }
.btn-sm { min-height: 38px; padding: 7px 15px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.breadcrumb .wrap { display: flex; align-items: center; gap: 8px; min-height: 44px; flex-wrap: wrap; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: #B9CBD4; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--brand); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, #F0F8FB 0%, #FFFFFF 48%, #E9F6F4 100%); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -80px; top: -120px; width: 460px; height: 460px; border: 1px solid rgba(12,150,137,.13); border-radius: 50%; }
.hero::after { content: ""; position: absolute; right: 20px; top: -40px; width: 300px; height: 300px; border: 1px solid rgba(11,92,122,.10); border-radius: 50%; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding-block: 46px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: .08em; background: var(--teal-light); border: 1px solid #CDEBE5; border-radius: 999px; padding: 5px 14px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.hero h1 { font-size: clamp(28px, 3.6vw, 42px); color: var(--brand-dark); letter-spacing: .01em; margin-bottom: 16px; }
.hero h1 .accent { color: var(--teal); }
.hero-lead { font-size: 17px; color: var(--ink-2); max-width: 42em; margin-bottom: 22px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--brand-mid); }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 290px); height: auto; filter: drop-shadow(0 8px 20px rgba(11,92,122,.12)); }

/* 首页大屏 */
.hero-home { background: linear-gradient(115deg, #08455D 0%, #0B5C7A 46%, #0C7C8C 100%); color: #fff; border-bottom: none; }
.hero-home::before { border-color: rgba(255,255,255,.10); }
.hero-home::after { border-color: rgba(255,255,255,.07); }
.hero-home .wrap { padding-block: 62px 66px; grid-template-columns: 1.12fr .88fr; }
.hero-home h1 { color: #fff; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.32; }
.hero-home h1 .accent { color: #82E0D0; }
.hero-home .hero-lead { color: #D5EAF1; font-size: 17.5px; max-width: 40em; }
.hero-home .eyebrow { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); color: #A9EADF; }
.hero-home .eyebrow::before { background: #7FE3D2; }
.hero-home .hero-meta { color: #B3D5E2; }
.hero-home .hero-meta svg { color: #8FE0D1; }
.hero-home .btn-outline { background: transparent; border-color: rgba(255,255,255,.65); color: #fff; }
.hero-home .btn-outline:hover { background: rgba(255,255,255,.14); }
.hero-home .btn-primary { background: #fff; color: var(--brand-dark); }
.hero-home .btn-primary:hover { background: #E8F6F8; color: var(--brand-dark); }

/* ---------- 通用区块 ---------- */
.section { padding-block: 52px; }
.section-alt { background: #fff; border-block: 1px solid var(--line-2); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(23px, 2.7vw, 31px); color: var(--brand-dark); margin-bottom: 12px; }
.section-head h2::after { content: ""; display: block; width: 42px; height: 3px; background: var(--teal); border-radius: 3px; margin: 14px auto 0; }
.section-head p { color: var(--ink-3); font-size: 15.5px; margin: 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--teal); text-transform: uppercase; margin-bottom: 8px; }

/* ---------- 卡片 ---------- */
.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)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #B9D9E4; }
.card h3 { font-size: 18px; color: var(--brand-dark); margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 0; }
.card p + p, .card ul { margin-top: 10px; }
.card ul { font-size: 14.5px; color: var(--ink-2); margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }
.card-num { font-size: 13px; font-weight: 800; color: var(--teal); letter-spacing: .1em; margin-bottom: 6px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; margin-top: 14px; }
.card-link::after { content: "→"; font-size: 16px; transition: transform .2s; }
.card-link:hover::after { transform: translateX(4px); }
.card-teal { border-top: 3px solid var(--teal); }
.card-plain { box-shadow: none; }

.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-light); color: var(--brand); border: 1px solid #CBE3EB; margin: 0 6px 6px 0; }
.tag-teal { background: var(--teal-light); color: var(--teal); border-color: #CBE9E3; }
.tag-red { background: var(--red-soft); color: var(--red); border-color: #F1D3CE; }
.tag-amber { background: var(--amber-soft); color: var(--amber); border-color: #F0DFBE; }
.tag-row { margin-top: 12px; }

/* ---------- 正文文章布局 ---------- */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 36px; align-items: start; padding-block: 38px 60px; }
.article { min-width: 0; }
.article-head { margin-bottom: 26px; }
.article-head h1 { font-size: clamp(26px, 3.2vw, 36px); color: var(--brand-dark); margin-bottom: 14px; }
.article-head .lead { font-size: 16.5px; color: var(--ink-2); line-height: 1.85; margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line-2); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.sec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 22px; box-shadow: var(--shadow); scroll-margin-top: 92px; }
.sec > h2 { font-size: 22px; color: var(--brand-dark); padding-bottom: 14px; border-bottom: 2px solid var(--brand-light); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.sec > h2::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: var(--teal); flex-shrink: 0; }
.sec h3 { font-size: 17.5px; color: var(--brand); margin: 26px 0 10px; }
.sec h3:first-of-type { margin-top: 4px; }
.sec h4 { font-size: 15.5px; color: var(--ink); margin: 18px 0 8px; }
.sec p, .sec li { color: var(--ink-2); font-size: 15.3px; }
.sec p:last-child, .sec ul:last-child, .sec ol:last-child { margin-bottom: 0; }
.sec strong { color: var(--ink); font-weight: 700; }
.sec a { border-bottom: 1px solid rgba(11,92,122,.25); }
.sec a:hover { border-bottom-color: var(--teal); }
.sec code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: .9em; font-family: "SFMono-Regular", Consolas, monospace; color: var(--brand-dark); }

/* 侧边目录 */
.toc { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--shadow); }
.toc h2 { font-size: 14px; letter-spacing: .08em; color: var(--brand-dark); padding-bottom: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; }
.toc a { display: block; padding: 7px 8px 7px 28px; font-size: 13.5px; color: var(--ink-3); border-radius: 6px; position: relative; line-height: 1.55; }
.toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 6px; font-size: 11px; color: var(--muted); font-weight: 700; }
.toc a:hover, .toc a.current { background: var(--brand-light); color: var(--brand); font-weight: 600; }
.toc-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.toc-cta { display: block; margin-top: 14px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 8px; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 620px; font-size: 14.2px; background: #fff; }
.table-wrap th, .table-wrap td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; line-height: 1.7; }
.table-wrap thead th { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; white-space: nowrap; border-bottom: 2px solid #C6DDE6; }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:nth-child(even) { background: #FAFCFD; }
.table-wrap td strong { color: var(--brand-dark); }
.table-caption { font-size: 13px; color: var(--muted); margin: -8px 0 16px; }

/* ---------- 提示框 ---------- */
.notice { border-radius: 8px; padding: 16px 18px 16px 46px; margin: 18px 0; position: relative; font-size: 14.8px; line-height: 1.8; border: 1px solid; }
.notice::before { position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { font-weight: 700; }
.notice-info { background: var(--brand-light); border-color: #C4DFE9; color: var(--ink-2); }
.notice-info::before { content: "i"; background: var(--brand-mid); font-family: Georgia, serif; }
.notice-warn { background: var(--amber-soft); border-color: #EFD9AE; color: #6B4D17; }
.notice-warn::before { content: "!"; background: var(--amber); }
.notice-danger { background: var(--red-soft); border-color: #EFCFC9; color: #7A322A; }
.notice-danger::before { content: "!"; background: var(--red); }
.notice-ok { background: var(--green-soft); border-color: #C6E8DC; color: #155C49; }
.notice-ok::before { content: "✓"; background: var(--green); }
.notice-title { display: block; font-weight: 800; margin-bottom: 4px; font-size: 15px; }

/* 定义列表 / 要点 */
.fact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
.fact { background: var(--bg); border-left: 3px solid var(--brand-mid); border-radius: 0 6px 6px 0; padding: 12px 16px; font-size: 14.5px; color: var(--ink-2); }
.fact b { display: block; color: var(--brand-dark); font-size: 14px; margin-bottom: 2px; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }
.cross-list li::before { content: "×"; color: var(--red); }

/* 步骤流程 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.step h3 { font-size: 16px; color: var(--brand-dark); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 15px 46px 15px 18px; font-weight: 700; font-size: 15.5px; color: var(--brand-dark); list-style: none; position: relative; min-height: 50px; display: flex; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--teal); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { background: var(--brand-light); }
.faq-body { padding: 16px 18px 18px; font-size: 14.8px; color: var(--ink-2); border-top: 1px solid var(--line-2); }
.faq-body p:last-child { margin-bottom: 0; }

/* 相关阅读 / 内链 */
.related { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 22px; }
.related h2 { font-size: 18px; color: var(--brand-dark); margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.related a { display: block; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); border-bottom-width: 1px; }
.related a:hover { background: var(--brand-light); color: var(--brand); border-color: #C6DDE6; }

/* ---------- 在线测试组件 ---------- */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin: 18px 0; box-shadow: var(--shadow); }
.quiz-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.quiz-badge { flex-shrink: 0; font-size: 12px; font-weight: 800; color: #fff; background: var(--teal); border-radius: 6px; padding: 4px 10px; letter-spacing: .04em; }
.quiz h3 { font-size: 18px; color: var(--brand-dark); margin: 0 0 4px; }
.quiz-desc { font-size: 14px; color: var(--muted); margin: 0; }
.quiz-disclaimer { font-size: 12.8px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 10px 12px; margin-bottom: 18px; line-height: 1.7; }
.q-block { padding: 16px 0; border-top: 1px dashed var(--line); }
.q-block:first-of-type { border-top: none; padding-top: 0; }
.q-title { font-weight: 700; font-size: 15.3px; color: var(--ink); margin-bottom: 10px; display: flex; gap: 8px; }
.q-no { color: var(--teal); font-weight: 800; flex-shrink: 0; }
.q-opts { display: grid; gap: 8px; }
.q-opt { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: 14.6px; color: var(--ink-2); background: #fff; transition: .16s; min-height: 44px; }
.q-opt:hover { border-color: var(--brand-mid); background: var(--brand-light); }
.q-opt input { margin: 4px 0 0; accent-color: var(--brand); width: 17px; height: 17px; flex-shrink: 0; }
.q-opt.checked { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.q-opt.correct { border-color: var(--green); background: var(--green-soft); color: #155C49; }
.q-opt.wrong { border-color: var(--red); background: var(--red-soft); color: #7A322A; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.quiz-result { margin-top: 20px; border-radius: 8px; padding: 20px; border: 1px solid; display: none; }
.quiz-result.show { display: block; animation: fadeIn .35s ease; }
.quiz-result h4 { font-size: 17px; margin-bottom: 10px; color: inherit; }
.quiz-result ul { margin-bottom: 0; font-size: 14.5px; }
.quiz-result-score { font-size: 30px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.q-explain { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; padding-left: 14px; border-left: 3px solid var(--brand-light); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.checklist-field { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; margin-bottom: 10px; }
.checklist-field:focus { border-color: var(--brand-mid); outline: none; }

/* ---------- 分类导航条 ---------- */
.cat-strip { background: #fff; border-bottom: 1px solid var(--line-2); }
.cat-strip .wrap { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 14px; }
.cat-strip a { font-size: 13.5px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--bg); }
.cat-strip a:hover, .cat-strip a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0A3D52; color: #C7DEE7; padding-top: 48px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.footer-brand .brand-cn { color: #fff; }
.footer-brand p { color: #A9CBD8; font-size: 13.5px; line-height: 1.8; margin: 14px 0 0; }
.footer-col h3 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .04em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #BAD5DF; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.13); padding-block: 18px 22px; font-size: 12.8px; color: #9ABECB; }
.footer-bottom p { margin: 0 0 6px; }
.footer-note { background: rgba(255,255,255,.06); border-left: 3px solid #4FB3CE; border-radius: 0 6px 6px 0; padding: 14px 18px; font-size: 13px; color: #BCD9E4; line-height: 1.8; margin-bottom: 22px; }
.footer-note strong { color: #fff; }

/* 回到顶部 */
.to-top { position: fixed; right: 20px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); box-shadow: var(--shadow-hover); cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 50; font-size: 20px; }
.to-top.show { display: flex; }
.to-top:hover { background: var(--brand); color: #fff; }

/* ---------- 响应式：平板 ---------- */
@media (max-width: 1080px) {
  .main-nav a { padding: 10px 8px; font-size: 13.5px; }
  .nav-row { gap: 14px; }
  .page-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero .wrap, .hero-home .wrap { gap: 24px; }
}

@media (max-width: 900px) {
  .topbar .wrap { justify-content: center; }
  .topbar p { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-hover); max-height: calc(100vh - 110px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    display: none; padding: 10px 20px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { display: block; }
  .main-nav li { border-bottom: 1px solid var(--line-2); }
  .main-nav a { padding: 12px 10px; font-size: 15px; border-radius: 6px; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 8px 14px; min-width: 0; display: none; }
  .has-sub:focus-within > .sub-menu { display: none; }
  @keyframes jyjSubIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
  .sub-menu.open { display: block !important; animation: jyjSubIn .2s ease both; }
  .nav-item { display: flex; align-items: center; gap: 2px; }
  .nav-item > a { flex: 1 1 auto; min-width: 0; }
  .nav-item > a::after { display: none; }
  .sub-toggle { display: flex; flex: 0 0 44px; height: 44px; align-items: center; justify-content: center; margin-right: 2px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; }
  .sub-toggle span { display: block; width: 8px; height: 8px; border-right: 2px solid var(--brand-dark); border-bottom: 2px solid var(--brand-dark); transform: rotate(45deg) translateY(-2px); opacity: .75; transition: transform .2s ease; }
  .sub-toggle:focus-visible { background: var(--brand-light); outline: 2px solid var(--brand); outline-offset: -2px; }
  .sub-toggle[aria-expanded="true"] span { transform: rotate(225deg) translate(-2px, -2px); }
  .has-sub.open > .nav-item > a { color: var(--brand); }
  .nav-cta { display: none; }
  .page-layout { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 22px; }
  .toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .hero .wrap, .hero-home .wrap { grid-template-columns: 1fr; padding-block: 40px; }
  .hero-art { display: none; }
  .hero-home .hero-art { display: flex; order: -1; justify-content: flex-start; }
  .hero-home .hero-art svg { width: 140px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 响应式：手机 ---------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { width: min(100% - 28px, var(--max)); }
  .nav-row { min-height: 60px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-cn { font-size: 16px; }
  .brand-en { font-size: 9px; }
  .topbar { font-size: 12px; }
  .topbar .wrap { min-height: 32px; }
  .breadcrumb { font-size: 12.5px; }
  .section { padding-block: 36px; }
  .section-head { margin-bottom: 26px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .sec { padding: 20px 18px; margin-bottom: 16px; }
  .sec > h2 { font-size: 19px; }
  .sec h3 { font-size: 16px; }
  .sec p, .sec li { font-size: 14.8px; }
  .fact-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .toc ol { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .quiz { padding: 18px 16px; }
  .quiz h3 { font-size: 16.5px; }
  .q-opt { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero h1 { font-size: 27px; }
  .hero-home h1 { font-size: 28px; }
  .hero-lead, .hero-home .hero-lead { font-size: 15.5px; }
  /* 手机上首屏聚焦文字信息，隐藏纯装饰插画，缩短首屏高度 */
  .hero-art, .hero-home .hero-art { display: none !important; }
  .hero .wrap, .hero-home .wrap { padding-block: 32px 34px; }
  .btn { width: 100%; }
  .quiz-actions .btn { width: 100%; }
  .to-top { right: 12px; bottom: 14px; width: 40px; height: 40px; }
}

@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 打印 ---------- */
@media print {
  .topbar, .site-header, .breadcrumb, .toc, .site-footer, .to-top, .hero-actions, .quiz-actions, .cat-strip { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-layout { display: block; padding: 0; }
  .sec, .card, .quiz { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .faq-item[open] .faq-body, .faq-body { display: block !important; }
  details { open: open; }
}
