:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f1f3f7;
  --ink: #0d1016;
  --ink-2: #1f2630;
  --muted: #6b7280;
  --muted-2: #8a8a8a;
  --line: rgba(13, 16, 22, 0.10);
  --line-strong: rgba(13, 16, 22, 0.18);
  --accent: #10b981;
  --accent-bright: #34d399;
  --accent-ink: #ffffff;
  --accent-hover: #059669;
  --accent-glow: rgba(52, 211, 153, 0.25);
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --content: 1200px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, "Cascadia Code", monospace;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(15, 23, 42, 0.06), 0 16px 36px rgba(15, 23, 42, 0.08);
  --shadow-primary: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 28px rgba(13, 16, 22, 0.18);
  --button-primary-bg: linear-gradient(135deg, #0d1016 0%, #1f2630 100%);
  --button-primary-hover-bg: linear-gradient(135deg, #1a1f29 0%, #2a323e 100%);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d11;
  --surface: #11151c;
  --surface-2: #161b24;
  --surface-3: #1c222c;
  --ink: #f5f6f8;
  --ink-2: #d4d4d4;
  --muted: #8b95a3;
  --muted-2: #6a6a6a;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #10b981;
  --accent-bright: #34d399;
  --accent-hover: #34d399;
  --accent-glow: rgba(52, 211, 153, 0.35);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.4), 0 16px 36px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 1px 0 rgba(255, 255, 255, 0.10) inset, 0 8px 24px rgba(0, 0, 0, 0.5);
  --button-primary-bg: linear-gradient(135deg, #1f2630 0%, #2a323e 100%);
  --button-primary-hover-bg: linear-gradient(135deg, #2a323e 0%, #364050 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- bg-stage (body-level decorative layer) ---------- */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-stage .bg-grid {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, black 35%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, black 35%, transparent 88%);
  opacity: 0.55;
  animation: bg-grid-drift 60s linear infinite;
}

html[data-theme="dark"] .bg-stage .bg-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  opacity: 0.7;
}

.bg-stage .bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform, opacity;
}

.bg-stage .bg-orb.one {
  width: 620px;
  height: 620px;
  top: -10%;
  left: 18%;
  background: radial-gradient(circle at 50% 50%, var(--accent-bright, #34d399) 0%, transparent 65%);
  animation: bg-orb-drift-a 28s ease-in-out infinite alternate, bg-orb-fade 14s ease-in-out infinite alternate;
}

.bg-stage .bg-orb.two {
  width: 540px;
  height: 540px;
  top: 30%;
  right: 8%;
  background: radial-gradient(circle at 50% 50%, #5b8def 0%, transparent 65%);
  animation: bg-orb-drift-b 34s ease-in-out infinite alternate, bg-orb-fade 17s ease-in-out infinite alternate;
}

.bg-stage .bg-orb.three {
  width: 480px;
  height: 480px;
  top: -8%;
  right: 28%;
  background: radial-gradient(circle at 50% 50%, #a78bfa 0%, transparent 65%);
  animation: bg-orb-drift-c 38s ease-in-out infinite alternate, bg-orb-fade 21s ease-in-out infinite alternate;
}

html[data-theme="dark"] .bg-stage .bg-orb {
  opacity: 0.32;
  filter: blur(80px);
}

.bg-stage .bg-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    color-mix(in srgb, var(--accent) 50%, transparent) 50%,
    transparent 100%);
  opacity: 0.6;
  animation: bg-scan 8s ease-in-out infinite;
}

.bg-stage .bg-spot {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent-bright, #34d399) 22%, transparent) 0%, transparent 70%);
  filter: blur(40px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  will-change: transform, opacity;
}

@keyframes bg-grid-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(56px, 56px); }
}

@keyframes bg-orb-fade {
  from { opacity: 0.42; }
  to { opacity: 0.62; }
}

@keyframes bg-orb-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes bg-orb-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-70px, 50px) scale(0.95); }
}

@keyframes bg-orb-drift-c {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -50px) scale(1.04); }
}

@keyframes bg-scan {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-stage .bg-grid,
  .bg-stage .bg-orb,
  .bg-stage .bg-scan {
    animation: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

button,
input {
  font: inherit;
  color: inherit;
}

/* ---------- Page shell ---------- */
.page-shell {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* full-bleed: 同 hero 一样脱出 .page-shell 1120px */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--content);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.brand-copy strong {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.brand-copy small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.icon-btn:hover {
  color: var(--ink);
  background: var(--surface-3);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] .theme-sun {
  display: none;
}

html[data-theme="light"] .theme-moon,
html:not([data-theme="dark"]) .theme-moon {
  display: none;
}

/* ---------- Hero ---------- */
main {
  margin-top: 0;
}

.hero {
  position: relative;
  /* full-bleed: 突破 .page-shell 1120px 限制，铺满 100vw */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 8px;
  padding: clamp(96px, 13vw, 168px) 24px clamp(80px, 10vw, 128px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, var(--bg)) 0%, var(--bg) 100%);
}

html[data-theme="dark"] .hero {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, #0a0d12) 0%, var(--bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -5% 0;
  z-index: -2;
  background:
    radial-gradient(50% 60% at 50% 10%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 65%),
    radial-gradient(35% 50% at 12% 40%, color-mix(in srgb, #8b5cf6 16%, transparent) 0%, transparent 70%),
    radial-gradient(35% 50% at 88% 40%, color-mix(in srgb, #22d3ee 14%, transparent) 0%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}

html[data-theme="dark"] .hero::before {
  background:
    radial-gradient(50% 60% at 50% 10%, color-mix(in srgb, var(--accent) 32%, transparent) 0%, transparent 65%),
    radial-gradient(35% 50% at 12% 40%, color-mix(in srgb, #8b5cf6 26%, transparent) 0%, transparent 70%),
    radial-gradient(35% 50% at 88% 40%, color-mix(in srgb, #22d3ee 22%, transparent) 0%, transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 35%, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 35%, black 35%, transparent 80%);
  opacity: 0.65;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow-channel {
  color: #c084fc;
}

.hero .eyebrow,
.product-hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  padding: 7px 14px 7px 12px;
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 7%, var(--surface-2));
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.hero .eyebrow::before,
.product-hero-copy .eyebrow::before {
  content: "";
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 10%, transparent); }
}

.hero-copy {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.hero-copy h1,
.product-hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(180deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 72%, var(--muted)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy h1 {
  font-size: clamp(44px, 7vw, 76px);
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.hero-text,
.section-text,
.footer-text,
.product-copy p,
.product-hero-copy p,
.lookup-item-meta,
.detail-notes,
.purchase-note,
.lookup-hint {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.65;
}

.hero-text {
  max-width: 52ch;
  margin: 24px auto 0;
  font-size: 17px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-actions {
  display: inline-flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-highlights {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--muted);
}

.hero-highlights span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ---------- hero-trust (4-chip trust strip) ---------- */
.hero-trust {
  margin: 56px auto 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  text-align: left;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.hero-trust-item:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  transform: translateY(-1px);
}

.hero-trust-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-3));
  color: var(--accent);
}

.hero-trust-icon svg {
  width: 19px;
  height: 19px;
}

.hero-trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero-trust-text b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.hero-trust-text span {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .hero-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero-trust {
    grid-template-columns: 1fr;
  }
}

.hero-media {
  display: none;
}

/* ---------- Sections ---------- */
.featured-section,
.purchase-info-section,
.lookup-panel,
.product-stage {
  padding: clamp(32px, 4.5vw, 56px) 0 clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.1;
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.section-text {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Buttons (preserve .button + .button-primary/secondary contract) ---------- */
.button,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.button:hover,
.card-link:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
  transform: translateY(-1px);
}

.button:active,
.card-link:active {
  transform: translateY(0);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: var(--shadow-primary);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 10px 26px color-mix(in srgb, var(--accent) 38%, transparent);
}

.button-secondary {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover {
  background: var(--surface-3);
  border-color: var(--line-strong);
}

.button-pay-hero {
  width: 100%;
  height: 46px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 550;
}

.button-small {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.card-link {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

/* ---------- Step strip (replaces purchase-info-section) ---------- */
.step-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
}

.step-strip-item .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step-strip-sep {
  color: var(--muted-2);
  user-select: none;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.product-card-live:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card-hover);
}

/* 渠道卡密商品(官方代充):紫金调,与本地账号商品(绿色调)区分 */
.product-card-channel {
  border-color: color-mix(in srgb, #a855f7 45%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #a855f7 10%, var(--surface)) 0%, var(--surface-2) 70%);
}

.product-card-channel:hover {
  border-color: #a855f7;
  box-shadow: 0 18px 40px -18px rgba(168, 85, 247, 0.55);
}

.product-card-channel .product-kicker {
  color: #c084fc;
}

.product-card-channel::before {
  content: "官方代充";
  position: absolute;
  top: 12px;
  right: -34px;
  z-index: 2;
  width: 132px;
  text-align: center;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #a855f7, #f59e0b);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 0;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.35);
}

.product-card-channel .product-media-live {
  background:
    radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, #a855f7 24%, transparent) 0%, transparent 75%),
    linear-gradient(135deg, color-mix(in srgb, #f59e0b 14%, var(--surface-3)), var(--surface-3));
}

.product-media,
.product-hero-media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 75%),
    linear-gradient(135deg, color-mix(in srgb, #8b5cf6 12%, var(--surface-3)), var(--surface-3));
}

.product-media {
  min-height: 168px;
  border-bottom: 1px solid var(--line);
}

.product-media::after,
.product-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}

.product-media-live,
.product-hero-media-live {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media-live img,
.product-hero-media-live img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media-live img,
.product-hero-media-live img {
  position: relative;
  z-index: 1;
}

.product-copy {
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 22px;
  gap: 4px;
}

.product-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-copy h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.product-summary {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-badges,
.detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.product-badge,
.detail-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
}

.product-stock {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.product-stock-ok {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}

.product-stock-warn {
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  color: #b45309;
  border-color: color-mix(in srgb, #f59e0b 32%, transparent);
}

.product-stock-low {
  background: color-mix(in srgb, #ef4444 14%, transparent);
  color: #b91c1c;
  border-color: color-mix(in srgb, #ef4444 32%, transparent);
}

.product-stock-out {
  background: var(--surface-3);
  color: var(--muted);
  border-color: var(--line);
  text-decoration: line-through;
}

html[data-theme="dark"] .product-stock-warn {
  color: #fbbf24;
}

html[data-theme="dark"] .product-stock-low {
  color: #fca5a5;
}

.product-meta-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

.product-price-stack {
  display: grid;
  gap: 2px;
}

.product-price-stack strong,
.product-detail-price {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.product-price-original {
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: line-through;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer .eyebrow {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer .eyebrow::before {
  display: none;
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-text {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--ink);
}

/* ---------- Product detail page ---------- */
.product-page,
.lookup-page {
  margin-top: 0;
}

.product-stage {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  border-top: 0;
}

.product-hero-media {
  aspect-ratio: 4 / 4.5;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.product-hero-copy .eyebrow {
  margin-bottom: 16px;
}

.product-hero-copy h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  max-width: none;
  margin: 0;
  line-height: 1.15;
  text-align: left;
}

.product-hero-copy .hero-text {
  margin: 14px 0 0;
  font-size: 15.5px;
  max-width: none;
  text-align: left;
}

.product-price-cluster {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.product-detail-price {
  font-size: 32px;
}

.product-detail-price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.product-price-save {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--line));
  color: color-mix(in srgb, var(--success) 55%, var(--ink));
  font-size: 12px;
  font-weight: 600;
}

.promo-price-hint {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.promo-price-hint.is-loading {
  color: var(--muted);
}

.promo-price-hint.is-valid {
  color: color-mix(in srgb, var(--success) 55%, var(--ink));
}

.promo-price-hint.is-invalid {
  color: color-mix(in srgb, var(--danger, #e5484d) 70%, var(--ink));
}

/* ---------- Forms ---------- */
.guest-form,
.lookup-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.guest-field,
.lookup-field {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.guest-field input,
.lookup-field input {
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.guest-field input:hover,
.lookup-field input:hover {
  border-color: var(--line-strong);
}

.guest-field input:focus,
.lookup-field input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.guest-field input::placeholder,
.lookup-field input::placeholder {
  color: var(--muted-2);
}

.input-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent);
}

.field-error {
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------- Payment ---------- */
.payment-section {
  margin-top: 28px;
}

.payment-section-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-method-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.payment-method-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.payment-method-card.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.payment-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.payment-method-icon-alipay {
  background: #1677ff;
}

.payment-method-icon-wxpay {
  background: #07c160;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}

.form-status-error {
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
  color: color-mix(in srgb, var(--danger) 60%, var(--ink));
}

.form-status-success {
  background: color-mix(in srgb, var(--success) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--success) 30%, var(--line));
  color: color-mix(in srgb, var(--success) 55%, var(--ink));
}

.detail-notes,
.purchase-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
}

.detail-notes {
  display: grid;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---------- Lookup ---------- */
.lookup-panel {
  max-width: 680px;
  margin-inline: auto;
  border-top: 0;
}

.lookup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.lookup-result {
  margin-top: 28px;
}

.lookup-list {
  display: grid;
  gap: 12px;
}

.lookup-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.lookup-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.lookup-item-head strong {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lookup-item-head span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.lookup-item-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.lookup-item-meta + .lookup-item-meta {
  margin-top: 2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--ink-2);
}

.status-success {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border-color: color-mix(in srgb, var(--success) 30%, var(--line));
  color: color-mix(in srgb, var(--success) 55%, var(--ink));
}

.status-warning {
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  border-color: color-mix(in srgb, var(--warning) 30%, var(--line));
  color: color-mix(in srgb, var(--warning) 55%, var(--ink));
}

.status-danger {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
  color: color-mix(in srgb, var(--danger) 55%, var(--ink));
}

.status-neutral {
  color: var(--muted);
}

/* ---------- CDK ---------- */
.cdk-block {
  margin-top: 16px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  display: grid;
  gap: 10px;
}

.cdk-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 70%, var(--ink));
}

.cdk-code-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.cdk-code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  word-break: break-all;
}

.cdk-code-block {
  display: block;
  white-space: pre-wrap;
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.55;
  max-height: 220px;
  overflow: auto;
}

.cdk-meta {
  font-size: 12.5px;
  color: var(--muted);
}

.cdk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cdk-redeem-result {
  margin-top: 4px;
}

.redeem-success {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--success) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--success) 25%, var(--line));
}

.redeem-success-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: color-mix(in srgb, var(--success) 55%, var(--ink));
  margin-bottom: 4px;
}

.redeem-success-meta {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

.lookup-hint,
.placeholder-note {
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.placeholder-note.danger {
  color: color-mix(in srgb, var(--danger) 60%, var(--ink));
  border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
  background: color-mix(in srgb, var(--danger) 6%, var(--surface));
}

/* ---------- Animations ---------- */
.hero,
.featured-section,
.lookup-panel,
.product-stage {
  animation: rise-up 480ms var(--ease) both;
}

@keyframes rise-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-stage,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .product-stage {
    gap: 32px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-hero-media {
    max-width: 480px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 0 16px 56px;
  }

  .site-header {
    margin: 0 -16px;
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
  }

  .hero-copy h1,
  .section-heading h2 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .product-grid,
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .lookup-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .lookup-actions .button,
  .lookup-actions .card-link {
    width: 100%;
  }

  .product-meta-row,
  .lookup-item-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-strip {
    gap: 10px;
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
