/* 北汤泉全域电商平台 · 交互原型设计系统 */
:root {
  --forest-950: #102d26;
  --forest-900: #153b31;
  --forest-800: #1a4c3e;
  --forest-700: #1e6652;
  --forest-600: #257c64;
  --forest-500: #33947a;
  --forest-100: #dfeee7;
  --forest-50: #eff6f2;
  --gold-700: #9b6729;
  --gold-600: #b67c34;
  --gold-500: #d09a52;
  --gold-100: #f5e7ce;
  --gold-50: #fcf6ea;
  --ink: #18231f;
  --ink-soft: #394942;
  --muted: #6c7a74;
  --muted-light: #94a099;
  --paper: #f6f7f4;
  --cream: #f4f1e9;
  --white: #fff;
  --line: #e2e8e4;
  --line-strong: #cfd9d3;
  --danger: #b44742;
  --danger-bg: #fff0ee;
  --warning: #9a6724;
  --warning-bg: #fff6e7;
  --blue: #376c88;
  --blue-bg: #edf5f8;
  --shadow-sm: 0 2px 8px rgba(20, 52, 42, .05);
  --shadow-md: 0 14px 40px rgba(20, 52, 42, .09);
  --shadow-lg: 0 30px 80px rgba(14, 41, 33, .16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --z-sticky: 100;
  --z-toast: 600;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.3; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
[hidden] { display: none !important; }
::selection { background: #cce3d8; color: var(--forest-950); }
:focus-visible { outline: 3px solid #c59043; outline-offset: 3px; }
.icon { width: 20px; height: 20px; display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--forest-600) !important; }
.text-warning { color: var(--warning) !important; }
.text-right { text-align: right; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.amount { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 700; background: var(--white); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-md); }
.skip-link:focus { top: 16px; }

/* 通用组件 */
.btn { min-height: 40px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 13px; transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; }
.btn:hover { border-color: #9eb6aa; background: #fafcfb; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest-700); color: var(--white); border-color: var(--forest-700); box-shadow: 0 5px 14px rgba(30, 102, 82, .14); }
.btn-primary:hover { background: var(--forest-800); border-color: var(--forest-800); }
.btn-dark { background: var(--forest-950); color: var(--white); border-color: var(--forest-950); }
.btn-dark:hover { background: #1b453a; border-color: #1b453a; }
.btn-gold { background: var(--gold-500); color: var(--forest-950); border-color: var(--gold-500); }
.btn-gold:hover { background: #bd8842; border-color: #bd8842; }
.btn-danger { color: var(--danger); border-color: #e7c7c2; background: var(--white); }
.btn-danger:hover { background: var(--danger-bg); border-color: #dba8a1; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--forest-50); border-color: transparent; }
.btn-sm { min-height: 32px; padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn .icon { width: 17px; height: 17px; }
.icon-button { width: 38px; height: 38px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--white); display: inline-grid; place-items: center; position: relative; color: var(--ink-soft); }
.icon-button:hover { background: var(--forest-50); border-color: #bfd0c6; }
.icon-button .icon { width: 18px; height: 18px; }
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 2px 8px; border-radius: 999px; background: #f0f2f1; color: #5b6862; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge.success { background: var(--forest-100); color: var(--forest-700); }
.badge.warning { background: var(--warning-bg); color: var(--warning); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.info { background: var(--blue-bg); color: var(--blue); }
.badge.gold { background: var(--gold-100); color: var(--gold-700); }
.badge.neutral { background: #f0f2f1; color: #64716b; }
.badge.outline { background: var(--white); border: 1px solid var(--line); }
.badge .dot, .status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.demo-pill { display: inline-flex; align-items: center; padding: 3px 9px; background: var(--gold-50); color: var(--gold-700); border: 1px solid #eddfc6; border-radius: 999px; font-size: 11px; font-weight: 600; }
.prototype-label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.prototype-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--forest-500); box-shadow: 0 0 0 4px rgba(51, 148, 122, .12); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 16px; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.panel-link { border: 0; background: transparent; color: var(--forest-700); font-size: 12px; font-weight: 600; padding: 3px; display: inline-flex; align-items: center; gap: 4px; }
.panel-link .icon { width: 14px; height: 14px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: var(--space-5) 0; }
.inline-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--forest-50); color: var(--forest-800); font-size: 12px; }
.inline-notice.warning { background: var(--warning-bg); color: #795321; }
.inline-notice.danger { background: var(--danger-bg); color: #893b37; }
.inline-notice.info { background: var(--blue-bg); color: #315e76; }
.inline-notice .icon { width: 17px; height: 17px; margin-top: 1px; }
.inline-notice p { margin: 0; }
.empty-state { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty-state .empty-icon { width: 58px; height: 58px; border-radius: 18px; background: var(--forest-50); color: var(--forest-600); display: grid; place-items: center; margin: 0 auto 16px; }
.empty-state .empty-icon .icon { width: 27px; height: 27px; }
.empty-state h3 { color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.empty-state p { margin: 0; font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field-label { color: var(--ink-soft); font-weight: 600; font-size: 12px; }
.field input, .field select, .field textarea, .input { width: 100%; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--white); color: var(--ink); padding: 9px 12px; outline: none; transition: border-color .18s, box-shadow .18s; }
.field textarea { min-height: 86px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--forest-500); box-shadow: 0 0 0 3px rgba(51, 148, 122, .12); }
.field input[readonly], .field input:disabled { background: #f5f7f5; color: var(--muted); }
.field-hint { margin: 0; font-size: 11px; color: var(--muted); }
.field-error { margin: 0; font-size: 11px; color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.input-group { display: flex; align-items: center; gap: 8px; }
.input-group .input, .input-group input { flex: 1; min-width: 0; }
.input-prefix, .input-suffix { position: relative; }
.input-prefix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-prefix > input { padding-left: 28px; }
.input-suffix > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; }
.input-suffix > input { padding-right: 42px; }
.switch { width: 42px; height: 24px; padding: 2px; border: 0; border-radius: 999px; background: #ccd5d0; transition: background .2s; }
.switch::after { content: ""; display: block; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: transform .2s; }
.switch.on { background: var(--forest-600); }
.switch.on::after { transform: translateX(18px); }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: #eef1ef; }
.segmented button { border: 0; background: transparent; padding: 7px 13px; border-radius: 7px; font-size: 12px; color: var(--muted); }
.segmented button.active { color: var(--forest-800); background: white; font-weight: 700; box-shadow: var(--shadow-sm); }
.filter-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-chip { min-height: 34px; border: 1px solid var(--line); background: var(--white); padding: 6px 13px; border-radius: 999px; color: var(--muted); font-size: 12px; }
.filter-chip.active { background: var(--forest-100); color: var(--forest-800); border-color: #c2dacd; font-weight: 600; }
.search-field { position: relative; min-width: 230px; }
.search-field .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted-light); }
.search-field input { width: 100%; min-height: 38px; padding: 8px 12px 8px 38px; border: 1px solid var(--line); border-radius: 9px; outline: none; }
.search-field input:focus { border-color: var(--forest-500); box-shadow: 0 0 0 3px rgba(51,148,122,.1); }

/* 原型入口 */
.portal-body { background: var(--cream); min-height: 100vh; }
.portal-header { max-width: 1360px; margin: auto; padding: 24px 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.portal-brand { display: flex; align-items: center; gap: 13px; }
.portal-brand img { width: 116px; max-height: 46px; object-fit: contain; object-position: left center; }
.portal-brand > span { padding-left: 13px; border-left: 1px solid #cfd5ce; display: flex; flex-direction: column; }
.portal-brand strong { font-size: 13px; letter-spacing: .04em; }
.portal-brand small { color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.portal-main { max-width: 1360px; margin: auto; padding: 38px 48px 64px; }
.portal-intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 56px; padding: 30px 0 52px; }
.eyebrow { color: var(--forest-600); font-size: 10px; font-weight: 700; letter-spacing: .2em; margin-bottom: 20px; }
.portal-intro h1 { font-size: clamp(38px, 4.4vw, 64px); letter-spacing: -.055em; font-weight: 700; margin: 0 0 24px; color: var(--forest-950); }
.portal-intro h1 em { font-style: normal; color: var(--forest-600); }
.intro-copy { max-width: 680px; color: #56655e; font-size: 15px; line-height: 1.9; margin: 0; }
.intro-meta { display: flex; gap: 36px; padding-bottom: 8px; }
.intro-meta > div { display: flex; flex-direction: column; gap: 2px; }
.intro-meta strong { font-size: 26px; font-weight: 500; letter-spacing: -.04em; color: var(--forest-800); font-variant-numeric: tabular-nums; }
.intro-meta span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.entry-card { min-height: 560px; border-radius: var(--radius-xl); padding: 34px 36px 0; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.entry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.merchant-entry { background: var(--forest-900); color: white; }
.app-entry { background: #e8d7ba; color: var(--forest-950); }
.entry-topline { display: flex; align-items: center; justify-content: space-between; font-size: 9px; letter-spacing: .18em; opacity: .62; position: relative; z-index: 2; }
.entry-number { font-size: 12px; font-variant-numeric: tabular-nums; }
.entry-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin: 34px 0 20px; background: rgba(255,255,255,.1); color: #e3c48e; position: relative; z-index: 2; }
.app-entry .entry-icon { background: rgba(21,59,49,.08); color: var(--forest-700); }
.entry-icon .icon { width: 24px; height: 24px; }
.entry-card h2 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 12px; position: relative; z-index: 2; }
.entry-card > p { font-size: 13px; line-height: 1.85; max-width: 430px; opacity: .74; margin-bottom: 20px; position: relative; z-index: 2; }
.entry-features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; position: relative; z-index: 2; }
.entry-features li { font-size: 11px; opacity: .82; padding-left: 14px; position: relative; }
.entry-features li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; position: absolute; left: 0; top: 8px; opacity: .6; }
.entry-action { align-self: flex-start; display: inline-flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 700; padding-bottom: 7px; border-bottom: 1px solid currentColor; position: relative; z-index: 5; }
.entry-action span { transition: transform .2s; }
.entry-action:hover span { transform: translateX(5px); }
.entry-preview { margin-top: auto; height: 158px; position: relative; }
.merchant-preview { width: 78%; margin-left: auto; margin-right: -36px; border-radius: 15px 0 0 0; background: #f7f9f7; display: flex; color: var(--forest-900); box-shadow: -15px -10px 50px rgba(0,0,0,.12); transform: translateY(24px); transition: transform .35s; }
.entry-card:hover .merchant-preview { transform: translateY(15px); }
.preview-sidebar { width: 50px; background: #214d41; padding: 18px 12px; display: flex; flex-direction: column; gap: 12px; }
.preview-sidebar i { height: 5px; border-radius: 5px; background: rgba(255,255,255,.25); }
.preview-content { flex: 1; padding: 17px; }
.preview-content > b { display: block; width: 34%; height: 8px; background: #cad6d0; border-radius: 5px; margin-bottom: 15px; }
.preview-metrics { display: flex; gap: 8px; }
.preview-metrics i { flex: 1; height: 35px; background: white; border: 1px solid #e4e9e5; border-radius: 5px; }
.preview-table { margin-top: 12px; background: white; border-radius: 5px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.preview-table i { height: 4px; background: #e5ebe7; border-radius: 5px; }
.preview-table i:nth-child(2) { width: 85%; }.preview-table i:nth-child(3) { width: 92%; }.preview-table i:nth-child(4) { width: 72%; }
.phone-preview { display: flex; justify-content: flex-end; padding-right: 28px; }
.preview-phone { width: 150px; height: 210px; border: 5px solid var(--forest-950); border-bottom: 0; border-radius: 24px 24px 0 0; background: #f7f8f5; padding: 14px 10px; transform: translateY(28px) rotate(-3deg); box-shadow: -10px 10px 35px rgba(55,42,22,.16); transition: transform .35s; }
.entry-card:hover .preview-phone { transform: translateY(17px) rotate(-1deg); }
.preview-phone > b { display: block; width: 34px; height: 4px; border-radius: 4px; background: var(--forest-950); margin: -9px auto 12px; }
.preview-hero { height: 54px; background: var(--forest-700); border-radius: 9px; margin-bottom: 10px; }
.preview-cats { display: flex; justify-content: space-between; margin-bottom: 12px; }
.preview-cats i { width: 22px; height: 22px; background: #e6e9e4; border-radius: 7px; }
.preview-store { height: 40px; border-radius: 8px; background: white; border: 1px solid #e5e9e5; margin-bottom: 8px; }
.preview-store.short { width: 88%; }
.experience-strip { margin-top: 24px; padding: 30px 34px; border: 1px solid #d9ded7; border-radius: var(--radius-lg); display: grid; grid-template-columns: 190px 1fr; gap: 34px; background: rgba(255,255,255,.38); }
.strip-heading { display: flex; flex-direction: column; gap: 6px; }
.strip-heading span { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.strip-heading strong { font-size: 16px; }
.journey-list { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.journey-list li { display: flex; align-items: center; gap: 9px; position: relative; flex: 1; }
.journey-list li:not(:last-child)::after { content: ""; position: absolute; height: 1px; background: #cdd6cf; width: 22px; right: 2px; top: 15px; }
.journey-list li > span { width: 30px; height: 30px; border: 1px solid #bfcac3; border-radius: 50%; display: grid; place-items: center; font-size: 9px; color: var(--forest-700); flex: 0 0 auto; }
.journey-list div { display: flex; flex-direction: column; white-space: nowrap; }
.journey-list strong { font-size: 11px; }.journey-list small { font-size: 9px; color: var(--muted); }
.portal-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 38px 4px 0; }
.portal-notes strong { font-size: 12px; }.portal-notes p { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 8px 0 0; }
.portal-footer { max-width: 1360px; margin: auto; padding: 20px 48px 30px; border-top: 1px solid #dce1da; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }

/* 商户端框架 */
.merchant-body { background: #f4f6f3; min-height: 100vh; }
.merchant-shell { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100vh; }
.merchant-sidebar { background: var(--forest-950); color: white; padding: 24px 16px 18px; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 20; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 23px; }
.side-brand img { width: 76px; max-height: 35px; object-fit: contain; filter: brightness(0) invert(1); opacity: .96; }
.side-brand > span { border-left: 1px solid rgba(255,255,255,.17); padding-left: 11px; display: flex; flex-direction: column; }
.side-brand strong { font-size: 13px; letter-spacing: .1em; }.side-brand small { font-size: 9px; color: #a9c0b7; }
.store-switch { display: flex; align-items: center; gap: 9px; padding: 12px 10px; border-radius: 11px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.07); margin-bottom: 23px; cursor: pointer; }
.store-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #d1aa6c; color: var(--forest-950); font-weight: 800; font-size: 12px; }
.store-switch > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.store-switch strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.store-switch small { font-size: 9px; color: #a9c0b7; }
.store-dot { width: 6px; height: 6px; background: #6ec49f; border-radius: 50%; margin-left: auto; }
.merchant-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item { width: 100%; min-height: 43px; padding: 10px 13px; border: 0; border-radius: 9px; background: transparent; color: #a9c0b7; display: flex; align-items: center; gap: 11px; text-align: left; font-size: 12px; transition: background .18s, color .18s; }
.nav-item .icon { width: 18px; height: 18px; opacity: .88; }
.nav-item:hover { background: rgba(255,255,255,.06); color: white; }
.nav-item.active { background: #28594a; color: white; font-weight: 600; box-shadow: inset 3px 0 #d1aa6c; }
.nav-count { margin-left: auto; min-width: 20px; height: 19px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.12); color: #e6c893; font-size: 9px; }
.nav-dot { width: 5px; height: 5px; background: #d1aa6c; border-radius: 50%; margin-left: auto; }
.sidebar-foot { margin-top: auto; padding-top: 24px; }
.compliance-note { padding: 13px; background: rgba(255,255,255,.045); border-radius: 10px; margin-bottom: 10px; }
.compliance-note strong { color: #d8c49d; font-size: 10px; }.compliance-note p { margin: 5px 0 0; font-size: 9px; line-height: 1.7; color: #91aba0; }
.switch-terminal { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #a9c0b7; font-size: 10px; }
.switch-terminal:hover { color: white; }.switch-terminal .icon { width: 15px; height: 15px; }
.side-user { border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; padding: 16px 5px 0; display: flex; align-items: center; gap: 9px; }
.user-avatar { width: 31px; height: 31px; border-radius: 50%; background: #e7ded0; color: var(--forest-900); display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.side-user > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }.side-user strong { font-size: 10px; }.side-user small { color: #8fa99d; font-size: 8px; }
.side-user .icon-button { margin-left: auto; width: 28px; height: 28px; border: 0; background: transparent; color: #9db3a9; }
.merchant-workspace { min-width: 0; }
.merchant-topbar { height: 68px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; position: sticky; top: 0; z-index: 15; backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 11px; }.breadcrumb span { color: var(--muted); }.breadcrumb b { color: #bcc6c0; font-weight: 400; }.breadcrumb strong { font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.notification-dot { position: absolute; right: 8px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); border: 1px solid white; }
.merchant-content { padding: 28px 30px 48px; max-width: 1560px; margin: auto; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.035em; color: var(--forest-950); }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 19px 20px; position: relative; min-width: 0; }
.metric-card .metric-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; margin-bottom: 12px; }
.metric-card .metric-label .icon { width: 17px; height: 17px; color: #7f968b; }
.metric-card .metric-value { font-size: 26px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--forest-950); white-space: nowrap; }
.metric-card .metric-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.metric-trend { color: var(--forest-600); font-weight: 600; }.metric-trend.down { color: var(--danger); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); gap: 20px; margin-bottom: 20px; }
.dashboard-grid.equal { grid-template-columns: repeat(2, minmax(0,1fr)); }
.dashboard-grid.wide-right { grid-template-columns: minmax(300px,.85fr) minmax(0,1.4fr); }
.order-mini-list { display: flex; flex-direction: column; }
.order-mini { display: grid; grid-template-columns: minmax(130px,1.4fr) minmax(100px,1fr) auto auto; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid #edf0ed; }
.order-mini:first-child { border-top: 0; padding-top: 0; }.order-mini:last-child { padding-bottom: 0; }
.order-mini .order-title { min-width: 0; }.order-mini strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.order-mini small { color: var(--muted); font-size: 10px; }
.order-mini .order-time { color: var(--muted); font-size: 10px; }.order-mini .order-amount { font-size: 12px; font-weight: 700; white-space: nowrap; }
.task-list { display: flex; flex-direction: column; gap: 11px; }
.task-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: #f7f9f7; cursor: pointer; border: 1px solid transparent; }
.task-item:hover { border-color: var(--line-strong); }
.task-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--white); color: var(--forest-600); display: grid; place-items: center; }
.task-icon .icon { width: 17px; height: 17px; }.task-item > div { flex: 1; }.task-item strong { display: block; font-size: 11px; }.task-item small { color: var(--muted); font-size: 9px; }.task-item > b { font-size: 16px; color: var(--forest-800); }
.pool-card { background: var(--forest-900); color: white; border: 0; position: relative; overflow: hidden; }
.pool-card::after { content: ""; position: absolute; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -95px; top: -90px; box-shadow: 0 0 0 32px rgba(255,255,255,.025), 0 0 0 64px rgba(255,255,255,.018); }
.pool-card .panel-header { position: relative; z-index: 1; }.pool-card .panel-header h3 { color: white; }.pool-card .panel-header p { color: #a7c0b5; }
.pool-amount { position: relative; z-index: 1; margin: 28px 0 22px; }.pool-amount small { display: block; color: #a7c0b5; font-size: 10px; }.pool-amount strong { font-size: 34px; letter-spacing: -.04em; font-weight: 600; }
.pool-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }.pool-stats > div { padding-top: 13px; border-top: 1px solid rgba(255,255,255,.12); }.pool-stats small { display: block; color: #a7c0b5; font-size: 9px; }.pool-stats strong { font-size: 13px; }
.pool-foot { margin-top: 22px; padding: 10px 12px; border-radius: 9px; background: rgba(255,255,255,.07); color: #c1d3cb; font-size: 9px; display: flex; gap: 8px; position: relative; z-index: 1; }.pool-foot .icon { width: 14px; height: 14px; color: #d9bd88; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 11px 13px; background: #f5f7f5; color: var(--muted); text-align: left; font-weight: 600; font-size: 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.data-table th:first-child { border-radius: 8px 0 0 8px; }.data-table th:last-child { border-radius: 0 8px 8px 0; }
.data-table td { padding: 15px 13px; border-bottom: 1px solid #edf0ed; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }.data-table tbody tr:hover { background: #fbfcfb; }
.data-table .cell-main { display: block; font-weight: 600; color: var(--ink); }.data-table .cell-sub { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.data-table .cell-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.data-table .amount { font-weight: 700; white-space: nowrap; }
.order-id { font-family: Consolas, monospace; font-size: 10px; color: var(--muted); }
.table-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; color: var(--muted); font-size: 11px; }
.pagination { display: flex; gap: 5px; }.pagination button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 11px; }.pagination button.active { background: var(--forest-700); color: white; border-color: var(--forest-700); }

/* 商户核销 */
.verify-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 20px; }
.verify-console { min-height: 510px; display: flex; flex-direction: column; }
.verify-mode { align-self: center; margin-bottom: 30px; }
.verify-input-wrap { max-width: 520px; width: 100%; margin: 0 auto; text-align: center; }
.verify-symbol { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--forest-50); color: var(--forest-700); border-radius: 20px; }
.verify-symbol .icon { width: 30px; height: 30px; }.verify-input-wrap h2 { font-size: 20px; margin-bottom: 8px; }.verify-input-wrap > p { color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.code-input { font-size: 25px !important; letter-spacing: .5em; text-align: center; font-weight: 700; height: 62px !important; padding-left: calc(12px + .5em) !important; font-family: Consolas, monospace; }
.verify-input-wrap .btn { margin-top: 14px; min-height: 46px; }
.demo-code-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.demo-code { border: 0; background: transparent; padding: 3px 6px; color: var(--forest-600); font-family: Consolas, monospace; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.verify-result { margin-top: 22px; text-align: left; }
.verify-order { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fafcfa; }
.verify-order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.verify-order-head strong { font-size: 13px; }
.key-values { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; font-size: 12px; }.key-values dt { color: var(--muted); }.key-values dd { margin: 0; font-weight: 500; }
.verify-success { text-align: center; padding: 16px; }.verify-success .success-mark { width: 58px; height: 58px; border-radius: 50%; background: var(--forest-100); color: var(--forest-700); display: grid; place-items: center; margin: 0 auto 12px; }.verify-success .success-mark .icon { width: 30px; height: 30px; }.verify-success h3 { margin-bottom: 6px; }.verify-success p { color: var(--muted); font-size: 12px; }
.scan-simulator { width: 260px; height: 260px; border-radius: 24px; background: var(--forest-950); margin: 0 auto 20px; position: relative; overflow: hidden; display: grid; place-items: center; color: #b5c9c0; }
.scan-simulator::before { content: ""; position: absolute; inset: 38px; border: 2px solid rgba(255,255,255,.65); border-radius: 12px; }
.scan-simulator::after { content: ""; position: absolute; left: 45px; right: 45px; height: 2px; background: #d2ab6a; top: 50%; box-shadow: 0 0 12px #d2ab6a; animation: scanline 2.4s ease-in-out infinite; }
.scan-simulator .icon { width: 44px; height: 44px; opacity: .35; }
@keyframes scanline { 0%,100% { transform: translateY(-70px); } 50% { transform: translateY(70px); } }
.test-case-list { display: flex; flex-direction: column; gap: 10px; }
.test-case { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }.test-case:first-child { border-top: 0; padding-top: 0; }
.test-case > span:first-child { flex: 1; }.test-case strong { display: block; font-size: 11px; }.test-case small { display: block; font-size: 9px; color: var(--muted); }.test-case code { font-size: 11px; color: var(--forest-700); background: var(--forest-50); border-radius: 5px; padding: 3px 7px; }
.audit-steps { display: flex; flex-direction: column; gap: 0; }
.audit-step { display: flex; gap: 12px; position: relative; padding-bottom: 19px; }.audit-step:last-child { padding-bottom: 0; }
.audit-step:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 1px; background: var(--line-strong); }
.audit-step > span { width: 23px; height: 23px; border-radius: 50%; background: var(--forest-100); color: var(--forest-700); display: grid; place-items: center; flex: 0 0 auto; z-index: 1; }.audit-step > span .icon { width: 13px; height: 13px; }.audit-step strong { display: block; font-size: 11px; }.audit-step small { color: var(--muted); font-size: 9px; }

/* 活动、商品与结算 */
.activity-hero { padding: 26px; border-radius: var(--radius-lg); background: var(--forest-900); color: white; margin-bottom: 20px; position: relative; overflow: hidden; }
.activity-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; position: relative; z-index: 1; }.activity-hero h2 { font-size: 19px; margin: 9px 0 6px; }.activity-hero p { margin: 0; color: #b2c8be; font-size: 11px; }
.activity-budget { display: grid; grid-template-columns: 1.3fr repeat(3,1fr); gap: 20px; margin-top: 28px; position: relative; z-index: 1; }.activity-budget > div { border-left: 1px solid rgba(255,255,255,.14); padding-left: 18px; }.activity-budget > div:first-child { border-left: 0; padding-left: 0; }.activity-budget small { display: block; color: #aac2b7; font-size: 10px; margin-bottom: 5px; }.activity-budget strong { font-size: 20px; font-weight: 600; }.activity-budget > div:first-child strong { font-size: 28px; color: #ead3a9; }
.progress-track { height: 7px; border-radius: 99px; background: #e7ece8; overflow: hidden; }
.progress-track > i { display: block; height: 100%; border-radius: inherit; background: var(--forest-600); transition: width .35s; }
.activity-hero .progress-track { background: rgba(255,255,255,.13); margin-top: 18px; position: relative; z-index: 1; }.activity-hero .progress-track > i { background: #d5b172; }
.progress-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 10px; }.activity-hero .progress-caption { color: #a9c1b6; position: relative; z-index: 1; }
.rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }.rule-item { padding: 13px; border-radius: 10px; background: #f6f8f6; }.rule-item small { display: block; color: var(--muted); font-size: 9px; }.rule-item strong { font-size: 12px; }
.asset-account-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.asset-account { border: 1px solid var(--line); background: white; border-radius: 13px; padding: 18px; }.asset-account .asset-code { color: var(--muted); font-size: 9px; letter-spacing: .05em; }.asset-account h3 { font-size: 11px; margin: 5px 0 12px; }.asset-account strong { font-size: 22px; letter-spacing: -.03em; }.asset-account p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.product-name-cell { display: flex; align-items: center; gap: 11px; min-width: 190px; }.product-thumb { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--forest-50); color: var(--forest-600); flex: 0 0 auto; }.product-thumb .icon { width: 19px; height: 19px; }.product-thumb.gold { background: var(--gold-50); color: var(--gold-600); }.product-thumb.blue { background: var(--blue-bg); color: var(--blue); }
.stock-editor { display: flex; align-items: center; gap: 8px; }.stock-editor button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; background: white; }.stock-editor input { width: 70px; text-align: center; min-height: 34px; border: 1px solid var(--line); border-radius: 7px; }
.statement-summary { display: flex; align-items: center; gap: 10px; }.statement-summary .icon { color: var(--forest-600); }
.drawer-section { padding: 20px 0; border-top: 1px solid var(--line); }.drawer-section:first-child { border-top: 0; padding-top: 0; }.drawer-section h3 { font-size: 13px; margin-bottom: 14px; }
.drawer-section .key-values { grid-template-columns: 95px 1fr; }
.detail-product { display: flex; gap: 12px; padding: 12px; background: #f6f8f6; border-radius: 10px; }.detail-product .product-thumb { width: 46px; height: 46px; background: white; }.detail-product > div:last-child { flex: 1; }.detail-product strong { font-size: 12px; }.detail-product p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.calc-box { padding: 14px; border-radius: 10px; background: var(--forest-50); font-size: 11px; }.calc-row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }.calc-row.total { border-top: 1px solid #cbded3; margin-top: 7px; padding-top: 10px; font-weight: 700; color: var(--forest-800); }

/* 弹窗与抽屉 */
dialog { border: 0; padding: 0; color: var(--ink); background: white; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(10, 28, 23, .48); backdrop-filter: blur(3px); }
.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); border-radius: 18px; overflow: auto; }
.modal.wide { width: min(720px, calc(100vw - 32px)); }
.modal-head, .drawer-head, .sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2, .drawer-head h2, .sheet-head h2 { margin: 0; font-size: 18px; }.modal-head p, .drawer-head p, .sheet-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.modal-body, .drawer-body, .sheet-body { padding: 22px 24px; }
.modal-foot, .drawer-foot, .sheet-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; background: #fafbfa; }
.drawer { width: min(520px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border-radius: 0; overflow: auto; }
.drawer-head { position: sticky; top: 0; background: white; z-index: 2; }.drawer-foot { position: sticky; bottom: 0; }
.toast-region { position: fixed; right: 24px; top: 24px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px; padding: 13px 16px; background: var(--forest-950); color: white; border-radius: 11px; box-shadow: var(--shadow-lg); font-size: 12px; opacity: 0; transform: translateY(-10px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }.toast .icon { color: #a4d7bf; width: 18px; height: 18px; }.toast.error { background: #803c38; }.toast.info { background: #355d70; }

/* APP 原型外框 */
.app-body { min-height: 100vh; background: #eeeae1; overflow: hidden; }
.app-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 420px) minmax(450px, 1fr); max-width: 1440px; margin: auto; }
.prototype-guide { padding: 34px 42px 28px; display: flex; flex-direction: column; min-height: 100vh; }
.guide-brand { display: flex; align-items: center; gap: 11px; align-self: flex-start; }.guide-brand img { width: 93px; max-height: 38px; object-fit: contain; }.guide-brand > span { border-left: 1px solid #cdd3ca; padding-left: 11px; display: flex; flex-direction: column; }.guide-brand strong { font-size: 12px; }.guide-brand small { font-size: 9px; color: var(--muted); }
.guide-heading { margin-top: clamp(38px, 8vh, 78px); }.guide-heading h1 { font-size: clamp(32px, 3.5vw, 46px); letter-spacing: -.05em; color: var(--forest-950); margin: 17px 0 15px; }.guide-heading > p { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 310px; }
.guide-flows { margin-top: 28px; }.guide-label { color: var(--muted); font-size: 9px; letter-spacing: .12em; margin-bottom: 9px; }
.guide-flows > button { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-top: 1px solid #d6dcd4; background: transparent; padding: 13px 2px; }.guide-flows > button:last-child { border-bottom: 1px solid #d6dcd4; }.guide-flows > button > span { color: var(--forest-600); font-size: 9px; }.guide-flows > button > div { flex: 1; }.guide-flows strong { display: block; font-size: 11px; }.guide-flows small { display: block; color: var(--muted); font-size: 9px; }.guide-flows b { font-weight: 400; color: var(--forest-600); transition: transform .2s; }.guide-flows button:hover b { transform: translateX(4px); }
.guide-note { margin-top: auto; padding: 14px; border-radius: 11px; background: rgba(255,255,255,.46); }.guide-note strong { font-size: 10px; }.guide-note p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.guide-links { display: flex; gap: 18px; padding-top: 16px; font-size: 10px; }.guide-links a { color: var(--forest-700); font-weight: 600; }.guide-links button { border: 0; padding: 0; background: transparent; color: var(--muted); }
.device-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 30px; background: radial-gradient(circle at 55% 40%, #f8f6f0 0, #e7e4db 70%); }
.device-caption { width: 402px; max-width: 100%; display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.device { width: 402px; height: min(844px, calc(100dvh - 90px)); min-height: 620px; border: 7px solid #17251f; border-radius: 43px; background: #17251f; box-shadow: 0 28px 70px rgba(30,44,36,.22), 0 3px 10px rgba(0,0,0,.12); position: relative; overflow: hidden; }
.device-notch { position: absolute; z-index: 10; top: 8px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 20px; background: #17251f; }
.device-screen { height: 100%; background: #f7f8f5; border-radius: 35px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.app-statusbar { height: 38px; flex: 0 0 38px; padding: 11px 20px 0; display: flex; justify-content: space-between; align-items: center; background: #f7f8f5; color: var(--forest-950); font-size: 9px; font-weight: 700; position: relative; z-index: 5; }
.app-statusbar > div { display: flex; gap: 4px; align-items: flex-end; }.app-statusbar i:first-child { width: 12px; height: 8px; border: 1px solid currentColor; border-radius: 2px; opacity: .8; }.app-statusbar i:nth-child(2) { width: 10px; height: 8px; border-bottom: 2px solid currentColor; border-radius: 50%; }.app-statusbar b { width: 15px; height: 8px; border: 1px solid currentColor; border-radius: 2px; position: relative; }.app-statusbar b::after { content: ""; position: absolute; inset: 1px; background: currentColor; border-radius: 1px; }
.app-main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; background: #f7f8f5; }
.app-main::-webkit-scrollbar { display: none; }
.app-bottom-nav { flex: 0 0 67px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 7px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid #e7ebe7; background: rgba(255,255,255,.97); position: relative; z-index: 5; }
.app-bottom-nav button { border: 0; background: transparent; color: #8b9690; display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; font-size: 9px; padding: 2px; }.app-bottom-nav button .icon { width: 20px; height: 20px; }.app-bottom-nav button.active { color: var(--forest-700); font-weight: 700; }
.device-hint { margin: 10px 0 0; color: var(--muted); font-size: 8px; letter-spacing: .04em; }

/* APP 通用 */
.mobile-page { min-height: 100%; padding: 0 16px 24px; }
.mobile-page.has-action { padding-bottom: 92px; }
.mobile-header { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 10px; }
.mobile-header .mobile-title { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }.mobile-header .mobile-subtitle { display: block; font-size: 9px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.mobile-header-actions { display: flex; gap: 7px; }.mobile-icon-btn { width: 34px; height: 34px; border: 0; border-radius: 50%; background: white; display: grid; place-items: center; color: var(--forest-950); position: relative; }.mobile-icon-btn .icon { width: 17px; height: 17px; }.mobile-icon-btn .notification-dot { width: 5px; height: 5px; right: 6px; top: 6px; }
.mobile-back { width: 34px; height: 34px; border: 0; border-radius: 50%; background: white; display: grid; place-items: center; flex: 0 0 auto; }.mobile-back .icon { width: 18px; height: 18px; }.mobile-header-title { flex: 1; text-align: center; font-size: 15px; font-weight: 700; }.mobile-header-spacer { width: 34px; }
.mobile-search { height: 40px; border-radius: 12px; background: white; border: 1px solid #e8ece8; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); font-size: 11px; margin-bottom: 14px; }.mobile-search .icon { width: 16px; height: 16px; }.mobile-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 11px; color: var(--ink); }.mobile-search button { border: 0; background: transparent; color: var(--muted); padding: 0; display: flex; }
.mobile-section { margin-top: 22px; }.mobile-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }.mobile-section-head h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }.mobile-section-head h2 small { font-size: 9px; color: var(--muted); font-weight: 400; margin-left: 5px; }.mobile-section-head button, .mobile-section-head a { border: 0; background: transparent; padding: 0; color: var(--muted); font-size: 10px; display: flex; align-items: center; gap: 2px; }.mobile-section-head .icon { width: 12px; height: 12px; }
.mobile-card { background: white; border: 1px solid #e8ece8; border-radius: 15px; padding: 14px; }
.app-home-hero { border-radius: 18px; padding: 20px 18px; color: white; background: var(--forest-900); position: relative; overflow: hidden; min-height: 154px; }
.app-home-hero::before { content: ""; position: absolute; width: 160px; height: 160px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; right: -48px; top: -38px; box-shadow: 0 0 0 25px rgba(255,255,255,.025), 0 0 0 50px rgba(255,255,255,.018); }
.app-home-hero .hero-kicker { font-size: 9px; color: #d7bd90; letter-spacing: .08em; position: relative; }.app-home-hero h2 { font-size: 22px; line-height: 1.35; letter-spacing: -.035em; margin: 10px 0 8px; position: relative; }.app-home-hero p { font-size: 9px; color: #b6cbc1; margin: 0; position: relative; }.app-home-hero button { position: relative; margin-top: 16px; border: 0; border-radius: 999px; background: #e2c18b; color: var(--forest-950); padding: 7px 12px; font-size: 9px; font-weight: 700; }
.location-button { border: 0; background: transparent; padding: 0; display: flex; align-items: center; gap: 3px; font-size: 10px; color: var(--muted); }.location-button .icon { width: 13px; height: 13px; color: var(--forest-600); }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 18px; }.category-item { border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 10px; color: var(--ink-soft); }.category-icon { width: 45px; height: 45px; border-radius: 15px; display: grid; place-items: center; background: #e6efe9; color: var(--forest-700); }.category-item:nth-child(2) .category-icon { background: #f4eadb; color: #a47738; }.category-item:nth-child(3) .category-icon { background: #e9eff1; color: #487588; }.category-item:nth-child(4) .category-icon { background: #eee9f2; color: #775e88; }.category-icon .icon { width: 21px; height: 21px; }
.store-location { width: 100%; display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; background: white; text-align: left; }
.store-location > .icon { width: 19px; height: 19px; color: var(--forest-600); }
.store-location > div { flex: 1; min-width: 0; }
.store-location small { display: block; color: var(--muted); font-size: 8px; }
.store-location strong { display: block; font-size: 11px; }
.store-location > span { color: var(--forest-700); font-size: 9px; white-space: nowrap; }
.home-service-strip { display: flex; justify-content: center; gap: 15px; margin-top: 14px; color: var(--muted); font-size: 8px; }
.home-service-strip span { display: flex; align-items: center; gap: 3px; }
.home-service-strip .icon { width: 11px; height: 11px; color: var(--forest-600); }
.home-recommend-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.home-recommend-head > div > span { display: block; color: var(--gold-600); font-size: 7px; letter-spacing: .16em; }
.home-recommend-head h2 { margin: 2px 0 0; font-size: 18px; letter-spacing: -.03em; }
.home-recommend-head > small { padding-bottom: 2px; color: var(--muted); font-size: 8px; }
.home-product-waterfall { column-count: 2; column-gap: 10px; }
.home-product-card { width: 100%; display: inline-block; break-inside: avoid; margin: 0 0 10px; vertical-align: top; overflow: hidden; cursor: pointer; background: white; border: 1px solid #e7ebe7; border-radius: 14px; transition: border-color .18s, transform .18s; }
.home-product-card:hover { border-color: #b6cabe; transform: translateY(-1px); }
.home-product-visual { height: 116px; display: grid; place-items: center; position: relative; overflow: hidden; background: #e8efe9; color: var(--forest-600); }
.home-product-visual.tall { height: 148px; }
.home-product-visual::after { content: ""; position: absolute; width: 90px; height: 90px; border: 1px solid currentColor; border-radius: 50%; opacity: .09; }
.home-product-visual > .icon { width: 42px; height: 42px; stroke-width: 1.35; }
.home-product-visual.tall > .icon { width: 52px; height: 52px; }
.home-product-visual.gold { background: #f3e8d7; color: #aa7a3a; }
.home-product-visual.blue { background: #e4eef0; color: #4f7c88; }
.home-product-visual.rose { background: #f0e5e2; color: #9b6960; }
.home-product-source, .home-product-hot { position: absolute; top: 8px; z-index: 1; padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.8); color: var(--forest-800); font-size: 7px; font-weight: 600; }
.home-product-source { left: 8px; }
.home-product-hot { right: 8px; background: #a95c3d; color: white; }
.home-product-info { padding: 10px; }
.home-product-tag { display: block; width: fit-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 5px; border-radius: 4px; background: var(--forest-50); color: var(--forest-700); font-size: 7px; }
.home-product-info h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0 4px; font-size: 11px; line-height: 1.5; }
.home-product-info > p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 0 8px; color: var(--muted); font-size: 8px; }
.home-product-price { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.home-product-price .price { font-size: 17px; white-space: nowrap; }
.home-product-price .price del { display: block; margin: 1px 0 0; font-size: 8px; }
.home-product-add { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--forest-700); color: white; }
.home-product-add .icon { width: 14px; height: 14px; }
.home-product-sold { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; }
.home-feed-end { margin: 4px 0 16px; color: var(--muted-light); text-align: center; font-size: 8px; }
.home-queue-card { margin-top: 16px; padding: 14px 15px; background: #eef3ef; border-radius: 14px; display: flex; align-items: center; gap: 12px; border: 1px solid #dfe8e1; }.home-queue-card > span:first-child { width: 35px; height: 35px; border-radius: 11px; background: white; color: var(--forest-700); display: grid; place-items: center; }.home-queue-card > span .icon { width: 18px; height: 18px; }.home-queue-card > div { flex: 1; }.home-queue-card strong { display: block; font-size: 11px; }.home-queue-card small { color: var(--muted); font-size: 9px; }.home-queue-card > b { color: var(--forest-700); font-size: 12px; }
.store-list { display: flex; flex-direction: column; gap: 12px; }.store-card { background: white; border: 1px solid #e7ebe7; border-radius: 16px; padding: 14px; cursor: pointer; transition: border-color .18s, transform .18s; }.store-card:hover { border-color: #b6cabe; transform: translateY(-1px); }
.store-card-top { display: flex; gap: 11px; }.store-logo { width: 50px; height: 50px; border-radius: 14px; background: var(--forest-900); color: #e2c18b; display: grid; place-items: center; font-size: 18px; font-family: "STKaiti", "KaiTi", serif; flex: 0 0 auto; }.store-logo.gold { background: #9a6c36; color: white; }.store-logo.blue { background: #426878; color: white; }.store-logo.rose { background: #805c59; color: white; }.store-card-info { flex: 1; min-width: 0; }.store-card-info h3 { margin: 1px 0 5px; font-size: 13px; }.store-card-info p { margin: 0; color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.store-rating { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 9px; }.store-rating strong { color: var(--gold-600); }.store-rating span { color: var(--muted); }.store-card > .store-activity { margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf0ed; display: flex; align-items: center; gap: 7px; color: var(--forest-700); font-size: 9px; }.store-activity .badge { font-size: 8px; min-height: 19px; padding: 1px 6px; }.store-activity span:last-child { margin-left: auto; color: var(--muted); }
.store-banner { margin: 0 -16px; min-height: 150px; padding: 24px 20px; background: var(--forest-900); color: white; position: relative; overflow: hidden; }.store-banner::after { content: "北"; position: absolute; right: 20px; bottom: -30px; font-family: "KaiTi",serif; font-size: 130px; color: rgba(255,255,255,.045); }.store-banner .store-logo { margin-bottom: 13px; background: rgba(255,255,255,.12); }.store-banner h1 { font-size: 20px; margin: 0 0 7px; position: relative; z-index: 1; }.store-banner p { margin: 0; color: #bfd1c8; font-size: 10px; position: relative; z-index: 1; }.store-banner .store-rating { color: white; position: relative; z-index: 1; }.store-banner .store-rating span { color: #bfd1c8; }
.store-address { display: flex; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }.store-address > .icon { color: var(--forest-600); width: 17px; }.store-address > div { flex: 1; }.store-address strong { display: block; font-size: 10px; }.store-address small { color: var(--muted); font-size: 9px; }.store-address button { border: 0; background: var(--forest-50); color: var(--forest-700); border-radius: 999px; padding: 5px 10px; font-size: 9px; }
.activity-info-card { padding: 13px; background: var(--gold-50); border: 1px solid #eee1cb; border-radius: 13px; margin-top: 14px; }.activity-info-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.activity-info-card strong { font-size: 11px; color: #75501f; }.activity-info-card p { color: #86683f; font-size: 9px; line-height: 1.7; margin: 8px 0 0; }.activity-info-card button { border: 0; background: transparent; color: var(--gold-700); font-size: 9px; padding: 0; }
.product-list { display: flex; flex-direction: column; gap: 11px; }.product-card { display: flex; gap: 12px; padding: 11px; background: white; border: 1px solid #e8ece8; border-radius: 14px; }.product-visual { width: 82px; height: 82px; border-radius: 11px; background: #e8efe9; color: var(--forest-600); display: grid; place-items: center; position: relative; flex: 0 0 auto; overflow: hidden; }.product-visual::after { content: ""; position: absolute; width: 55px; height: 55px; border: 1px solid currentColor; border-radius: 50%; opacity: .09; }.product-visual .icon { width: 31px; height: 31px; }.product-visual.gold { background: #f3e8d7; color: #aa7a3a; }.product-visual.blue { background: #e4eef0; color: #4f7c88; }.product-visual.rose { background: #f0e5e2; color: #9b6960; }.product-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }.product-card-info h3 { font-size: 12px; margin: 1px 0 4px; }.product-card-info > p { font-size: 9px; color: var(--muted); margin: 0; line-height: 1.5; }.product-meta { display: flex; gap: 5px; margin-top: 6px; }.product-meta .badge { font-size: 8px; min-height: 18px; }.product-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }.price { color: #b16435; font-weight: 800; font-size: 16px; letter-spacing: -.02em; }.price small { font-size: 9px; font-weight: 500; }.price del { color: var(--muted-light); font-size: 9px; font-weight: 400; margin-left: 4px; }.add-button { width: 27px; height: 27px; border: 0; border-radius: 50%; background: var(--forest-700); color: white; display: grid; place-items: center; }.add-button .icon { width: 15px; height: 15px; }
.product-detail-visual { margin: 0 -16px; height: 205px; background: #e5eee7; color: var(--forest-600); display: grid; place-items: center; position: relative; overflow: hidden; }.product-detail-visual::before, .product-detail-visual::after { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 50%; opacity: .1; }.product-detail-visual::before { width: 210px; height: 210px; right: -50px; top: -70px; }.product-detail-visual::after { width: 130px; height: 130px; left: -30px; bottom: -60px; }.product-detail-visual .icon { width: 72px; height: 72px; stroke-width: 1.2; }.product-detail-visual span { position: absolute; left: 18px; bottom: 15px; font-size: 9px; color: var(--forest-700); background: rgba(255,255,255,.7); padding: 4px 8px; border-radius: 999px; }
.product-title-block { padding: 18px 0 14px; }.product-title-block .price { font-size: 24px; }.product-title-block h1 { font-size: 18px; margin: 9px 0 6px; }.product-title-block p { color: var(--muted); font-size: 10px; margin: 0; }
.service-promises { display: flex; gap: 12px; flex-wrap: wrap; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.service-promises span { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 9px; }.service-promises .icon { width: 12px; height: 12px; color: var(--forest-600); }
.rule-summary { padding: 14px; border-radius: 14px; background: var(--forest-900); color: white; }.rule-summary > div { display: flex; justify-content: space-between; align-items: center; }.rule-summary h3 { margin: 0; font-size: 12px; }.rule-summary button { border: 0; background: transparent; color: #d9bd8c; font-size: 9px; }.rule-summary p { margin: 9px 0 0; color: #b8cdc3; font-size: 9px; line-height: 1.7; }.rule-summary strong { color: #e5c794; }
.mobile-sticky-action { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; backdrop-filter: blur(10px); }.mobile-sticky-action > div { flex: 1; }.mobile-sticky-action .price { font-size: 20px; }.mobile-sticky-action small { display: block; color: var(--muted); font-size: 8px; }.mobile-sticky-action .btn { min-width: 130px; min-height: 44px; border-radius: 999px; }
.quantity-control { display: inline-flex; align-items: center; gap: 12px; }.quantity-control button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: white; display: grid; place-items: center; }.quantity-control .icon { width: 14px; height: 14px; }.quantity-control strong { min-width: 14px; text-align: center; }
.checkout-card { padding: 15px 0; border-bottom: 1px solid var(--line); }.checkout-card h3 { font-size: 12px; margin-bottom: 12px; }.checkout-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 11px; }.checkout-line > span:first-child { color: var(--muted); }.checkout-line button { border: 0; background: transparent; display: flex; align-items: center; gap: 4px; color: var(--forest-700); padding: 0; font-size: 11px; }.checkout-line .icon { width: 13px; height: 13px; }.checkout-line.total { font-weight: 700; font-size: 13px; padding-top: 12px; }.checkout-line.total .price { font-size: 20px; }
.q-explain { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--forest-50); }.q-explain > div { display: flex; justify-content: space-between; align-items: center; }.q-explain span { font-size: 10px; color: var(--forest-800); }.q-explain strong { font-size: 16px; color: var(--forest-700); }.q-explain p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.6; }
.coupon-options { display: flex; flex-direction: column; gap: 10px; }.coupon-option { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }.coupon-option.selected { border-color: var(--forest-500); background: var(--forest-50); }.coupon-option input { accent-color: var(--forest-600); }.coupon-option > div { flex: 1; }.coupon-option strong { display: block; font-size: 11px; }.coupon-option small { display: block; color: var(--muted); font-size: 9px; }.coupon-option > b { color: #ae6437; }
.order-success { text-align: center; padding: 30px 0 22px; }.success-check { width: 64px; height: 64px; border-radius: 50%; background: var(--forest-100); color: var(--forest-700); display: grid; place-items: center; margin: 0 auto 15px; }.success-check .icon { width: 34px; height: 34px; }.order-success h1 { font-size: 20px; margin-bottom: 7px; }.order-success p { color: var(--muted); font-size: 10px; }.order-success .price { font-size: 27px; color: var(--forest-950); }
.verification-code { text-align: center; padding: 20px 14px; background: var(--forest-900); color: white; border-radius: 16px; }.verification-code small { color: #afc5bb; font-size: 9px; }.verification-code strong { display: block; font-family: Consolas,monospace; font-size: 32px; letter-spacing: .25em; margin: 10px 0 10px; padding-left: .25em; }.verification-code p { margin: 0; color: #afc5bb; font-size: 8px; }
.order-steps { display: flex; justify-content: space-between; margin: 20px 0; position: relative; }.order-steps::before { content: ""; position: absolute; top: 11px; left: 12%; right: 12%; height: 1px; background: var(--line-strong); }.order-step { flex: 1; text-align: center; position: relative; z-index: 1; }.order-step > span { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: #e7ebe8; color: var(--muted); margin: 0 auto 6px; }.order-step.done > span { background: var(--forest-600); color: white; }.order-step.current > span { background: var(--gold-100); color: var(--gold-700); box-shadow: 0 0 0 4px #faf3e7; }.order-step .icon { width: 12px; height: 12px; }.order-step small { font-size: 8px; color: var(--muted); }.order-step.done small, .order-step.current small { color: var(--ink); }

/* APP 排队 */
.queue-overview { background: var(--forest-900); color: white; margin: 0 -16px; padding: 8px 20px 22px; border-radius: 0 0 24px 24px; }.queue-overview .mobile-header { color: white; }.queue-overview .mobile-icon-btn { background: rgba(255,255,255,.1); color: white; }.queue-overview-head { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 8px; }.queue-overview-head small { color: #b0c6bc; font-size: 9px; }.queue-overview-head strong { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.04em; }.queue-overview-head > span { color: #d7bb8a; font-size: 10px; padding-bottom: 7px; }
.queue-summary-stats { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 18px; }.queue-summary-stats > div { border-left: 1px solid rgba(255,255,255,.13); padding-left: 14px; }.queue-summary-stats > div:first-child { border-left: 0; padding-left: 0; }.queue-summary-stats small { color: #acc2b8; font-size: 8px; }.queue-summary-stats strong { display: block; font-size: 14px; margin-top: 2px; }
.app-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 16px 0 14px; }.app-tabs button { border: 0; background: transparent; color: var(--muted); padding: 0 0 10px; font-size: 11px; position: relative; }.app-tabs button.active { color: var(--forest-800); font-weight: 700; }.app-tabs button.active::after { content: ""; position: absolute; height: 2px; border-radius: 2px; background: var(--forest-600); left: 25%; right: 25%; bottom: -1px; }
.queue-list { display: flex; flex-direction: column; gap: 12px; }.queue-card { padding: 15px; background: white; border: 1px solid #e5eae6; border-radius: 16px; cursor: pointer; }.queue-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.queue-card-head h3 { margin: 0 0 4px; font-size: 12px; }.queue-card-head p { margin: 0; color: var(--muted); font-size: 8px; }.queue-card-amount { display: flex; align-items: flex-end; justify-content: space-between; margin: 18px 0 10px; }.queue-card-amount small { color: var(--muted); font-size: 8px; display: block; }.queue-card-amount strong { font-size: 24px; letter-spacing: -.04em; }.queue-card-amount > span { color: var(--muted); font-size: 9px; padding-bottom: 4px; }.queue-card .progress-track { height: 5px; }.queue-card-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 8px; }.queue-card-foot strong { color: var(--forest-700); }
.queue-detail-hero { margin: 0 -16px; padding: 5px 20px 24px; background: var(--forest-900); color: white; border-radius: 0 0 24px 24px; }.queue-detail-hero .mobile-back, .queue-detail-hero .mobile-icon-btn { background: rgba(255,255,255,.1); color: white; }.queue-detail-status { text-align: center; padding-top: 7px; }.queue-detail-status > .badge { background: rgba(255,255,255,.12); color: #e6c892; }.queue-detail-status h1 { font-size: 18px; margin: 12px 0 4px; }.queue-detail-status > p { color: #b4c9bf; font-size: 9px; margin-bottom: 20px; }.queue-detail-status .reward-number small { color: #b4c9bf; font-size: 9px; }.queue-detail-status .reward-number strong { display: block; font-size: 35px; font-weight: 600; letter-spacing: -.04em; }.queue-detail-status .progress-track { background: rgba(255,255,255,.15); margin-top: 18px; }.queue-detail-status .progress-track i { background: #d5b475; }.queue-detail-status .progress-caption { color: #b4c9bf; }
.queue-number-grid { display: grid; grid-template-columns: repeat(3,1fr); background: white; border-radius: 14px; margin: -10px 0 16px; padding: 15px 5px; position: relative; box-shadow: 0 6px 20px rgba(22,54,43,.06); }.queue-number-grid > div { text-align: center; border-left: 1px solid var(--line); }.queue-number-grid > div:first-child { border-left: 0; }.queue-number-grid small { display: block; color: var(--muted); font-size: 8px; }.queue-number-grid strong { font-size: 14px; }
.reward-demo-button { border: 1px dashed #b6cabd; background: var(--forest-50); color: var(--forest-700); width: 100%; padding: 11px; border-radius: 11px; font-size: 10px; display: flex; align-items: center; justify-content: center; gap: 7px; }.reward-demo-button .icon { width: 15px; height: 15px; }
.detail-list { padding: 4px 0; }.detail-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid #edf0ed; font-size: 10px; }.detail-line:last-child { border-bottom: 0; }.detail-line > span { color: var(--muted); }.detail-line > strong { text-align: right; font-weight: 600; }.detail-line small { display: block; color: var(--muted); font-size: 8px; font-weight: 400; margin-top: 2px; }
.mobile-timeline { padding: 3px 0; }.mobile-timeline-item { display: flex; gap: 11px; position: relative; padding-bottom: 18px; }.mobile-timeline-item:last-child { padding-bottom: 0; }.mobile-timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 0; width: 1px; background: var(--line-strong); }.timeline-dot { width: 11px; height: 11px; border: 2px solid #bdc9c2; border-radius: 50%; background: white; margin-top: 3px; z-index: 1; }.mobile-timeline-item.done .timeline-dot { border-color: var(--forest-600); background: var(--forest-600); box-shadow: inset 0 0 0 2px white; }.mobile-timeline-item > div { flex: 1; }.mobile-timeline-item strong { display: block; font-size: 10px; }.mobile-timeline-item p { margin: 2px 0 0; color: var(--muted); font-size: 8px; line-height: 1.6; }.mobile-timeline-item time { color: var(--muted-light); font-size: 8px; }

/* APP 资产与我的 */
.wallet-hero { margin: 0 -16px; padding: 8px 20px 25px; background: var(--forest-900); color: white; border-radius: 0 0 24px 24px; }.wallet-hero .mobile-header { color: white; }.wallet-hero .mobile-icon-btn { background: rgba(255,255,255,.1); color: white; }.wallet-balance { margin-top: 12px; }.wallet-balance small { color: #b2c7bd; font-size: 9px; }.wallet-balance strong { display: block; font-size: 35px; font-weight: 600; letter-spacing: -.04em; }.wallet-balance > span { color: #b2c7bd; font-size: 8px; }.wallet-actions { display: flex; gap: 10px; margin-top: 20px; }.wallet-actions .btn { flex: 1; border-radius: 999px; min-height: 39px; font-size: 11px; }.wallet-actions .btn-ghost { border: 1px solid rgba(255,255,255,.25); color: white; }.wallet-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }.wallet-secondary > div { padding: 13px 14px; background: rgba(255,255,255,.07); border-radius: 12px; }.wallet-secondary small { display: block; color: #b2c7bd; font-size: 8px; }.wallet-secondary strong { font-size: 15px; }
.marketing-assets { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.marketing-asset { padding: 14px; background: white; border: 1px solid var(--line); border-radius: 14px; text-align: left; }.marketing-asset > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--gold-50); color: var(--gold-600); margin-bottom: 12px; }.marketing-asset:nth-child(2) > span { background: var(--forest-50); color: var(--forest-600); }.marketing-asset .icon { width: 18px; height: 18px; }.marketing-asset small { display: block; color: var(--muted); font-size: 8px; }.marketing-asset strong { display: block; font-size: 18px; }.marketing-asset p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.coupon-list { display: flex; flex-direction: column; gap: 11px; }.coupon-card { display: flex; min-height: 94px; border-radius: 14px; background: white; overflow: hidden; border: 1px solid #e8e4dd; cursor: pointer; }.coupon-value { width: 103px; flex: 0 0 103px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f3e6d3; color: #9c6430; position: relative; }.coupon-value::after { content: ""; position: absolute; right: 0; top: 8px; bottom: 8px; border-right: 1px dashed rgba(156,100,48,.3); }.coupon-value strong { font-size: 26px; line-height: 1; }.coupon-value strong small { font-size: 12px; }.coupon-value span { font-size: 8px; margin-top: 7px; }.coupon-info { flex: 1; padding: 13px 14px; }.coupon-info h3 { font-size: 11px; margin: 0 0 5px; }.coupon-info p { margin: 0; color: var(--muted); font-size: 8px; }.coupon-info .coupon-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 11px; }.coupon-info .coupon-foot span { color: var(--muted-light); font-size: 8px; }.coupon-info .coupon-foot b { font-size: 8px; color: var(--forest-600); }
.reward-ledger { display: flex; flex-direction: column; }.ledger-item { display: flex; gap: 11px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }.ledger-item:last-child { border-bottom: 0; }.ledger-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--forest-50); color: var(--forest-600); display: grid; place-items: center; }.ledger-icon .icon { width: 16px; height: 16px; }.ledger-item > div { flex: 1; }.ledger-item strong { display: block; font-size: 10px; }.ledger-item small { display: block; color: var(--muted); font-size: 8px; }.ledger-amount { text-align: right; }.ledger-amount strong { color: var(--forest-600); font-size: 12px; }.ledger-amount small { font-size: 8px; }
.profile-head { display: flex; align-items: center; gap: 13px; padding: 12px 0 20px; }.profile-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--forest-900); color: #e4c592; display: grid; place-items: center; font-size: 20px; font-family: "KaiTi",serif; }.profile-info { flex: 1; }.profile-info h1 { font-size: 18px; margin: 0 0 3px; }.profile-info p { color: var(--muted); font-size: 9px; margin: 0; }.member-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; color: var(--gold-700); background: var(--gold-50); border-radius: 999px; padding: 3px 8px; font-size: 8px; }.member-badge .icon { width: 11px; height: 11px; }
.profile-assets { display: grid; grid-template-columns: repeat(4,1fr); padding: 15px 4px; background: white; border: 1px solid var(--line); border-radius: 15px; }.profile-assets button { border: 0; border-left: 1px solid var(--line); background: transparent; padding: 0; }.profile-assets button:first-child { border-left: 0; }.profile-assets strong { display: block; font-size: 15px; }.profile-assets span { color: var(--muted); font-size: 8px; }
.profile-menu { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 2px 14px; }.profile-menu button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px 0; border: 0; border-top: 1px solid #edf0ed; background: transparent; text-align: left; }.profile-menu button:first-child { border-top: 0; }.profile-menu button > .icon { width: 17px; height: 17px; color: var(--forest-600); }.profile-menu button > span { flex: 1; font-size: 11px; }.profile-menu button > small { color: var(--muted); font-size: 8px; }.profile-menu button > .chevron { width: 13px; height: 13px; color: var(--muted-light); }
.bound-store { padding: 14px; border-radius: 14px; background: #edf2ee; }.bound-store-head { display: flex; align-items: center; gap: 9px; }.bound-store-head .store-logo { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }.bound-store-head > div { flex: 1; }.bound-store-head strong { display: block; font-size: 10px; }.bound-store-head small { color: var(--muted); font-size: 8px; }.bound-store p { margin: 10px 0 0; color: var(--muted); font-size: 8px; line-height: 1.7; }
.app-sheet { width: min(390px, 100vw); max-width: 100vw; max-height: min(78dvh, 720px); margin: auto auto 0; border-radius: 22px 22px 0 0; overflow-y: auto; }
.app-sheet .sheet-head { padding: 19px 20px 15px; }.app-sheet .sheet-body { padding: 18px 20px; }.app-sheet .sheet-foot { padding: 13px 20px max(13px,env(safe-area-inset-bottom)); }.app-sheet .sheet-head h2 { font-size: 16px; }
.app-modal { width: min(350px, calc(100vw - 32px)); border-radius: 18px; }.app-modal .modal-head { padding: 20px; }.app-modal .modal-body { padding: 20px; }.app-modal .modal-foot { padding: 14px 20px; }
.withdraw-amount { position: relative; margin: 14px 0; }.withdraw-amount > span { position: absolute; left: 0; top: 16px; font-size: 24px; }.withdraw-amount input { width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 10px 0 13px 28px; font-size: 32px; font-weight: 600; outline: none; }.withdraw-amount input:focus { border-color: var(--forest-600); }
.account-option { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--forest-500); border-radius: 11px; background: var(--forest-50); }.account-option > .icon { color: var(--forest-600); }.account-option > div { flex: 1; }.account-option strong { display: block; font-size: 11px; }.account-option small { color: var(--muted); font-size: 9px; }

/* 响应式 */
@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid, .verify-layout { grid-template-columns: 1fr; }
  .asset-account-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portal-intro { grid-template-columns: 1fr; gap: 28px; }
  .intro-meta { padding: 0; }
  .experience-strip { grid-template-columns: 1fr; }
  .journey-list { flex-wrap: wrap; justify-content: flex-start; gap: 20px; }
  .journey-list li { flex: 0 0 28%; }.journey-list li::after { display: none; }
  .activity-budget { grid-template-columns: repeat(2,1fr); }.activity-budget > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 960px) {
  .merchant-shell { grid-template-columns: 82px minmax(0,1fr); }
  .merchant-sidebar { padding: 22px 10px 16px; }
  .side-brand { justify-content: center; padding: 0 0 22px; }.side-brand img { width: 52px; }.side-brand > span, .store-switch > span:not(.store-avatar), .sidebar-foot .compliance-note, .switch-terminal, .side-user > span:nth-child(2), .side-user .icon-button { display: none; }
  .store-switch { justify-content: center; padding: 10px; }.store-avatar { width: 34px; height: 34px; }
  .nav-item { justify-content: center; padding: 10px; position: relative; font-size: 0; }.nav-item .icon { width: 20px; height: 20px; }.nav-item.active { box-shadow: inset 3px 0 #d1aa6c; }.nav-count { position: absolute; right: 3px; top: 2px; font-size: 8px; min-width: 16px; height: 16px; }.nav-dot { position: absolute; right: 6px; top: 7px; }
  .sidebar-foot { display: flex; justify-content: center; }.side-user { border: 0; padding: 0; margin: 0; }
  .app-layout { grid-template-columns: 310px minmax(430px,1fr); }.prototype-guide { padding-left: 26px; padding-right: 26px; }
}
@media (max-width: 800px) {
  .portal-header, .portal-main, .portal-footer { padding-left: 24px; padding-right: 24px; }
  .entry-grid { grid-template-columns: 1fr; }.entry-card { min-height: 530px; }
  .portal-notes { gap: 28px; }
  .app-body { overflow: auto; }.app-layout { display: block; }.prototype-guide, .device-caption, .device-hint { display: none; }
  .device-stage { padding: 0; display: block; background: #f7f8f5; }.device { width: 100%; height: 100dvh; min-height: 580px; border: 0; border-radius: 0; box-shadow: none; }.device-screen { border-radius: 0; }.device-notch { display: none; }.app-statusbar { padding-top: max(11px,env(safe-area-inset-top)); height: calc(38px + env(safe-area-inset-top)); flex-basis: calc(38px + env(safe-area-inset-top)); }
  .app-sheet { width: 100%; }
}
@media (max-width: 680px) {
  .merchant-shell { display: block; }
  .merchant-sidebar { position: static; width: 100%; height: auto; min-height: 0; padding: 13px 14px 0; overflow: visible; display: block; }
  .side-brand { justify-content: flex-start; padding: 0 0 12px; }.side-brand img { width: 63px; }.side-brand > span { display: flex; }.store-switch, .sidebar-foot { display: none; }
  .merchant-nav { flex-direction: row; overflow-x: auto; gap: 3px; padding-bottom: 10px; scrollbar-width: none; }.merchant-nav::-webkit-scrollbar { display: none; }.nav-item { flex: 0 0 auto; width: auto; min-height: 37px; font-size: 10px; padding: 7px 10px; gap: 6px; }.nav-item .icon { width: 15px; height: 15px; }.nav-item.active { box-shadow: none; }.nav-count { position: static; min-width: 17px; height: 17px; font-size: 8px; }.nav-dot { position: static; }
  .merchant-topbar { height: 52px; padding: 0 16px; }.breadcrumb span, .breadcrumb b { display: none; }.demo-pill { display: none; }
  .merchant-content { padding: 20px 14px 36px; }.page-heading { flex-direction: column; gap: 14px; }.page-heading h1 { font-size: 22px; }.heading-actions { width: 100%; }.heading-actions .btn { flex: 1; }
  .metric-grid { gap: 10px; }.metric-card { padding: 15px; }.metric-card .metric-value { font-size: 21px; }.metric-card .metric-label { font-size: 10px; }
  .panel { padding: 17px; border-radius: 14px; }.order-mini { grid-template-columns: 1fr auto; gap: 7px; }.order-mini .order-time { display: none; }.order-mini .badge { justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }.form-grid .span-2 { grid-column: auto; }
  .rule-grid { grid-template-columns: 1fr 1fr; }.activity-budget { gap: 16px 8px; }.activity-budget strong { font-size: 16px; }.activity-budget > div:first-child strong { font-size: 22px; }.activity-hero { padding: 20px; }
  .data-table.responsive-table thead { display: none; }.data-table.responsive-table, .data-table.responsive-table tbody, .data-table.responsive-table tr, .data-table.responsive-table td { display: block; width: 100%; }.data-table.responsive-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }.data-table.responsive-table tr:last-child { border-bottom: 0; }.data-table.responsive-table td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 2px; border: 0; text-align: right; }.data-table.responsive-table td::before { content: attr(data-label); color: var(--muted); font-size: 10px; text-align: left; flex: 0 0 auto; }.data-table.responsive-table td:first-child { padding-top: 0; }.data-table.responsive-table .cell-actions { text-align: right; }.data-table.responsive-table .product-name-cell { text-align: left; }.table-wrap { overflow: visible; }
  .table-footer { flex-direction: column; align-items: flex-start; }.search-field { min-width: 100%; }
  .portal-header { padding-top: 18px; }.portal-header > .prototype-label { display: none; }.portal-brand > span { display: none; }
  .portal-main { padding-top: 20px; }.portal-intro { padding: 20px 0 34px; }.portal-intro h1 { font-size: 38px; }.intro-copy { font-size: 13px; }.intro-meta { gap: 26px; }.intro-meta strong { font-size: 23px; }
  .entry-card { padding: 26px 24px 0; min-height: 540px; }.entry-card h2 { font-size: 25px; }.entry-features { grid-template-columns: 1fr; gap: 6px; }.merchant-preview { margin-right: -24px; width: 88%; }.phone-preview { padding-right: 12px; }
  .experience-strip { padding: 24px; }.journey-list { display: grid; grid-template-columns: 1fr 1fr; }.journey-list li { flex: auto; }.portal-notes { grid-template-columns: 1fr; gap: 20px; }.portal-footer { flex-direction: column; gap: 5px; }
  .toast-region { top: 14px; right: 14px; left: 14px; }.toast { min-width: 0; max-width: none; width: 100%; }
  .form-grid { gap: 14px; }.key-values { grid-template-columns: 90px 1fr; }
}
@media (max-width: 390px) {
  .metric-grid { grid-template-columns: 1fr; }.asset-account-grid { grid-template-columns: 1fr; }
  .mobile-page { padding-left: 14px; padding-right: 14px; }.coupon-value { width: 90px; flex-basis: 90px; }.queue-number-grid strong { font-size: 12px; }
}
@media (hover: none) {
  .entry-card:hover, .store-card:hover { transform: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
