/* =========================================================
   AI 充值站 · 设计系统
   深 / 浅双模式（默认跟随系统，可手动切换，存于 localStorage）
   ========================================================= */

:root,
[data-theme="dark"] {
  --bg:        #0a0c0f;
  --bg-2:      #0e1116;
  --surface:   #14181e;
  --surface-2: #1a1f27;
  --surface-3: #212832;

  --line:        rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .13);

  --text:   #e9ecf1;
  --text-2: #a3abb6;
  --text-3: #6d7682;

  --accent:      #2fbf8f;
  --accent-2:    #38d6a1;
  --accent-soft: rgba(47, 191, 143, .12);
  --accent-line: rgba(47, 191, 143, .35);
  --on-accent:   #04140e;

  --warn:      #d9a441;
  --warn-text: #e6c286;
  --danger:    #d9614f;
  --hot-text:  #ffb4a2;
  --hot-line:  rgba(217, 97, 79, .35);
  --hot-bg:    rgba(217, 97, 79, .12);

  --nav-bg:       rgba(10, 12, 15, .78);
  --nav-bg-stuck: rgba(10, 12, 15, .93);
  --overlay:      rgba(4, 6, 8, .68);
  --inset-hi:     inset 0 1px 0 rgba(255, 255, 255, .07);
  --tint:         rgba(255, 255, 255, .045);
  --tint-soft:    rgba(255, 255, 255, .02);
  --accent-wash:  rgba(47, 191, 143, .1);
  --accent-glow:  rgba(47, 191, 143, .17);
  --sel:          rgba(47, 191, 143, .28);
  --scroll-track: #0a0c0f;
  --scroll-thumb: #262d36;
  --scroll-thumb-h: #333c47;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow: 0 18px 50px -22px rgba(0, 0, 0, .85);
  --ease:   cubic-bezier(.16, 1, .3, 1);
  --ease-2: cubic-bezier(.34, 1.56, .64, 1);

  --nav-h: 68px;
  --maxw: 1280px;
}

[data-theme="light"] {
  --bg:        #f6f7f9;
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e6e9ef;

  --line:        rgba(16, 24, 33, .1);
  --line-strong: rgba(16, 24, 33, .17);

  --text:   #0f141b;
  --text-2: #4c5563;
  --text-3: #868e9c;

  --accent:      #0f9668;
  --accent-2:    #0d8659;
  --accent-soft: rgba(15, 150, 104, .09);
  --accent-line: rgba(15, 150, 104, .34);
  --on-accent:   #ffffff;

  --warn:      #b7791f;
  --warn-text: #8a5a10;
  --danger:    #c0392b;
  --hot-text:  #b03a26;
  --hot-line:  rgba(192, 57, 43, .28);
  --hot-bg:    rgba(192, 57, 43, .08);

  --nav-bg:       rgba(255, 255, 255, .82);
  --nav-bg-stuck: rgba(255, 255, 255, .95);
  --overlay:      rgba(16, 24, 33, .34);
  --inset-hi:     inset 0 1px 0 rgba(16, 24, 33, .035);
  --tint:         rgba(16, 24, 33, .05);
  --tint-soft:    rgba(16, 24, 33, .022);
  --accent-wash:  rgba(15, 150, 104, .07);
  --accent-glow:  rgba(15, 150, 104, .13);
  --sel:          rgba(15, 150, 104, .2);
  --scroll-track: #eef0f4;
  --scroll-thumb: #c9cfd9;
  --scroll-thumb-h: #b2bac6;

  --shadow: 0 16px 42px -22px rgba(16, 24, 33, .3);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 78% -8%, var(--accent-glow), transparent 62%),
    radial-gradient(760px 460px at 6% 12%, rgba(56, 128, 200, .07), transparent 60%);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--sel); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 99px; border: 2px solid var(--scroll-track); }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-h); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container-tight { max-width: 880px; }
.section { padding: 96px 0; position: relative; z-index: 1; }
.section-sm { padding: 64px 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .6; }

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.06rem; }
.lead { color: var(--text-2); font-size: 1.02rem; max-width: 60ch; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text);
  border-radius: 999px; font-size: 14.5px; font-weight: 500; cursor: pointer;
  transition: transform .18s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover  { background: var(--surface-3); border-color: var(--line-strong); }
.btn:active { transform: scale(.975); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600;
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--tint); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--line-strong); color: var(--text-2); background: var(--tint-soft);
  white-space: nowrap;
}
.badge-accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.badge-warn   { color: var(--warn); border-color: rgba(217, 164, 65, .34); background: rgba(217, 164, 65, .11); }
.badge-hot    { color: var(--hot-text); border-color: var(--hot-line); background: var(--hot-bg); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.dot-live { box-shadow: 0 0 0 0 rgba(47, 191, 143, .5); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 191, 143, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(47, 191, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 191, 143, 0); }
}

/* ---------- Top notice bar ---------- */
.topbar {
  height: 38px; background: var(--bg-2); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; overflow: hidden; position: relative; z-index: 60;
  font-size: 12.5px; color: var(--text-2);
}
.topbar .ticker { display: flex; gap: 44px; padding-left: 24px; white-space: nowrap; animation: ticker 46s linear infinite; }
.topbar:hover .ticker { animation-play-state: paused; }
.topbar .ticker span { display: inline-flex; align-items: center; gap: 8px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--nav-bg); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.stuck { border-bottom-color: var(--line); background: var(--nav-bg-stuck); }
.nav-inner { display: flex; align-items: center; gap: 30px; height: 100%; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; letter-spacing: -.02em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(150deg, var(--accent), #1c7f60);
  display: grid; place-items: center; color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.logo-mark svg { width: 18px; height: 18px; }
.logo small { display: block; font-size: 10.5px; color: var(--text-3); letter-spacing: .1em; font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav-links a {
  padding: 8px 13px; border-radius: 8px; font-size: 14px; color: var(--text-2);
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--text); background: var(--tint); }
.nav-links a.active { color: var(--text); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, border-color .2s, transform .18s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(.96); }
.icon-btn svg { width: 18px; height: 18px; color: var(--text-2); }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 99px; background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--bg); opacity: 0; transform: scale(.6); transition: all .22s var(--ease-2);
}
.cart-count.on { opacity: 1; transform: scale(1); }

/* 主题切换按钮：图标随模式切换 */
.theme-btn .ic-sun { display: none; }
[data-theme="light"] .theme-btn .ic-sun { display: block; }
[data-theme="light"] .theme-btn .ic-moon { display: none; }

.burger { display: none; }

.nav-mobile {
  display: none; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49;
  background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 14px 24px 22px;
}
.nav-mobile.open { display: block; animation: slideDown .26s var(--ease); }
.nav-mobile a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { padding: 82px 0 74px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg::before {
  content: ""; position: absolute; width: 680px; height: 680px; right: -140px; top: -240px;
  background: radial-gradient(circle, var(--accent-glow), transparent 62%);
  animation: float 13s ease-in-out infinite;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(720px 420px at 68% 20%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(720px 420px at 68% 20%, #000, transparent 72%);
  opacity: .55;
}
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(26px) } }

.hero .split { position: relative; z-index: 1; gap: 48px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin-bottom: 28px; font-size: 1.06rem; }

.trust-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 13.5px; color: var(--text-2); }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

.hero-stats { display: flex; gap: 34px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat-num { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.stat-num em { font-style: normal; color: var(--accent); }
.stat-lbl { font-size: 12.5px; color: var(--text-3); }

/* Mock 订单卡 */
.mock {
  position: relative; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow);
}
.mock::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); pointer-events: none;
  box-shadow: var(--inset-hi);
}
.mock-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mock-body { padding: 18px 0 4px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 13.5px; }
.mock-row .k { color: var(--text-3); }
.mock-row .v { color: var(--text); font-weight: 500; }

.progress { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 16px 0 8px; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1c7f60, var(--accent-2)); width: 0; animation: fill 2.6s var(--ease) infinite; }
@keyframes fill { 0% { width: 8%; } 55% { width: 92%; } 100% { width: 100%; } }

.float-chip {
  position: absolute; background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 12.5px;
  display: flex; align-items: center; gap: 9px; animation: float 7s ease-in-out infinite;
}
.float-chip.a { left: -22px; bottom: 58px; animation-delay: -1.5s; }
.float-chip.b { right: -18px; top: -18px; animation-delay: -3.5s; }

/* ---------- Price cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card-featured { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-wash), transparent 42%), var(--surface); }

.plan-tag {
  position: absolute; top: -11px; left: 24px; padding: 3px 12px; border-radius: 99px;
  background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.plan-name { font-size: 1.02rem; margin-bottom: 6px; }
.plan-note { font-size: 13px; color: var(--text-3); min-height: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 9px; margin: 18px 0 4px; }
.plan-price .cur { font-size: 1.05rem; color: var(--text-2); }
.plan-price .num { font-size: 2.35rem; font-weight: 600; letter-spacing: -.04em; }
.plan-price .old { font-size: 13.5px; color: var(--text-3); text-decoration: line-through; }
.plan-unit { font-size: 12.5px; color: var(--text-3); margin-bottom: 20px; }

.feat-list { display: flex; flex-direction: column; gap: 11px; margin: 0 0 24px; }
.feat-list li { display: flex; gap: 10px; font-size: 13.7px; color: var(--text-2); align-items: flex-start; }
.feat-list svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 4px; }

/* ---------- Product grid ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 30px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 5px; border-radius: 999px; }
.tab {
  padding: 8px 16px; border: 0; background: transparent; color: var(--text-2);
  border-radius: 999px; font-size: 13.5px; cursor: pointer; transition: all .2s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.tab.active .dim { color: var(--on-accent); opacity: .62; }

.search { position: relative; margin-left: auto; }
.search input {
  height: 42px; width: 250px; padding: 0 14px 0 40px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; outline: none; transition: border-color .2s, background .2s;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { border-color: var(--accent-line); background: var(--surface-2); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); }

.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(276px, 1fr)); gap: 18px; }

.p-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; transition: border-color .22s, transform .22s var(--ease), background .22s;
}
.p-card:hover { border-color: var(--accent-line); transform: translateY(-3px); background: var(--surface-2); }
.p-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.p-ico {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: grid; place-items: center; color: var(--accent);
}
.p-ico svg { width: 19px; height: 19px; }
.p-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.01em; }
.p-desc { font-size: 13px; color: var(--text-3); margin-bottom: 14px; min-height: 38px; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.p-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.p-price { display: flex; align-items: baseline; gap: 6px; }
.p-price .num { font-size: 1.42rem; font-weight: 600; letter-spacing: -.03em; color: var(--accent); }
.p-price .cur { font-size: 13px; color: var(--text-2); }
.p-price .old { font-size: 12.5px; color: var(--text-3); text-decoration: line-through; }
.p-price .unit { font-size: 12.5px; color: var(--text-3); }

.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); margin-bottom: 4px; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty-state svg { width: 34px; height: 34px; color: var(--text-3); margin: 0 auto 14px; }

.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%); background-size: 400% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r); height: 236px; }
@keyframes shimmer { from { background-position: 100% 0 } to { background-position: -100% 0 } }

/* ---------- Features (border-style grid) ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feat-cell { padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s; }
.feat-cell:hover { background: var(--tint-soft); }
.feat-cell .n { font-size: 12px; color: var(--accent); letter-spacing: .12em; margin-bottom: 14px; }
.feat-cell h3 { margin-bottom: 9px; }
.feat-cell p { font-size: 13.6px; color: var(--text-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { position: relative; padding: 0 22px; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-n {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  font-weight: 600; color: var(--accent); margin-bottom: 18px; position: relative; z-index: 1;
}
.step h3 { margin-bottom: 8px; font-size: 15px; }
.step p { font-size: 13.4px; color: var(--text-2); }
.steps::before {
  content: ""; position: absolute; top: 21px; left: 42px; right: 42px; height: 1px;
  background: linear-gradient(90deg, var(--accent-line), var(--line) 60%, transparent);
}

/* ---------- Reviews ---------- */
.rev-grid { columns: 3; column-gap: 18px; }
.rev {
  break-inside: avoid; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px; transition: border-color .22s;
}
.rev:hover { border-color: var(--line-strong); }
.rev p { font-size: 13.8px; color: var(--text-2); margin-bottom: 16px; }
.rev-who { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--surface-3); font-size: 12.5px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--line-strong);
}
.rev-who .nm { font-size: 13.2px; font-weight: 500; }
.rev-who .tg { font-size: 11.5px; color: var(--text-3); }
.stars { display: flex; gap: 2px; margin-bottom: 12px; color: var(--accent); }
.stars svg { width: 13px; height: 13px; }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 500; transition: color .2s;
}
.acc-q:hover { color: var(--accent); }
.acc-q .ic { flex: none; width: 20px; height: 20px; position: relative; }
.acc-q .ic::before, .acc-q .ic::after {
  content: ""; position: absolute; background: var(--text-2); transition: transform .3s var(--ease), background .2s;
}
.acc-q .ic::before { left: 0; top: 9px; width: 20px; height: 1.5px; }
.acc-q .ic::after  { left: 9px; top: 0; width: 1.5px; height: 20px; }
.acc-item.open .acc-q .ic::after { transform: rotate(90deg); }
.acc-item.open .acc-q .ic::before, .acc-item.open .acc-q .ic::after { background: var(--accent); }
.acc-a { overflow: hidden; max-height: 0; transition: max-height .38s var(--ease); }
.acc-a p { padding: 0 4px 24px; font-size: 14px; color: var(--text-2); max-width: 78ch; }
.acc-item.open .acc-a { max-height: 420px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: 56px; background: linear-gradient(120deg, var(--accent-wash), transparent 55%), var(--surface);
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-band::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -240px;
  background: radial-gradient(circle, var(--accent-glow), transparent 66%);
}
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Notice box ---------- */
.notice {
  display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--r);
  border: 1px solid rgba(217, 164, 65, .26); background: rgba(217, 164, 65, .07);
}
.notice svg { width: 19px; height: 19px; color: var(--warn); flex: none; margin-top: 2px; }
.notice h4 { font-size: 14px; margin-bottom: 7px; color: var(--warn-text); }
.notice p { font-size: 13.4px; color: var(--text-2); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 500; }
.field label .req { color: var(--danger); margin-left: 3px; }
.field .hint { font-size: 12.3px; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 10px; font-size: 14.5px;
  outline: none; transition: border-color .2s, background .2s;
}
.field textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: var(--bg-2); }
.field input.err, .field select.err, .field textarea.err { border-color: var(--danger); }
.field .msg { font-size: 12.3px; color: var(--danger); display: none; }
.field.err .msg { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.opt:hover { background: var(--tint-soft); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .radio {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  flex: none; position: relative; transition: border-color .2s;
}
.opt .radio::after {
  content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--accent);
  transform: scale(0); transition: transform .2s var(--ease-2);
}
.opt input:checked ~ .radio { border-color: var(--accent); }
.opt input:checked ~ .radio::after { transform: scale(1); }
.opt:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.opt-main { flex: 1; }
.opt-main .t { font-size: 14px; font-weight: 500; }
.opt-main .s { font-size: 12.2px; color: var(--text-3); }
.opt-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.opt-ico svg { width: 17px; height: 17px; color: var(--text-2); }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.4px; color: var(--text-2); cursor: pointer; }
.checkbox input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); flex: none; }

/* ---------- Summary / order ---------- */
.summary { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 24px; position: sticky; top: calc(var(--nav-h) + 20px); }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: 13.8px; }
.sum-row .k { color: var(--text-2); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 15px; }
.sum-row.total .v { font-size: 1.55rem; font-weight: 600; color: var(--accent); letter-spacing: -.03em; }
.sum-items { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 8px; display: grid; gap: 14px; }
.sum-item { display: flex; gap: 12px; align-items: flex-start; }
.sum-item .nm { font-size: 13.8px; font-weight: 500; }
.sum-item .mt { font-size: 12.2px; color: var(--text-3); }

.promo { display: flex; gap: 8px; margin: 4px 0 8px; }
.promo input { flex: 1; height: 42px; padding: 0 13px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 9px; outline: none; font-size: 13.6px; }
.promo input:focus { border-color: var(--accent); }
.promo .btn { height: 42px; }
.promo-tip { font-size: 12.3px; margin-bottom: 6px; display: none; }
.promo-tip.ok { display: block; color: var(--accent); }
.promo-tip.no { display: block; color: var(--danger); }

/* ---------- Order result ---------- */
.result-card { background: var(--surface); border: 1px solid var(--accent-line); border-radius: var(--r-lg); padding: 32px; text-align: center; }
.result-ico { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.result-ico svg { width: 28px; height: 28px; color: var(--accent); }
.code-box {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  background: var(--surface-2); border: 1px dashed var(--accent-line); border-radius: 12px; padding: 16px 18px;
}
.code-box .code { flex: 1; font-size: 15px; letter-spacing: .06em; color: var(--accent); word-break: break-all; text-align: left; }

.timeline { display: grid; gap: 0; text-align: left; margin-top: 26px; }
.tl-item { display: flex; gap: 14px; padding-bottom: 20px; position: relative; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 1px; background: var(--line-strong); }
.tl-dot { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); flex: none; margin-top: 3px; position: relative; z-index: 1; display: grid; place-items: center; }
.tl-item.done .tl-dot { border-color: var(--accent); background: var(--accent-soft); }
.tl-item.done .tl-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tl-item .t { font-size: 13.8px; font-weight: 500; }
.tl-item .s { font-size: 12.3px; color: var(--text-3); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13.8px; min-width: 560px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 12.5px; font-weight: 500; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--tint-soft); }
td.accent { color: var(--accent); font-weight: 600; }

/* ---------- Steps doc (help) ---------- */
.doc-step { display: grid; grid-template-columns: 92px 1fr; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.doc-step .idx { font-size: 2.4rem; font-weight: 600; letter-spacing: -.05em; color: var(--surface-3); line-height: 1; }
.doc-step h3 { margin-bottom: 10px; }
.doc-step p { color: var(--text-2); font-size: 14px; margin-bottom: 10px; }
.doc-step ul { display: grid; gap: 9px; margin-top: 12px; }
.doc-step li { display: flex; gap: 10px; font-size: 13.6px; color: var(--text-2); }
.doc-step li svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 4px; }

/* ---------- Drawer (cart) ---------- */
.overlay { position: fixed; inset: 0; background: var(--overlay); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 70; }
.overlay.on { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 80;
  background: var(--bg-2); border-left: 1px solid var(--line-strong);
  display: flex; flex-direction: column; transform: translateX(102%);
  transition: transform .4s var(--ease);
}
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; display: grid; gap: 14px; align-content: start; }
.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--line); background: var(--surface); }

.ci { display: flex; gap: 13px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.ci .info { flex: 1; min-width: 0; }
.ci .nm { font-size: 13.6px; font-weight: 500; margin-bottom: 3px; }
.ci .mt { font-size: 12.2px; color: var(--text-3); margin-bottom: 9px; }
.ci .px { font-size: 14px; color: var(--accent); font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.qty button { width: 26px; height: 26px; background: var(--surface-2); border: 0; cursor: pointer; color: var(--text-2); font-size: 15px; line-height: 1; }
.qty button:hover { background: var(--surface-3); color: var(--text); }
.qty span { width: 34px; text-align: center; font-size: 13px; }
.rm { background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 12.5px; padding: 0; align-self: flex-start; }
.rm:hover { color: var(--danger); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: grid; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 11px; padding: 13px 18px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--shadow); font-size: 13.6px; min-width: 240px;
  animation: toastIn .34s var(--ease);
}
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.toast.warn svg { color: var(--warn); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 62px 0 30px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
.footer h4 { font-size: 13px; color: var(--text); margin-bottom: 16px; letter-spacing: .04em; }
.footer li { margin-bottom: 11px; }
.footer a { font-size: 13.5px; color: var(--text-2); transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.6px; color: var(--text-3); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .68s var(--ease), transform .68s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .steps::before { display: none; }
  .step { padding: 0 18px; }
  .step:nth-child(odd) { padding-left: 0; }
  .rev-grid { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 900px) {
  .nav-links, .nav .btn-ghost { display: none; }
  .burger { display: grid; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 56px 0 60px; }
  .float-chip.a, .float-chip.b { display: none; }
  .summary { position: static; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .container { padding: 0 18px; }
  .logo { font-size: 14.5px; }
  .logo small { font-size: 9px; letter-spacing: .08em; }
  .nav-inner { gap: 12px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0; }
  .rev-grid { columns: 1; }
  .cta-band { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .search, .search input { width: 100%; margin-left: 0; }
  .toolbar { gap: 10px; }
  .tabs { width: 100%; overflow-x: auto; }
  .field-row { grid-template-columns: 1fr; }
  .doc-step { grid-template-columns: 1fr; gap: 12px; }
  .toast-wrap { left: 18px; right: 18px; bottom: 18px; }
  .drawer { width: 100%; }
}

@media (max-width: 460px) {
  .logo { font-size: 14px; }
  .logo small { display: none; }
  .logo-mark { width: 29px; height: 29px; }
  .nav .btn-primary.btn-sm { padding: 0 13px; font-size: 13px; }
}
