:root {
  --canvas: #f6f5f1;
  --surface: #fffefa;
  --ink: #181816;
  --muted: #66665f;
  --quiet: #8b8b84;
  --line: #e8e5dd;
  --accent: #9b332b;
  --accent-soft: #f6ebe8;
  --gold: #aa8040;
  --dark: #1b1e22;
  --dark-line: rgba(255, 255, 255, 0.17);
  --max: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(246, 245, 241, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 238px; }
.brand-mark, .mini-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fffefa;
  font-family: "Songti SC", STSong, serif;
}
.brand-mark { width: 36px; height: 36px; font-size: 19px; }
.brand strong { display: block; font-size: 15px; letter-spacing: 0; }
.brand small { display: block; margin-top: 3px; color: var(--quiet); font-size: 11px; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; color: var(--muted); font-size: 13px; }
.site-nav a:hover, .footer-links a:hover, .inline-link:hover { color: var(--accent); }
.header-action {
  padding: 10px 14px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  transition: background 140ms ease, color 140ms ease;
}
.header-action:hover { background: var(--ink); color: var(--surface); }

.section, .hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 22px;
}
.section-rule { border-bottom: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 50px; padding-top: 112px; padding-bottom: 96px; }
.hero-copy { max-width: 760px; }
.eyebrow, .preview-kicker, .mode-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", serif;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}
.hero-lead { max-width: 640px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  font-size: 13px;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.button-dark { background: var(--ink); color: var(--surface); }
.button-dark:hover { background: var(--accent); border-color: var(--accent); }
.button-light { background: transparent; }
.button-light:hover { background: var(--accent-soft); border-color: var(--accent); }
.hero-note { margin: 24px 0 0; color: var(--quiet); font-size: 12px; line-height: 1.7; }
.hero-index { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; color: var(--quiet); font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: 0.08em; }
.hero-index-line { width: 1px; height: 92px; background: var(--accent); }

.section-heading { display: grid; grid-template-columns: 52px 1fr; gap: 16px; margin-bottom: 48px; }
.section-number { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 4px; }
h2 { max-width: 720px; margin-bottom: 0; font-family: "Songti SC", STSong, "Noto Serif CJK SC", serif; font-size: clamp(30px, 4.4vw, 52px); font-weight: 600; line-height: 1.2; }
.product-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; }
.product-summary { color: var(--muted); font-size: 16px; line-height: 1.9; }
.inline-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 28px; color: var(--accent); font-size: 13px; }
.feature-list { border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-index { color: var(--gold); font-size: 12px; padding-top: 3px; }
.feature-row h3, .boundary-column h3 { margin-bottom: 7px; font-size: 18px; font-weight: 600; }
.feature-row p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.section-dark { max-width: none; padding-right: max(22px, calc((100vw - var(--max)) / 2)); padding-left: max(22px, calc((100vw - var(--max)) / 2)); background: var(--dark); color: #f8f6f0; }
.section-heading-dark { border-bottom: 1px solid var(--dark-line); padding-bottom: 42px; }
.section-heading-dark .section-number, .section-heading-dark .eyebrow { color: #d6b77c; }
.preview-layout { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); align-items: center; gap: clamp(44px, 10vw, 150px); }
.phone-frame { width: min(100%, 360px); min-height: 510px; margin: 0 auto; padding: 18px; background: #fffefa; color: var(--ink); box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.18); }
.phone-topline { display: flex; justify-content: space-between; margin-bottom: 26px; color: var(--quiet); font-size: 10px; letter-spacing: 0.08em; }
.phone-title { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.mini-mark { width: 36px; height: 36px; font-size: 18px; }
.phone-title strong, .phone-title small { display: block; }
.phone-title strong { font-size: 18px; }
.phone-title small { margin-top: 5px; color: var(--quiet); font-size: 11px; }
.phone-row { display: flex; justify-content: space-between; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.muted { color: var(--quiet); }
.chart-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.chart-strip > div { min-height: 70px; padding: 9px 6px; border: 1px solid #d8d4c9; text-align: center; }
.chart-strip small, .chart-strip strong { display: block; }
.chart-strip small { color: var(--quiet); font-size: 10px; }
.chart-strip strong { margin-top: 13px; font-family: "Songti SC", STSong, serif; font-size: 19px; font-weight: 600; }
.phone-tabs { display: flex; gap: 12px; padding: 20px 0 16px; color: var(--quiet); font-size: 11px; }
.phone-tabs .active { color: var(--accent); }
.phone-bottom { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--quiet); text-align: center; font-size: 10px; }
.phone-bottom .selected { color: var(--accent); }
.preview-copy { max-width: 500px; }
.preview-copy h3 { margin-bottom: 18px; font-family: "Songti SC", STSong, serif; font-size: clamp(28px, 4vw, 44px); font-weight: 600; line-height: 1.25; }
.preview-copy > p:not(.preview-kicker) { color: #bbbcb6; font-size: 15px; line-height: 1.9; }
.preview-facts { margin-top: 34px; border-top: 1px solid var(--dark-line); }
.preview-facts div { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--dark-line); }
.preview-facts strong { color: #d6b77c; font-size: 12px; font-variant-numeric: tabular-nums; }
.preview-facts span { color: #f8f6f0; font-size: 13px; }

.mode-switch { display: inline-flex; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.mode-tab { border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; background: transparent; color: var(--quiet); font: inherit; font-size: 13px; cursor: pointer; }
.mode-tab.active { border-color: var(--accent); color: var(--accent); }
.mode-panel { display: grid; grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr); gap: 80px; padding: 34px 0 8px; border-top: 1px solid var(--line); }
.mode-panel h3 { max-width: 420px; margin-bottom: 0; font-family: "Songti SC", STSong, serif; font-size: clamp(26px, 4vw, 42px); font-weight: 600; line-height: 1.25; }
.mode-panel > p { max-width: 580px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.is-hidden { display: none; }

.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.boundary-column { padding-top: 22px; border-top: 2px solid var(--ink); }
.boundary-column:last-child { border-top-color: var(--accent); }
.boundary-column ul { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; line-height: 1.7; }
.boundary-column li { padding-left: 18px; position: relative; }
.boundary-column li::before { content: ""; position: absolute; top: 0.7em; left: 0; width: 6px; height: 1px; background: var(--accent); }

.apply-table { border-top: 1px solid var(--ink); }
.apply-row { display: grid; grid-template-columns: 1.1fr 0.8fr 1.6fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.apply-head { color: var(--quiet); font-size: 11px; letter-spacing: 0.08em; }
.status { display: inline-flex; width: max-content; height: fit-content; padding: 2px 7px; font-size: 11px; }
.status.pending { background: #efe8d6; color: #795b27; }
.status.missing { background: var(--accent-soft); color: var(--accent); }
.apply-footnote { margin: 22px 0 0; color: var(--quiet); font-size: 12px; line-height: 1.7; }

.site-footer { display: flex; justify-content: space-between; gap: 30px; max-width: var(--max); margin: 0 auto; padding: 28px 22px 52px; color: var(--quiet); font-size: 12px; }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { margin-bottom: 6px; color: var(--ink); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.icp-link { color: var(--quiet); }
.icp-link:hover { color: var(--accent); }
.icp-mark { width: 14px; height: 14px; object-fit: contain; opacity: 0.7; }

@media (max-width: 820px) {
  .site-header { gap: 14px; padding: 12px 16px; }
  .site-nav { display: none; }
  .header-action { margin-left: auto; }
  .section, .hero { padding-right: 16px; padding-left: 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 72px; }
  .hero-index { flex-direction: row; align-items: center; justify-content: flex-start; }
  .hero-index-line { width: 72px; height: 1px; }
  .product-layout, .preview-layout, .mode-panel, .boundary-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-dark { padding-right: 16px; padding-left: 16px; }
  .phone-frame { margin: 0; }
  .apply-row { grid-template-columns: 1fr; gap: 5px; padding: 16px 0; }
  .apply-head { display: none; }
  .site-footer { display: block; padding-right: 16px; padding-left: 16px; }
  .footer-links { justify-content: flex-start; margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
