/* ============================================================
 * Tomawro MRO 版本展示页 —— 视觉系统
 * 语言：工程图纸 / 规格铭牌 —— 冷灰图纸底、蓝黑油墨、安全橙强调
 * ============================================================ */

:root {
  --paper: #EDF0F1;          /* 图纸底色 */
  --surface: #FFFFFF;        /* 面板 */
  --ink: #1B242B;            /* 油墨蓝黑 */
  --steel: #57646E;          /* 次级文字 */
  --line: #D3DADD;           /* 结构线 */
  --line-soft: #E4E9EB;      /* 弱分隔线 */
  --orange: #E4570F;         /* 安全橙（唯一强调色） */
  --t-basic: #1F4E79;
  --t-pro: #1F4E79;
  --t-max: #1F4E79;
  --t-custom: #1F4E79;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-cond: "Barlow Condensed", "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --nav-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 900; line-height: 1.22; }
.icon { width: 18px; height: 18px; flex: none; }

section { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border: 1.5px solid var(--ink);
  font-size: 14px; font-weight: 500; line-height: 1.4; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #0D151B; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-light { border-color: rgba(255,255,255,.55); color: var(--paper); background: transparent; }
.btn-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(237, 240, 241, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { display: block; width: auto; height: 26px; }
.nav-links { display: flex; gap: 26px; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-links a {
  font-size: 14px; color: var(--steel); padding: 4px 0;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--ink); border-color: var(--orange); }

/* ---------------- 眉标 ---------------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--steel);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; background: var(--orange); flex: none;
}

/* ---------------- Hero ---------------- */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero .wrap { position: relative; padding-top: 88px; padding-bottom: 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 72px; align-items: stretch;
}
.hero-copy { display: flex; flex-direction: column; }
.hero-copy h1 {
  margin: 22px 0 20px;
  letter-spacing: .01em;
}
.hero-title-en {
  display: block;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.hero-title-zh {
  display: block;
  width: 600px;
  max-width: 100%;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.22;
}
.hero-sub { max-width: 34em; color: var(--steel); font-size: 17px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 34px; }

/* Hero 版本阶梯 */
.ladder { display: flex; align-items: flex-end; gap: 22px; padding: 0 8px 18px; border-bottom: 2px solid var(--ink); }
.ladder-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.ladder-bar {
  width: 100%; border-radius: 2px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 10px;
  font-family: var(--font-cond); font-weight: 700; font-size: 24px;
}
.ladder-name { margin-top: 14px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ladder-spend { font-family: var(--font-mono); font-size: 11px; color: var(--steel); white-space: nowrap; }

/* 图例条 */
.legend {
  display: flex; flex-wrap: wrap; gap: 14px 36px;
  border-top: 1px solid var(--line);
  margin-top: 64px; padding-top: 20px;
}
.legend-item { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--steel); }
.legend-item strong { color: var(--ink); font-weight: 700; }
.legend-desc { font-size: 12.5px; }

/* 功能對比區圖例盒（銘牌風格） */
.legend-matrix {
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-top: 1px solid var(--line);
  margin-top: 0; margin-bottom: 18px; padding: 14px 18px;
  gap: 10px 30px;
}

/* ---------------- ● ◐ ○ 支持状态标记 ---------------- */
.mk {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.6px solid var(--ink); flex: none;
  display: inline-block; vertical-align: -2px;
}
.mk-full { background: var(--ink); }
.mk-half {
  background: conic-gradient(from 0deg, var(--ink) 0 50%, transparent 50% 100%);
}
.mk-none { border-color: #B7C1C6; }

/* △ 即將上線（三角標記） */
.mk-tri {
  width: 15px; height: 15px; display: inline-block; vertical-align: -2px; flex: none;
  color: var(--orange);
}
/* 複合標記分隔符（如「● / ◐」） */
.mk-sep { color: #AEB8BD; font-size: 12px; font-weight: 400; padding: 0 2px; }
/* 空白單元格：不適用或未標記 */
.cell-empty { color: #B7C1C6; font-size: 13px; line-height: 1; }

/* ---------------- 区块 ---------------- */
.section { padding: 92px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 44px; }
.sec-head h2 { margin: 16px 0 12px; font-size: clamp(27px, 3.6vw, 42px); }
.sec-sub { color: var(--steel); max-width: 46em; }
.fine {
  margin-top: 22px; font-size: 12.5px; color: var(--steel);
  border-left: 2px solid var(--orange); padding-left: 10px;
}

/* ---------------- 版本规格卡 ---------------- */
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tier-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); padding: 22px 20px 20px;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.tier-card:hover { border-color: var(--steel); }
.tier-card.is-recommended { border-color: var(--orange); }
.tier-card.is-recommended:hover { border-color: var(--orange-deep, #C4440A); }

/* 推荐卡顶部警示条纹 —— 安全橙斜纹 */
.tier-card.is-recommended::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(-45deg,
    var(--orange) 0 9px, #F6B28C 9px 18px);
}
.tag-rec {
  position: absolute; top: -13px; right: 16px;
  background: var(--orange); color: var(--ink);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 3px 10px; letter-spacing: .12em;
}

.tier-top { display: flex; justify-content: space-between; align-items: center; }
.tier-code { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--steel); }
.tier-badge {
  width: 32px; height: 32px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--paper); font-family: var(--font-cond); font-weight: 700; font-size: 17px;
}
.tier-badge-sm {
  width: auto; min-width: 26px; height: 26px; padding: 0 7px;
  font-size: 12px; letter-spacing: .04em; border-radius: 2px;
}

.tier-name { margin: 16px 0 4px; font-size: 21px; }
.tier-en { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--steel); }
.tier-spec { margin-top: 16px; }
.spec-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.spec-row dt { font-size: 11.5px; color: var(--steel); letter-spacing: .04em; }
.spec-row dd { font-size: 14px; font-weight: 500; }
.spec-spend { font-family: var(--font-mono); font-weight: 600; font-size: 13.5px; }
.spec-account { font-family: var(--font-mono); font-weight: 600; font-size: 13.5px; }
.tier-cta { margin-top: auto; padding-top: 22px; width: 100%; text-align: center; }

/* Custom 深色卡 */
/* Custom 卡：白底深字，與其他三張卡統一為淺色版面 */
.tier-custom { background: #ffffff; border-color: #dee0e3; }
.tier-custom .tier-en,
.tier-custom .spec-row dt { color: rgba(87, 100, 110, .62); }
.tier-custom .tier-name,
.tier-custom .spec-row dd { color: #1b242b; }
.tier-custom .spec-row { border-color: #bbbfc4; }

/* ---------------- 年采购额标尺 ---------------- */
.range-chart { display: flex; flex-direction: column; gap: 12px; }
.range-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center;
}
.range-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rn-title { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.rn-sub { font-size: 11.5px; color: var(--steel); line-height: 1.4; }
.track {
  position: relative; height: 38px;
  background-image:
    linear-gradient(90deg, transparent calc(15% - .5px), var(--line) calc(15% - .5px), var(--line) calc(15% + .5px), transparent calc(15% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(85% - .5px), var(--line) calc(85% - .5px), var(--line) calc(85% + .5px), transparent calc(85% + .5px));
}
.range-bar {
  position: absolute; top: 0; bottom: 0; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
}
.range-bar span {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  white-space: nowrap; letter-spacing: .02em;
}
/* 开放式区间（如「以上」）：色条右端带箭头 */
.range-bar.open::after {
  content: ""; position: absolute; right: -12px; top: 0; bottom: 0; width: 12px;
  background: inherit;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.range-bar.open span { padding-left: 12px; }
/* 窄色条（如 Custom）标签外置到色条左侧，避免溢出 */
.range-bar.bar-outside span {
  position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  color: var(--ink);
}

.range-axis { position: relative; height: 22px; margin-left: 238px; margin-top: 6px; }
.range-axis span {
  position: absolute; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; color: var(--steel);
}
.range-axis span:first-child { transform: none; }

/* 按诉求快速判断 */
.mini-title {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
  color: var(--steel); margin: 46px 0 16px;
}
.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.decision {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 16px 18px;
}
.d-icon { color: var(--orange); display: flex; }
.d-icon .icon { width: 20px; height: 20px; }
.d-text { flex: 1; font-size: 14px; line-height: 1.5; }
.d-tier { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.d-tier i { width: 10px; height: 10px; display: inline-block; border-radius: 2px; }

/* ---------------- 功能对比矩阵 ---------------- */
.matrix-tools {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  justify-content: space-between; margin-bottom: 18px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  padding: 8px 16px; background: var(--surface);
  border: 1px solid var(--line); cursor: pointer; color: var(--steel);
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.matrix-note { font-size: 12.5px; color: var(--steel); }

/* 功能簡介「!」圖標與懸浮彈層 */
.finfo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; margin-left: 7px; vertical-align: -3px;
  background: none; border: none; padding: 0; cursor: help;
  color: var(--steel); transition: color .15s;
}
.finfo:hover, .finfo:focus-visible { color: var(--orange); outline: none; }
.finfo-ic { width: 13px; height: 13px; display: block; }
.ftip {
  position: fixed; z-index: 80; width: 262px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(27, 36, 43, .14);
  padding: 12px 14px 13px; display: none; pointer-events: none;
}
.ftip.is-on { display: block; }
.ftip-img {
  display: block; width: calc(100% + 28px); margin: -12px -14px 10px;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-bottom: 1px solid var(--line); background: var(--paper);
}
.ftip-eyebrow {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--orange);
}
.ftip-title { font-size: 14.5px; color: var(--ink); margin: 5px 0 6px; }
.ftip-desc { font-size: 12.5px; line-height: 1.75; color: var(--steel); text-wrap: pretty; }

.matrix-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.matrix-table { width: 100%; min-width: 880px; border-collapse: collapse; }

.matrix-table th, .matrix-table td { padding: 13px 16px; vertical-align: middle; }
.matrix-table thead th {
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  text-align: center;
  vertical-align: bottom; padding-bottom: 16px;
}
.matrix-table thead th.col-mod { text-align: left; }

/* 價格行 */
.matrix-table tr.price-row td {
  background: #F1F4F5;
  font-family: var(--font-mono); font-weight: 600; font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.matrix-table tr.price-row td.col-mod { text-align: left; }

/* 板塊分組行 */
.matrix-table tr.sec-row td {
  background: #F1F4F5;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}
.sec-inner { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sec-name { font-weight: 900; font-size: 14.5px; }
.sec-count { font-family: var(--font-mono); font-size: 11px; color: var(--steel); margin-left: auto; padding-left: 16px; }

/* 功能名稱單元格 */
.feat-name { font-size: 14px; font-weight: 500; line-height: 1.45; }
.th-tick { display: block; width: 12px; height: 12px; margin: 0 auto 8px; border-radius: 2px; }
.th-name { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.th-code {
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  color: var(--steel); margin-top: 4px; letter-spacing: .08em;
}

.col-mod {
  width: 32%; text-align: left;
  position: sticky; left: 0; z-index: 3;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
thead .col-mod { z-index: 4; }
.th-code-inline { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--steel); }
.mod { display: flex; align-items: center; gap: 12px; }
.mod-icon { color: var(--steel); display: flex; }
.mod-icon .icon { width: 20px; height: 20px; }
.mod-name { font-size: 15px; font-weight: 700; line-height: 1.35; }
.mod-desc { font-size: 12px; color: var(--steel); line-height: 1.4; }

.matrix-table tbody td { border-bottom: 1px solid var(--line-soft); text-align: center; }
.matrix-table tbody tr:hover td { background: #F5F8F8; }
.cell-inner { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cell-note { font-size: 12px; color: var(--steel); line-height: 1.35; }

/* Max 推荐列淡橙底 */
.col-max { background: rgba(228, 87, 15, .05); }
.matrix-table tbody tr:hover td.col-max { background: rgba(228, 87, 15, .08); }

/* 列聚焦 */
.matrix-table .col { transition: opacity .22s ease, filter .22s ease; }
.matrix-table[data-focus] .col { opacity: .16; filter: grayscale(.55); }
.matrix-table[data-focus="basic"] .col-basic,
.matrix-table[data-focus="pro"] .col-pro,
.matrix-table[data-focus="max"] .col-max,
.matrix-table[data-focus="custom"] .col-custom { opacity: 1; filter: none; }

/* ---------------- Custom 深色带 ---------------- */
.custom-band { background: var(--ink); color: var(--paper); padding: 92px 0; }
.custom-band .eyebrow { color: rgba(237, 240, 241, .6); }
.custom-band .sec-sub { color: rgba(237, 240, 241, .68); }
.custom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 48px; margin-top: 48px; }
.custom-point { border-left: 3px solid var(--orange); padding-left: 18px; }
.custom-point h3 { font-size: 17px; margin-bottom: 6px; }
.custom-point p { font-size: 14px; color: rgba(237, 240, 241, .68); line-height: 1.7; }
.custom-cta {
  margin-top: 52px; padding-top: 26px;
  border-top: 1px solid rgba(237, 240, 241, .18);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
}
.custom-cta p { font-size: 14px; color: rgba(237, 240, 241, .68); }

/* ---------------- Demo 賬號入口 ---------------- */
.demo-strip {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 42px 0;
}
.demo-strip::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--orange);
}
.demo-strip-inner {
  display: flex; flex-wrap: wrap; gap: 20px 32px;
  align-items: center; justify-content: space-between;
}
.demo-strip-title { margin: 12px 0 6px; font-size: clamp(22px, 2.6vw, 30px); }
.demo-strip-sub { color: var(--steel); font-size: 14.5px; max-width: 44em; }

/* ---------------- Demo 彈出面板 ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(20, 28, 34, .58); }
.modal-panel {
  position: relative;
  width: 100%; max-width: 580px;
  background: var(--surface);
  border: 2px solid var(--ink);
  padding: 30px 26px 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  animation: panel-in .22s ease;
}
.modal-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 9px, #F6B28C 9px 18px);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .modal-panel { animation: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-title { font-size: 22px; margin: 12px 0 2px; }
.modal-close {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  color: var(--steel); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.modal-close:hover { border-color: var(--ink); color: var(--ink); }
.modal-note {
  margin-top: 18px; font-size: 12.5px; color: var(--steel);
  border-left: 2px solid var(--orange); padding-left: 10px;
}
/* Demo 門禁：郵箱 + 驗證碼 */
.gate-sub { margin: 14px 0 18px; font-size: 13px; color: var(--steel); line-height: 1.7; }
.gate-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.gate-row label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--steel); }
.gate-row input {
  width: 100%; padding: 11px 13px; font-size: 14px;
  border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); font-family: var(--font-body);
  transition: border-color .15s;
}
.gate-row input:focus { outline: none; border-color: var(--ink); }
.gate-code-row { display: flex; gap: 10px; }
.gate-code-row input { flex: 1; min-width: 0; letter-spacing: .18em; }
.gate-send { flex: none; white-space: nowrap; }
.gate-send:disabled { opacity: .5; cursor: not-allowed; border-color: var(--line); color: var(--steel); }
.gate-msg {
  font-size: 12.5px; line-height: 1.6; color: var(--steel);
  margin: 0 0 14px; min-height: 0;
}
.gate-msg:not(:empty) { padding: 9px 12px; border-left: 3px solid var(--line); background: #F7F8F9; }
.gate-msg.is-error {
  color: #B23A08; font-weight: 700;
  border-left-color: #C4440A; background: #FDF1EB;
}
.gate-submit { width: 100%; }

.demo-list { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.demo-item { border: 1px solid var(--line); padding: 14px 16px 8px; }
.demo-item-head {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.demo-role {
  font-weight: 900; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
}
.demo-role::before { content: ""; width: 8px; height: 8px; background: var(--orange); }
.demo-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; color: var(--steel);
  border-bottom: 1px solid transparent;
}
.demo-link:hover { color: var(--ink); border-color: var(--orange); }
.demo-link .icon { width: 13px; height: 13px; }
.demo-field {
  display: grid; grid-template-columns: 52px 1fr auto;
  gap: 12px; align-items: center; padding: 9px 0;
}
.demo-field + .demo-field { border-top: 1px dashed var(--line); }
.df-label { font-family: var(--font-mono); font-size: 11px; color: var(--steel); letter-spacing: .1em; }
.df-value {
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 600;
  background: #F1F4F5; border: 1px solid var(--line-soft);
  padding: 6px 10px; overflow-wrap: anywhere;
}
.btn-copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 12px; font-weight: 500;
  border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--font-body);
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-copy .icon { width: 14px; height: 14px; }
.btn-copy:hover { background: var(--ink); color: var(--paper); }
.btn-copy.is-copied { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.toast {
  position: fixed; left: 50%; bottom: 34px;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink); color: var(--paper);
  padding: 10px 20px; font-size: 13px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 130;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
body.no-scroll { overflow: hidden; }

/* 鍵盤焦點可見 */
.btn:focus-visible, .chip:focus-visible, .btn-copy:focus-visible,
.modal-close:focus-visible, a:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px;
}

/* ---------------- 页脚 ---------------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-logo { height: 22px; }
.footer-copy { font-size: 12.5px; color: var(--steel); margin-top: 8px; }
.footer-note { font-size: 12px; color: var(--steel); max-width: 34em; line-height: 1.7; }

/* ---------------- 滚动揭示 ---------------- */
/* 仅在 JS 就绪后启用初始隐藏，脚本失败时内容照常显示 */
body.js-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  body.js-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .nav-actions .btn-primary { display: none; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .hero .wrap { padding-top: 56px; }
  .section { padding: 64px 0; }
  .ladder { gap: 10px; }
  .ladder-bar { font-size: 20px; }
  .ladder-name { font-size: 12px; white-space: normal; text-align: center; line-height: 1.3; }
  .ladder-spend { font-size: 10px; white-space: normal; text-align: center; }
  .tier-grid { grid-template-columns: 1fr; }
  .decision-grid { grid-template-columns: 1fr; }
  .custom-grid { grid-template-columns: 1fr; gap: 24px; }
  .range-row { grid-template-columns: 1fr; gap: 8px; }
  .range-axis { margin-left: 0; }
  .matrix-tools { align-items: flex-start; flex-direction: column; }
  .demo-field { grid-template-columns: 44px 1fr auto; gap: 10px; }
  .df-value { font-size: 12.5px; }
  .btn-copy span { display: none; }
  .btn-copy { padding: 6px 9px; }
  .matrix-table th, .matrix-table td { padding: 11px 12px; }
  .mod-desc { display: none; }
  .footer-inner { flex-direction: column; }
}
