/* 星屿商城 · 全站样式
   设计基调：深空靛蓝主色 + 暖金点缀，浅色底、圆角卡片、柔和阴影。 */

/* ---------- Tokens ---------- */
:root {
  --ink: #111427;
  --ink-2: #2F3453;
  --muted: #616786;
  --muted-2: #6B7089;
  --line: #E7E8F3;
  --line-strong: #D6D8E9;
  --bg: #F6F6FB;
  --surface: #FFFFFF;
  --surface-2: #FBFBFE;
  --brand: #4C3BE0;
  --brand-600: #3E2ECC;
  --brand-700: #31239F;
  --brand-soft: #EEEBFF;
  --brand-softer: #F7F5FF;
  --price: #D92D4B;
  --gold: #9A5B00;
  --gold-soft: #FFF4E2;
  --green: #0B7C5E;
  --green-soft: #E6F7F1;
  --amber: #96600A;
  --amber-soft: #FFF5E3;
  --red-soft: #FFF1F3;
  --red-line: #FFD3DA;
  --red-ink: #A11236;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(17, 20, 39, .05);
  --shadow-sm: 0 2px 6px rgba(17, 20, 39, .05), 0 1px 2px rgba(17, 20, 39, .04);
  --shadow-md: 0 14px 34px -18px rgba(28, 25, 80, .28), 0 3px 10px rgba(17, 20, 39, .04);
  --shadow-lg: 0 32px 70px -34px rgba(28, 25, 80, .38);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --header-h: 68px;
  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(.buybar) { padding-bottom: 76px; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
button { font: inherit; color: inherit; }
s { text-decoration-thickness: 1px; }

::selection { background: #DCD6FF; color: var(--ink); }

:focus-visible {
  outline: 3px solid #5B4AF0;
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 12px 12px;
  font-size: 14px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.narrow { max-width: 820px; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--primary {
  background: linear-gradient(180deg, #5B4AF0, var(--brand-600));
  box-shadow: 0 12px 26px -12px rgba(76, 59, 224, .7), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--primary:hover { box-shadow: 0 18px 32px -14px rgba(76, 59, 224, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { color: var(--ink); border-color: #C3C5DC; background: #fff; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; background: #1B1F3A; }

.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 54px; font-size: 16px; padding-inline: 28px; }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: 13.5px; border-radius: 999px; }

.btn__sub { font-weight: 500; opacity: .8; font-size: .9em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 246, 251, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(231, 232, 243, .9);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  margin-right: auto;
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  box-shadow: 0 8px 18px -10px rgba(76, 59, 224, .8);
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted-2);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 550;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover { background: rgba(238, 235, 255, .7); color: var(--brand-700); }
.nav__link[aria-current="page"] { background: var(--brand-soft); color: var(--brand-700); font-weight: 650; }
.nav__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 124, 94, .12);
}
.header__demo {
  display: none;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid #F6E2BE;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { padding-top: 22px; }

.hero__inner {
  position: relative;
  overflow: hidden;
  border: 1px solid #E9E7F8;
  border-radius: var(--r-xl);
  padding: clamp(26px, 4.4vw, 60px);
  background:
    radial-gradient(760px 420px at 88% -14%, rgba(124, 92, 224, .28), transparent 62%),
    radial-gradient(620px 360px at -6% 108%, rgba(94, 234, 212, .18), transparent 60%),
    linear-gradient(170deg, #FCFBFF 0%, #F4F2FF 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  box-shadow: var(--shadow-sm);
}
.hero__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(76, 59, 224, .16) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(520px 340px at 92% 8%, #000, transparent 72%);
  mask-image: radial-gradient(520px 340px at 92% 8%, #000, transparent 72%);
  pointer-events: none;
}
.hero__inner::after {
  content: "";
  position: absolute;
  top: -160px; right: -100px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(124, 92, 224, .22);
  box-shadow: 0 0 0 48px rgba(124, 92, 224, .05), 0 0 0 96px rgba(124, 92, 224, .035);
  pointer-events: none;
}
.hero__copy { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid #E4E1F7;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: var(--shadow-xs);
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(76, 59, 224, .13);
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #4C3BE0 10%, #7C5CE0 52%, #0E9E8F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  margin-top: 16px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(14.5px, 1.6vw, 16.5px);
  line-height: 1.75;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 13px;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { color: var(--green); flex: none; }

.hero__art {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-block: 6px;
}
.hero__card {
  position: relative;
  width: min(100%, 380px);
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-lg);
  transform: rotate(-3.5deg);
}
.hero__card img { display: block; border-radius: 14px; }
.hero__float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 30px -16px rgba(28, 25, 80, .45);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-2);
  white-space: nowrap;
}
.hero__float--top { top: -14px; left: -6px; animation: floaty 6s ease-in-out infinite; }
.hero__float--bottom { bottom: 6px; right: -10px; animation: floaty 7s ease-in-out infinite .8s; }
.hero__float--price { color: var(--price); font-size: 14px; }
.hero__float--price small { font-weight: 600; font-size: 10px; color: var(--muted); }
.hero__float b { font-size: 18px; letter-spacing: -.02em; }
.hero__float .tick {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(36px, 6vw, 64px); }
.section--tight { padding-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 22px;
}
.section-head h2 {
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 780;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.count-pill {
  font-size: 12px;
  font-weight: 650;
  color: var(--brand-700);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 3px 9px;
  letter-spacing: 0;
}
.section-head p { color: var(--muted); font-size: 13.5px; }

/* ---------- Category chips ---------- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-bottom: 22px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.chip:hover { border-color: #CFCBF0; color: var(--brand-700); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip__n { font-size: 11.5px; opacity: .65; font-variant-numeric: tabular-nums; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  font-size: 14px;
}

/* ---------- Product grid / card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 20px;
}
.product-grid > [hidden] { display: none !important; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: #DCD8F5;
  box-shadow: var(--shadow-md);
}
.card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1A1738;
}
.card__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.card:hover .card__cover img { transform: scale(1.035); }
.card__badge {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(20, 15, 45, .18);
}
.card__badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.card__cat {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 14, 34, .52);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: .04em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px 17px 17px;
}
.card__title { font-size: 16.5px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand-700); }
.card__sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.card__ticks { margin-top: 2px; display: grid; gap: 4px; }
.card__ticks li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
}
.card__ticks svg { flex: none; margin-top: 3px; color: var(--brand); }
.card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}
.price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price__now {
  color: var(--price);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.price__now small { font-size: 12px; font-weight: 700; margin-right: 1px; }
.price__was {
  color: var(--muted-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.card__go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--brand);
  white-space: nowrap;
}
.card:hover .card__go svg { transform: translateX(2px); }
.card__go svg { transition: transform .2s var(--ease); }

/* ---------- Trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trust__item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.trust__icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-softer);
  color: var(--brand);
}
.trust__item h3 { font-size: 14.5px; font-weight: 700; }
.trust__item p { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-top: 2px; }

/* ---------- Page head / breadcrumb ---------- */
.page { padding-block: clamp(20px, 3vw, 34px) clamp(40px, 6vw, 64px); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span[aria-hidden] { color: var(--muted-2); opacity: .7; }

.page-title {
  font-size: clamp(25px, 3.4vw, 34px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 6px;
}
.page-lead { color: var(--muted); font-size: 14.5px; }

/* ---------- Product detail ---------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}
.detail__media-col { position: sticky; top: calc(var(--header-h) + 20px); }
.detail__media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: #17142F;
}
.detail__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.detail__media .card__badge { top: 16px; left: 16px; }
.detail__perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 14px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.detail__perks div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}
.detail__perks svg { color: var(--brand); }

.detail__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .02em;
  background: var(--brand-soft);
  color: var(--brand-700);
}
.pill--gold { background: var(--gold-soft); color: var(--gold); }
.pill--green { background: var(--green-soft); color: var(--green); }
.pill--amber { background: var(--amber-soft); color: var(--amber); }
.pill--muted { background: #F1F2F8; color: var(--muted); }

.detail h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 800;
}
.detail__sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.detail__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
}
.detail__facts span { display: inline-flex; align-items: center; gap: 6px; }
.detail__facts svg { color: var(--green); flex: none; }

.price-box {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  border: 1px solid #E7E2FA;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(124, 92, 224, .10), transparent 70%),
    linear-gradient(180deg, #FFFFFF, #FBFAFF);
  box-shadow: var(--shadow-sm);
}
.price-box__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.price-box__now {
  font-size: clamp(34px, 4.4vw, 42px);
  font-weight: 850;
  color: var(--price);
  letter-spacing: -.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-box__now small { font-size: 18px; font-weight: 750; margin-right: 2px; }
.price-box__was { color: var(--muted-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.price-box__note {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12.5px;
}
.price-box__note strong { color: var(--ink-2); font-weight: 650; }
.price-box__note svg { color: var(--green); flex: none; }
.price-box__note span { display: inline-flex; align-items: center; gap: 6px; }

.detail__buy { margin-top: 18px; display: grid; gap: 10px; }
.detail__buy-note { color: var(--muted-2); font-size: 12px; text-align: center; }

.panel {
  margin-top: 26px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.panel__title {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.panel__title::before {
  content: "";
  width: 3px; height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), #7C5CE0);
}
.ticks { display: grid; gap: 10px; }
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}
.ticks svg { flex: none; margin-top: 3px; color: var(--brand); }
.ticks--sm { gap: 8px; }
.ticks--sm li { font-size: 13px; }

.prose { display: grid; gap: 14px; max-width: 70ch; }
.prose p { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; }

.buybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px -24px rgba(20, 18, 60, .45);
}
.buybar__price { display: flex; flex-direction: column; line-height: 1.15; }
.buybar__price strong {
  color: var(--price);
  font-size: 21px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.buybar__price small { color: var(--muted-2); font-size: 10.5px; }
.buybar .btn { flex: 1; }

/* ---------- Checkout ---------- */
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}
.form-block + .form-block { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-block__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.step-no {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-700);
  font-size: 12.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.form-block__head h2 { font-size: 16.5px; font-weight: 750; letter-spacing: -.01em; }
.form-block__hint { color: var(--muted); font-size: 12.5px; margin: 0 0 16px 36px; }

.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.field label .req { color: var(--price); margin-left: 2px; }
.field__hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.input::placeholder { color: #8C90A6; }
.input:hover { border-color: #C2C3DA; }
.input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(76, 59, 224, .13);
}
.input[aria-invalid="true"] { border-color: #E4697F; background: #FFFBFB; }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(217, 45, 75, .12); }

.alert {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.alert svg { flex: none; margin-top: 2px; }
.alert ul { display: grid; gap: 4px; }
.alert--error {
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  color: var(--red-ink);
}
.alert--info {
  background: var(--brand-softer);
  border: 1px solid #E3DEFA;
  color: var(--ink-2);
}
.alert__title { font-weight: 700; }

.payopts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; padding: 0; margin: 0; }
.payopt { position: relative; display: block; cursor: pointer; }
.payopt input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}
.payopt__box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.payopt:hover .payopt__box { border-color: #C3BEF0; background: #FEFDFF; }
.payopt input:checked + .payopt__box {
  border-color: var(--brand);
  background: var(--brand-softer);
  box-shadow: 0 0 0 3px rgba(76, 59, 224, .10);
}
.payopt input:focus-visible + .payopt__box {
  outline: 3px solid #5B4AF0;
  outline-offset: 3px;
}
.payopt__icon {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
}
.payopt__icon--alipay { background: linear-gradient(160deg, #2B90FF, #1677FF); }
.payopt__icon--wxpay { background: linear-gradient(160deg, #2AD97C, #07B45A); }
.payopt__text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.payopt__text strong { font-size: 14.5px; font-weight: 700; }
.payopt__text small { color: var(--muted); font-size: 11.5px; }
.payopt__check {
  margin-left: auto;
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  color: transparent;
  background: #fff;
}
.payopt input:checked + .payopt__box .payopt__check {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.form-actions { margin-top: 26px; display: grid; gap: 10px; }
.form-actions .btn--primary { min-height: 52px; font-size: 15.5px; }
.form-actions__note {
  text-align: center;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}
.form-actions__note svg { vertical-align: -2px; margin-right: 4px; color: var(--green); }

.checkout__aside { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 14px; }
.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.summary__head h2 { font-size: 15px; font-weight: 750; }
.summary__product { display: flex; gap: 13px; align-items: center; }
.summary__thumb {
  flex: none;
  width: 76px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #17142F;
}
.summary__thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.summary__info { min-width: 0; }
.summary__info h3 { font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.summary__info p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
.summary__lines { margin-top: 18px; display: grid; gap: 9px; font-size: 13.5px; }
.summary__line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.summary__line b { color: var(--ink-2); font-weight: 550; font-variant-numeric: tabular-nums; }
.summary__line--save b { color: var(--green); }
.summary__total {
  margin-top: 14px;
  padding-top: 15px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.summary__total span { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.summary__total strong {
  color: var(--price);
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.summary__total strong small { font-size: 14px; font-weight: 700; margin-right: 2px; }
.summary__note { margin-top: 14px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.secure-note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.secure-note svg { flex: none; margin-top: 2px; color: var(--green); }

/* ---------- Payment redirect ---------- */
.redirect-wrap {
  min-height: calc(100vh - var(--header-h) - 260px);
  display: grid;
  place-items: center;
  padding-block: clamp(30px, 7vw, 70px);
}
.redirect-card {
  width: 100%;
  max-width: 500px;
  text-align: center;
  padding: clamp(28px, 5vw, 44px) clamp(22px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.spinner {
  width: 60px; height: 60px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(76, 59, 224, 0), var(--brand));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: spin 1s linear infinite;
}
.redirect-card h1 { font-size: clamp(21px, 3vw, 25px); font-weight: 780; letter-spacing: -.02em; }
.redirect-card > p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.redirect-meta {
  margin: 22px 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  display: grid;
  gap: 8px;
  font-size: 12.5px;
}
.redirect-meta div { display: flex; justify-content: space-between; gap: 12px; }
.redirect-meta dt, .redirect-meta span:first-child { color: var(--muted); }
.redirect-meta b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.redirect-meta .amount { color: var(--price); font-size: 15px; font-weight: 800; }
.redirect-note { margin-top: 14px; color: var(--muted-2); font-size: 11.5px; }
.spinner-text { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Order ---------- */
.order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 26px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.order-head__main { min-width: 0; }
.order-head__status { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge--pending { background: var(--amber-soft); color: var(--amber); }
.status-badge--paid { background: var(--green-soft); color: var(--green); }
.order-head h1 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.025em; }
.order-head__no {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-family: var(--mono);
  word-break: break-all;
}
.order-head__amount { text-align: right; }
.order-head__amount small { display: block; color: var(--muted); font-size: 11.5px; }
.order-head__amount strong {
  color: var(--price);
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.order-head__amount strong span { font-size: 15px; font-weight: 700; }

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 22px;
  align-items: start;
  margin-top: 20px;
}
.order-main { display: grid; gap: 18px; min-width: 0; }
.order-aside { display: grid; gap: 16px; }

.delivery {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(22px, 3.4vw, 32px);
  color: #fff;
  background:
    radial-gradient(480px 260px at 100% 0%, rgba(124, 92, 224, .55), transparent 65%),
    radial-gradient(380px 220px at 0% 100%, rgba(94, 234, 212, .22), transparent 60%),
    linear-gradient(150deg, #1B1740, #2A2160 60%, #322A72);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .10);
}
.delivery::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .28) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(400px 240px at 90% 0%, #000, transparent 70%);
  mask-image: radial-gradient(400px 240px at 90% 0%, #000, transparent 70%);
  opacity: .5;
  pointer-events: none;
}
.delivery > * { position: relative; z-index: 1; }
.delivery__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 650;
  color: #D9D4FF;
  letter-spacing: .04em;
}
.delivery__label svg { color: #7EF0D4; }
.delivery h2 { margin-top: 6px; font-size: clamp(19px, 2.6vw, 23px); font-weight: 780; letter-spacing: -.02em; }
.delivery__code-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.delivery__code {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .10);
  border: 1px dashed rgba(255, 255, 255, .35);
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(17px, 3.4vw, 24px);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}
.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: #fff;
  color: var(--brand-700);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .5);
  transition: transform .16s var(--ease), background .16s var(--ease);
}
.copy-btn:hover { transform: translateY(-1px); background: #F6F4FF; }
.copy-btn:focus-visible { outline-color: #A99CFF; }
.copy-btn[data-copied="true"] { background: #7EF0D4; border-color: #7EF0D4; color: #063A2F; }
.delivery__meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: #C9C3F2;
  font-size: 11.5px;
}
.delivery__hint {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #C9C3F2;
  font-size: 12px;
  line-height: 1.7;
}

.order-status { display: grid; gap: 0; }
.pending-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 4vw, 38px) 24px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.pending-card .spinner { width: 46px; height: 46px; margin-bottom: 18px; }
.pending-card h2 { font-size: 19px; font-weight: 780; letter-spacing: -.01em; }
.pending-card p { margin-top: 8px; max-width: 34em; color: var(--muted); font-size: 13px; line-height: 1.75; }
.pending-card__status {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pending-card__actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.kv-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(18px, 2.6vw, 24px);
  box-shadow: var(--shadow-xs);
}
.kv-card h2 { font-size: 15px; font-weight: 750; margin-bottom: 6px; }
.kv { display: grid; }
.kv__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid #F0F1F8;
  font-size: 13px;
}
.kv__row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv__row dt { color: var(--muted); flex: none; }
.kv__row dd {
  margin: 0;
  text-align: right;
  color: var(--ink-2);
  font-weight: 550;
  overflow-wrap: anywhere;
}
.kv__row dd.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .01em; }
.kv__row dd .muted { color: var(--muted-2); font-weight: 400; }

.aside-product {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.aside-product:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.aside-product img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.aside-product__body { padding: 14px 16px 16px; }
.aside-product__body h3 { font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.aside-product__body p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.aside-product__body .price { margin-top: 10px; }
.aside-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--brand);
  margin-top: 10px;
}
.help-card {
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--brand-softer);
  border: 1px solid #E6E1FA;
}
.help-card h2 { font-size: 13.5px; font-weight: 750; }
.help-card p { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 4px; }
.help-card__links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Lookup ---------- */
.lookup {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}
.lookup__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3.4vw, 34px);
  box-shadow: var(--shadow-sm);
}
.lookup__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}
.lookup__card h1 { font-size: clamp(23px, 3vw, 28px); font-weight: 800; letter-spacing: -.025em; }
.lookup__card > p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.lookup__form { margin-top: 22px; display: grid; gap: 16px; }
.lookup__submit { margin-top: 6px; }
.steps-card {
  padding: clamp(20px, 3vw, 26px);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.steps-card h2 { font-size: 14.5px; font-weight: 750; margin-bottom: 14px; }
.steps { display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; }
.steps__n {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid #DAD5F5;
  background: var(--brand-softer);
  color: var(--brand-700);
  font-size: 11.5px;
  font-weight: 700;
}
.steps li strong { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.steps li span { display: block; color: var(--muted); font-size: 12px; line-height: 1.65; }
.lookup__tip {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--gold-soft);
  border: 1px solid #F6E3C2;
  color: #7A4A05;
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- Error ---------- */
.error-wrap {
  min-height: calc(100vh - var(--header-h) - 250px);
  display: grid;
  place-items: center;
  padding-block: clamp(30px, 7vw, 70px);
}
.error-card {
  width: 100%;
  max-width: 520px;
  text-align: center;
  padding: clamp(28px, 5vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.error-code {
  font-size: clamp(56px, 12vw, 84px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.05em;
  background: linear-gradient(120deg, #4C3BE0, #8B7CFF 55%, #0E9E8F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.error-card h1 { margin-top: 12px; font-size: clamp(20px, 2.8vw, 24px); font-weight: 780; letter-spacing: -.02em; }
.error-card__msg { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.error-card__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.error-card__help { margin-top: 18px; color: var(--muted-2); font-size: 11.5px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(40px, 7vw, 76px);
  color: #B6BAD2;
  background:
    radial-gradient(700px 320px at 88% 0%, rgba(124, 92, 224, .22), transparent 65%),
    radial-gradient(520px 280px at 0% 100%, rgba(94, 234, 212, .10), transparent 60%),
    #101225;
}
.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr) minmax(0, 1fr);
  gap: 32px;
  padding-block: clamp(34px, 5vw, 52px);
}
.footer-brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.footer-brand img { width: 34px; height: 34px; border-radius: 10px; }
.footer-brand strong { font-size: 16px; font-weight: 750; letter-spacing: .01em; }
.footer-brand span { display: block; font-size: 10.5px; letter-spacing: .14em; color: #8D92B4; font-weight: 600; }
.site-footer__brand p { margin-top: 14px; max-width: 30em; color: #9CA1C0; font-size: 12.5px; line-height: 1.8; }
.site-footer h2 { color: #F1F2FA; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer__links { display: grid; gap: 8px; }
.site-footer__links a { color: #A9AECB; font-size: 13px; }
.site-footer__links a:hover { color: #fff; }
.site-footer__note {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  color: #B6BAD2;
  font-size: 12px;
  line-height: 1.75;
}
.site-footer__note strong { color: #FFD9A0; font-weight: 650; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-block: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  color: #7E84A6;
  font-size: 11.5px;
}
.site-footer__bottom span { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* 深色底上的焦点环改用浅色，保证可见 */
.site-footer :focus-visible,
.delivery :focus-visible { outline-color: #C7BFFF; }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .55s var(--ease) both; }
  .hero__copy > *:nth-child(2) { animation-delay: .06s; }
  .hero__copy > *:nth-child(3) { animation-delay: .12s; }
  .hero__copy > *:nth-child(4) { animation-delay: .18s; }
  .hero__copy > *:nth-child(5) { animation-delay: .24s; }
  .hero__art { animation: rise .7s var(--ease) .12s both; }
  .product-grid .card { animation: rise .5s var(--ease) both; }
  .product-grid .card:nth-child(2n) { animation-delay: .05s; }
  .product-grid .card:nth-child(3n) { animation-delay: .1s; }
  .product-grid .card:nth-child(4n) { animation-delay: .15s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 901px) {
  .header__demo { display: inline-flex; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .hero__card { width: min(100%, 320px); }
  .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
  .checkout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero__art { order: 2; justify-content: flex-start; }
  .hero__card { width: min(100%, 420px); transform: rotate(-2deg); }
  .hero__float--top { left: 0; }
  .hero__float--bottom { right: 0; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
  .detail { grid-template-columns: 1fr; }
  .detail__media-col { position: static; }
  .detail__media { max-width: 620px; }
  .detail__perks { max-width: 620px; }
  .checkout { grid-template-columns: 1fr; }
  .checkout__aside { position: static; order: -1; }
  .order-layout { grid-template-columns: 1fr; }
  .order-aside { grid-template-columns: 1fr 1fr; align-items: start; }
  .lookup { grid-template-columns: 1fr; }
  .buybar { display: flex; }
  .detail__buy { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .container { padding-inline: 16px; }
  .hero { padding-top: 14px; }
  .hero__inner { padding: 24px 20px 26px; border-radius: 22px; }
  .hero h1 { margin-top: 16px; }
  .hero__lead { font-size: 14.5px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__meta { gap: 8px 16px; font-size: 12px; }
  .hero__art { padding-top: 10px; }
  .hero__card { transform: none; }
  .hero__float--top { top: -12px; left: 4px; }
  .hero__float--bottom { bottom: -8px; right: 4px; }
  .section { padding-block: 36px; }
  .trust { grid-template-columns: 1fr; gap: 10px; }
  .trust__item { padding: 16px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card__body { padding: 13px 13px 14px; gap: 6px; }
  .card__title { font-size: 14.5px; }
  .card__sub { font-size: 12px; min-height: 0; -webkit-line-clamp: 2; }
  .card__ticks { display: none; }
  .card__foot { padding-top: 10px; }
  .price__now { font-size: 19px; }
  .price__was { font-size: 11px; }
  .card__go { font-size: 11.5px; }
  .card__badge { top: 9px; left: 9px; padding: 4px 9px; font-size: 10.5px; }
  .card__cat { left: 9px; bottom: 9px; padding: 3px 8px; font-size: 10px; }
  .detail__perks div { font-size: 10.5px; padding: 10px 4px; }
  .detail__media { border-radius: 18px; }
  .price-box { padding: 16px 18px; }
  .panel { padding: 18px; margin-top: 20px; }
  .prose p { font-size: 14px; line-height: 1.85; }
  .form-card { border-radius: 20px; padding: 20px 16px; }
  .summary { border-radius: 20px; padding: 18px; }
  .payopts { grid-template-columns: 1fr; }
  .order-head { border-radius: 20px; }
  .order-head__amount { text-align: left; }
  .order-aside { grid-template-columns: 1fr; }
  .kv-card, .delivery, .pending-card { border-radius: 20px; }
  .lookup__card, .steps-card, .redirect-card, .error-card { border-radius: 20px; }
  .site-footer__main { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__brand p { margin-top: 10px; }
  .header__demo { display: none; }
}

@media (max-width: 560px) {
  .brand__tag { display: none; }
  .brand__name { font-size: 16px; }
  .nav__link { padding: 8px 11px; font-size: 13.5px; }
  .site-header__inner { gap: 10px; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .card { display: grid; grid-template-columns: 118px minmax(0, 1fr); }
  .card__cover { aspect-ratio: auto; height: 100%; min-height: 132px; }
  .card__cover img { height: 100%; }
  .card__cat { display: none; }
  .card__body { padding: 12px 13px; }
  .card__sub { -webkit-line-clamp: 2; }
  .card__foot { border-top: 0; padding-top: 8px; }
  .card__badge { top: 8px; left: 8px; }
  .hero__float--top { font-size: 11.5px; padding: 7px 10px; }
  .hero__float--bottom { font-size: 12px; padding: 7px 10px; }
  .hero__float b { font-size: 15px; }
  .chips { margin-bottom: 16px; }
  .chip { min-height: 38px; padding: 7px 13px; font-size: 13px; }
  .order-head__amount strong { font-size: 26px; }
  .delivery__code { font-size: 17px; letter-spacing: .1em; }
  .copy-btn { flex: 1 1 100%; justify-content: center; }
  .form-block__hint { margin-left: 0; }
  .form-block__head h2 { font-size: 15.5px; }
  .lookup__card, .steps-card { padding: 20px 18px; }
  .site-footer__main { grid-template-columns: 1fr; gap: 22px; }
  .site-footer__brand { grid-column: auto; }
  .buybar__price strong { font-size: 19px; }
}

@media (max-width: 380px) {
  .hero__float--top { display: none; }
  .hero__float--bottom { bottom: -6px; }
  .product-grid .card { grid-template-columns: 104px minmax(0, 1fr); }
}
