/* ==========================================================================
   鲜果集 · 水果社群团购 —— 共享设计系统
   用户端（小程序模拟）/ 销售端工作台 / 商家后台 三端共用
   ========================================================================== */

:root {
  --ink: #14251d;
  --ink-2: #2c3d34;
  --muted: #6d7d74;
  --muted-2: #93a29a;
  --line: #e4e9e2;
  --line-2: #eef1ec;
  --paper: #f6f8f4;
  --card: #ffffff;

  --green: #0f6b53;
  --green-2: #1c8a6b;
  --green-3: #35a883;
  --green-soft: #e8f3ed;
  --green-line: #cfe4d9;

  --orange: #f4713a;
  --orange-2: #ff8b57;
  --orange-soft: #fff1e8;
  --gold: #b9860b;
  --gold-soft: #fdf3da;
  --red: #cf4444;
  --red-soft: #fdecec;
  --blue: #2f6fbe;
  --blue-soft: #eaf1fb;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 37, 29, 0.04), 0 2px 8px rgba(20, 37, 29, 0.04);
  --shadow: 0 6px 24px rgba(20, 37, 29, 0.08);
  --shadow-lg: 0 24px 70px rgba(12, 40, 30, 0.18);

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--green); text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfd8d1; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------------ 工具类 */
.row { display: flex; align-items: center; }
.row-top { display: flex; align-items: flex-start; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.strong { font-weight: 600; }
.num, .mono { font-variant-numeric: tabular-nums; font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hide { display: none !important; }
.right { text-align: right; }
.center-text { text-align: center; }
.divider { height: 1px; background: var(--line-2); margin: 14px 0; }
.dashed { height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); margin: 14px 0; }
.green { color: var(--green); }
.orange { color: var(--orange); }
.red { color: var(--red); }
.gold { color: var(--gold); }

/* ------------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  background: var(--green); color: #fff; font-weight: 600; font-size: 13.5px;
  cursor: pointer; transition: all 0.16s ease; white-space: nowrap;
}
.btn:hover { background: #0c5a46; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f4f7f3; border-color: #d3ddd4; }
.btn-soft { background: var(--green-soft); color: var(--green); }
.btn-soft:hover { background: #dcefe5; }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: #e1602a; }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #b93737; }
.btn-link { background: none; border: none; color: var(--green); padding: 0; height: auto; font-weight: 500; cursor: pointer; }
.btn-link:hover { text-decoration: underline; background: none; transform: none; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; }

/* ------------------------------------------------------------------ 表单 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 11.5px; color: var(--muted-2); }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 9px 11px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(28, 138, 107, 0.12); }
.textarea { resize: vertical; min-height: 74px; line-height: 1.6; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7c8b82 50%), linear-gradient(135deg, #7c8b82 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.check input { width: 16px; height: 16px; accent-color: var(--green); }
.switch { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #d8e0d9; cursor: pointer; transition: background 0.18s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform 0.18s; }
.switch.on { background: var(--green-2); }
.switch.on::after { transform: translateX(18px); }

/* ------------------------------------------------------------------ 标签与徽标 */
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px;
  border-radius: 6px; font-size: 11.5px; font-weight: 600; background: #f1f4f0; color: var(--muted);
  white-space: nowrap;
}
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-orange { background: var(--orange-soft); color: #c4551f; }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-gold { background: var(--gold-soft); color: var(--gold); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-line { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 13px;
  border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  font-size: 12.5px; cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.chip:hover { border-color: var(--green-line); color: var(--green); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }

/* ------------------------------------------------------------------ 卡片 */
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { font-size: 14.5px; font-weight: 700; letter-spacing: .01em; }
.card-body { padding: 18px; }

/* ------------------------------------------------------------------ 桌面端外壳 */
.shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: #0b2f26; color: #d8e6df; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 20px 14px 16px; overflow-y: auto;
  background-image: radial-gradient(120% 60% at 0% 0%, rgba(53, 168, 131, 0.22), transparent 60%);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2fa87e, #0f6b53); font-size: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.brand-name { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.brand-sub { font-size: 10.5px; color: #89a99b; margin-top: 1px; letter-spacing: .08em; }
.nav-group { margin-top: 12px; }
.nav-label { font-size: 10px; color: #6f9184; letter-spacing: .14em; padding: 0 10px 7px; font-weight: 700; }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 9px;
  color: #b7cec4; font-size: 13px; cursor: pointer; transition: all 0.15s; margin-bottom: 2px; text-decoration: none;
}
.nav-item svg { width: 17px; height: 17px; opacity: .85; flex: none; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(53,168,131,.28), rgba(53,168,131,.1)); color: #fff; font-weight: 600; box-shadow: inset 2px 0 0 #4ec79b; }
.nav-item .nav-badge { margin-left: auto; background: var(--orange); color: #fff; font-size: 10px; height: 17px; min-width: 17px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: #7d9a8d; line-height: 1.7; }
.main { min-width: 0; background: var(--paper); }
.topbar {
  height: 62px; background: rgba(255,255,255,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px;
  padding: 0 26px; position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.topbar .crumb { font-size: 11.5px; color: var(--muted-2); margin-top: 1px; }
.topbar-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: #f4f7f3; border: 1px solid var(--line); border-radius: 9px; padding: 6px 11px; width: 240px; color: var(--muted); }
.topbar-search input { border: none; background: transparent; outline: none; width: 100%; font-size: 12.5px; }
.identity { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 99px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #cfe9dd, #9fd2be); color: #14503e; font-weight: 700; font-size: 12px; flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 17px; }
.avatar.xl { width: 62px; height: 62px; font-size: 24px; }
.page { padding: 22px 26px 40px; max-width: 1380px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.page-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }

/* ------------------------------------------------------------------ 指标卡 */
.stat { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 17px; position: relative; overflow: hidden; }
.stat .label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 7px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat .delta { font-size: 11.5px; margin-top: 6px; color: var(--muted); }
.stat.accent { background: linear-gradient(135deg, #0f6b53, #16805f 55%, #1d9370); color: #fff; border-color: transparent; }
.stat.accent .label, .stat.accent .delta { color: rgba(255,255,255,.72); }
.stat.accent::after { content: ""; position: absolute; right: -30px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.09); }
.stat.orange { background: linear-gradient(135deg, #f4713a, #ff8b57); color: #fff; border-color: transparent; }
.stat.orange .label, .stat.orange .delta { color: rgba(255,255,255,.8); }
.stat.ink { background: #14251d; color: #fff; border-color: transparent; }
.stat.ink .label, .stat.ink .delta { color: rgba(255,255,255,.6); }

/* ------------------------------------------------------------------ 表格 */
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-2); }
.table { font-size: 12.8px; }
.table th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; letter-spacing: .02em;
  padding: 11px 14px; background: #fafbf8; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fbfcfa; }
.table .main-cell { font-weight: 600; color: var(--ink); }
.table tr.clickable { cursor: pointer; }
.table .num { text-align: right; }
.table-empty { padding: 46px 20px; text-align: center; color: var(--muted-2); font-size: 12.5px; }

/* ------------------------------------------------------------------ 弹层 */
.overlay {
  position: fixed; inset: 0; background: rgba(12, 30, 23, 0.46); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px;
  animation: fadeIn 0.16s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: #fff; border-radius: 18px; width: min(560px, 100%); max-height: 88vh; overflow: auto;
  box-shadow: var(--shadow-lg); animation: modalIn 0.2s cubic-bezier(.2,.8,.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal.wide { width: min(820px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; z-index: 2; border-radius: 18px 18px 0 0; }
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; background: #fbfcfa; border-radius: 0 0 18px 18px; position: sticky; bottom: 0; }
.x-btn { width: 30px; height: 30px; border-radius: 8px; border: none; background: #f2f5f1; color: var(--muted); cursor: pointer; font-size: 16px; display: grid; place-items: center; }
.x-btn:hover { background: #e7ece6; color: var(--ink); }

/* 底部抽屉（移动端） */
.sheet-wrap { position: fixed; inset: 0; background: rgba(12,30,23,.42); z-index: 110; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .15s; }
.sheet { background: #fff; width: min(430px, 100%); border-radius: 20px 20px 0 0; max-height: 88vh; overflow: auto; animation: sheetIn .24s cubic-bezier(.2,.85,.3,1); padding-bottom: 10px; }
@keyframes sheetIn { from { transform: translateY(40px); opacity: .6; } }

/* Toast */
.toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(20,37,29,.94); color: #fff; padding: 9px 16px; border-radius: 10px; font-size: 13px; box-shadow: 0 8px 30px rgba(0,0,0,.2); animation: toastIn .2s ease; max-width: 80vw; }
.toast.ok { background: #10694f; }
.toast.err { background: #a83a3a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } }

/* ------------------------------------------------------------------ 空状态与骨架 */
.empty { text-align: center; padding: 44px 20px; color: var(--muted-2); }
.empty .emoji { font-size: 34px; opacity: .55; margin-bottom: 8px; }
.empty p { font-size: 13px; }
.skeleton { background: linear-gradient(90deg, #eef1ec 25%, #f7f9f5 37%, #eef1ec 63%); background-size: 400% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-line { height: 12px; margin-bottom: 10px; }

/* ------------------------------------------------------------------ 商品封面（无图片资源时用渐变色 + 品类符号） */
.cover { position: relative; overflow: hidden; background: linear-gradient(135deg, #f3d9a4, #e8a94e); }
.cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 75% 20%, rgba(255,255,255,.5), transparent 45%), radial-gradient(circle at 20% 80%, rgba(0,0,0,.06), transparent 50%); }
.cover .fruit { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; filter: drop-shadow(0 6px 10px rgba(120,60,0,.18)); z-index: 1; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 0; }
.cover.media-cover::after { display: none; }
.jl-media { width: 100%; height: 220px; background: #0b1511; overflow: hidden; position: relative; }
.jl-media-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.jl-media-track::-webkit-scrollbar { display: none; }
.jl-media-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; background: #0b1511; }
.jl-media-slide video, .jl-media-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.jl-media-hint { position: absolute; right: 10px; bottom: 9px; z-index: 2; background: rgba(0,0,0,.45); color: #fff; font-size: 10px; padding: 4px 8px; border-radius: 99px; pointer-events: none; }
.cover.c-citrus { background: linear-gradient(135deg, #ffd88a, #f59b3c); }
.cover.c-berry { background: linear-gradient(135deg, #ffc3c6, #e9556b); }
.cover.c-import { background: linear-gradient(135deg, #d9b7e8, #8e5aa8); }
.cover.c-cut { background: linear-gradient(135deg, #c9efc9, #5cb46b); }
.cover.c-melon { background: linear-gradient(135deg, #d7f0a8, #88b53a); }
.cover.c-tropical { background: linear-gradient(135deg, #ffe2a8, #f4a63c); }
.cover.c-other { background: linear-gradient(135deg, #d7e7df, #78a793); }

/* ------------------------------------------------------------------ 移动端小程序外壳 */
.stage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 54px;
  padding: 40px 28px; background:
    radial-gradient(1000px 600px at 12% 8%, #e6f2ea, transparent 60%),
    radial-gradient(900px 500px at 92% 92%, #ffefe3, transparent 60%),
    #f3f6f1;
  flex-wrap: wrap;
}
.stage-copy { width: 360px; max-width: 100%; }
.stage-copy .kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; letter-spacing: .16em; color: var(--green); font-weight: 700; }
.stage-copy h1 { font-size: 34px; line-height: 1.22; letter-spacing: -0.02em; margin: 12px 0 12px; }
.stage-copy h1 em { font-style: normal; color: var(--green); }
.stage-copy > p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.stage-features { margin-top: 22px; display: grid; gap: 10px; }
.stage-feature { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.7); border: 1px solid #e3ebe4; border-radius: 12px; padding: 11px 13px; }
.stage-feature .fi { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.stage-feature b { font-size: 12.5px; display: block; }
.stage-feature span { font-size: 11.5px; color: var(--muted); }
.stage-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.stage-note { margin-top: 16px; font-size: 11px; color: var(--muted-2); line-height: 1.7; }

.phone {
  width: 392px; height: 816px; background: #101915; border-radius: 46px; padding: 10px;
  box-shadow: 0 40px 90px rgba(12, 40, 30, .28), 0 0 0 1px rgba(255,255,255,.35) inset;
  position: relative; flex: none;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 108px; height: 24px; background: #101915; border-radius: 14px; z-index: 5; }
.phone-screen { width: 100%; height: 100%; background: #f6f8f4; border-radius: 37px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.statusbar { height: 46px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 12px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.9); position: relative; z-index: 4; }
.statusbar .sb-right { display: flex; gap: 5px; align-items: center; font-size: 11px; }
.navbar {
  height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(228,233,226,.7); position: relative; z-index: 3;
}
.navbar .nav-title { font-size: 14.5px; font-weight: 600; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.navbar .nav-back { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.navbar .nav-back:hover { background: #f0f3ee; }
.navbar .capsule { margin-left: auto; display: flex; align-items: center; gap: 2px; border: 1px solid #e1e6df; border-radius: 99px; padding: 2px 8px; background: rgba(255,255,255,.7); font-size: 12px; color: #333; }
.navbar .capsule span { padding: 0 3px; }
.app-view { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 74px; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.app-view > * { flex-shrink: 0; }
#overlay-root { position: absolute; inset: 0; z-index: 90; pointer-events: none; }
#overlay-root > * { pointer-events: auto; }
#overlay-root .overlay, #overlay-root .sheet-wrap { position: absolute; }
#overlay-root .toasts { position: absolute; top: 10px; }
.tabbar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 66px; background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); border-top: 1px solid #e8ece6; display: flex; z-index: 20; padding-bottom: 6px;
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #7d8b82; font-size: 10px; text-decoration: none; position: relative; }
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.active { color: var(--green); font-weight: 600; }
.tabbar a .tab-badge { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--orange); color: #fff; font-size: 9px; min-width: 15px; height: 15px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }

/* 移动端页面内容 */
.m-page { padding: 12px 14px 22px; }
.m-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 1px 2px rgba(20,37,29,.04); }
.m-section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 10px; }
.m-section-title h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.m-section-title .more { font-size: 11.5px; color: var(--muted-2); }
.m-price { color: var(--orange); font-weight: 700; }
.m-price small { font-size: 10px; font-weight: 600; }
.m-hero { border-radius: 18px; overflow: hidden; position: relative; color: #fff; background: linear-gradient(120deg, #0f6b53, #1f8a68 60%, #2aa27a); padding: 18px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; }
.m-hero::before { content:""; position:absolute; right:-30px; top:-40px; width:170px; height:170px; border-radius:50%; background:rgba(255,255,255,.1); }
.m-hero::after { content:"🍊"; position:absolute; right:14px; bottom:-6px; font-size:76px; opacity:.9; filter: drop-shadow(0 8px 14px rgba(0,0,0,.15)); }
.m-hero h2 { font-size: 19px; font-weight: 700; position: relative; z-index: 1; letter-spacing: -.01em; }
.m-hero p { font-size: 11.5px; opacity: .8; position: relative; z-index: 1; margin-top: 3px; }
.m-hero .hero-tags { display: flex; gap: 6px; position: relative; z-index: 1; flex-wrap: wrap; }
.m-hero .hero-tag { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 3px 7px; font-size: 10.5px; }
.m-hero .hero-meta { font-size: 11px; opacity: .9; position: relative; z-index: 1; display:flex; gap: 10px; }

.m-notice { display: flex; align-items: center; gap: 8px; background: #fff8ec; border: 1px solid #f7e8c9; color: #8a6320; border-radius: 10px; padding: 8px 11px; font-size: 11.5px; }
.m-notice .marquee { overflow: hidden; white-space: nowrap; flex: 1; }
.m-cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.m-cats::-webkit-scrollbar { display: none; }
.m-cat { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 58px; cursor: pointer; }
.m-cat .ci { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; background: #fff; border: 1px solid #e8ede6; transition: all .15s; }
.m-cat.active .ci { background: var(--green-soft); border-color: var(--green-line); }
.m-cat span { font-size: 10.5px; color: var(--muted); }
.m-cat.active span { color: var(--green); font-weight: 600; }

.m-act-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .16s, box-shadow .16s; }
.m-act-card:active { transform: scale(.99); }
.m-act-cover { height: 118px; }
.m-act-cover .fruit { font-size: 52px; }
.m-act-info { padding: 11px 12px 12px; }
.m-act-info h4 { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.m-act-info .sub { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.m-progress { height: 5px; background: #eef2ed; border-radius: 99px; overflow: hidden; }
.m-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-2), var(--green-3)); border-radius: 99px; transition: width .4s; }
.m-act-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 9px; }
.m-act-foot .price { color: var(--orange); font-weight: 700; font-size: 17px; line-height: 1; }
.m-act-foot .price small { font-size: 10px; }
.m-act-foot .meta { font-size: 10px; color: var(--muted-2); }
.m-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

/* 接龙页 */
.jl-head { background: linear-gradient(150deg, #0d5c47, #157a5d 55%, #23906d); color: #fff; padding: 16px 16px 20px; position: relative; overflow: hidden; }
.jl-head::after { content: "🍊"; position: absolute; right: 8px; top: 18px; font-size: 74px; opacity: .16; transform: rotate(-12deg); }
.jl-head .jl-merchant { font-size: 10.5px; letter-spacing: .04em; opacity: .72; display: flex; align-items: center; gap: 5px; }
.jl-head h2 { font-size: 20px; line-height: 1.32; font-weight: 700; margin-top: 6px; max-width: 84%; letter-spacing: -.01em; }
.jl-head .jl-sub { font-size: 11.5px; opacity: .8; margin-top: 4px; max-width: 84%; }
.jl-count { display: flex; align-items: center; gap: 6px; margin-top: 13px; font-size: 11px; }
.jl-count .clock { background: rgba(0,0,0,.22); border-radius: 7px; padding: 4px 8px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.jl-count .clock.red { background: rgba(207,68,68,.9); }
.jl-body { margin-top: -8px; border-radius: 16px 16px 0 0; background: var(--paper); position: relative; padding: 0 14px 22px; }
.jl-progress { background: #fff; border-radius: 14px; padding: 13px 14px; box-shadow: var(--shadow-sm); transform: translateY(-10px); }
.jl-progress .big { font-size: 22px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.jl-progress .big small { font-size: 11px; color: var(--muted); font-weight: 500; }
.jl-follow { background: #fff; border-radius: 14px; overflow: hidden; }
.jl-follow-head { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f1f4ef; }
.jl-follow-item { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-bottom: 1px solid #f6f8f4; }
.jl-follow-item:last-child { border-bottom: none; }
.jl-follow-item .fa { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #e3efe8, #c3dfd2); color: #1d5c46; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.jl-follow-item .fn { font-size: 12.5px; font-weight: 600; }
.jl-follow-item .ft { font-size: 10.5px; color: var(--muted-2); margin-top: 1px; }
.jl-follow-item .fnote { font-size: 10.5px; color: #8a6a2f; background: #fff8ea; border-radius: 5px; padding: 2px 6px; margin-left: 4px; }
.jl-note { background: #fff; border-radius: 14px; padding: 14px; font-size: 11.5px; color: var(--muted); line-height: 1.8; }
.jl-note b { color: var(--ink-2); font-size: 12px; }
.jl-sticky { position: sticky; bottom: 0; margin-top: auto; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid #e8ece6; padding: 10px 14px 12px; display: flex; gap: 9px; align-items: center; z-index: 15; }
.jl-sticky .ghost-actions { display: flex; gap: 12px; padding: 0 2px; }
.jl-sticky .ga { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9.5px; color: var(--muted); cursor: pointer; }
.jl-sticky .ga svg { width: 19px; height: 19px; }
.buy-btn { flex: 1; height: 44px; border-radius: 22px; background: linear-gradient(90deg, #f4713a, #ff8b57); color: #fff; font-size: 15px; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 8px 20px rgba(244,113,58,.3); }
.buy-btn:disabled { filter: grayscale(.7); opacity: .6; box-shadow: none; }

/* 结算 */
.co-line { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px dashed #eef1ec; }
.co-line:last-child { border-bottom: none; }
.co-thumb { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex: none; }
.co-thumb .fruit { font-size: 26px; }
.m-cells { background: #fff; border-radius: 14px; overflow: hidden; }
.m-cell { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid #f2f5f0; cursor: pointer; }
.m-cell:last-child { border-bottom: none; }
.m-cell .ck { font-size: 10.5px; color: var(--muted); background: #f5f7f3; border-radius: 5px; padding: 2px 6px; }
.m-cell .cv { margin-left: auto; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.m-cell .cv.muted { color: var(--muted-2); }

/* 订单 */
.order-card { background: #fff; border-radius: 14px; padding: 13px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.order-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted-2); margin-bottom: 9px; }
.order-items { display: flex; gap: 10px; }
.order-items .co-thumb { width: 66px; height: 66px; }
.order-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #f2f5f0; }
.btn-outline { background: #fff; color: var(--ink-2); border: 1px solid #dfe6dd; border-radius: 99px; height: 30px; padding: 0 13px; font-size: 12px; cursor: pointer; }
.btn-outline:hover { border-color: var(--green-line); color: var(--green); }
.btn-solid { background: var(--green); color: #fff; border: none; border-radius: 99px; height: 30px; padding: 0 15px; font-size: 12px; font-weight: 600; cursor: pointer; }
.timeline { padding-left: 4px; }
.timeline-item { display: flex; gap: 11px; position: relative; padding-bottom: 15px; }
.timeline-item::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 0; width: 1px; background: #e6ebe4; }
.timeline-item:last-child::before { display: none; }
.timeline-item .td { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #cfd8d0; background: #fff; margin-top: 3px; flex: none; position: relative; z-index: 1; }
.timeline-item.on .td { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.timeline-item .tt { font-size: 12.5px; font-weight: 600; }
.timeline-item .tm { font-size: 10.5px; color: var(--muted-2); margin-top: 1px; }

/* 核销码 */
.verify-code { text-align: center; padding: 18px 10px; background: linear-gradient(160deg, #f2f9f5, #e7f2ec); border-radius: 14px; border: 1px dashed #bcdccd; }
.verify-code .digits { font-family: var(--mono); font-size: 38px; letter-spacing: .22em; font-weight: 700; color: var(--green); line-height: 1.1; }
.verify-code .qr { width: 132px; height: 132px; margin: 12px auto 0; background: #fff; border-radius: 10px; padding: 6px; box-shadow: var(--shadow-sm); }
.qr-box { display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 8px; }
.qr-box svg { width: 100%; height: 100%; }

/* 小程序登录页 */
.login-art { text-align: center; padding: 48px 24px 26px; background: linear-gradient(160deg, #0f6b53, #1c8a6b); color: #fff; border-radius: 0 0 28px 28px; }
.login-art .logo { width: 66px; height: 66px; border-radius: 20px; margin: 0 auto 12px; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 32px; border: 1px solid rgba(255,255,255,.2); }
.login-art h2 { font-size: 20px; font-weight: 700; }
.login-art p { font-size: 11.5px; opacity: .75; margin-top: 4px; }

/* 图表 */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding-top: 10px; }
.bars .bar { flex: 1; background: linear-gradient(180deg, #3aa383, #1c8a6b); border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; opacity: .9; transition: height .4s; }
.bars .bar:hover { opacity: 1; }
.bars .bar span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 9.5px; color: var(--muted-2); white-space: nowrap; }
.bars .bar b { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 9.5px; color: var(--muted); font-weight: 600; display: none; }
.bars .bar:hover b { display: block; }
.funnel-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.funnel-row .fl { width: 74px; font-size: 11.5px; color: var(--muted); }
.funnel-row .fb { flex: 1; height: 22px; background: #f1f4f0; border-radius: 6px; overflow: hidden; }
.funnel-row .fb i { display: block; height: 100%; background: linear-gradient(90deg, #1c8a6b, #4bb894); border-radius: 6px; }
.funnel-row .fv { width: 62px; text-align: right; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 进度/步骤 */
.steps { display: flex; gap: 0; }
.step { flex: 1; position: relative; padding-top: 22px; text-align: center; font-size: 11px; color: var(--muted-2); }
.step::before { content: ""; position: absolute; top: 7px; left: 50%; width: 100%; height: 2px; background: #e7ece5; }
.step:first-child::before { display: none; }
.step::after { content: ""; position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: #e7ece5; border: 2px solid #f6f8f4; }
.step.done::after { background: var(--green); }
.step.done { color: var(--green); font-weight: 600; }

/* 海报 */
.poster { width: 300px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.poster svg { display: block; width: 100%; height: auto; }

/* 响应式 */
@media (max-width: 1180px) {
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 226px; transform: translateX(-100%); transition: transform .2s; z-index: 60; }
  .sidebar.open { transform: none; }
  .page { padding: 16px; }
  .g3, .g2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .stage { padding: 20px 12px; gap: 22px; }
  .stage-copy { display: none; }
  .phone { width: 100%; max-width: 392px; height: 780px; }
}

/* ------------------------------------------------------------------ 统一登录 */
.auth-body { min-height: 100vh; background: radial-gradient(900px 520px at 8% 0%, #e4f1e9, transparent 60%), radial-gradient(700px 480px at 100% 100%, #ffefe2, transparent 60%), #f4f7f3; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); min-height: 100vh; }
.auth-aside { position: relative; overflow: hidden; background: #0b2f26; color: #fff; padding: 54px 58px; display: flex; flex-direction: column; justify-content: center; background-image: radial-gradient(120% 70% at 0% 0%, rgba(53,168,131,.3), transparent 58%), radial-gradient(80% 60% at 100% 100%, rgba(244,113,58,.16), transparent 55%); }
.auth-aside .brand { padding-left: 0; }
.auth-aside h1 { font-size: 34px; line-height: 1.25; letter-spacing: -.02em; margin: 22px 0 14px; }
.auth-aside h1 em { font-style: normal; color: #7fd6b5; }
.auth-aside > p { color: #adc8bb; font-size: 13.5px; line-height: 1.9; max-width: 430px; }
.auth-points { margin-top: 26px; display: grid; gap: 12px; max-width: 440px; }
.auth-point { display: flex; gap: 11px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 11px 13px; }
.auth-point .pi { width: 28px; height: 28px; border-radius: 8px; background: rgba(126,214,181,.16); color: #8fe0c0; display: grid; place-items: center; flex: none; }
.auth-point b { font-size: 12.5px; display: block; color: #fff; }
.auth-point span { font-size: 11.5px; color: #9eb9ac; }
.auth-aside .auth-links { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.auth-aside .auth-links a { color: #bfe0d2; font-size: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 7px 11px; text-decoration: none; }
.auth-aside .auth-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(460px, 100%); background: #fff; border: 1px solid #e6ece5; border-radius: 20px; box-shadow: 0 24px 60px rgba(15, 50, 38, .12); padding: 26px 26px 22px; }
.auth-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-card-head .auth-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; }
.auth-card-head .auth-brand .m { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #2fa87e, #0f6b53); color: #fff; display: grid; place-items: center; font-size: 15px; }
.auth-card-head .auth-brand small { display: block; font-size: 10px; color: #93a29a; font-weight: 500; letter-spacing: .06em; }
.auth-card-head a { font-size: 11.5px; color: #7d8b82; text-decoration: none; }
.auth-tabs { display: flex; gap: 4px; background: #f3f6f1; border-radius: 11px; padding: 4px; margin-top: 18px; }
.auth-tabs button { flex: 1; height: 34px; border: none; background: transparent; border-radius: 8px; color: #6d7d74; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.auth-tabs button.active { background: #fff; color: #14251d; box-shadow: 0 1px 4px rgba(20,37,29,.1); }
.auth-panel h2 { font-size: 18px; margin-top: 18px; letter-spacing: -.01em; }
.auth-panel > p { font-size: 12px; color: #7d8b82; line-height: 1.7; margin-top: 5px; }
.auth-form { display: grid; gap: 12px; margin-top: 14px; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: #93a29a; font-size: 11px; margin: 16px 0 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e9eee7; }
.auth-demo { margin-top: 12px; }
.auth-demo .label { font-size: 10.5px; color: #93a29a; letter-spacing: .06em; margin-bottom: 7px; }
.auth-demo .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.auth-demo .chip { height: 26px; font-size: 11px; padding: 0 9px; }
.auth-note { font-size: 10.5px; color: #a3b0a7; line-height: 1.6; margin-top: 14px; }
.auth-session { margin-top: 18px; }
.auth-person { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: #f5faf7; border: 1px solid #e1eee7; }
.auth-person .avatar { width: 46px; height: 46px; font-size: 18px; }
.auth-person .name { font-size: 16px; font-weight: 700; }
.auth-person .sub { font-size: 11px; color: #7d8b82; margin-top: 2px; }
.auth-roles { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.auth-entries { display: grid; gap: 8px; margin-top: 16px; }
.auth-entry { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #e4e9e2; border-radius: 11px; text-decoration: none; color: inherit; transition: all .15s; }
.auth-entry:hover { border-color: #bcdccd; background: #f7fbf8; }
.auth-entry .ei { width: 30px; height: 30px; border-radius: 8px; background: #e8f3ed; color: #0f6b53; display: grid; place-items: center; flex: none; }
.auth-entry b { font-size: 12.5px; display: block; }
.auth-entry span { font-size: 10.5px; color: #8b9a91; }
.auth-entry .go { margin-left: auto; color: #93a29a; }
.auth-logout { margin-top: 14px; width: 100%; }
@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 24px 14px; }
}

