:root {
  color-scheme: light;
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
  color: #171b18;
  background: #f5f6f3;
  font-synthesis: none;
  --paper: #fff;
  --ink: #171b18;
  --muted: #525c54;
  --line: #e0e5dc;
  --acid: #ddfa72;
  --dark: #14221e;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, summary, select { cursor: pointer; }
:focus-visible { outline: 3px solid #578748; outline-offset: 3px; }
[id] { scroll-margin-top: 1.5rem; }

.shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 3; padding: 12px; background: white; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.2rem; font-weight: 850; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { position: relative; display: grid; place-items: center; width: 38px; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--dark); }
.brand-mark::before { content: ''; position: absolute; width: 15px; height: 15px; top: 10px; left: 11.5px; border: 2px solid var(--acid); border-radius: 3px; transform: rotate(45deg); }
.brand-mark i { position: absolute; width: 12px; height: 10px; top: 17px; left: 13px; border: 2px solid var(--acid); border-top: 0; border-radius: 0 0 2px 2px; background: var(--dark); }
.nav nav { display: flex; gap: 32px; color: var(--muted); font-weight: 620; font-size: .91rem; }
.nav-actions { display: flex; align-items: center; gap: 7px; }
.nav nav a:hover, .footer-inner a:hover { color: #38542b; text-decoration: underline; text-underline-offset: 5px; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; font-weight: 760; font-size: .92rem; line-height: 1.25; text-align: center; transition: background .16s, border-color .16s, color .16s; }
.button-outline { border-color: #dce3d9; background: #fff; }
.button-outline:hover { border-color: #a9b6a5; background: #f4f8f0; }
.button-primary { background: var(--acid); color: #192419; }
.button-primary:hover { background: #f0ffac; }
.button-hero-secondary { color: #edf4e9; border-color: #7c9981; }
.button-hero-secondary:hover { background: #ffffff15; }
.button-dark { background: var(--dark); color: white; }
.button-dark:hover { background: #324b3c; }
.button:disabled { color: #525d53; background: #edf0ec; cursor: default; }

.hero { position: relative; isolation: isolate; min-height: 396px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; margin-top: 28px; padding: 44px 61px; overflow: hidden; color: white; background: radial-gradient(ellipse at 78% 55%, #2b4d37 0%, #192b22 36%, #13211d 70%); border-radius: 24px; }
.hero-copy { position: relative; z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: #dae5d4; font-size: .91rem; font-weight: 650; letter-spacing: .1em; }
.hero-kicker span { width: 8px; aspect-ratio: 1; background: var(--acid); transform: rotate(45deg); border-radius: 2px; }
.hero h1 { font-size: clamp(2.8rem, 5.3vw, 4.7rem); font-weight: 900; letter-spacing: -.065em; line-height: 1.08; }
.hero h1 em { color: var(--acid); font-style: normal; }
.hero-description { margin: 19px 0 23px; color: #e0e9df; font-size: 1rem; line-height: 1.7; }
.hero .button { min-height: 49px; padding-inline: 23px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: relative; min-height: 306px; align-self: stretch; margin: -15px -44px -16px -24px; }
.art-axes { position: absolute; inset: -39px -16px; opacity: .3; background-image: linear-gradient(#a3cf9822 1px, transparent 1px), linear-gradient(90deg, #a3cf9822 1px, transparent 1px); background-size: 31px 31px; mask-image: radial-gradient(ellipse, #000 23%, #0000 72%); }
.art-orbit { position: absolute; top: 52%; left: 48%; width: 91%; max-width: 520px; aspect-ratio: 1.55; border: 1px solid #bde9a129; border-radius: 50%; transform: translate(-50%, -50%) rotate(-24deg); }
.orbit-b { width: 75%; border-color: #bde9a13d; transform: translate(-50%, -50%) rotate(20deg); }
.orbit-c { width: 63%; border-color: #bde9a120; transform: translate(-50%, -50%) rotate(-24deg); }
.art-signal { position: absolute; color: #e4fa9b; font-size: 2rem; text-shadow: 0 0 16px #e3ff9a95; }
.signal-a { top: 12%; right: 16%; }
.signal-b { bottom: 13%; left: 13%; font-size: 1.3rem; opacity: .72; }
.pass { position: absolute; width: clamp(200px, 24vw, 294px); aspect-ratio: 1.62; top: 50%; left: 50%; border-radius: 17px; }
.pass-rear { display: grid; align-items: end; overflow: hidden; border: 1px solid #c2e5b66f; background: linear-gradient(144deg, #446e4e 3%, #244631 53%, #18352a 98%); transform: translate(-40%, -54%) rotate(14deg); box-shadow: 13px 13px 38px #0c170c66; }
.pass-line { height: 29%; margin-bottom: 9%; background: #1b372b; }
.pass-front { padding: 7% 7%; display: flex; flex-direction: column; color: #1e3219; background: radial-gradient(circle at 90% 100%, #b1df68, transparent 55%), linear-gradient(126deg, #f0ffaf, #d7ee8a 60%, #c8e777); transform: translate(-58%, -46%) rotate(-11deg); border: 1px solid #f9ffd4; box-shadow: 0 17px 42px #102418b8, inset 0 0 20px #f5ffb45e; }
.pass-top { display: flex; align-items: center; justify-content: space-between; font-size: 1.9rem; line-height: .8; }
.pass-chip { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2px; width: 31px; height: 25px; padding: 4px; border: 1px solid #658a39; border-radius: 5px; opacity: .76; }
.pass-chip i { border: 1px solid #6e903e; border-radius: 3px; }
.pass-name { margin-top: auto; font-size: clamp(1.5rem, 2.7vw, 2.25rem); font-weight: 850; letter-spacing: -.07em; line-height: 1.06; }
.pass-caption { margin-top: 4px; font-size: .81rem; font-weight: 720; }
.pass-lines { display: flex; gap: 3px; position: absolute; right: 12%; bottom: 19%; }
.pass-lines i { width: 2px; height: 15px; background: #486a2b88; }
.pass-lines i:nth-child(2n) { width: 4px; }
.preview-note { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; margin: 15px 0 40px; padding: 11px 13px; border: 1px solid #e3e7dc; border-radius: 9px; background: #eef1e9; color: #4c594c; font-size: .875rem; line-height: 1.55; }
.preview-note strong { color: #324436; }
.preview-dot { width: 7px; aspect-ratio: 1; border-radius: 10px; background: #6b833c; }

.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.section-intro h2, .help h2 { font-size: clamp(1.8rem, 3vw, 2.25rem); font-weight: 850; letter-spacing: -.055em; }
.section-intro p, .help-heading p { margin-top: 6px; color: var(--muted); line-height: 1.65; }
.search { position: relative; width: min(275px, 100%); flex: 0 0 auto; }
.search input, .form-input { min-height: 45px; width: 100%; padding: 8px 12px; background: #fff; border: 1px solid #dce3d9; border-radius: 9px; color: var(--ink); }
.search input { padding-left: 38px; font-size: .94rem; }
.search-icon { position: absolute; left: 14px; top: 14px; width: 13px; height: 13px; border: 1.6px solid #596659; border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ''; position: absolute; width: 6px; height: 1.6px; background: #596659; transform: rotate(47deg); left: 9px; top: 10px; }
.catalog-bar { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 14px; gap: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { min-height: 39px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 100px; background: white; font-weight: 650; font-size: .875rem; }
.filter:hover { background: #ecf1e6; }
.filter[aria-pressed='true'] { background: #daebcd; border-color: #d0e4c3; color: #233c25; }
.result-count { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.product-list { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; }
.product-columns, .product { display: grid; grid-template-columns: minmax(0, 1fr) 116px 78px 88px; align-items: center; gap: 18px; padding-inline: 17px; }
.product-columns { min-height: 38px; background: #eef2eb; color: var(--muted); font-size: .875rem; font-weight: 700; }
.product-columns[hidden] { display: none; }
.product-columns span:nth-child(2), .product-price { text-align: right; }
.product-columns span:nth-child(3), .product-columns span:nth-child(4), .desktop-stock { text-align: center; }
.product { min-height: 67px; padding-block: 9px; border-top: 1px solid var(--line); }
.product.featured { background: #f7faf3; }
.product:hover { background: #f1f6ec; }
.product-main { min-width: 0; display: flex; align-items: center; gap: 11px; }
.product-name { min-width: 0; }
.product-icon { display: grid; place-items: center; width: 39px; aspect-ratio: 1; flex: none; border-radius: 10px; font: 800 1.12rem/1 system-ui, sans-serif; color: #28492e; background: #e1efdc; }
.product-icon.codex { color: #5239b0; background: #ede8ff; font-family: ui-monospace, monospace; }
.product-icon.gemini { color: #2f5fc8; background: #e8efff; }
.product-icon.muse { color: #9b441f; background: #ffede3; }
.tag { padding: 2px 6px; border-radius: 5px; background: #e8f0e1; color: #36563a; font-weight: 700; font-size: .8125rem; }
.product h3 { font-size: 1.02rem; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 7px; margin-top: 3px; color: #44564a; font-size: .875rem; line-height: 1.35; }
.row-stock { font-size: .875rem; font-weight: 700; }
.row-stock.in-stock { color: #365b38; }
.row-stock.sold-out { color: #5c625d; }
.mobile-stock { display: none; }
.price { white-space: nowrap; font-size: 1.63rem; font-weight: 850; line-height: 1.12; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.price .currency { font-size: .9rem; margin-right: 3px; vertical-align: .1em; }
.price small { margin-left: 4px; font-size: .85rem; color: var(--muted); font-weight: 570; letter-spacing: normal; }
.product-price { font-size: 1.2rem; letter-spacing: -.025em; }
.product-action { width: 100%; min-height: 39px; padding-inline: 6px; }
.empty { padding: 24px; color: var(--muted); }
.help { display: grid; grid-template-columns: .65fr 1.35fr; gap: 28px; margin: 52px 0 42px; padding: 28px 32px; background: #eaf0e6; border: 1px solid #e0e8dc; border-radius: 18px; }
.answers details + details { border-top: 1px solid #d7e2d3; }
.answers summary { padding: 12px 1px; list-style-position: inside; font-weight: 730; }
.answers details p { padding: 0 4px 12px; color: var(--muted); line-height: 1.7; }
.site-footer { background: white; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding-block: 22px; color: var(--muted); }
.footer-inner .brand { color: var(--ink); font-size: 1rem; }
.footer-inner .brand-mark { zoom: .8; }

.checkout { width: min(910px, calc(100% - 44px)); padding-block: 30px 48px; }
.checkout [hidden] { display: none; }
.back-link { color: #426048; font-size: .94rem; text-decoration: underline; text-underline-offset: 4px; }
.checkout h1 { margin: 12px 0 20px; font-size: clamp(1.9rem, 4vw, 2.55rem); font-weight: 850; letter-spacing: -.045em; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 15px; }
.checkout-panel { padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.checkout-panel h2, .payment-options legend { font-size: 1.12rem; font-weight: 800; }
.checkout-product { margin: 16px 0 4px; font-size: 1rem; }
.checkout-description { color: var(--muted); line-height: 1.55; }
.checkout-description:empty { display: none; }
.checkout-description + .checkout-description { margin-top: 7px; }
.variant-field { max-width: 280px; }
.payment-options { min-width: 0; display: grid; gap: 7px; margin: 19px 0 0; padding: 0; border: 0; }
.payment-options legend { padding: 0; margin-bottom: 9px; }
.payment-option { min-height: 51px; display: flex; align-items: center; gap: 9px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; cursor: pointer; }
.payment-option:has(input:checked) { border-color: #8da986; background: #f3f7f0; }
.payment-option input { accent-color: #405e43; }
.payment-mark { width: 28px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 7px; color: white; font-size: .875rem; }
.payment-mark.wechat { background: #197542; }
.payment-mark.alipay { background: #146bd1; }
.payment-state { margin-left: auto; color: var(--muted); white-space: nowrap; font-size: .875rem; font-weight: 580; }
.checkout-amount { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding-block: 15px; margin-top: 10px; border-bottom: 1px solid var(--line); }
.checkout-message { padding: 10px; margin: 13px 0; border-radius: 7px; color: var(--muted); background: #eef2eb; font-size: .9rem; line-height: 1.6; }
.checkout-totals button { width: 100%; }
.confirmation { max-width: 540px; }
.confirmation .action-row { margin-top: 15px; }
.lookup-result { display: flex; width: 100%; margin-top: 7px; text-align: left; }

.product-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(325px, .87fr); align-items: start; gap: 18px; }
.product-overview { min-width: 0; }
.product-art { min-height: 250px; display: grid; place-items: center; padding: 28px 20px; overflow: hidden; border-radius: 15px; background: radial-gradient(ellipse at 18% 24%, #37654a, transparent 66%), #152721; }
.product-art[data-group='codex'] { background: radial-gradient(ellipse at 18% 24%, #4e4c71, transparent 66%), #292544; }
.product-art[data-group='gemini'] { background: radial-gradient(ellipse at 18% 24%, #365982, transparent 66%), #162c44; }
.product-art[data-group='muse'] { background: radial-gradient(ellipse at 18% 24%, #694d42, transparent 66%), #352724; }
.product-art-card { display: grid; gap: 9px; justify-items: start; width: min(100%, 310px); padding: 23px; border: 1px solid #d2dfb5; border-radius: 13px; color: #18301d; background: linear-gradient(160deg, #f1fbd6, #c8e495); box-shadow: 12px 18px 30px #0d17178a; transform: rotate(-5deg); }
.product-art-card strong { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 900; line-height: 1.12; letter-spacing: -.045em; }
.product-art-card > span { font-weight: 650; font-size: .88rem; }
.product-art-brand { padding-bottom: 16px; }
.product-tools { display: flex; justify-content: end; gap: 8px; margin-top: 9px; }
.product-tools .button { min-height: 40px; }
.subtle-note { color: var(--muted); line-height: 1.5; font-size: .875rem; }
.subtle-note:not(:empty) { margin-top: 7px; }
.product-details { margin-top: 13px; }
.product-details p, .product-details ul { color: var(--muted); line-height: 1.65; }
.product-details h2 + p { margin-top: 8px; }
.product-details h3 { margin: 15px 0 4px; font-size: 1rem; }
.product-details ul { padding-left: 1.2rem; margin: 0; }
.product-details .button { margin-top: 13px; }
.purchase-labels { display: flex; gap: 6px; flex-wrap: wrap; margin: 9px 0; }
.purchase-panel .checkout-amount { padding: 11px 0; }
.purchase-submit { width: 100%; margin-top: 13px; }
.quantity-stepper { display: flex; gap: 0; width: max-content; max-width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.quantity-stepper button { width: 43px; min-height: 42px; border: 0; background: #edf2eb; font-size: 1.12rem; }
.quantity-stepper button:hover { background: #daead3; }
.quantity-stepper input { width: 62px; border: 0; text-align: center; appearance: textfield; }
.quantity-stepper input::-webkit-inner-spin-button { appearance: none; }
.challenge-row { display: flex; gap: 7px; margin-top: 7px; }
.challenge-row button { white-space: nowrap; }
#image-preview-body { padding: 16px; }
#image-preview-body .product-art { min-height: 305px; }

.redeem-shell .preview-note { margin: 0 0 17px; }
.redeem-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 15px; }
.redeem-switch { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.redeem-heading { display: flex; gap: 7px; flex-direction: column; align-items: start; margin-top: 16px; }
.redeem-main .action-row { margin-top: 14px; }
.redeem-instructions { color: var(--muted); line-height: 1.7; padding-left: 1.3rem; }
.redeem-result { margin-top: 13px; padding: 12px; border-radius: 8px; background: #edf4e8; line-height: 1.6; }
.redeem-aside p { margin-top: 10px; color: var(--muted); line-height: 1.65; }
.redeem-aside .button { margin-top: 15px; }
.account-shell { max-width: 520px; }
.account-shell .preview-note { margin: 0 0 17px; }
.account-shell .subtle-note { margin-top: 9px; }
.account-shell .action-row { margin-top: 12px; }
.remember-me { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.remember-me input { accent-color: #405e43; }

dialog { width: min(490px, calc(100% - 30px)); max-height: calc(100% - 30px); padding: 0; border-radius: 18px; border: 1px solid #dfe5dd; box-shadow: 0 20px 75px #0b180a4f; color: var(--ink); }
dialog::backdrop { background: #111b14a0; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 1.25rem; }
.close-button { width: 38px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 1.4rem; }
.close-button:hover { background: #edf2eb; }
.dialog-body { padding: 20px; }
.dialog-body p { color: var(--muted); line-height: 1.65; }
.dialog-body p + p { margin-top: 9px; }
.dialog-body .action-row { margin-top: 15px; }
.dialog-body .preview-note { margin: 14px 0 0; }
.form-label { display: grid; align-content: start; gap: 7px; margin-top: 15px; font-weight: 720; }
select.form-input { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #465646 50%),linear-gradient(135deg,#465646 50%, transparent 50%); background-position: calc(100% - 16px) 50%,calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.dialog-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 720; }
.action-row { display: flex; justify-content: end; gap: 10px; flex-wrap: wrap; }
.order-summary { margin: 14px 0 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f4f7f1; }
.order-summary dt { margin-top: 7px; color: var(--muted); font-size: .875rem; }
.order-summary dt:first-child { margin-top: 0; }
.order-summary dd { margin: 2px 0 0; font-weight: 730; overflow-wrap: anywhere; }
.message { min-height: 1.5em; margin-top: 10px; }

@media (max-width: 920px) {
  .shell { width: calc(100% - 44px); }
  .hero { min-height: 362px; padding: 36px; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  .nav { min-height: 64px; gap: 8px; }
  .nav nav { display: none; }
  .brand { gap: 7px; font-size: 1.1rem; }
  .brand-mark { width: 36px; }
  .nav-order { min-height: 40px; padding-inline: 10px; }
  .hero { grid-template-columns: 1fr; gap: 0; min-height: 0; margin-top: 14px; padding: 27px 23px 9px; border-radius: 18px; }
  .hero h1 { font-size: clamp(2.5rem, 10.5vw, 3.5rem); }
  .hero-description { margin-block: 13px 16px; }
  .desktop-break { display: none; }
  .hero-art { min-height: 181px; margin: -3px -20px 0; }
  .pass { width: 175px; }
  .pass-name { font-size: 1.5rem; }
  .pass-front { padding: 15px; }
  .art-orbit { max-width: 265px; }
  .signal-a { top: 10%; }
  .preview-note { margin-bottom: 26px; }
  .section-intro { display: grid; gap: 12px; }
  .search { width: 100%; }
  .catalog-bar { margin-top: 14px; align-items: start; }
  .result-count { padding-top: 10px; }
  .filter { padding-inline: 10px; }
  .product-columns, .product { grid-template-columns: minmax(0, 1fr) max-content 63px; gap: 9px; padding-inline: 10px; }
  .product-columns { grid-template-columns: minmax(0, 1fr) 62px 63px; min-height: 33px; }
  .product-columns span:nth-child(3), .desktop-stock { display: none; }
  .mobile-stock { display: inline; }
  .product { min-height: 66px; padding-block: 7px; }
  .product-main { gap: 7px; }
  .product-icon { width: 31px; border-radius: 8px; font-size: .96rem; }
  .product h3 { font-size: .94rem; }
  .product-meta { font-size: .8125rem; }
  .row-stock { font-size: inherit; }
  .product-price { font-size: .99rem; }
  .product-price .currency, .product-price small { font-size: .76rem; margin-inline: 2px; }
  .product-action { min-height: 40px; font-size: .875rem; }
  .help { grid-template-columns: 1fr; margin-block: 31px; padding: 19px 16px; gap: 10px; }
  .footer-inner { flex-wrap: wrap; font-size: .875rem; }
  .checkout { width: calc(100% - 28px); padding-top: 20px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-panel { padding: 15px; }
  .product-page-layout, .redeem-layout { grid-template-columns: 1fr; }
  .product-overview { display: contents; }
  .product-overview .product-art { min-height: 180px; }
  .product-overview .product-tools { margin: -10px 0 0; }
  .product-overview .subtle-note:empty { display: none; }
  .product-details { order: 2; margin-top: 0; }
}
@media (max-width: 360px) {
  .product-main .product-icon { display: none; }
  .nav-actions .button { padding-inline: 6px; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
