/* ===========================================================
   云号仓 · 移动优先响应式样式（无外部 CDN 依赖，离线可用）
   =========================================================== */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f9fbff;
  --line: #e7ecf5;
  --line-strong: #d8e0ee;
  --text: #1b2437;
  --text-2: #5f6b80;
  --text-3: #98a3b5;
  --primary: #4356e8;
  --primary-dark: #3344cf;
  --primary-soft: #eef0ff;
  --accent: #ff6b35;
  --accent-soft: #fff1ea;
  --success: #10a36a;
  --success-soft: #e8f8f1;
  --warn: #df9512;
  --warn-soft: #fff6e5;
  --danger: #e14b4b;
  --danger-soft: #fdeeee;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(31, 49, 94, .07);
  --shadow-lg: 0 18px 48px rgba(31, 49, 94, .13);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  padding-bottom: 76px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.main-content { min-height: calc(100vh - 260px); padding-top: 20px; padding-bottom: 40px; }

/* --------------------------------------------------------- Header */
.app-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #4c60f0, #7b5cf5);
  color: #fff; font-size: 19px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(67, 86, 232, .32);
}
.brand-text { font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: .2px; }
.brand-text small { display: block; font-size: 11px; font-weight: 400; color: var(--text-3); margin-top: 2px; }
.top-nav { display: none; align-items: center; gap: 4px; margin-left: 18px; }
.top-nav a {
  padding: 8px 14px; border-radius: 10px; font-size: 14px; color: var(--text-2);
  transition: .18s ease; white-space: nowrap;
}
.top-nav a:hover { background: var(--surface-2); color: var(--primary); }
.top-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.header-user { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: none; padding: 7px 12px; border-radius: 20px; background: var(--surface-2);
  font-size: 13px; color: var(--text-2); border: 1px solid var(--line);
}

/* --------------------------------------------------------- 商品搜索 */
.header-search-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  flex-shrink: 0; min-height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); color: var(--text-2); font-size: 13px;
}
.header-search-toggle svg { width: 17px; height: 17px; }
.header-search-toggle span { display: none; }
.header-search-toggle:hover,
.header-search-toggle[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); }
.header-search-panel {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 10px 0 12px;
}
.header-search-panel[hidden] { display: none; }
.header-search-panel .search-bar {
  max-width: 1120px; margin: 0 auto; padding: 0 16px;
}
.search-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.search-bar .btn { flex-shrink: 0; }
.search-field { position: relative; flex: 1 1 200px; min-width: 0; display: block; }
.search-field .search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--text-3); pointer-events: none;
}
.search-input {
  width: 100%; min-height: 44px; padding: 0 12px 0 39px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); font-size: 14px; outline: none;
  -webkit-appearance: none; appearance: none;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67, 86, 232, .12); }
.search-input::placeholder { color: var(--text-3); }
.search-input::-webkit-search-cancel-button { cursor: pointer; }

/* --------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border: 1px solid transparent;
  border-radius: 12px; font-size: 15px; font-weight: 600;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap; background: none;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, #4b5ff0, #3f4bd8);
  color: #fff; box-shadow: 0 8px 20px rgba(67, 86, 232, .24);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(67, 86, 232, .34); }
.btn-accent {
  background: linear-gradient(135deg, #ff8a4c, #ff6326);
  color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 53, .26);
}
.btn-ghost { background: var(--surface-2); color: var(--text-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--primary); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 52px; font-size: 16px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; min-width: 130px; }

/* --------------------------------------------------------- Common blocks */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 20px; }
.section { margin: 28px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.section-title::before {
  content: ''; display: inline-block; width: 4px; height: 16px; border-radius: 3px;
  background: var(--primary); margin-right: 9px; vertical-align: -2px;
}
.section-sub { font-size: 13px; color: var(--text-3); }
.muted { color: var(--text-2); }
.tiny { font-size: 12px; }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; letter-spacing: .4px; }
.nowrap { white-space: nowrap; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; line-height: 1.7;
  background: var(--primary-soft); color: var(--primary);
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-gray { background: #f0f3f8; color: var(--text-2); }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px; color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px;
}
.price { color: var(--accent); font-weight: 800; font-size: 22px; letter-spacing: -.5px; }
.price small { font-size: 13px; font-weight: 700; margin-right: 1px; }
.price .price-suffix { font-size: 12px; font-weight: 500; color: var(--text-3); }
.price-origin { font-size: 12px; color: var(--text-3); text-decoration: line-through; }

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 15px; border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.65; margin: 14px 0;
  background: var(--primary-soft); color: #3a4ba8; border: 1px solid #dfe3ff;
}
.alert-warn { background: var(--warn-soft); color: #8a6110; border-color: #f6e4bd; }
.alert-success { background: var(--success-soft); color: #0c7a51; border-color: #cdeedd; }
.alert-danger { background: var(--danger-soft); color: #a83232; border-color: #f7d5d5; }
.alert strong { font-weight: 700; }

.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .empty-icon {
  width: 68px; height: 68px; border-radius: 22px; margin: 0 auto 16px;
  display: grid; place-items: center; font-size: 28px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary);
}
.empty-state h3 { font-size: 17px; margin-bottom: 6px; }
.empty-state p { color: var(--text-3); font-size: 13px; margin-bottom: 20px; }

/* --------------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 26px 22px;
  background: linear-gradient(135deg, #3d50e0 0%, #5c53e8 48%, #8a5cf0 100%);
  color: #fff; box-shadow: 0 16px 40px rgba(61, 80, 224, .24);
}
.hero-content { position: relative; z-index: 2; max-width: 560px; }
.hero-kicker {
  display: inline-block; font-size: 11px; letter-spacing: 1.4px;
  background: rgba(255, 255, 255, .18); padding: 4px 12px;
  border-radius: 20px; margin-bottom: 14px;
}
.hero-title { font-size: 25px; line-height: 1.35; font-weight: 800; letter-spacing: -.5px; }
.hero-desc { font-size: 13px; opacity: .88; margin-top: 10px; line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); color: #fff; }
.hero .btn-accent { background: #fff; color: #3c4fd8; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.hero-stats { display: flex; gap: 24px; margin-top: 22px; }
.hero-stats div strong { display: block; font-size: 19px; font-weight: 800; }
.hero-stats div span { font-size: 11px; opacity: .78; }
.hero-visual { position: absolute; right: -60px; top: -70px; width: 260px; height: 260px; }
.hero-orb {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.30), rgba(255,255,255,.03) 62%);
  border: 1px solid rgba(255,255,255,.22);
}
.hero-orb.two { inset: 46px; opacity: .6; }
.hero-orb.three { inset: 94px; opacity: .5; }
.demo-strip {
  margin-top: 14px; padding: 10px 14px; border-radius: 12px;
  background: var(--warn-soft); border: 1px solid #f6e4bd;
  color: #8a6110; font-size: 12px; line-height: 1.6;
}

/* --------------------------------------------------------- Filters & product grid */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0; padding: 7px 15px; border-radius: 20px; font-size: 13px;
  background: #fff; border: 1px solid var(--line); color: var(--text-2); transition: .16s;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

.product-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-cover {
  position: relative; height: 132px; display: block; overflow: hidden; color: #fff;
}
.theme-indigo { background: linear-gradient(135deg, #4a5ff0, #7a5cf3); }
.theme-violet { background: linear-gradient(135deg, #7c4de0, #b05cf0); }
.theme-teal { background: linear-gradient(135deg, #12a58f, #35c6b0); }
.theme-amber { background: linear-gradient(135deg, #e99421, #f5bb4c); }
.theme-rose { background: linear-gradient(135deg, #e0527c, #f08aa5); }
.theme-blue { background: linear-gradient(135deg, #2f7ee8, #58b0f5); }
.cover-shape {
  position: absolute; right: -46px; bottom: -90px; width: 210px; height: 210px;
  border-radius: 50%; border: 28px solid rgba(255,255,255,.13);
}
.cover-shape.two { right: 42px; bottom: -130px; width: 150px; height: 150px; border-width: 1px; opacity: .5; }
.cover-letter {
  position: absolute; left: 20px; bottom: 14px;
  font-size: 40px; font-weight: 800; letter-spacing: -2px;
  text-shadow: 0 6px 18px rgba(0,0,0,.16);
}
.cover-cat {
  position: absolute; right: 16px; top: 14px; font-size: 11px;
  background: rgba(255,255,255,.22); padding: 3px 10px; border-radius: 20px;
  backdrop-filter: blur(4px);
}
.cover-badge {
  position: absolute; left: 14px; top: 12px; font-size: 11px; font-weight: 700;
  background: #ff7a45; color: #fff; padding: 3px 10px; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
/* 后台上传/导入了封面图时，用真实图片替代渐变封面，其余角标保持可读 */
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-cover.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.42));
}
.product-cover.has-photo .cover-shape { z-index: 1; opacity: .35; }
.product-cover.has-photo .cover-cat,
.product-cover.has-photo .cover-badge,
.product-cover.has-photo .cover-letter { z-index: 2; }
.product-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-title { font-size: 16px; font-weight: 700; line-height: 1.4; }
.product-desc {
  font-size: 12px; color: var(--text-2); line-height: 1.6; margin-top: 6px;
  min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-body .tag-row { margin-top: 10px; }
.product-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px; margin-top: auto; padding-top: 14px;
}

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.feature-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; display: flex; gap: 12px; align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-size: 17px; font-weight: 700;
}
.feature-item h4 { font-size: 14px; font-weight: 700; }
.feature-item p { font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.6; }

/* --------------------------------------------------------- Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-control {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  font-size: 16px; transition: border .16s, box-shadow .16s; outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67, 86, 232, .12); }
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { min-height: 92px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; }
.form-errors {
  background: var(--danger-soft); border: 1px solid #f7d5d5; color: #a83232;
  border-radius: 10px; padding: 10px 13px; font-size: 13px; margin-bottom: 16px;
}
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-2); }
.checkbox-row input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--primary); }

.auth-layout { display: flex; justify-content: center; padding: 8px 0 20px; }
.auth-card { width: 100%; max-width: 430px; padding: 26px 22px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head h1 { font-size: 22px; font-weight: 800; }
.auth-head p { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 18px; }
.auth-foot a { color: var(--primary); font-weight: 600; }
.steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 22px; }
.step { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.step b {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #eef1f7; color: var(--text-3); font-size: 12px;
}
.step.active { color: var(--primary); font-weight: 600; }
.step.active b { background: var(--primary); color: #fff; }
.step-line { width: 26px; height: 1px; background: var(--line-strong); }
.code-input {
  font-size: 26px !important; letter-spacing: 10px; text-align: center;
  font-family: "SFMono-Regular", Consolas, monospace; font-weight: 700;
}
.dev-code-box {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--success-soft); border: 1px dashed #a9dfc6; text-align: center;
}
.dev-code-box span { font-size: 11px; color: #0c7a51; display: block; }
.dev-code-box strong {
  display: block; font-size: 26px; letter-spacing: 6px; color: #0b7b50;
  font-family: "SFMono-Regular", Consolas, monospace; margin-top: 2px;
}
.resend-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--text-3); }
.link-btn { background: none; border: 0; color: var(--primary); font-size: 13px; font-weight: 600; padding: 4px; }
.link-btn:disabled { color: var(--text-3); font-weight: 400; }

/* --------------------------------------------------------- Product detail */
.detail-layout { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.detail-cover { height: 190px; border-radius: var(--radius); }
.detail-cover .cover-letter { font-size: 58px; left: 26px; bottom: 20px; }
.detail-block { padding: 20px; }
.detail-block h1 { font-size: 21px; font-weight: 800; line-height: 1.4; }
.detail-block .lead { color: var(--text-2); font-size: 14px; margin-top: 8px; }
.detail-desc { font-size: 13px; color: var(--text-2); line-height: 1.85; margin-top: 14px; white-space: pre-line; }
.plan-list { display: grid; gap: 10px; }
.plan-option {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; transition: .16s; background: #fff;
}
.plan-option:hover { border-color: #b9c2ee; }
.plan-option.selected { border-color: var(--primary); background: var(--primary-soft); }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-radio {
  flex-shrink: 0; width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid var(--line-strong); display: grid; place-items: center;
}
.plan-option.selected .plan-radio { border-color: var(--primary); }
.plan-option.selected .plan-radio::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.plan-main { flex: 1; min-width: 0; }
.plan-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.plan-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.plan-right { text-align: right; }
.plan-price { color: var(--accent); font-weight: 800; font-size: 17px; }
.plan-recommend { font-size: 10px; background: #ff7a45; color: #fff; padding: 1px 6px; border-radius: 4px; }
.total-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-strong);
}
.total-bar .total-label { font-size: 13px; color: var(--text-2); }

/* --------------------------------------------------------- Orders & account cards */
.order-card, .account-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.card-head h3 { font-size: 15px; font-weight: 700; }
.card-body { padding: 16px; }
.card-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; }
.card-foot .btn { flex: 1; min-width: 120px; }

.kv-list { display: grid; gap: 0; }
.kv-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--text-3); flex-shrink: 0; }
.kv-row .v { text-align: right; word-break: break-all; font-weight: 500; }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-box {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--shadow);
}
.stat-box strong { display: block; font-size: 22px; font-weight: 800; color: var(--primary); }
.stat-box span { font-size: 12px; color: var(--text-3); }

.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, #f2f4ff, #f8f9ff);
  border: 1px dashed #c3cbf5;
}
.code-box .code-label { font-size: 11px; color: var(--text-3); }
.code-box .code-value {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 17px; font-weight: 700; letter-spacing: 1px; color: #2f3fa8; word-break: break-all;
}
.copy-btn {
  flex-shrink: 0; background: #fff; border: 1px solid #c3cbf5; color: var(--primary);
  border-radius: 9px; padding: 7px 12px; font-size: 12px; font-weight: 600;
}
.copy-btn:hover { background: var(--primary-soft); }

.account-info-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.info-pill {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px;
}
.info-pill span { display: block; font-size: 11px; color: var(--text-3); }
.info-pill strong { font-size: 14px; font-weight: 600; word-break: break-all; }
.renew-box { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.renew-box summary {
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--primary);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.renew-box summary::-webkit-details-marker { display: none; }
.renew-box summary::after { content: '+'; font-size: 20px; font-weight: 400; }
.renew-box[open] summary::after { content: '−'; }
.renew-box .renew-inner { margin-top: 14px; }
.renew-total { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin: 12px 0; }

.result-hero { text-align: center; padding: 26px 18px; }
.result-icon {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 12px;
  display: grid; place-items: center; font-size: 30px; color: #fff;
  background: linear-gradient(135deg, #28c187, #10a36a);
  box-shadow: 0 10px 26px rgba(16, 163, 106, .28);
}
.result-icon.pending { background: linear-gradient(135deg, #f3b03f, #e0900f); box-shadow: 0 10px 26px rgba(224,144,15,.24); }
.result-icon.failed { background: linear-gradient(135deg, #ef7676, #dc4545); box-shadow: 0 10px 26px rgba(220,69,69,.24); }
.result-hero h2 { font-size: 20px; font-weight: 800; }
.result-hero p { font-size: 13px; color: var(--text-3); margin-top: 6px; }

/* --------------------------------------------------------- Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.pay-option {
  position: relative; display: flex; align-items: center; gap: 13px;
  padding: 15px; border: 1.5px solid var(--line); border-radius: 14px;
  cursor: pointer; transition: .16s; margin-bottom: 10px; background: #fff;
}
.pay-option:hover { border-color: #b9c2ee; }
.pay-option.selected { border-color: var(--primary); background: var(--primary-soft); }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-size: 19px; font-weight: 800;
}
.pay-alipay { background: linear-gradient(135deg, #2b9bef, #1677d2); }
.pay-wechat { background: linear-gradient(135deg, #3dcb6a, #12a94c); }
.pay-name { font-size: 15px; font-weight: 700; }
.pay-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pay-check {
  margin-left: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0;
}
.pay-option.selected .pay-check { border-color: var(--primary); }
.pay-option.selected .pay-check::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.pay-disabled { opacity: .55; }
.pay-reason { font-size: 11px; color: var(--danger); margin-top: 4px; }

.cashier { max-width: 430px; margin: 0 auto; text-align: center; padding: 26px 20px; }
.cashier .pay-icon { margin: 0 auto 12px; width: 54px; height: 54px; border-radius: 16px; font-size: 24px; }
.cashier-amount { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin: 14px 0 4px; }
.cashier-amount small { font-size: 20px; }
.fake-qr {
  width: 172px; height: 172px; margin: 20px auto;
  border-radius: 14px; border: 8px solid #fff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #1b2437 25%, transparent 25%, transparent 75%, #1b2437 75%),
    linear-gradient(45deg, #1b2437 25%, transparent 25%, transparent 75%, #1b2437 75%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
  opacity: .82;
}
.qr-wrap { text-align: center; padding: 24px; }
.qr-image { width: 210px; height: 210px; margin: 0 auto 14px; border: 8px solid #fff; box-shadow: var(--shadow); border-radius: 12px; }
.qr-link { font-size: 11px; color: var(--text-3); word-break: break-all; background: var(--surface-2); padding: 10px; border-radius: 8px; }

/* --------------------------------------------------------- Guide */
.guide-step { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.guide-step:last-child { border-bottom: 0; }
.guide-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.guide-step h4 { font-size: 15px; font-weight: 700; }
.guide-step p { font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.75; }

/* --------------------------------------------------------- Footer / bottom nav / toast */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 24px; padding: 24px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.site-footer strong { font-size: 15px; }
.site-footer p { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.footer-links { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); }
.footer-links a:hover { color: var(--primary); }
.copyright { font-size: 11px !important; }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 20px rgba(31,49,94,.05);
}
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 9px 0 8px; font-size: 10px; color: var(--text-3);
}
.bn-item svg { width: 22px; height: 22px; }
.bn-item.active { color: var(--primary); font-weight: 700; }

.toast-stack { position: fixed; top: 76px; left: 0; right: 0; z-index: 100; pointer-events: none; padding: 0 16px; }
.toast {
  max-width: 460px; margin: 0 auto 8px; padding: 11px 15px;
  display: flex; align-items: flex-start; gap: 9px;
  border-radius: 12px; font-size: 13px; line-height: 1.6;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); animation: toast-in .25s ease both;
  pointer-events: auto;
}
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-top: 7px; flex-shrink: 0; }
.toast-success .toast-dot { background: var(--success); }
.toast-error .toast-dot { background: var(--danger); }
.toast-warning .toast-dot { background: var(--warn); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fade-up .35s ease both; }

/* --------------------------------------------------------- Responsive */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .account-info-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 34px 32px; }
  .hero-title { font-size: 30px; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .top-nav { display: flex; }
  .header-search-toggle span { display: inline; }
  .user-chip { display: inline-block; }
  .bottom-nav { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .detail-layout { grid-template-columns: 1.15fr .85fr; gap: 22px; }
  .detail-cover { height: 280px; }
  .checkout-layout { grid-template-columns: 1.2fr .8fr; gap: 20px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-inner .copyright { margin-left: auto; }
  .hero { padding: 40px 42px; }
  .hero-title { font-size: 34px; }
  .hero-visual { right: 10px; top: -80px; width: 330px; height: 330px; }
  .main-content { padding-top: 26px; }
}
@media (max-width: 400px) {
  .brand-text small { display: none; }
  .header-inner { gap: 8px; }
  .btn-sm { padding: 0 10px; }
}
