:root {
  color-scheme: dark;
  --bg: #19191c;
  --surface: #222226;
  --surface-raised: #29282b;
  --line: #3e3b3f;
  --ink: #faf0e5;
  --muted: #c5bcb5;
  --accent: #ff9e72;
  --accent-hover: #ffb792;
  --ink-on-accent: #271610;
  --heading: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--body); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--heading); }
h1 { font-size: clamp(38px, 6vw, 82px); line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: clamp(24px, 3.1vw, 34px); line-height: 1.23; }
h3 { font-size: 24px; line-height: 1.3; }
.wrap { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; background: var(--accent); color: var(--ink-on-accent); padding: 10px; z-index: 5; }
.skip:focus { top: .5rem; }

.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; white-space: nowrap; }
.brand-mark { display: inline-block; width: 22px; height: 16px; border: 2px solid var(--accent); border-radius: 3px; position: relative; transform: rotate(-10deg); }
.brand-mark::before { position: absolute; content: ""; width: 9px; height: 2px; background: var(--accent); top: 5px; left: 5px; }
.header nav { display: flex; gap: clamp(16px, 3.5vw, 40px); color: var(--muted); font-size: 14px; }
.header nav a:hover, .back:hover, .breadcrumbs a:hover { color: var(--accent); }
.notice { color: #f4c6ad; background: #2b2221; border-bottom: 1px solid #533730; font-size: 13px; }
.notice .wrap { padding-block: 8px; }
.notice span { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 100%; background: var(--accent); vertical-align: 2px; }

.hero { isolation: isolate; position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 0 38%; pointer-events: none;
  background: repeating-radial-gradient(ellipse at 70% 76%, transparent 0 30px, #a3705825 31px, transparent 32px 44px);
  mask-image: linear-gradient(90deg, transparent, #000 57%);
}
.hero-inner { padding-block: clamp(57px, 9vw, 116px); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(34px, 7vw, 96px); }
.hero h1 span { color: var(--accent); }
.hero-copy p { color: var(--muted); margin-block: 22px 28px; max-width: 32em; font-size: 17px; }
.hero-shelf { display: grid; gap: 9px; padding: 16px; border: 1px solid #746258; background: #222124; border-radius: 14px; transform: rotate(-4deg); box-shadow: 12px 16px 0 #11111580; }
.shelf-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border: 1px solid var(--line); background: var(--surface-raised); padding: 13px; border-radius: 6px; font-weight: 750; font-size: clamp(17px, 2vw, 23px); transition: border-color 180ms ease, transform 180ms ease; }
.shelf-row:hover { transform: translateX(3px); border-color: var(--accent); }
.shelf-row small { color: var(--muted); font-size: .66em; font-weight: 500; }
.shelf-arrow { color: var(--accent); font-size: 19px; padding: 0 5px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 10px 16px; border: 1px solid transparent; border-radius: 6px; font-weight: 730; font-size: 14px; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.button:active { transform: translateY(1px); }
.primary { color: var(--ink-on-accent); background: var(--accent); }
.primary:hover { background: var(--accent-hover); }
.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.secondary:hover { border-color: var(--accent); }
.full { width: 100%; justify-content: space-between; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.section { padding-block: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head p, .plan-card p, .flow p, .muted, .lede { color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; transition: transform 180ms ease, border-color 180ms ease; }
.plan-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-top, .card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.mark { display: inline-grid; place-items: center; width: 46px; height: 42px; border-radius: 6px; background: #d8eddb; color: #173626; font: bold 13px/1 var(--body); letter-spacing: .08em; }
.mark.claude { background: #f9c6ac; color: #51281c; }
.mark.gemini { background: #dce4ff; color: #293968; }
.duration { color: var(--muted); font-size: 13px; white-space: nowrap; }
.plan-card h3 span { color: var(--accent); font-size: .78em; font-weight: 550; }
.plan-card p { font-size: 14px; margin-bottom: 6px; }
.card-bottom { border-top: 1px solid var(--line); margin-top: auto; padding-top: 12px; }
.card-bottom strong { font-size: 20px; }
.card-bottom small, .price small { font-size: 12px; color: var(--muted); }
.card-arrow { color: var(--accent); font-size: 24px; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); }
.flow p { margin-top: 6px; font-size: 14px; }

.page { padding-block: 32px 64px; min-height: 65vh; }
.page h1 { font-size: clamp(32px, 5.4vw, 58px); margin-block: 14px 16px; }
.breadcrumbs, .back { color: var(--muted); font-size: 14px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, .52fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
.product-copy section { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.copy-block h2, .related h2, .buy-box h2 { font-size: 25px; margin-bottom: 9px; }
.copy-block p { color: var(--muted); max-width: 42em; }
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; font-weight: 650; }
details p { padding: 8px 0 2px 16px; }
.buy-box, .panel { border: 1px solid var(--line); border-radius: 9px; padding: 24px; background: var(--surface); }
.buy-box h2 { margin-top: 13px; }
.price { font-size: 30px; font-weight: 730; }
.facts { margin: 12px 0 20px; }
.facts div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.related { margin-top: 44px; }
.related .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.narrow { max-width: 760px; }
.panel > * + * { margin-top: 15px; }
.panel + .back { display: inline-block; margin-top: 16px; }
.item-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.item-row p, .orders p { color: var(--muted); font-size: 13px; }
.mono { font: 12px/1.45 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.state { color: var(--accent); font-weight: 680; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 0; padding: 0; list-style: none; }
.steps li { border-top: 3px solid var(--line); padding-top: 7px; color: var(--muted); font-size: 13px; }
.steps .done { border-color: var(--accent); color: var(--ink); }
.orders { padding: 0; margin: 0; list-style: none; }
.orders li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; }
.orders li + li { border-top: 1px solid var(--line); }
.orders a:hover { text-decoration: underline; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { padding-block: 24px; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-shelf { max-width: 500px; transform: none; }
  .plan-grid, .related .plan-grid { grid-template-columns: 1fr; }
  .product-grid { display: flex; flex-direction: column; }
  .buy-box { width: 100%; order: -1; }
  .section-head, .footer-inner { align-items: start; flex-direction: column; gap: 8px; }
  .flow { gap: 12px; }
  .buy-box, .panel { padding: 17px; }
  .orders li { grid-template-columns: 1fr auto; }
}

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