/* ============ Design tokens ============ */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --text: #09090b;
  --text-2: #52525b;
  --muted: #a1a1aa;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #6d5dfc;
  --accent-soft: #6d5dfc14;
  --accent-text: #5b4bf0;
  --btn: #09090b;
  --btn-text: #ffffff;
  --success: #16a34a;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .04);
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -8px rgb(0 0 0 / .08);
  --shadow-lg: 0 24px 64px -16px rgb(0 0 0 / .25);
  --nav-bg: rgb(250 250 250 / .78);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --nav-h: 60px;
  --tab-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --surface: #131316;
    --surface-2: #1c1c21;
    --text: #fafafa;
    --text-2: #a1a1aa;
    --muted: #71717a;
    --border: #26262b;
    --border-strong: #34343b;
    --accent: #8b7dff;
    --accent-soft: #8b7dff1f;
    --accent-text: #a89dff;
    --btn: #fafafa;
    --btn-text: #09090b;
    --success: #4ade80;
    --shadow-sm: none;
    --shadow: 0 0 0 1px rgb(255 255 255 / .02);
    --shadow-lg: 0 24px 64px -16px rgb(0 0 0 / .7);
    --nav-bg: rgb(10 10 11 / .72);
    color-scheme: dark;
  }
}

/* ============ Base ============ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
  min-height: 100vh; display: flex; flex-direction: column;
}
body.lock { overflow: hidden; }
html:lang(ja) body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
#view { flex: 1; padding-bottom: 48px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 560px; }
.muted { color: var(--text-2); font-size: 13px; }
.accent { color: var(--accent-text); }
.app-icon { display: block; flex: none; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.star { fill: #f5b301; stroke: none; width: 15px; height: 15px; }
@media (max-width: 899px) { .only-desktop { display: none !important; } }
@media (min-width: 900px) { .only-mobile { display: none !important; } }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
body.scrolled .nav { border-bottom-color: var(--border); }
.nav-inner { max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 4px; }
.nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-back { display: none; width: 36px; height: 36px; margin-left: -8px; border-radius: 50%; place-items: center; }
body.subpage .nav-back { display: grid; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -.02em; margin-right: auto; }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links, .nav-search { display: none; }
.nav-icon { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); transition: background .15s, color .15s; }
.nav-icon:hover { background: var(--surface-2); color: var(--text); }
.badge {
  position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font: 600 10px/17px Inter, sans-serif; font-style: normal; text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}

/* language switcher */
.lang { position: relative; }
.lang-btn { width: auto; min-width: 40px; padding: 0 9px; border-radius: 999px; display: flex; gap: 6px; }
.lang-cur { display: none; font-size: 13px; font-weight: 500; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 168px; padding: 6px;
  background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg);
  animation: menu-in .16s ease-out;
}
.lang-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 9px; font-size: 14px; text-align: left; }
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button.on { font-weight: 600; }
.lang-menu .i { width: 16px; height: 16px; color: var(--accent); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }

/* ============ Tabbar (mobile) ============ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border);
}
body.has-tabbar .tabbar { display: flex; }
body.has-tabbar #view { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
.tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--muted); }
.tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--text); font-weight: 600; }
.tabbar a.on svg { stroke-width: 2.2; }
.tabbar .badge { top: 4px; right: calc(50% - 22px); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 22px;
  border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .15s, background .15s, opacity .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; pointer-events: none; }
.btn .i { width: 16px; height: 16px; }
.btn.primary { background: var(--btn); color: var(--btn-text); }
.btn.primary:hover { opacity: .88; }
.btn.secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.pay-color { background: var(--pay); color: #fff; }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.link:hover { color: var(--text); }
.link .i { width: 15px; height: 15px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ============ Typography bits ============ */
.eyebrow { font-size: 12px; font-weight: 600; color: var(--accent-text); letter-spacing: .02em; }
.price { font-weight: 650; font-size: 17px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price em { font-style: normal; font-size: .72em; font-weight: 500; color: var(--text-2); margin-left: 2px; }
.price.xl { font-size: 34px; letter-spacing: -.035em; }
del { color: var(--muted); font-size: 13px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 500; color: var(--text-2); }

/* ============ Media (product images) ============ */
.media {
  position: relative; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c0), var(--c1));
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }

/* ============ Hero ============ */
.hero { padding-top: 28px; display: grid; gap: 28px; }
.announce {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 13px; font-weight: 500; color: var(--text-2);
}
.announce i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero h1 { margin-top: 18px; font-size: clamp(34px, 9vw, 60px); line-height: 1.08; letter-spacing: -.045em; font-weight: 700; }
.grad { background: linear-gradient(90deg, var(--accent), #e14bb0 60%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { margin-top: 16px; font-size: 16px; color: var(--text-2); max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-stats { display: flex; gap: 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.hero-stats b { display: block; font-size: 24px; letter-spacing: -.03em; }
.hero-stats span { font-size: 13px; color: var(--text-2); }

.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bento {
  position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 150px; color: #fff; isolation: isolate;
  background: linear-gradient(135deg, var(--c0), var(--c1)); display: flex; align-items: flex-end;
}
.bento.big { grid-column: 1 / -1; min-height: 210px; }
.bento img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; z-index: -1; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.bento::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / .35)); }
.bento-text { padding: 18px; }
.bento h3 { font-size: 18px; letter-spacing: -.02em; }
.bento.big h3 { font-size: 24px; }
.bento p { font-size: 13px; opacity: .88; margin-top: 2px; }
.bento:not(.big) p { display: none; }
.bento-link { display: none; align-items: center; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.bento.big .bento-link { display: inline-flex; }
.bento-link .i { width: 14px; height: 14px; }
.bento:hover img { transform: scale(1.04); }

/* ============ Sections ============ */
.section { margin-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; letter-spacing: -.03em; }
.section-head p { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.page-head { padding-top: 28px; margin-bottom: 20px; }
.page-head h1 { font-size: 30px; letter-spacing: -.04em; }
.page-head p { color: var(--text-2); margin-top: 4px; }

.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-tile {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .2s, transform .2s;
}
.cat-tile span { font-weight: 600; font-size: 14px; line-height: 1.2; }
.cat-tile small { color: var(--muted); font-size: 12px; margin-top: -8px; }
.cat-tile:hover { box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow); transform: translateY(-2px); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 18px; padding: 2px var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: .15s;
}
.chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.chip.on { background: var(--btn); color: var(--btn-text); box-shadow: none; }
.sticky-chips { position: sticky; top: var(--nav-h); z-index: 10; background: var(--bg); padding-top: 4px; margin-bottom: 4px; }

/* hot list */
.hot-list { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.hot-list::-webkit-scrollbar { display: none; }
.hot { scroll-snap-align: start; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .2s; }
.hot:hover { box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow); }
.hot-rank { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.hot-media { width: 72px; height: 72px; border-radius: 14px; flex: none; }
.hot-media .app-icon { width: 40px; height: 40px; }
.hot-body { min-width: 0; }
.hot-body h3 { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-body p { font-size: 12px; color: var(--muted); margin: 1px 0 4px; }
.hot-body .price { font-size: 15px; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .25s, transform .25s;
}
.card-media { aspect-ratio: 1 / 1; margin: 6px 6px 0; border-radius: 12px; }
.card:hover { box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow); transform: translateY(-3px); }
.card:hover .media img { transform: scale(1.05); }
.pill-tag {
  position: absolute; top: 14px; left: 14px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: rgb(255 255 255 / .9); color: #09090b; backdrop-filter: blur(8px);
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 12px 12px 14px; }
.card-body h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brief { font-size: 13px; color: var(--text-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .brief { display: none; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.card-foot del { display: none; }
.card-foot .rating { display: none; }

/* trust */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: var(--r); overflow: hidden; background: var(--border); box-shadow: inset 0 0 0 1px var(--border); }
.trust > div { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); }
.trust .i { width: 22px; height: 22px; color: var(--accent); margin-bottom: 6px; }
.trust b { font-size: 15px; }
.trust span { font-size: 13px; color: var(--text-2); }

/* ============ Detail ============ */
.crumbs { display: none; }
.detail { display: grid; gap: 20px; padding-top: 12px; }
.detail-img { aspect-ratio: 1 / 1; border-radius: var(--r-lg); }
.detail-img .app-icon { width: 120px; height: 120px; }
.detail-top h1 { font-size: 28px; letter-spacing: -.04em; line-height: 1.15; margin-top: 6px; }
.lead { margin-top: 8px; font-size: 16px; color: var(--text-2); }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.meta b { color: var(--text); }
.price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.price-block .tax { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.save { margin-left: 4px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 600; }
.field-group { margin-top: 22px; }
.field-group h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.field-group.row { display: flex; align-items: center; justify-content: space-between; }
.field-group.row h4 { margin: 0; }
.plans { display: grid; gap: 8px; }
.plan {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; text-align: left;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .15s, background .15s;
}
.plan b { flex: 1; font-weight: 600; font-size: 15px; }
.plan-price { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 14px; }
.plan:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
.plan.on { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.plan.on .plan-price { color: var(--text); font-weight: 600; }
.radio { width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border-strong); transition: box-shadow .15s; }
.plan.on .radio { box-shadow: inset 0 0 0 6px var(--accent); }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); background: var(--surface); }
.stepper button { width: 38px; height: 38px; font-size: 18px; color: var(--text-2); border-radius: 50%; }
.stepper button:hover { color: var(--text); background: var(--surface-2); }
.stepper b { min-width: 30px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper.sm button { width: 30px; height: 30px; font-size: 16px; }
.stepper.sm b { min-width: 24px; font-size: 14px; }
.assure { display: grid; gap: 10px; margin-top: 22px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.assure li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.assure .i { color: var(--text); }
.detail-section { margin-top: 28px; }
.detail-section h4 { font-size: 18px; letter-spacing: -.02em; margin-bottom: 14px; }
.features { display: grid; gap: 12px; }
.features li { display: flex; gap: 12px; font-size: 15px; }
.features .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); stroke-width: 2.4; }

/* sticky CTA: 手机端固定底部，PC 端回到正常文档流 */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; gap: 10px;
  padding: 12px var(--gutter) calc(12px + var(--safe-b));
  background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border);
}
.sticky-cta .btn { flex: 1; }
.sticky-cta .total { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.sticky-cta .total span { font-size: 12px; color: var(--text-2); }
.sticky-cta .total .price { font-size: 22px; }
.cart-cta .btn, .pay-cta .btn { flex: 0 0 auto; min-width: 150px; }
body.has-cta #view { padding-bottom: calc(96px + var(--safe-b)); }
body.has-tabbar .sticky-cta { bottom: calc(var(--tab-h) + var(--safe-b)); padding-bottom: 12px; }
body.has-tabbar.has-cta #view { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 96px); }

/* ============ Cart / Checkout ============ */
.split { display: grid; gap: 16px; align-items: start; }
.list-card, .form-card, .summary-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--border); }
.list-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.cart-row { display: grid; grid-template-columns: auto 72px 1fr auto; align-items: center; gap: 12px; padding: 16px; }
.cart-row + .cart-row { border-top: 1px solid var(--border); }
.thumb { display: block; position: relative; }
.thumb .media { width: 72px; height: 72px; border-radius: 14px; }
.thumb .media .app-icon { width: 36px; height: 36px; }
.thumb.sm .media { width: 48px; height: 48px; border-radius: 10px; }
.thumb.sm .media .app-icon { width: 26px; height: 26px; }
.thumb i {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--text-2); color: var(--surface); font: 600 11px/20px Inter, sans-serif; font-style: normal; text-align: center;
}
.cart-info { min-width: 0; }
.cart-info h3 { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.line-total { align-self: start; font-size: 15px; }
.check { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border-strong); display: grid; place-items: center; transition: .15s; }
.check.on { background: var(--accent); box-shadow: none; }
.check.on::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

.summary-card { padding: 20px; }
.summary-card h3 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 14px; }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0; font-size: 14px; }
.summary dt { color: var(--text-2); }
.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.mini-lines { display: grid; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.mini-line { display: flex; align-items: center; gap: 12px; }
.mini-line > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-line b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-line > span { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.form-card { padding: 20px; }
.form-card + .form-card { margin-top: 16px; }
.form-card h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -.02em; }
.form-card > .muted { margin: 4px 0 0 34px; }
.step { width: 24px; height: 24px; border-radius: 50%; background: var(--btn); color: var(--btn-text); font-size: 12px; display: grid; place-items: center; }
.inputs { display: grid; gap: 12px; margin-top: 16px; }
.input { display: flex; flex-direction: column; gap: 6px; }
.input span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.input input {
  height: 48px; padding: 0 14px; border-radius: 12px; border: 0; outline: 0; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 15px; transition: box-shadow .15s;
}
.input input:focus { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft); }
.input input::placeholder { color: var(--muted); }
.pay-list { display: grid; gap: 10px; margin-top: 16px; }
.pay-opt {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; text-align: left;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .15s, background .15s;
}
.pay-opt > div { flex: 1; display: flex; flex-direction: column; }
.pay-opt b { font-size: 15px; font-weight: 600; }
.pay-opt:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
.pay-opt.on { box-shadow: inset 0 0 0 2px var(--pay); background: color-mix(in srgb, var(--pay) 6%, var(--surface)); }
.pay-opt.on .radio { box-shadow: inset 0 0 0 6px var(--pay); }
.pay-logo { width: 38px; height: 38px; flex: none; }
.secure { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.secure .i { width: 16px; height: 16px; }

/* ============ Modal ============ */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.modal-mask { position: absolute; inset: 0; background: rgb(0 0 0 / .45); backdrop-filter: blur(4px); opacity: 0; transition: opacity .22s; }
.modal-panel {
  position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: 28px 28px 0 0; padding: 24px 24px calc(24px + var(--safe-b));
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg);
}
.modal.show .modal-mask { opacity: 1; }
.modal.show .modal-panel { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; color: var(--text-2); background: var(--surface-2); }
.pay-modal { text-align: center; }
.pm-head { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; }
.pm-head .pay-logo { width: 26px; height: 26px; }
.pm-amount { font-size: 40px; font-weight: 700; letter-spacing: -.04em; margin: 12px 0 2px; font-variant-numeric: tabular-nums; }
.qr-box { position: relative; width: 200px; height: 200px; margin: 20px auto 0; padding: 14px; border-radius: 20px; background: #fff; color: #09090b; box-shadow: inset 0 0 0 1px #e4e4e7; }
.qr { width: 100%; height: 100%; display: block; }
.qr-logo { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%); padding: 3px; background: #fff; border-radius: 11px; }
.qr-logo .pay-logo { width: 36px; height: 36px; }
.pm-hint { margin-top: 14px; font-weight: 600; }
.demo-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pm-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 20px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Result / Me ============ */
.result { margin-top: 32px; padding: 36px 24px 28px; text-align: center; background: var(--surface); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--border); }
.ok-circle { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); animation: pop .45s cubic-bezier(.2, .9, .3, 1.3); }
.ok-circle .i { width: 30px; height: 30px; stroke-width: 2.6; }
.result h1 { font-size: 26px; letter-spacing: -.03em; }
.result-info { display: grid; gap: 12px; margin: 24px 0; padding: 16px; border-radius: 14px; background: var(--surface-2); text-align: left; font-size: 14px; }
.result-info div { display: flex; justify-content: space-between; gap: 16px; }
.result-info span { color: var(--text-2); flex: none; }
.result-info b { font-weight: 500; text-align: right; }
.result-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

.profile { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; margin-top: 28px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.avatar { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--accent), #e14bb0); }
.profile h1 { font-size: 22px; letter-spacing: -.03em; }
.profile p { font-size: 13px; color: var(--text-2); }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 16px; border-top: 1px solid var(--border); }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 20px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--text-2); }
.orders { display: grid; gap: 12px; }
.order-card { padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.oc-head, .oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status { font-size: 12px; font-weight: 600; color: var(--success); padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--success) 12%, transparent); }
.oc-items { display: grid; gap: 12px; padding: 14px 0; }
.oc-foot { padding-top: 12px; border-top: 1px solid var(--border); }
.oc-foot b { font-variant-numeric: tabular-nums; }

/* ============ Search / Empty / Toast ============ */
.search-big { display: flex; align-items: center; gap: 10px; height: 52px; margin-top: 16px; padding: 0 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); }
.search-big:focus-within { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft); }
.search-big svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-big input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.suggest { margin-top: 12px; margin-bottom: 0; }
.result-count { font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px 20px; }
.empty-ring { padding: 14px; border-radius: 50%; background: var(--surface-2); margin-bottom: 18px; opacity: .8; }
.empty h3 { font-size: 18px; letter-spacing: -.02em; }
.empty p { color: var(--text-2); margin: 4px 0 20px; font-size: 14px; }
.toast {
  position: fixed; left: 50%; bottom: calc(110px + var(--safe-b)); z-index: 70; transform: translate(-50%, 10px); opacity: 0;
  padding: 11px 18px; border-radius: 999px; background: var(--btn); color: var(--btn-text); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Footer ============ */
.site-footer { display: none; border-top: 1px solid var(--border); padding: 48px 0 28px; margin-top: 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 9px; margin-bottom: 10px; }
.footer-brand b { display: block; font-size: 16px; }
.footer-brand p, .footer-note { font-size: 13px; color: var(--text-2); }
.site-footer h4 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.site-footer a, .site-footer span { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.site-footer a:hover { color: var(--text); }
.footer-note { margin-top: 12px; color: var(--muted); }
.footer-copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

@media (max-width: 899px) {
  .cart-summary { background: none; box-shadow: none; padding: 0; }
}

/* ============ Tablet ============ */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card .brief { display: -webkit-box; }
  .card-foot del { display: inline; }
  .card-foot .rating { display: inline-flex; }
  .cat-tiles { grid-template-columns: repeat(6, 1fr); }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .hot-list { grid-auto-columns: 46%; }
  .bento:not(.big) p { display: block; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan { flex-direction: column; align-items: flex-start; gap: 4px; }
  .plan .radio { display: none; }
}

/* ============ Desktop ============ */
@media (min-width: 900px) {
  :root { --gutter: 32px; --nav-h: 64px; }
  body.subpage .nav-back { display: none; }
  body.has-tabbar .tabbar { display: none; }
  body.has-tabbar #view, body.has-cta #view, body.has-tabbar.has-cta #view { padding-bottom: 48px; }
  .site-footer { display: block; }

  .logo { margin-right: 32px; }
  .nav-links { display: flex; gap: 4px; margin-right: auto; }
  .nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: .15s; }
  .nav-links a:hover { color: var(--text); background: var(--surface-2); }
  .nav-links a.on { color: var(--text); }
  .nav-search {
    display: flex; align-items: center; gap: 8px; width: 240px; height: 38px; padding: 0 8px 0 12px; margin-right: 8px;
    border-radius: 999px; background: var(--surface-2); color: var(--muted); transition: box-shadow .15s, background .15s;
  }
  .nav-search:focus-within { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong), 0 0 0 4px var(--accent-soft); }
  .nav-search svg { width: 17px; height: 17px; }
  .nav-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--text); }
  .nav-search input::-webkit-search-cancel-button { display: none; }
  .lang-cur { display: inline; }
  .lang { margin-right: 4px; }
  .nav-search kbd { font: 500 11px Inter, sans-serif; padding: 2px 7px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); }

  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; padding-top: 64px; }
  .hero h1 { font-size: clamp(44px, 4.4vw, 56px); }
  .hero h1 .grad { white-space: nowrap; }
  .hero-copy > p { font-size: 18px; }
  .bento-grid { gap: 14px; }
  .bento { min-height: 190px; }
  .bento.big { min-height: 290px; }
  .bento-text { padding: 24px; }
  .bento.big h3 { font-size: 30px; }

  .section { margin-top: 80px; }
  .section-head h2 { font-size: 28px; }
  .page-head { padding-top: 48px; margin-bottom: 28px; }
  .page-head h1 { font-size: 40px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .card-body { padding: 14px 16px 18px; }
  .card-media { margin: 8px 8px 0; }
  .card-body h3 { font-size: 16px; }
  .hot-list { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
  .hot { flex-direction: column; align-items: flex-start; padding: 16px; }
  .hot-media { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 12px; }
  .chips { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
  .trust > div { padding: 24px; }

  .crumbs { display: flex; gap: 8px; padding-top: 28px; font-size: 13px; color: var(--muted); }
  .crumbs a:hover { color: var(--text); }
  .crumbs b { font-weight: 500; color: var(--text-2); }
  .detail { grid-template-columns: 1.1fr 1fr; gap: 56px; padding-top: 20px; align-items: start; }
  .detail-media { position: sticky; top: calc(var(--nav-h) + 24px); }
  .detail-img .app-icon { width: 160px; height: 160px; }
  .detail-top h1 { font-size: 40px; }
  .price.xl { font-size: 40px; }

  .sticky-cta { position: static; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
  .detail-cta { margin-top: 24px; }
  .detail-cta .btn { height: 52px; font-size: 16px; }
  .cart-cta, .pay-cta { flex-direction: column; align-items: stretch; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
  .cart-cta .total, .pay-cta .total { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .cart-cta .total span, .pay-cta .total span { font-size: 15px; font-weight: 500; color: var(--text); }
  .cart-cta .btn, .pay-cta .btn { height: 52px; margin-top: 12px; }
  .split { grid-template-columns: 1fr 380px; gap: 24px; }
  .split-side { position: sticky; top: calc(var(--nav-h) + 24px); }
  .summary-card { padding: 24px; }
  .form-card { padding: 28px; }
  .inputs { grid-template-columns: 1fr 1fr; }

  .modal { align-items: center; }
  .modal-panel { border-radius: 28px; padding: 32px; transform: translateY(16px) scale(.97); opacity: 0; transition: transform .22s, opacity .22s; }
  .modal.show .modal-panel { transform: none; opacity: 1; }
  .qr-box { width: 220px; height: 220px; }
  .toast { bottom: 40px; }

  .profile { grid-template-columns: auto 1fr auto; padding: 28px; }
  .stats { grid-column: auto; gap: 40px; padding: 0; border: 0; }
  .orders { grid-template-columns: repeat(2, 1fr); }
}
