/* =========================================================
   应汐 AI · 价目表
   A blend of 应汐's clean product UI and yerlock's editorial
   paper / ink / coral visual language.
   ========================================================= */

:root {
  color-scheme: light;
  --paper: #f3eee3;
  --paper-deep: #e9e2d3;
  --sheet: #fffdf7;
  --ink: #102a29;
  --ink-2: #243c39;
  --ink-soft: #51645f;
  --muted: #8a9188;
  --rule: #d6cebd;
  --rule-strong: #bdb4a1;
  --red: #e94f37;
  --red-dark: #b73a29;
  --red-soft: #f7d9d2;
  --teal: #146a63;
  --acid: #d6e75d;
  --amber: #a96d17;
  --green: #1b7a62;
  --shadow: 8px 8px 0 rgba(16, 42, 41, 0.08);
  --shadow-strong: 14px 14px 0 rgba(16, 42, 41, 0.1);
  --block-bg: #102a29;
  --block-fg: #f3eee3;
  --shell: 1360px;
  --serif: Georgia, "Noto Serif SC", "Songti SC", "SimSun", serif;
  --display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Helvetica Neue", sans-serif;
  --sans: "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --topbar-bg: rgba(243, 238, 227, 0.9);
  --avatar-bg: #f6ddd6;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #091817;
  --paper-deep: #0d211f;
  --sheet: #102421;
  --ink: #f0eadc;
  --ink-2: #d8d2c4;
  --ink-soft: #a9b8af;
  --muted: #70857d;
  --rule: #29423d;
  --rule-strong: #3b524c;
  --red: #ff684f;
  --red-dark: #ff907c;
  --red-soft: #3a211d;
  --teal: #68c6b8;
  --acid: #d6e75d;
  --amber: #e3b25f;
  --green: #6cc7a7;
  --shadow: 8px 8px 0 rgba(0, 0, 0, 0.25);
  --shadow-strong: 14px 14px 0 rgba(0, 0, 0, 0.3);
  --topbar-bg: rgba(9, 24, 23, 0.9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(16, 42, 41, 0.035) calc(50% - 0.5px), rgba(16, 42, 41, 0.035) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[data-theme="dark"] body {
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(240, 234, 220, 0.035) calc(50% - 0.5px), rgba(240, 234, 220, 0.035) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    var(--paper);
}

::selection { color: #fff7ea; background: var(--red); }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }

.mono,
.kicker,
.section-head__note,
.signal-strip__item .mono,
.signal-strip__live,
.hero__meta dt,
.result-line,
.table-note,
.redeem-panel__head .mono,
.buying-power__head .mono {
  font-family: var(--mono);
}

.page-shell {
  width: min(calc(100% - 64px), var(--shell));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 0.18s;
}
.skip-link:focus { transform: translateY(0); }

.noscript {
  padding: 11px 20px;
  color: #fff7ea;
  background: var(--red);
  font-size: 12px;
  text-align: center;
}

.copy-dialog {
  width: min(720px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  background: var(--sheet);
  box-shadow: var(--shadow-strong);
}
.copy-dialog::backdrop {
  background: rgba(9, 24, 23, 0.62);
  backdrop-filter: blur(4px);
}
.copy-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.copy-dialog__head button {
  padding: 5px 9px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
}
.copy-dialog p {
  padding: 12px 16px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.copy-dialog textarea {
  width: calc(100% - 32px);
  height: 300px;
  margin: 12px 16px 16px;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  resize: vertical;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.grain {
  position: fixed;
  z-index: 90;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
[data-theme="dark"] .grain { opacity: 0.06; mix-blend-mode: screen; }

/* ---------------------------------------------------------
   Icons / buttons
   --------------------------------------------------------- */
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  transition: color 0.16s, background 0.16s, border-color 0.16s, transform 0.16s;
}
.btn:hover { transform: translateY(-1px); }
.btn--ink { color: var(--paper); background: var(--ink); }
.btn--ink:hover { background: var(--red); border-color: var(--red); }
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { color: var(--paper); background: var(--ink); }
.btn--sm { height: 40px; padding: 0 14px; font-size: 12px; }
.btn--xs { height: 34px; padding: 0 10px; font-size: 11px; }

.icon-btn {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--ink);
  background: var(--sheet);
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.icon-btn:hover { color: var(--paper); border-color: var(--red); background: var(--red); }
.icon--sun { display: none; }
[data-theme="dark"] .icon--sun { display: block; }
[data-theme="dark"] .icon--moon { display: none; }

/* ---------------------------------------------------------
   Topbar
   --------------------------------------------------------- */
.topbar {
  position: sticky;
  z-index: 60;
  top: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 78px;
  align-items: center;
}
.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
}
.brand__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--avatar-bg);
}
.brand__avatar img { width: 112%; height: 112%; object-fit: cover; }
.brand__text { display: grid; gap: 2px; }
.brand__text strong { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.brand__text small { color: var(--muted); font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.09em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  transition: color 0.16s;
}
.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s;
}
.nav a:hover,
.nav a.is-active { color: var(--ink); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.topbar__actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  padding-top: clamp(58px, 7.5vw, 100px);
  padding-bottom: clamp(58px, 7vw, 92px);
}
.hero__copy { min-width: 0; }
.kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.kicker::before { width: 32px; height: 1px; background: currentColor; content: ""; }

.hero h1 {
  max-width: 780px;
  margin-top: 24px;
  font-family: var(--display);
  font-size: clamp(62px, 8.2vw, 118px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero h1 em { color: var(--red); font-style: normal; font-weight: 800; }
.hero__rate {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 12px;
  max-width: 620px;
  margin-top: 26px;
  padding-left: 13px;
  border-left: 3px solid var(--red);
}
.hero__rate-label {
  color: var(--red);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}
.hero__rate strong {
  font-family: var(--display);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__rate strong em { color: var(--red); font-style: normal; }
.hero__rate-note { color: var(--muted); font-size: 10px; font-weight: 600; }
.hero__intro {
  max-width: 620px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.95;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.hero__meta div { display: grid; gap: 4px; }
.hero__meta dt { color: var(--muted); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.hero__meta dd { font-size: 12.5px; font-weight: 700; }

.rate-ticket {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  padding: 17px 20px 19px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 12px;
  color: #fff7ea;
  background: var(--red);
  box-shadow: var(--shadow-strong);
  transform: rotate(1.3deg);
  transition: transform 0.22s, box-shadow 0.22s;
}
.rate-ticket:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 16px 18px 0 var(--paper-deep); }
.rate-ticket::before,
.rate-ticket::after {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  content: "";
  transform: translateY(-50%);
}
.rate-ticket::before { left: -11px; }
.rate-ticket::after { right: -11px; }
.rate-ticket__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 247, 234, 0.42);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
}
.rate-ticket__label {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  opacity: 0.78;
}
.rate-ticket__number {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: clamp(72px, 7.4vw, 98px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.rate-ticket__sub { margin-top: 6px; font-size: 10.5px; opacity: 0.72; }
.rate-ticket__rows {
  margin-top: 21px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 247, 234, 0.42);
}
.rate-ticket__rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 7px 0;
}
.rate-ticket__rows span { font-size: 11px; opacity: 0.75; }
.rate-ticket__rows strong { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.rate-ticket__foot {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 247, 234, 0.35);
}
.rate-ticket__foot img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 247, 234, 0.65);
  border-radius: 50%;
  background: var(--avatar-bg);
  object-fit: cover;
}
.rate-ticket__foot strong { display: block; font-size: 11.5px; font-weight: 750; }
.rate-ticket__foot span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  opacity: 0.62;
}
.rate-ticket__stamp {
  position: absolute;
  top: 72px;
  right: 18px;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px dashed rgba(255, 247, 234, 0.55);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.35;
  text-align: center;
  opacity: 0.7;
  transform: rotate(-12deg);
  pointer-events: none;
}

/* ---------------------------------------------------------
   Signal strip
   --------------------------------------------------------- */
.signal-strip {
  border-block: 1px solid var(--block-bg);
  color: var(--block-fg);
  background: var(--block-bg);
}
.signal-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  min-height: 82px;
  padding-block: 15px;
}
.signal-strip__item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 0 24px;
  border-left: 1px solid rgba(243, 238, 227, 0.16);
}
.signal-strip__item:first-child { padding-left: 0; border-left: 0; }
.signal-strip__item .mono { color: var(--acid); font-size: 8px; letter-spacing: 0.13em; }
.signal-strip__item strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}
.signal-strip__item strong em { font-family: var(--sans); font-size: 11px; font-style: normal; opacity: 0.6; }
.signal-strip__item small { color: rgba(243, 238, 227, 0.55); font-size: 9.5px; }
.signal-strip__live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(243, 238, 227, 0.52);
  font-size: 8px;
  letter-spacing: 0.09em;
  white-space: nowrap;
}
.signal-strip__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(214, 231, 93, 0.14);
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */
.section { padding-top: clamp(64px, 7vw, 94px); }
section[id] { scroll-margin-top: 96px; }

.section-head {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 27px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.section-head__index {
  color: var(--red);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
}
.section-head .kicker { margin-bottom: 3px; font-size: 9px; }
.section-head .kicker::before { width: 22px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(34px, 3.7vw, 50px);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.section-head__note {
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.8;
  text-align: right;
  letter-spacing: 0.05em;
}
.section-head__note .price-updated {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}
.section-head__note .price-updated strong { color: var(--red); font-weight: 700; }

/* ---------------------------------------------------------
   Scenarios
   --------------------------------------------------------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.scenario-card {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  background: var(--sheet);
  text-align: left;
  box-shadow: 4px 4px 0 var(--paper-deep);
  appearance: none;
  transition: transform 0.18s, box-shadow 0.18s;
}
.scenario-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--paper-deep); }
.scenario-card.is-active { color: #fff7ea; background: var(--red); border-color: var(--red); }
.scenario-card.is-active .scenario-card__icon { border-color: rgba(255, 247, 234, 0.7); }
.scenario-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}
.scenario-card__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.scenario-card__icon svg { width: 14px; height: 14px; }
.scenario-card h3 {
  margin-top: 17px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.scenario-card__en {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  opacity: 0.55;
}
.scenario-card p {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.65;
}
.scenario-card.is-active p { color: rgba(243, 238, 227, 0.68); }
.scenario-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 7.5px;
}
.scenario-card__foot strong { font-size: 9px; font-weight: 700; }

/* ---------------------------------------------------------
   Calculator
   --------------------------------------------------------- */
.calculator {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: var(--shadow);
}
.calc-controls {
  padding: 20px;
  border-right: 1px solid var(--rule);
  background: var(--paper-deep);
}
.calc-results { padding: 20px; }
.calc-block + .calc-block { margin-top: 16px; }
.calc-label {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}
.calc-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.calc-label-row strong {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}
.calc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.calc-chip {
  padding: 6px 9px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--sheet);
  font-size: 10px;
  font-weight: 650;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}
.calc-chip:hover { color: var(--ink); border-color: var(--ink); }
.calc-chip.is-active { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.calc-range { width: 100%; margin: 12px 0 5px; accent-color: var(--red); cursor: pointer; }
.calc-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}
.calc-hint {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.7;
}
.calc-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}
.calc-summary strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.calc-summary span { color: var(--muted); font-family: var(--mono); font-size: 8px; line-height: 1.6; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 9px; }
.result-card { min-height: 240px; padding: 15px; border-radius: 9px; }
.result-card h3 { margin-top: 14px; font-size: 20px; }
.result-card .featured-card__group { font-size: 8px; }
.result-card__reason { margin-top: 8px; font-size: 9.5px; line-height: 1.6; opacity: 0.78; }
.result-card .featured-card__price { padding-top: 14px; }
.result-card .featured-card__price strong { font-size: 34px; }
.result-card .featured-card__meta { margin-top: 10px; padding-top: 8px; font-size: 8px; }
.result-card__link {
  display: inline-flex;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.75;
}
.calc-note { margin-top: 9px; color: var(--muted); font-size: 8px; line-height: 1.7; }
.calc-empty {
  padding: 22px;
  border: 1px dashed var(--ink);
  border-radius: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.calc-empty strong { color: var(--red); }

/* ---------------------------------------------------------
   Featured cards
   --------------------------------------------------------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.featured-card {
  position: relative;
  display: flex;
  min-height: 276px;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.featured-card:hover { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--paper-deep); }
.featured-card--red { color: #fff7ea; background: var(--red); }
.featured-card--ink { color: var(--block-fg); background: var(--block-bg); }
.featured-card--sheet { color: var(--ink); background: var(--sheet); }
.featured-card::after {
  position: absolute;
  right: 8px;
  bottom: -38px;
  font-family: var(--serif);
  font-size: 154px;
  line-height: 1;
  opacity: 0.08;
  pointer-events: none;
}
.featured-card:nth-child(1)::after { content: "01"; }
.featured-card:nth-child(2)::after { content: "02"; }
.featured-card:nth-child(3)::after { content: "03"; }
.featured-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}
.featured-card__stamp {
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.05em;
  opacity: 0.9;
}
.featured-card h3 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.3vw, 32px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.featured-card__group {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9px;
  opacity: 0.62;
}
.featured-card__blurb { margin-top: 12px; font-size: 11.5px; line-height: 1.7; opacity: 0.78; }
.featured-card__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
}
.featured-card__price strong {
  font-family: var(--serif);
  font-size: clamp(44px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.featured-card__price span { font-size: 10px; opacity: 0.7; }
.featured-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  padding-top: 11px;
  border-top: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 9px;
  opacity: 0.9;
}
.featured-card__meta .dot { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: currentColor; }
.featured-card__meta .dot--good { background: var(--acid); }
.featured-card__meta .dot--warn { background: var(--amber); }
.featured-card__meta .dot--bad { background: #3b1510; }
.featured-card__meta .dot--none { background: currentColor; opacity: 0.45; }

/* ---------------------------------------------------------
   Pricing toolbar / table
   --------------------------------------------------------- */
.pricing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--sheet);
}
.segmented button {
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
  transition: color 0.16s, background 0.16s;
}
.segmented button:hover { color: var(--ink); }
.segmented button.is-active { color: var(--paper); background: var(--ink); }
.segmented sup { margin-left: 2px; font-family: var(--mono); font-size: 7.5px; opacity: 0.55; pointer-events: none; }

.field { position: relative; display: flex; align-items: center; }
.field select {
  height: 38px;
  padding: 0 31px 0 11px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: var(--sheet);
  font-size: 11.5px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351645f' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 11px;
}
.field select:focus { border-color: var(--red); }
.field--sort select { min-width: 132px; }

.search {
  display: flex;
  min-width: 220px;
  max-width: 300px;
  height: 38px;
  flex: 1;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--sheet);
}
.search .icon { width: 14px; height: 14px; color: var(--muted); flex: 0 0 auto; }
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11.5px;
}
.search input::placeholder { color: var(--muted); }
.search kbd {
  padding: 2px 4px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}
.toolbar-actions { display: flex; gap: 6px; margin-left: auto; }

.result-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}
.result-line__hint { opacity: 0.7; }
.result-line__updated {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.03em;
}
.result-line__updated strong { color: var(--ink); }

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--sheet);
  box-shadow: var(--shadow);
}
.price-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.price-table thead { color: var(--block-fg); background: var(--block-bg); }
.price-table th {
  padding: 12px 13px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-align: left;
  white-space: nowrap;
}
.price-table tbody tr { border-top: 1px solid var(--rule); transition: background 0.14s; }
.price-table tbody tr:hover { background: rgba(233, 79, 55, 0.055); }
.price-table tbody tr.is-flash { animation: flash-row 1.5s ease; }
.model-card.is-flash { animation: flash-row 1.5s ease; }
@keyframes flash-row {
  0% { background: rgba(233, 79, 55, 0.18); }
  100% { background: transparent; }
}
.price-table td { padding: 12px 13px; vertical-align: middle; }

.model-cell strong { display: block; font-size: 13px; font-weight: 750; line-height: 1.35; }
.model-cell__sub { display: block; margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 8.5px; }
.model-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.tag--red { color: var(--red); }
.tag--amber { color: var(--amber); }
.tag--green { color: var(--green); }
.tag--ink { color: var(--ink-soft); }

.mode-pill {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}
.duration-cell { color: var(--ink-soft); font-family: var(--mono); font-size: 10px; white-space: nowrap; }

.price-cell strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.price-cell span { color: var(--muted); font-size: 8.5px; }
.rmb-cell strong { display: block; font-size: 11.5px; font-weight: 700; }
.rmb-cell span { display: block; margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 8.5px; }

.official-price { color: var(--muted); font-size: 10px; text-decoration: line-through; text-decoration-thickness: 1px; white-space: nowrap; }
.discount { color: var(--red); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.discount--none, .official-price--none { color: var(--muted); text-decoration: none; }

.status { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9.5px; white-space: nowrap; }
.status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status small { color: var(--muted); font-size: 8px; }
.status--good i { background: var(--green); }
.status--warn i { background: var(--amber); }
.status--bad i { background: var(--red); }
.status--none i { background: var(--muted); opacity: 0.55; }

.table-note {
  max-width: 950px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.85;
}
.table-note strong { color: var(--ink-soft); font-weight: 700; }

.empty {
  padding: 54px 20px;
  border: 1px dashed var(--ink);
  border-radius: 10px;
  text-align: center;
}
.empty strong { color: var(--red); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; }
.empty p { margin-top: 8px; color: var(--muted); font-size: 12px; }

.model-cards { display: none; }

/* ---------------------------------------------------------
   Recharge
   --------------------------------------------------------- */
.recharge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
  gap: 16px;
  align-items: start;
}
.pack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.pack {
  position: relative;
  padding: 15px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--sheet);
  transition: border-color 0.16s, transform 0.16s, box-shadow 0.16s;
}
.pack:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 4px 4px 0 var(--paper-deep); }
.pack--popular { border-color: var(--red); }
.pack__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #fff7ea;
  background: var(--red);
  font-family: var(--mono);
  font-size: 7px;
}
.pack__badge--ink { color: var(--block-fg); background: var(--block-bg); }
.pack--custom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-style: dashed;
  background: transparent;
}
.pack--custom:hover { border-color: var(--red); }
.pack--custom .pack__price { font-family: var(--sans); font-size: 13px; font-weight: 750; }
.pack--custom .pack__credits strong { font-family: var(--sans); font-size: 18px; font-weight: 750; letter-spacing: 0; }
.pack__credits { display: flex; align-items: baseline; gap: 4px; }
.pack__credits strong { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.pack__credits small { color: var(--muted); font-size: 8px; }
.pack__price { margin-top: 12px; font-family: var(--serif); font-size: 18px; }
.pack__unit { margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 7.5px; }

.buying-power {
  margin-top: 11px;
  padding: 16px 17px;
  border: 1px solid var(--block-bg);
  border-radius: 10px;
  color: var(--block-fg);
  background: var(--block-bg);
}
.buying-power__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.buying-power__head .mono { color: var(--acid); font-size: 8px; letter-spacing: 0.1em; }
.buying-power__head strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.buying-power__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(243, 238, 227, 0.18);
}
.buying-power__items strong { display: block; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1; }
.buying-power__items span { display: block; margin-top: 4px; color: rgba(243, 238, 227, 0.58); font-size: 8.5px; }

.redeem-panel {
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-deep);
}
.redeem-panel__head { padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.redeem-panel__head .mono { color: var(--red); font-size: 8px; letter-spacing: 0.11em; }
.redeem-panel__head h3 { margin-top: 3px; font-family: var(--display); font-size: 24px; font-weight: 750; letter-spacing: -0.02em; }
.redeem-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed var(--rule-strong);
}
.redeem-row:first-child { border-top: 0; }
.redeem-row strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.redeem-row__price span { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.redeem-row__tag {
  display: inline-block;
  margin-left: 6px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 8px;
}
.redeem-row__tag::before { margin-right: 3px; content: "·"; }
.redeem-row em { color: var(--red); font-family: var(--mono); font-size: 8px; font-style: normal; }
.redeem-row__price { text-align: right; }
.redeem-panel__note { margin-top: 12px; color: var(--muted); font-size: 8.5px; line-height: 1.8; }
.recharge-note { margin-top: 11px; color: var(--muted); font-size: 8.5px; line-height: 1.8; }

/* ---------------------------------------------------------
   Notes
   --------------------------------------------------------- */
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.note-card {
  padding: 19px;
  border-top: 3px solid var(--ink);
  background: var(--sheet);
  box-shadow: 6px 6px 0 var(--paper-deep);
}
.note-card:nth-child(2) { border-top-color: var(--red); }
.note-card--warn { border-top-color: var(--amber); }
.note-card .mono { color: var(--muted); font-size: 8px; letter-spacing: 0.1em; }
.note-card h3 { margin-top: 7px; font-family: var(--display); font-size: 23px; font-weight: 750; letter-spacing: -0.02em; }
.note-card p { margin-top: 9px; color: var(--ink-soft); font-size: 12px; line-height: 1.85; }
.note-card p b { color: var(--red); }
.note-card__example {
  margin-top: 15px;
  padding-top: 11px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.8;
}
.note-card__example strong { color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer {
  margin-top: clamp(64px, 7vw, 96px);
  border-top: 1px solid var(--block-bg);
  color: var(--block-fg);
  background: var(--block-bg);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 22px;
  padding-block: 30px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243, 238, 227, 0.38);
  border-radius: 50%;
  background: var(--avatar-bg);
  object-fit: cover;
}
.footer__brand strong { display: block; font-family: var(--display); font-size: 18px; font-weight: 750; }
.footer__brand span { display: block; margin-top: 2px; color: rgba(243, 238, 227, 0.5); font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 17px; color: rgba(243, 238, 227, 0.65); font-size: 11px; }
.footer__links a:hover { color: var(--paper); }
.footer__meta { color: rgba(243, 238, 227, 0.42); font-family: var(--mono); font-size: 8px; line-height: 1.9; text-align: right; }
.footer__meta span { display: block; }

/* ---------------------------------------------------------
   Motion
   --------------------------------------------------------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__copy { animation: fade-up 0.72s ease both; }
.rate-ticket { animation: fade-up 0.72s 0.08s ease both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .rate-ticket { max-width: 520px; justify-self: start; transform: rotate(1deg); }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-card:nth-child(3) { grid-column: span 2; }
  .pack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recharge-layout { grid-template-columns: 1fr; }
  .redeem-panel { max-width: none; }
}

@media (max-width: 860px) {
  .page-shell { width: min(calc(100% - 40px), var(--shell)); }
  .topbar__inner { grid-template-columns: 1fr auto; min-height: 70px; }
  .nav { display: none; }
  .hero { padding-top: 42px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(56px, 13vw, 86px); }
  .section-head { grid-template-columns: 38px 1fr; }
  .section-head__note { display: none; }
  .signal-strip__inner { grid-template-columns: repeat(2, 1fr); gap: 10px 0; padding-block: 14px; }
  .signal-strip__item { padding: 0 16px; }
  .signal-strip__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .signal-strip__live { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid rgba(243, 238, 227, 0.16); }
  .toolbar-actions { margin-left: 0; }
  .search { max-width: none; flex: 1 1 240px; }
  .notes-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr auto; }
  .footer__links { grid-column: 1 / -1; grid-row: 2; }
  .footer__meta { text-align: right; }
}

@media (max-width: 760px) {
  .search kbd { display: none; }
  .price-table { display: none; }
  .table-wrap { display: none; }
  .model-cards { display: grid; gap: 9px; }
  .model-card {
    padding: 14px;
    border: 1px solid var(--ink);
    border-radius: 9px;
    background: var(--sheet);
    box-shadow: 4px 4px 0 var(--paper-deep);
  }
  .model-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .model-card__name { font-size: 13px; font-weight: 750; line-height: 1.35; }
  .model-card__group { margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 8.5px; }
  .model-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
  .model-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--rule);
  }
  .model-card__grid span { display: block; color: var(--muted); font-family: var(--mono); font-size: 7.5px; }
  .model-card__grid strong { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; }
  .model-card__grid .price-strong { font-family: var(--serif); font-size: 19px; font-weight: 500; }
  .model-card__note { margin-top: 9px; color: var(--amber); font-family: var(--mono); font-size: 8px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card:nth-child(3) { grid-column: auto; }
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .btn { flex: 1; }
}

@media (max-width: 520px) {
  .page-shell { width: calc(100% - 32px); }
  .brand__text small { display: none; }
  .topbar__cta { padding: 0 11px; font-size: 11px; }
  .hero h1 { font-size: clamp(50px, 15vw, 70px); }
  .hero__intro { font-size: 15px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__meta { gap: 18px; }
  .hero__meta div { min-width: 40%; }
  .rate-ticket { padding: 15px 16px 17px; box-shadow: 10px 10px 0 var(--paper-deep); }
  .rate-ticket__number { font-size: 68px; }
  .rate-ticket__stamp { display: none; }
  .signal-strip__item strong { font-size: 24px; }
  .signal-strip__item small { font-size: 8.5px; }
  .featured-card { min-height: 250px; }
  .buying-power__items { grid-template-columns: 1fr; gap: 9px; }
  .buying-power__items div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px dashed rgba(243, 238, 227, 0.16); }
  .buying-power__items strong { font-size: 24px; }
  .buying-power__items span { margin-top: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 16px; }
  .footer__links { grid-column: auto; grid-row: auto; }
  .footer__meta { text-align: left; }
}

@media (max-width: 1120px) {
  .scenario-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calculator { grid-template-columns: 1fr; }
  .calc-controls { border-right: 0; border-bottom: 1px solid var(--rule); }
}

@media (max-width: 760px) {
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-grid { grid-template-columns: 1fr; }
  .calc-controls,
  .calc-results { padding: 16px; }
}

@media (max-width: 520px) {
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card { min-height: 160px; }
  .calc-label-row strong { font-size: 30px; }
  .result-card { min-height: 220px; }
}

.scenario-card { cursor: pointer; }
.scenario-card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (max-width: 760px) {
  .result-line__updated { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .hero__rate { margin-top: 22px; gap: 6px 10px; }
  .hero__rate strong { font-size: 26px; }
  .hero__rate-note { width: 100%; }
}
