/* ==========================================================================
   LookLong Imaging — ez1288 图像传感器与相机性能测试平台
   静态站点样式表 · 三套主题（tech / industrial / academic）
   ========================================================================== */

/* ---------- 1. 主题变量 ---------- */
:root {
  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC",
    Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-serif: Georgia, "Songti SC", "Noto Serif SC", "Source Han Serif SC",
    "SimSun", serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 主题一：深空科技（深蓝黑 + 青蓝光） */
html[data-theme="tech"] {
  --bg: #08111f;
  --bg-soft: #0d1a2c;
  --surface: #101f34;
  --surface-2: #152a44;
  --text: #dfe9f6;
  --text-strong: #ffffff;
  --muted: #a6bad2;
  --border: rgba(120, 170, 220, 0.18);
  --border-strong: rgba(120, 190, 240, 0.35);
  --accent: #38bdf8;
  --accent-strong: #67d3ff;
  --accent-ink: #04121f;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --gold: #f0b429;
  --hero-glow: radial-gradient(900px 420px at 78% -10%, rgba(56, 189, 248, 0.22), transparent 65%),
    radial-gradient(700px 380px at 8% 10%, rgba(37, 99, 235, 0.18), transparent 70%);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(8, 17, 31, 0.82);
  --table-head: #16304d;
  --table-alt: rgba(255, 255, 255, 0.025);
  --heading-font: var(--font-sans);
  --img-bg: #ffffff;
}

/* 主题二：精密工业（白 + 深海军蓝 + 琥珀点缀） */
html[data-theme="industrial"] {
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --text: #22303f;
  --text-strong: #0d1b2a;
  --muted: #5b6c7e;
  --border: #dde5ee;
  --border-strong: #c3d2e2;
  --accent: #0b5fa5;
  --accent-strong: #0a4d86;
  --accent-ink: #ffffff;
  --accent-soft: #eaf3fb;
  --gold: #d97706;
  --hero-glow: radial-gradient(820px 400px at 82% -20%, #e8f2fb, transparent 70%),
    linear-gradient(180deg, #f7fafd, #ffffff 70%);
  --shadow: 0 14px 38px rgba(15, 43, 70, 0.09);
  --header-bg: rgba(255, 255, 255, 0.9);
  --table-head: #0b5fa5;
  --table-alt: #f7fafd;
  --heading-font: var(--font-sans);
  --img-bg: #ffffff;
}

/* 主题三：学术经典（暖白纸感 + 墨蓝 + 衬线标题） */
html[data-theme="academic"] {
  --bg: #fbf9f4;
  --bg-soft: #f4f0e7;
  --surface: #fffdf9;
  --surface-2: #f6f1e7;
  --text: #2a2722;
  --text-strong: #14120e;
  --muted: #6d6457;
  --border: #e2d9c8;
  --border-strong: #cfc2ab;
  --accent: #1f3b57;
  --accent-strong: #16293d;
  --accent-ink: #ffffff;
  --accent-soft: #ece5d8;
  --gold: #9a6b3f;
  --hero-glow: radial-gradient(760px 380px at 85% 0%, #f0e7d6, transparent 70%);
  --shadow: 0 10px 28px rgba(80, 62, 40, 0.08);
  --header-bg: rgba(251, 249, 244, 0.92);
  --table-head: #1f3b57;
  --table-alt: #f8f4ec;
  --heading-font: var(--font-serif);
  --img-bg: #ffffff;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--accent); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  color: var(--text-strong);
  line-height: 1.35;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.7rem); line-height: 1.28; }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.85rem); }
h3 { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.3rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }
li { margin-bottom: 0.45em; }
strong, b { color: var(--text-strong); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.2rem 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 74px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img {
  height: 42px; width: auto; display: block; border-radius: 4px;
  background: #fff; padding: 3px 6px;
}
.brand-text { display: none; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--text); font-size: 0.97rem; font-weight: 600; letter-spacing: 0.02em;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.site-nav a.is-active { color: var(--accent); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--accent);
}

.theme-switch {
  display: flex; align-items: center; gap: 6px;
  padding: 4px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-2);
}
.theme-switch button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-family: inherit; font-size: 0.76rem; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.theme-switch button::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--sw, var(--muted)); box-shadow: 0 0 0 2px rgba(0,0,0,0.06) inset;
}
.theme-switch button[data-theme-set="tech"] { --sw: #38bdf8; }
.theme-switch button[data-theme-set="industrial"] { --sw: #0b5fa5; }
.theme-switch button[data-theme-set="academic"] { --sw: #9a6b3f; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] {
  background: var(--accent); color: var(--accent-ink);
}

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 4px auto;
  background: currentColor; border-radius: 2px; transition: transform 0.2s var(--ease);
}

/* ---------- 4. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-glow), var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.25;
  -webkit-mask-image: radial-gradient(ellipse at 60% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 60% 0%, #000 10%, transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: 56px; align-items: center;
  padding: 76px 0 68px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--border-strong);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .thin { font-weight: 400; color: var(--muted); display: block; font-size: 0.5em; letter-spacing: 0.06em; margin-top: 10px; }
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 40em; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.hero-figure img { border-radius: var(--radius-sm); background: var(--img-bg); display: block; }
.hero-inner.single { grid-template-columns: 1fr; padding: 56px 0 48px; }
.hero-inner.single .hero-lead { max-width: 52em; }
.page-hero h1 { max-width: 24em; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 700; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------- 5. 公告条 ---------- */
.notice-bar { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.notice-inner {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--border);
}
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-soft); padding: 16px 22px;
  font-size: 0.93rem; color: var(--text);
}
.notice .tag {
  flex: 0 0 auto; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--accent-ink); background: var(--accent);
  border-radius: 4px; padding: 2px 7px; margin-top: 3px;
}
.notice .tag.warm { background: var(--gold); color: #1a1206; }

/* ---------- 6. 区块与卡片 ---------- */
.section { padding: 64px 0; }
.section.tight { padding: 44px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head .kicker {
  display: block; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 22px; }
.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: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 1.05rem; margin-bottom: 14px;
  border: 1px solid var(--border-strong);
}
.card.feature { position: relative; overflow: hidden; }
.card.feature::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

/* 正文排版块 */
.prose { max-width: 78ch; }
.prose p { text-align: justify; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose ul li::marker { color: var(--accent); }

/* 两栏：正文 + 侧栏 */
.split { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.aside-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.aside-card h3 { font-size: 1rem; letter-spacing: 0.04em; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li { padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; }
.aside-card li:last-child { border-bottom: 0; }
.aside-card .qr { display: block; width: 100%; border-radius: var(--radius-sm); background: #fff; }

/* 统计条 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 22px 20px; }
.stat .num { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 800; color: var(--accent); line-height: 1.15; letter-spacing: -0.01em; }
.stat .lbl { font-size: 0.84rem; color: var(--muted); margin-top: 4px; }

/* ---------- 7. 表格 ---------- */
.table-scroll { width: 100%; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 980px; }
table.cmp caption { caption-side: top; text-align: left; padding: 14px 16px; color: var(--muted); font-size: 0.86rem; }
table.cmp th, table.cmp td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
table.cmp thead th {
  background: var(--table-head); color: #fff; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.02em; white-space: nowrap;
  position: sticky; top: 0;
}
table.cmp tbody tr:nth-child(even) { background: var(--table-alt); }
table.cmp tbody tr:hover { background: var(--accent-soft); }
table.cmp td:first-child, table.cmp th:first-child { text-align: left; font-weight: 700; white-space: nowrap; }
table.cmp td.note, table.cmp th.note { text-align: left; font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
table.cmp .price { font-weight: 800; color: var(--accent); white-space: nowrap; }
table.cmp .hl-red { color: #d64545; font-weight: 700; }
table.cmp .hl-blue { color: var(--accent); font-weight: 700; }
.only-m { display: none; }

/* ---------- 8. 产品展示 ---------- */
.product-block {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px;
  align-items: start; padding: 40px 0; border-top: 1px solid var(--border);
}
.product-block:first-of-type { border-top: 0; padding-top: 8px; }
.product-block.reverse { grid-template-columns: 1.15fr 0.85fr; }
.product-block.reverse .product-media { order: 2; }
.product-media {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; position: sticky; top: 96px;
}
.product-media img { display: block; width: 100%; border-radius: var(--radius-sm); background: var(--img-bg); }
.product-media figcaption { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 10px; }
.product-body h2 { font-size: 1.45rem; }
.spec-list { list-style: none; padding: 0; margin: 16px 0 0; }
.spec-list li {
  position: relative; padding: 8px 0 8px 26px; border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list li::before {
  content: ""; position: absolute; left: 4px; top: 1.05em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- 9. 价格/服务卡 ---------- */
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.price-card .badge {
  position: absolute; top: 0; right: 0; background: var(--accent); color: var(--accent-ink);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 5px 14px; border-bottom-left-radius: 10px;
}
.price-card .amount { font-size: 2.1rem; font-weight: 800; color: var(--text-strong); line-height: 1.1; margin: 6px 0 4px; }
.price-card .amount small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.price-card .cond { font-size: 0.88rem; color: var(--muted); margin-bottom: 0; }

/* 列表：机构 / 文章 */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li {
  border-bottom: 1px solid var(--border); padding: 0;
}
.link-list li:last-child { border-bottom: 0; }
.link-list a {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 6px; color: var(--text); font-size: 0.95rem;
  transition: background 0.16s var(--ease), padding 0.16s var(--ease);
}
.link-list a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; padding-left: 14px; }
.link-list .idx {
  flex: 0 0 auto; font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--accent); padding-top: 2px; min-width: 1.8em;
}

/* 客户/资质 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 13px; font-size: 0.85rem;
  color: var(--text); margin: 0;
}

/* CTA */
.cta-band {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink); border-radius: var(--radius);
  padding: 38px 40px; display: flex; flex-wrap: wrap; gap: 22px;
  align-items: center; justify-content: space-between;
}
.cta-band h2 { color: var(--accent-ink); margin: 0 0 6px; font-size: 1.4rem; }
.cta-band p { margin: 0; opacity: 0.9; }
.cta-band .btn { background: #fff; color: var(--accent); border-color: #fff; }
.cta-band .btn:hover { background: rgba(255,255,255,0.88); }

/* ---------- 10. 页脚 ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 46px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.footer-brand img { height: 38px; width: auto; background: #fff; padding: 3px 6px; border-radius: 4px; }
.footer-brand p { font-size: 0.88rem; color: var(--muted); margin-top: 12px; max-width: 34em; }
.site-footer h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 0.82rem; color: var(--muted);
}
.footer-slogan { font-style: italic; letter-spacing: 0.02em; }

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-inner { gap: 36px; padding: 58px 0 52px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .product-block, .product-block.reverse { grid-template-columns: 1fr; gap: 24px; }
  .product-block.reverse .product-media { order: 0; }
  .product-media { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 10px 18px 16px; display: none;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 10px; border-radius: 8px; }
  .site-nav a.is-active::after { display: none; }
  .site-nav a.is-active { background: var(--accent-soft); }
  .nav-toggle { display: block; }
  .theme-switch { margin-left: auto; }
  .theme-switch button { padding: 5px 8px; font-size: 0.72rem; }
  .hero-inner { grid-template-columns: 1fr; padding: 44px 0 40px; }
  .hero-figure { order: -1; max-width: 520px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notice-inner { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .cta-band { padding: 28px; }

  /* 平板与手机：配置表转卡片 */
  .table-scroll { overflow: visible; border: 0; background: transparent; }
  table.cmp caption { display: block; width: 100%; padding: 0 0 12px; white-space: normal; }
  table.cmp { min-width: 0; display: block; }
  table.cmp thead { display: none; }
  table.cmp tbody, table.cmp tr, table.cmp td, table.cmp tbody th { display: block; width: 100%; }
  table.cmp tbody th {
    font-size: 1.02rem; text-align: left; color: var(--text-strong);
    border-bottom: 1px solid var(--border-strong); padding: 4px 0 8px; margin-bottom: 2px;
  }
  table.cmp tbody th::before { content: none; }
  table.cmp tr {
    background: var(--surface) !important;
    border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 12px; padding: 8px 14px;
  }
  table.cmp td {
    display: grid; grid-template-columns: 7.4em minmax(0, 1fr); gap: 12px;
    text-align: left; border-bottom: 1px dashed var(--border);
    padding: 8px 0; font-size: 0.9rem; line-height: 1.7;
  }
  table.cmp td:last-child { border-bottom: 0; }
  table.cmp td::before {
    content: attr(data-label);
    color: var(--muted); font-weight: 600; text-align: left;
  }
  table.cmp td[colspan] { display: block; text-align: left; }
  table.cmp td[colspan]::before { display: none; }
  table.cmp td.note { display: block; text-align: left; }
  table.cmp td.note::before { display: block; margin-bottom: 2px; }
  .only-m { display: block; margin-top: 6px; color: var(--accent); font-weight: 700; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 34px; }
  .header-inner { gap: 10px; min-height: 62px; }
  .theme-switch button span { display: none; }
  .theme-switch button { padding: 6px; }
  .theme-switch button::before { width: 12px; height: 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  h1 { font-size: 1.62rem; }
  .hero h1 .thin { font-size: 0.56em; }
  .card { padding: 20px; }
  .section { padding: 38px 0; }
  .prose p { text-align: left; }

}

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

/* 打印 */
@media print {
  .site-header, .theme-switch, .nav-toggle, .cta-band, .hero-figure { display: none; }
  body { background: #fff; color: #000; }
  .card, .price-card { break-inside: avoid; }
}

/* ---------- 可访问性：键盘焦点 ---------- */
a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible,
.theme-switch button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 页脚说明小字 ---------- */
.page-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

@media print {
  .page-note { color: #555; }
}
