/* ════════ Tokens (Pockyt 风, blue 主色) ════════ */
:root {
  --emerald-50: #eff6ff;
  --emerald-100: #dbeafe;
  --emerald-200: #bfdbfe;
  --emerald-500: #0071e3;
  --emerald-600: #0067d2;
  --emerald-700: #004a9f;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #0071e3;
  --blue-600: #0067d2;
  --blue-700: #004a9f;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-700: #b45309;
  --red-50: #fef2f2;
  --red-200: #fecaca;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --text-primary: #1d1d1f;
  --text-secondary: #424245;
  --text-muted: #6e6e73;
  --bg-page: #f5f5f7;
  --bg-card: #ffffff;
  --bg-soft: #f2f2f4;
  --border: rgba(0, 0, 0, .08);
  --border-strong: rgba(0, 0, 0, .14);
  --shadow-card: 0 10px 24px -20px rgba(0, 0, 0, .28);
  --shadow-card-hover: 0 22px 44px -28px rgba(0, 0, 0, .32);
  --shadow-btn: 0 12px 24px -16px rgba(0, 113, 227, .7);
}

/* ════════ Reset / Base ════════ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: 80px;       /* 给底部 tab 留位 */
}
button { font-family: inherit; }
a { color: var(--emerald-600); text-decoration: none; }
a:hover { text-decoration: underline; }
input, textarea, select { font-family: inherit; font-size: 14px; }

/* ════════ Top Bar 白色版 (首页用) ════════ */
.topbar-clean {
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding-left: max(20px, calc((100vw - 1120px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1120px) / 2 + 20px));
}
.topbar-clean .logo {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  background: #fff;
  padding: 7px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  text-decoration: none;
}
.topbar-clean .right { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-muted); }
.topbar-clean .right a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
}
.topbar-clean .right a:hover { background: var(--bg-soft); color: var(--text-primary); }
.app-header {
  position: fixed;
  left: 0;
  right: 0;
}
.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
}
.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--bg-soft);
  color: var(--text-primary);
}
.app-page-main,
.container.app-page-main,
.hero-banner.app-page-main,
.container.product-detail-main {
  padding-top: 76px;
}
@media (min-width: 1024px) {
  .app-header { min-height: 64px; }
  .site-nav { display: flex; }
  .app-page-main,
  .container.app-page-main,
  .hero-banner.app-page-main,
  .container.product-detail-main { padding-top: 92px; }
}

/* ════════ Top Bar 白色 (所有页面) ════════ */
.topbar {
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px;
  padding-left: max(16px, calc((100vw - 1120px) / 2 + 16px));
  padding-right: max(16px, calc((100vw - 1120px) / 2 + 16px));
}
.topbar .back {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--text-secondary); font-size: 15px; font-weight: 600;
  text-decoration: none;
  min-width: 48px;
}
.topbar .back::before { content: '‹'; font-size: 26px; line-height: 1; margin-right: 2px; color: var(--text-muted); }
.topbar h1, .topbar .title { font-size: 16px; font-weight: 700; margin: 0; color: var(--text-primary); letter-spacing: 0; }
.topbar .icons { display: flex; gap: 10px; color: var(--text-muted); font-size: 18px; }
.topbar .spacer { width: 32px; }

/* ════════ Hero Banner (账户/订单页) — 白底, 头像点击触发菜单 ════════ */
.hero-banner {
  background: #fff;
  color: var(--text-primary);
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
}
.hero-banner .avatar-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 0; border: 0; background: transparent;
  text-align: left; cursor: pointer; color: inherit;
}
.hero-banner .avatar-row:hover { opacity: .85; }
.hero-banner .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--emerald-50); color: var(--emerald-700);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  border: 1px solid var(--emerald-200);
}
.hero-banner .avatar svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero-banner .email { font-size: 15px; font-weight: 600; word-break: break-all; flex: 1; }
.hero-banner .chev { color: var(--text-muted); font-size: 18px; }

/* ════════ 容器 / 卡片 ════════ */
.container { max-width: 720px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }
.container.wide { max-width: 1120px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}
.card-link { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.card-link:hover { background: var(--bg-soft); }
.card-link .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.card-link .label { flex: 1; font-size: 16px; font-weight: 500; }
.card-link .arrow { color: var(--text-muted); font-size: 18px; }

/* ════════ 商品瓦片 (Pockyt 风) ════════ */
.page-title { font-size: 32px; font-weight: 800; color: var(--text-primary); margin: 34px 0 6px; letter-spacing: 0; }
.page-subtitle { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-size: 13px; color: var(--emerald-600); font-weight: 600; white-space: nowrap; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  padding-bottom: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }

.product-image {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: rgba(255,255,255,.92);
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, #8cc8ff 0%, #0071e3 56%, #004a9f 100%);
  margin-bottom: 12px;
  box-shadow: inset 0 -40px 80px rgba(0,0,0,.14);
}
.product-image .image-tag {
  position: absolute; right: 12px; top: 12px;
  background: rgba(255,255,255,.86); color: var(--text-primary);
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.55);
}

.product-card .category {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0;
  margin-bottom: 6px;
}
.product-card h3 {
  margin: 0 0 10px;
  font-size: 16px; font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.product-tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.4;
}
.product-tag.t-emerald { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-200); }
.product-tag.t-blue    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.product-tag.t-amber   { background: var(--amber-50); color: var(--amber-700); border: 1px solid var(--amber-200); }

.product-card .desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
  margin: 0 0 14px;
}
.product-divider { height: 1px; background: var(--border); margin: 4px 0 12px; }

.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-foot .price-block .price-label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.product-foot .price-block .price-value { font-size: 19px; font-weight: 800; color: var(--text-primary); letter-spacing: 0; }
.product-foot .price-block .price-value .ccy { font-size: 12px; color: var(--text-muted); margin-left: 4px; font-weight: 600; }

.product-foot .actions { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--text-secondary);
  transition: all .15s;
}
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--emerald-50); border-color: var(--emerald-200); color: var(--emerald-700); }
.icon-btn:disabled { opacity: .5; cursor: not-allowed; }

.qty-input {
  width: 48px; padding: 6px 0; border: 1px solid var(--border-strong); border-radius: 8px;
  text-align: center; font-size: 13px; height: 36px;
}

/* ════════ 按钮 ════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 24px; border: 0; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.btn-primary { background: var(--emerald-500); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--emerald-600); }
.btn-primary:disabled { background: #c7c7cc; box-shadow: none; cursor: not-allowed; color: #fff; }
.btn-secondary { background: var(--bg-soft); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { background: #ececf0; }
.btn-danger { background: var(--red-500); color: #fff; }
.btn-danger:hover { background: var(--red-600); }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

/* ════════ 表单 ════════ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0;
  color: var(--text-muted); font-weight: 600;
}
.form-input {
  display: block; width: 100%;
  height: 44px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: #fff; font-size: 15px; color: var(--text-primary);
  transition: all .15s;
}
.form-input:focus {
  outline: none; border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .16);
}
textarea.form-input { height: auto; min-height: 120px; padding: 12px 14px; font-family: ui-monospace, monospace; font-size: 13px; }

/* ════════ 徽章 ════════ */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600; line-height: 1.4;
}
.badge-emerald { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-200); }
.badge-amber   { background: var(--amber-50);   color: var(--amber-700);   border: 1px solid var(--amber-200); }
.badge-red     { background: var(--red-50);     color: var(--red-700);     border: 1px solid var(--red-200); }
.badge-gray    { background: var(--bg-soft);    color: var(--text-muted);  border: 1px solid var(--border); }

/* ════════ Tab 切换栏 (订单页) ════════ */
.tabs {
  display: flex; gap: 0; background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 8px;
}
.tabs .tab {
  flex: 1; padding: 12px 4px; text-align: center;
  font-size: 14px; color: var(--text-muted); font-weight: 500;
  cursor: pointer; position: relative;
}
.tabs .tab.active { color: var(--emerald-600); font-weight: 700; }
.tabs .tab.active::after {
  content: ''; position: absolute; left: 25%; right: 25%; bottom: 0; height: 2px;
  background: var(--emerald-500); border-radius: 1px;
}

/* ════════ 订单卡 ════════ */
.order-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px;
  margin-bottom: 10px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 10px;
}
.order-card .body { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.order-card .info { flex: 1; min-width: 0; }
.order-card .name { font-size: 15px; font-weight: 600; margin: 6px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card .time { font-size: 12px; color: var(--text-muted); }
.order-card .right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.order-card .price { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.order-card .arrow { color: var(--text-muted); font-size: 16px; }
.order-card .actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 8px; border-top: 1px dashed var(--border); }
.order-card .actions .btn-link { background: transparent; border: 0; padding: 4px 8px; cursor: pointer; font-size: 13px; color: var(--text-muted); }
.order-card .actions .btn-link.danger { color: var(--red-600); }
.order-card .actions .btn-link:hover { background: var(--bg-soft); border-radius: 6px; }

/* ════════ 搜索框 ════════ */
.search-box {
  background: var(--bg-card); border-radius: 14px; padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  margin: 16px 0;
  box-shadow: var(--shadow-card);
}
.search-box input { border: 0; outline: none; flex: 1; background: transparent; font-size: 14px; }
.search-box .icon { color: var(--emerald-600); }
.search-box .icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ════════ 底部 Tab Bar (移动 + 平板竖屏) ════════ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,.92); border-top: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  display: flex; justify-content: space-around;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-muted); font-size: 11px; padding: 6px 0; text-decoration: none;
  min-width: 0;
}
.tabbar a.active { color: var(--emerald-600); }
.tabbar a .ic { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.tabbar a .ic svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ════════ 桌面 Footer (>= 1024px) ════════ */
.footer { display: none; }

@media (min-width: 1024px) {
  body { padding-bottom: 0 !important; }
  .tabbar { display: none !important; }
  .footer { display: block; background: #fff; border-top: 1px solid var(--border); padding: 56px 24px 24px; margin-top: 64px; }
  .footer .container { max-width: 1100px; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; }
  .footer .brand-row { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
  .footer .brand-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--emerald-500); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
  .footer .brand-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .footer .desc { color: var(--text-muted); font-size: 13px; line-height: 1.7; max-width: 480px; }
  .footer h4 { font-size: 14px; font-weight: 700; margin: 0 0 16px; color: var(--text-primary); }
  .footer ul { list-style: none; padding: 0; margin: 0; }
  .footer ul li { margin: 10px 0; }
  .footer ul a { color: var(--text-secondary); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
  .footer ul a .ic { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); }
  .footer ul a .ic svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .footer ul a:hover { color: var(--emerald-700); }
  .footer-bottom { max-width: 1100px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); }
  .footer-bottom a { color: var(--text-muted); margin: 0 6px; text-decoration: none; }
  .footer-bottom a:hover { color: var(--text-secondary); }
}

/* ════════ 商品详情页 ════════ */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin: 16px 0 20px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

.detail-shell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .14);
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}
@media (min-width: 880px) {
  .detail-shell { grid-template-columns: 1fr 1fr; }
  .detail-stage { border-right: 1px solid var(--border); }
}
.detail-stage {
  background: var(--bg-soft);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-stage .image {
  width: 100%; aspect-ratio: 4/3; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 96px; color: rgba(255,255,255,.95); font-weight: 900;
  letter-spacing: 0; position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,.18);
}
.detail-stage .image .image-tag {
  position: absolute; right: 14px; top: 14px;
  background: rgba(255,255,255,.86); color: var(--text-primary);
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.55);
}

.detail-info { padding: 24px 24px 28px; display: flex; flex-direction: column; }
@media (min-width: 880px) { .detail-info { padding: 40px; } }

.eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0;
  color: var(--text-muted); font-weight: 600; margin-bottom: 12px;
}
.detail-title {
  font-size: 26px; font-weight: 800; line-height: 1.2;
  letter-spacing: 0; margin: 0 0 16px;
}
@media (min-width: 880px) { .detail-title { font-size: 36px; } }

.price-mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 40px; font-weight: 800;
  letter-spacing: 0;
  color: var(--text-primary);
  margin: 8px 0 18px;
  line-height: 1;
}
.price-mono .ccy { font-size: 14px; color: var(--text-muted); margin-left: 8px; font-weight: 600; letter-spacing: 0; }

.section-stick {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 16px;
  font-size: 16px; font-weight: 700;
}
.section-stick::before {
  content: ''; width: 4px; height: 20px;
  background: var(--emerald-500); border-radius: 2px;
}

.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden;
  width: fit-content;        /* 防止在 flex 列容器里被拉满 */
  align-self: flex-start;
}
.qty-stepper button {
  width: 40px; height: 40px;
  background: #fff; border: 0; cursor: pointer;
  font-size: 18px; color: var(--text-secondary);
}
.qty-stepper button:hover { background: var(--bg-soft); }
.qty-stepper button:disabled { color: var(--text-muted); cursor: not-allowed; }
.qty-stepper input {
  width: 56px; height: 40px; border: 0; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); text-align: center;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
  outline: none;
}

.detail-info .purchase-section-title {
  margin: 24px 0 16px;
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
}
.detail-info .payment-section-title { margin-top: 28px; }
.detail-info .qty-stepper {
  border-radius: 10px;
  border-color: #d1d5db;
}
.payment-options {
  display: grid;
  gap: 10px;
}
.payment-option {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  font-weight: 600;
}
.payment-option.selected {
  border-color: #4b5563;
}
.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #8c8c8c;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.payment-option.selected .payment-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8c8c8c;
}

/* 桌面行内 + 移动浮动栏 */
.detail-actions { display: none; margin-top: 32px; }
@media (min-width: 880px) { .detail-actions { display: block; } }
.detail-actions .btn-primary {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: #111827;
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
}
.detail-actions .btn-primary:hover { background: #0f172a; }
.detail-actions .btn-primary:disabled { background: #c7c7cc; }

.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
}
@media (min-width: 880px) { .bottom-bar { display: none; } }
.bottom-bar .price-block { flex-shrink: 0; }
.bottom-bar .price-block .price-mono { font-size: 22px; margin: 0; }
.bottom-bar .actions { flex: 1; display: flex; gap: 8px; }

.detail-prose {
  white-space: pre-wrap; word-break: break-word;
  color: var(--text-secondary); font-size: 15px; line-height: 1.85;
}

@media (max-width: 639px) {
  body { padding-bottom: 76px; }
  .topbar-clean, .topbar { min-height: 52px; }
  .topbar-clean .right a { padding: 0 8px; }
  .container { padding: 0 14px; }
  .page-title { font-size: 26px; margin-top: 26px; }
  .section-head { display: block; }
  .section-head a { display: inline-flex; margin: -8px 0 18px; }
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card { border-radius: 16px; padding: 14px; }
  .product-image { aspect-ratio: 16 / 10; font-size: 48px; }
  .detail-shell { border-radius: 18px; }
  .detail-stage { padding: 14px; }
  .detail-info { padding: 20px; }
  .price-mono { font-size: 34px; }
  .hero-banner { padding: 18px 16px; }
}

/* ════════ 工具类 ════════ */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.empty { padding: 60px 20px; text-align: center; color: var(--text-muted); font-size: 14px; }
.error-box { background: var(--red-50); color: var(--red-700); border: 1px solid var(--red-200); border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 8px 0; }
.success-box { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-200); border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 8px 0; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .grow { flex: 1; }
.mono { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; }

/* ════════ Toast ════════ */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: rgba(0, 0, 0, .85); color: #fff;
  padding: 10px 20px; border-radius: 12px; font-size: 14px;
  opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 999;
}
.toast.show { opacity: 1; }

/* ════════ Modal ════════ */
.modal-bg {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .5);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-bg.show { display: flex; }
.modal {
  background: #fff; border-radius: 16px; padding: 24px;
  max-width: 360px; width: 100%;
}
.modal h3 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.modal p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
