/* ============================================================
   W-Coming · 全局样式
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.7; color: #0f172a; background: #fff;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.link { color: #4f46e5; }

:root {
  --brand-50: #eef2ff; --brand-100: #e0e7ff; --brand-200: #c7d2fe;
  --brand-500: #6366f1; --brand-600: #4f46e5; --brand-700: #4338ca; --brand-800: #3730a3;
  --accent: #06b6d4; --ink: #0f172a; --ink-2: #334155; --ink-3: #64748b;
  --line: #e2e8f0; --bg-soft: #f8fafc;
  --ok: #10b981; --warn: #f59e0b; --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.05);
  --shadow-lg: 0 20px 40px -10px rgba(15,23,42,.18), 0 8px 16px -8px rgba(15,23,42,.10);
  --radius: 14px; --radius-lg: 20px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: 1px solid transparent; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 6px 16px -6px rgba(79,70,229,.5); }
.btn-primary:hover { background: var(--brand-700); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-600); }
.btn-dark { background: #0f172a; color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-danger-ghost:hover { background: #fef2f2; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.linklike { color: var(--brand-600); font-weight: 500; }
.linklike:hover { text-decoration: underline; }
.inline-form { display: inline; }
.fr { float: right; }

/* ===== 徽章 ===== */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-brand { background: var(--brand-50); color: var(--brand-700); }
.b-ok { background: #ecfdf5; color: #059669; }
.b-warn { background: #fffbeb; color: #b45309; }
.b-danger { background: #fef2f2; color: #dc2626; }
.b-gray { background: #f1f5f9; color: #475569; }
.b-info { background: #eff6ff; color: #1d4ed8; }
.b-violet { background: #f5f3ff; color: #6d28d9; }
.b-amber { background: #fffbeb; color: #b45309; }

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.5px; color: var(--brand-800); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand-600), var(--accent));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 14px -4px rgba(79,70,229,.5);
}
.nav-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.on { color: var(--brand-600); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.nav-auth { display: flex; gap: 10px; align-items: center; }
.nav-link { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-link:hover { color: var(--brand-600); }
.nav-admin { color: var(--brand-600); }
.nav-cart { position: relative; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.cart-badge {
  position: absolute; top: -8px; right: -12px; background: var(--danger); color: #fff;
  border-radius: 999px; font-size: 11px; padding: 1px 6px; font-weight: 700;
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(6,182,212,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(99,102,241,.16), transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13px; color: var(--ink-2); margin-bottom: 24px;
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
.hero-title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -1px; line-height: 1.2; margin-bottom: 18px; }
.grad { background: linear-gradient(90deg, var(--brand-600), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17px; color: var(--ink-3); max-width: 720px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.shop-hero { padding: 64px 0 72px; }

.stat-strip {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 48px;
}
.stat {
  background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 26px; min-width: 170px; box-shadow: var(--shadow-sm); text-align: center;
}
.stat-num { font-size: 26px; font-weight: 800; background: linear-gradient(135deg, var(--brand-600), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* ===== 通用 section ===== */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 10px; }
.section-head p { color: var(--ink-3); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--brand-600); background: var(--brand-50); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }

.page-head { padding: 36px 0 20px; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.page-head p { color: var(--ink-3); margin-top: 4px; }

/* ===== 图标 ===== */
.ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; background: #f1f5f9; flex: none;
}
.ico-blue { background: #eff6ff; } .ico-cyan { background: #ecfeff; }
.ico-violet { background: #f5f3ff; } .ico-amber { background: #fffbeb; }
.ico-emerald { background: #ecfdf5; } .ico-rose { background: #fff1f2; } .ico-red { background: #fef2f2; }
.grad-sm { color: #334155; }

/* ===== 痛点 ===== */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 40px; }
.pain-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.pain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pain-card h3 { font-size: 17px; margin: 14px 0 6px; }
.pain-card p { color: var(--ink-3); font-size: 14.5px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 0 auto; }
.compare-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.compare-col.win { border-color: var(--brand-200); background: linear-gradient(180deg, #f5f7ff, #fff); box-shadow: var(--shadow-md); }
.compare-head { font-weight: 800; font-size: 16px; margin-bottom: 12px; }
.compare-col.win .compare-head { color: var(--brand-700); }
.compare-col li { padding: 7px 0; font-size: 14.5px; color: var(--ink-2); }
.compare-col li.no { color: var(--ink-3); }

/* ===== 功能矩阵 ===== */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.feat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feat-card h3 { font-size: 17px; margin: 14px 0 6px; }
.feat-card p { color: var(--ink-3); font-size: 14.5px; }

/* ===== 业务链路 ===== */
.chain { display: flex; align-items: stretch; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chain-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; width: 210px; box-shadow: var(--shadow-sm); position: relative;
}
.chain-step h3 { font-size: 15.5px; margin: 10px 0 6px; }
.chain-step p { font-size: 13px; color: var(--ink-3); }
.chain-num {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--accent)); color: #fff; font-weight: 800;
}
.chain-arrow { display: grid; place-items: center; color: var(--brand-400, #818cf8); font-size: 22px; font-weight: 800; }

/* ===== 页面展示 shots ===== */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.shot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.s-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.shot-title { margin-left: 6px; font-size: 12px; color: var(--ink-3); }
.shot-body { padding: 18px; min-height: 190px; background: #fff; }
.ss-banner { height: 44px; border-radius: 8px; background: linear-gradient(135deg, #6366f1, #06b6d4); opacity: .85; margin-bottom: 12px; }
.ss-row { display: flex; gap: 8px; }
.ss-card { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.ss-emoji { font-size: 24px; }
.ss-line { height: 8px; border-radius: 4px; background: #e2e8f0; margin: 6px 0; }
.ss-line.w60 { width: 60%; } .ss-line.w40 { width: 40%; } .ss-line.w50 { width: 50%; }
.ss-line.w70 { width: 70%; } .ss-line.w80 { width: 80%; }
.ss-line.gold { background: #fbbf24; } .ss-line.gray { background: #f1f5f9; }
.ss-line.center { margin: 10px auto; }
.ss-price { font-size: 28px; font-weight: 800; text-align: center; margin: 6px 0 10px; color: var(--brand-600); }
.ss-channel { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ss-c { border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; font-size: 12px; color: var(--ink-3); }
.ss-c.on { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-50); }
.ss-btn { background: var(--brand-600); color: #fff; text-align: center; padding: 9px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.ss-steps { display: flex; gap: 6px; font-size: 11px; margin-bottom: 12px; }
.ss-steps span { border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; color: var(--ink-3); }
.ss-steps span.on { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.ss-steps span.now { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand-200); }
.ss-key { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 6px; padding: 6px 8px; margin: 6px 0; }
.ss-stats { display: flex; gap: 8px; margin-bottom: 14px; }
.ss-stat { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.ss-big { font-weight: 800; font-size: 15px; margin-top: 4px; }
.ss-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.ss-bars i { flex: 1; background: linear-gradient(180deg, #818cf8, #6366f1); border-radius: 4px 4px 0 0; }

/* ===== 演示入口 ===== */
.try-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.try-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; text-align: center; box-shadow: var(--shadow-sm); }
.try-card .ico { margin: 0 auto 14px; }
.try-card h3 { font-size: 19px; margin-bottom: 8px; }
.try-card p { color: var(--ink-3); font-size: 14.5px; min-height: 52px; }
.try-account { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 10px; font-size: 14px; margin: 16px 0; color: var(--ink-2); }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 4px 20px; }
.faq summary { font-weight: 600; padding: 14px 0; cursor: pointer; list-style: none; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--brand-600); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--ink-3); font-size: 14.5px; }

/* ===== Big CTA ===== */
.big-cta {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600) 60%, #0e7490);
  color: #fff; text-align: center; padding: 80px 0;
}
.big-cta h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 10px; }
.big-cta p { opacity: .85; margin-bottom: 26px; }
.big-cta .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }

/* ===== 页脚 ===== */
.site-foot { background: #0f172a; color: #cbd5e1; padding: 56px 0 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.brand-foot { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.foot-grid p { font-size: 14px; }
.foot-grid h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.foot-grid li { margin-bottom: 8px; font-size: 14px; }
.foot-grid a:hover { color: #fff; }
.legal { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 24px; font-size: 12.5px; color: #94a3b8; }

/* ===== 公告 ===== */
.announce { background: linear-gradient(90deg, var(--brand-600), var(--accent)); color: #fff; padding: 10px 0; font-size: 14px; text-align: center; }

/* ===== 商品卡片 ===== */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pgrid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard-img { height: 130px; display: grid; place-items: center; position: relative; }
.pcard-emoji { font-size: 52px; filter: drop-shadow(0 6px 10px rgba(15,23,42,.12)); }
.pcard-badge {
  position: absolute; top: 12px; left: 12px; background: var(--danger); color: #fff;
  font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
}
.grad-blue { background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.grad-rose { background: linear-gradient(135deg, #ffe4e6, #fff1f2); }
.grad-violet { background: linear-gradient(135deg, #ede9fe, #f5f3ff); }
.grad-emerald { background: linear-gradient(135deg, #d1fae5, #ecfdf5); }
.grad-sky { background: linear-gradient(135deg, #e0f2fe, #f0f9ff); }
.grad-amber { background: linear-gradient(135deg, #fef3c7, #fffbeb); }
.grad-slate { background: linear-gradient(135deg, #e2e8f0, #f8fafc); }
.pcard-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-name { font-weight: 700; font-size: 15px; line-height: 1.45; }
.pcard-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pcard-stock { font-size: 12px; color: var(--ink-3); }
.pcard-stock.out { color: var(--danger); }
.pprice { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.pprice-cur { font-size: 14px; color: var(--danger); font-weight: 700; }
.pprice-num { font-size: 24px; font-weight: 800; color: var(--danger); letter-spacing: -.5px; }
.pprice-unit { font-size: 13px; color: var(--ink-3); }
.pprice-old { font-size: 13px; color: var(--ink-3); text-decoration: line-through; }
.pcard-sales { font-size: 12px; color: var(--ink-3); }

/* ===== 分类矩阵 ===== */
.matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cat-head h3 { font-size: 17px; }
.cat li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.cat li:last-child { border-bottom: none; }
.cat li .price { color: var(--danger); font-weight: 600; white-space: nowrap; margin-left: 10px; }
.cat-more { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--brand-600); font-weight: 600; }

/* ===== 步骤 ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.s-num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--accent)); color: #fff; font-weight: 800; font-size: 18px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--ink-3); font-size: 14px; }

/* ===== 商品列表页 ===== */
.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); background: #fff; }
.chip:hover { border-color: var(--brand-500); color: var(--brand-600); }
.chip.on { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.search-form { display: flex; gap: 8px; }
.search-form input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; width: 220px; }

/* ===== 商品详情 ===== */
.pdetail { display: grid; grid-template-columns: 420px 1fr; gap: 36px; padding-top: 36px; padding-bottom: 60px; }
.pdetail-img { border-radius: var(--radius-lg); display: grid; place-items: center; min-height: 340px; }
.pdetail-emoji { font-size: 130px; filter: drop-shadow(0 10px 20px rgba(15,23,42,.15)); }
.pdetail-cat { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; color: var(--brand-600); }
.pdetail-badges { display: inline-flex; gap: 6px; }
.pdetail-name { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 10px; }
.pdetail-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.pdetail-stock, .pdetail-sales { font-size: 13.5px; color: var(--ink-3); }
.pdetail-pricebox { background: #f8fafc; border-radius: 12px; padding: 16px 20px; margin-bottom: 18px; }
.feature-list { margin-bottom: 16px; }
.feature-list li { padding: 6px 0; font-size: 15px; }
.feat-tick { color: var(--ok); font-weight: 700; margin-right: 8px; }
.pdetail-desc { color: var(--ink-3); font-size: 14.5px; margin-bottom: 20px; }
.buybar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.qty-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty-input button { width: 38px; height: 44px; font-size: 18px; color: var(--ink-2); }
.qty-input button:hover { background: var(--bg-soft); }
.qty-input input { width: 56px; height: 44px; border: none; text-align: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.pdetail-note { font-size: 13px; color: var(--ink-3); background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 14px; }

/* ===== 面板与表单 ===== */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.panel-head { font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.field-full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-panel { max-width: 760px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; margin-bottom: 12px; cursor: pointer; }
.check input { width: 16px; height: 16px; }

/* ===== 表格 ===== */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--bg-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.ta-r { text-align: right; }
.item-emoji { margin-right: 6px; }
.item-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ===== 空状态 ===== */
.empty { text-align: center; color: var(--ink-3); padding: 60px 20px; font-size: 15px; }
.empty-sm { text-align: center; color: var(--ink-3); padding: 20px; font-size: 14px; }

/* ===== 结算 ===== */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; padding-bottom: 60px; }
.checkout-side { position: sticky; top: 84px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.sum-total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 16px; }
.text-ok { color: var(--ok); } .text-brand { color: var(--brand-600); }
.coupon-box { display: flex; gap: 8px; margin: 14px 0 6px; }
.coupon-box input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.coupon-msg { font-size: 13px; min-height: 20px; margin-bottom: 10px; }
.coupon-msg.ok { color: var(--ok); } .coupon-msg.err { color: var(--danger); }
.checkout-tip { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bg-soft); }
.cart-line:last-child { border-bottom: none; }
.cart-line .qty-input { flex: none; }
.cart-line .qty-input button { height: 34px; } .cart-line .qty-input input { height: 34px; }
.cart-line-name { flex: 1; font-size: 14.5px; }
.cart-line-price { font-weight: 700; min-width: 80px; text-align: right; }
.cart-line-del { color: var(--danger); font-size: 18px; padding: 0 6px; }
.cart-total-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

/* ===== 收银台 ===== */
.pay-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; padding-bottom: 60px; }
.channel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.channel-card { border: 2px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.channel-card:hover { border-color: var(--brand-400, #818cf8); }
.channel-card.on { border-color: var(--brand-600); background: var(--brand-50); }
.channel-card.disabled { opacity: .55; cursor: not-allowed; }
.channel-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.channel-desc { font-size: 12.5px; color: var(--ink-3); }
.channel-off { font-size: 12px; color: var(--danger); margin-top: 6px; }
.pay-amount { font-size: 34px; font-weight: 800; color: var(--brand-600); text-align: center; margin: 6px 0 14px; }
.pay-items { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.pay-item { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: 13.5px; }
.pay-item-name { flex: 1; }
.pay-done { background: #ecfdf5; border-color: #a7f3d0; }
.mock-cashier { text-align: center; }
.mock-cashier .mock-logo { font-size: 44px; margin-bottom: 10px; }
.mock-amount { font-size: 30px; font-weight: 800; margin: 8px 0 16px; }
.qr-box { text-align: center; }
.qr-box img { margin: 10px auto; border: 1px solid var(--line); border-radius: 10px; width: 200px; height: 200px; }
.offline-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 14px; white-space: pre-wrap; }

/* ===== 订单详情 ===== */
.order-status-panel { display: flex; flex-direction: column; gap: 14px; }
.order-status-line { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.osteps { display: flex; justify-content: space-between; position: relative; padding: 6px 0; }
.osteps::before { content: ""; position: absolute; top: 22px; left: 8%; right: 8%; height: 2px; background: var(--line); }
.ostep { display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1; flex: 1; }
.ostep-dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); color: var(--ink-3); font-size: 14px; font-weight: 700;
}
.ostep.done .ostep-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.ostep.now .ostep-dot { border-color: var(--brand-600); color: var(--brand-600); box-shadow: 0 0 0 5px var(--brand-100); }
.ostep-label { font-size: 12.5px; color: var(--ink-3); }
.ostep.now .ostep-label { color: var(--brand-600); font-weight: 700; }
.steps-cancelled { text-align: center; color: var(--ink-3); padding: 10px; }
.order-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; padding-bottom: 60px; }
.order-totals { margin-left: auto; max-width: 260px; margin-top: 12px; }
.cards-reveal { border-color: #a7f3d0; background: linear-gradient(180deg, #f0fdf4, #fff); }
.card-code { display: flex; align-items: center; gap: 10px; padding: 10px; background: #fff; border: 1px dashed #86efac; border-radius: 10px; margin-bottom: 8px; }
.card-code .mono { flex: 1; font-weight: 700; }
.card-code-name { font-size: 12.5px; color: var(--ink-3); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--bg-soft); }
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: var(--ink-3); flex: none; }
.kv span:last-child { text-align: right; word-break: break-all; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== 时间线 ===== */
.timeline { margin-top: 4px; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-600); margin-top: 6px; flex: none; box-shadow: 0 0 0 4px var(--brand-100); }
.tl-head { display: flex; justify-content: space-between; gap: 12px; }
.tl-action { font-weight: 600; font-size: 14px; }
.tl-time { font-size: 12.5px; color: var(--ink-3); }
.tl-note { font-size: 13.5px; color: var(--ink-3); }

/* ===== 登录注册 ===== */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 48px 16px;
  background: radial-gradient(900px 500px at 80% -10%, rgba(6,182,212,.14), transparent 60%),
    radial-gradient(800px 500px at -10% 40%, rgba(99,102,241,.14), transparent 55%), #f8fafc; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); text-align: center; }
.auth-card .field { text-align: left; }
.auth-logo { display: grid; place-items: center; margin-bottom: 14px; }
.auth-logo .logo-mark { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; }
.auth-card h1 { font-size: 24px; font-weight: 800; }
.auth-sub { color: var(--ink-3); font-size: 14px; margin-bottom: 20px; }
.auth-alt { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.auth-alt a { color: var(--brand-600); font-weight: 600; }
.auth-demo { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); background: #f8fafc; border-radius: 8px; padding: 8px; }
.admin-login { min-height: 100vh; }

/* ===== 账户中心 ===== */
.account-grid { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; padding-bottom: 60px; }
.profile-card { text-align: center; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--accent)); color: #fff; font-size: 26px; font-weight: 800;
}
.profile-name { font-weight: 700; }
.profile-mail { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.side-links { display: flex; flex-direction: column; gap: 4px; }
.side-links a, .side-links button { text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); }
.side-links a:hover, .side-links button:hover { background: var(--bg-soft); color: var(--brand-600); }

/* ===== 订单查询 ===== */
.order-query { padding-bottom: 60px; }
.query-panel { max-width: 640px; margin: 0 auto; }
.query-tip { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* ===== 管理后台 ===== */
.admin-body { background: #f1f5f9; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-side {
  width: 224px; background: #0f172a; color: #cbd5e1; padding: 20px 14px; flex: none;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-logo { color: #fff; margin-bottom: 6px; padding: 0 6px; }
.admin-side-tag { font-size: 11.5px; color: #64748b; letter-spacing: 2px; padding: 0 8px 14px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav a { padding: 9px 12px; border-radius: 9px; font-size: 14px; color: #cbd5e1; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.on { background: var(--brand-600); color: #fff; }
.admin-side-foot { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.admin-side-foot a { color: #cbd5e1; }
.admin-side-foot .linklike { color: #f87171; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  height: 56px; background: #fff; border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 10;
}
.admin-crumb { font-size: 13.5px; color: var(--ink-3); }
.admin-who { font-size: 13.5px; color: var(--ink-2); }
.admin-content { padding: 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.sc-label { font-size: 13px; color: var(--ink-3); }
.sc-num { font-size: 26px; font-weight: 800; margin: 6px 0 2px; color: var(--ink); }
.sc-sub { font-size: 12.5px; color: var(--ink-3); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.span2 { grid-column: 1 / -1; }
.admin-main-col { display: flex; flex-direction: column; }
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 13px; color: var(--ink-2); }
.tab.on { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert a { text-decoration: underline; }

/* 趋势图 */
.trend { display: flex; gap: 8px; align-items: flex-end; height: 190px; padding-top: 10px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.trend-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.trend-bar { width: 100%; background: linear-gradient(180deg, #818cf8, #4f46e5); border-radius: 6px 6px 0 0; min-height: 4px; transition: filter .15s; }
.trend-bar:hover { filter: brightness(1.15); }
.trend-label { font-size: 11px; color: var(--ink-3); }

/* ===== 弹窗与提示 ===== */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal.show { display: grid; }
.modal-box { background: #fff; border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 440px; position: relative; box-shadow: var(--shadow-lg); }
.modal-box h3 { margin-bottom: 16px; font-size: 19px; }
.modal-close { position: absolute; top: 14px; right: 16px; font-size: 24px; color: var(--ink-3); }
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #0f172a; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; }
.toast.ok { background: #059669; } .toast.err { background: #dc2626; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .pdetail { grid-template-columns: 1fr; }
  .checkout-grid, .pay-grid, .order-grid, .account-grid { grid-template-columns: 1fr; }
  .checkout-side { position: static; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-side { width: 64px; padding: 16px 8px; }
  .admin-logo .logo-text, .admin-side-tag, .an-label { display: none; }
  .admin-nav a { font-size: 18px; text-align: center; padding: 10px 4px; }
  .admin-side-foot { font-size: 0; }
  .admin-side-foot a { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .compare, .form-grid { grid-template-columns: 1fr; }
  .channel-list { grid-template-columns: 1fr; }
  .chain-arrow { transform: rotate(90deg); }
  .table { font-size: 13px; }
}
