/* 杆位台球 · 移动端视觉 */
:root {
  --green: #0d3a2d;
  --green-2: #14523e;
  --green-3: #1d6a50;
  --green-soft: #e7efe8;
  --cream: #f7f3e9;
  --paper: #fffdf7;
  --paper-2: #f1eadb;
  --ink: #16211c;
  --muted: #738075;
  --muted-2: #9aa397;
  --line: #e4ddcd;
  --orange: #c96c2e;
  --orange-soft: #faeadb;
  --gold: #d8ab68;
  --danger: #b4473c;
  --radius: 20px;
  --shadow-sm: 0 2px 10px rgba(31, 39, 32, .05);
  --shadow-md: 0 12px 30px rgba(31, 39, 32, .09);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --tabbar-h: calc(66px + env(safe-area-inset-bottom));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #d9d1c0; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #d9d1c0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.sheet-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
::selection { background: #cfe3d6; }

.app-shell {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--cream);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 80px rgba(20, 30, 24, .18);
}
.view { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--tabbar-h) + 18px); }
body.no-tabbar .view { padding-bottom: 108px; }
body.no-tabbar .tabbar { display: none; }

/* ---------- 启动 ---------- */
.splash { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--green); color: var(--cream); }
.splash-mark { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); font-size: 34px; font-weight: 700; }
.splash-name { font-size: 22px; font-weight: 700; letter-spacing: .12em; }
.splash-sub { color: #b7cbbd; font-size: 12px; letter-spacing: .1em; }
.loading { padding: 60px 20px; text-align: center; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 2px solid #d8d1c2; border-top-color: var(--green); border-radius: 50%; margin: 0 auto 12px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 18px 12px;
  background: rgba(247, 243, 233, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.topbar.transparent { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; color: var(--cream); }
.topbar-title { font-size: 17px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.7); border: 1px solid var(--line); color: var(--ink);
  flex: 0 0 auto; transition: transform .15s, background .15s;
}
.icon-btn:active { transform: scale(.94); }
.topbar.transparent .icon-btn { background: rgba(13, 58, 45, .4); border-color: rgba(255,255,255,.24); color: var(--cream); backdrop-filter: blur(8px); }
.icon-btn.ghost { background: transparent; border-color: transparent; }
.icon-btn.danger { color: var(--danger); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- 首页 ---------- */
.home-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 88% 8%, rgba(64, 122, 91, .55), transparent 55%),
    linear-gradient(160deg, #0b3328 0%, #0d3a2d 52%, #123f30 100%);
  color: var(--cream);
  padding: max(18px, env(safe-area-inset-top)) 20px 30px;
  border-radius: 0 0 34px 34px;
}
.home-hero::before { content: ""; position: absolute; width: 220px; height: 220px; right: -96px; top: 74px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.home-hero::after { content: ""; position: absolute; width: 128px; height: 128px; right: -32px; top: 122px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.brand-row { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.home-hero .icon-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--cream); }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(247,243,233,.75); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: .16em; }
.hero-user { font-size: 9px; color: #a9c4b2; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 3px 7px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-spacer { flex: 1; }
.hero-kicker { position: relative; z-index: 2; margin-top: 30px; color: #a9c4b2; font-size: 11px; letter-spacing: .22em; }
.hero-title { position: relative; z-index: 2; font-size: 40px; line-height: 1.14; letter-spacing: -.03em; font-weight: 800; margin-top: 8px; }
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub { position: relative; z-index: 2; margin-top: 10px; color: #b7cbbd; font-size: 13px; line-height: 1.65; }
.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.hero-stat { border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.055); border-radius: 14px; padding: 11px 12px; }
.hero-stat b { display: block; font-size: 22px; letter-spacing: -.02em; color: var(--cream); line-height: 1.1; }
.hero-stat span { display: block; margin-top: 4px; color: #9db7a7; font-size: 10px; letter-spacing: .06em; }
.hero-ball { position: absolute; right: 34px; top: 102px; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fdfcf5, #d9d3c5 68%, #a9a296); box-shadow: 0 8px 20px rgba(0,0,0,.22); z-index: 1; }
.hero-ball::after { content: "8"; position: absolute; inset: 10px; border-radius: 50%; background: #151b17; color: #f4f1e8; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

.home-body { padding: 22px 18px 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 2px 12px; }
.section-head h2 { font-size: 19px; letter-spacing: -.01em; }
.section-head .link { color: var(--green-2); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.section-head .link svg { width: 14px; height: 14px; }
.section-sub { color: var(--muted); font-size: 11px; margin: -6px 2px 14px; }

.draft-banner {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--orange-soft); border: 1px solid #f0d5bc; border-radius: 15px;
  padding: 12px 14px; margin-bottom: 14px; text-align: left;
}
.draft-banner .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; }
.draft-banner b { font-size: 13px; color: #7d421e; }
.draft-banner small { display: block; color: #a56d46; font-size: 10px; margin-top: 2px; }
.draft-banner .arrow { margin-left: auto; color: var(--orange); }

.loc-list { display: grid; gap: 12px; }
.loc-card {
  display: grid; grid-template-columns: 92px 1fr; gap: 13px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 19px;
  padding: 9px; box-shadow: var(--shadow-sm); min-height: 110px;
  transition: transform .15s, box-shadow .15s;
}
.loc-card:active { transform: scale(.988); box-shadow: var(--shadow-md); }
.loc-cover { width: 92px; height: 100%; min-height: 92px; border-radius: 13px; object-fit: cover; background: var(--green); }
.loc-cover-wrap { position: relative; height: 100%; min-height: 92px; }
.loc-cover-fallback { width: 100%; height: 100%; min-height: 92px; border-radius: 13px; background: radial-gradient(circle at 30% 20%, #2c6b51, #0d3a2d); display: grid; place-items: center; color: #d7e5da; font-size: 24px; font-weight: 700; }
.loc-cover-badge { position: absolute; left: 6px; top: 6px; background: rgba(250, 234, 219, .95); color: #8a4a20; font-size: 9px; font-weight: 700; border-radius: 20px; padding: 3px 6px; }
.loc-body { min-width: 0; padding: 5px 6px 5px 0; display: flex; flex-direction: column; }
.loc-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.loc-name .pin { color: var(--green-3); display: inline-flex; }
.loc-name .pin svg { width: 15px; height: 15px; }
.loc-address { color: var(--muted); font-size: 10.5px; line-height: 1.5; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.loc-meta { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 8px; }
.loc-meta span { font-size: 10px; color: var(--muted); background: #f3ede0; border-radius: 6px; padding: 3px 7px; }
.loc-meta span b { color: var(--green-2); font-size: 11px; }
.loc-meta .draft { color: #9a5627; background: var(--orange-soft); }
.loc-go { margin-left: auto; color: var(--muted-2); display: flex; }
.loc-go svg { width: 16px; height: 16px; }
.home-foot { padding: 24px 8px 6px; text-align: center; color: #a29b8b; font-size: 10px; letter-spacing: .08em; }

/* ---------- 通用页面头 ---------- */
.page-head { padding: 20px 18px 12px; }
.page-head .eyebrow { color: var(--green-3); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.page-head h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.03em; margin-top: 6px; }
.page-head p { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 6px; }
.page-actions { display: flex; gap: 8px; padding: 0 18px 12px; }

/* ---------- 按钮 / 表单 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 0 18px; border-radius: 14px;
  background: var(--green); color: var(--cream); font-size: 14px; font-weight: 700;
  transition: transform .15s, opacity .15s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }
.btn.secondary { background: var(--paper); color: var(--green); border: 1px solid var(--line); }
.btn.orange { background: var(--orange); color: #fff; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { min-height: 36px; padding: 0 13px; font-size: 12px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
.btn-icon svg { width: 16px; height: 16px; }

.field { margin-bottom: 13px; }
.field > label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; color: #5f6a60; margin: 0 2px 6px; }
.field > label em { font-style: normal; color: var(--muted-2); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 47px; border: 1px solid var(--line); background: var(--paper);
  border-radius: 13px; padding: 12px 14px; font-size: 16px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 78px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { border-color: #8caf99; box-shadow: 0 0 0 3px rgba(29, 106, 80, .08); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23738075' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-hint { font-size: 10px; color: var(--muted); margin: -6px 2px 12px; line-height: 1.5; }
.form-error { background: #f8e7e3; color: #913a30; border-radius: 10px; padding: 10px 12px; font-size: 12px; margin-bottom: 12px; }

/* ---------- 商品库 ---------- */
.library-head { padding: 20px 18px 10px; }
.library-head h1 { font-size: 29px; letter-spacing: -.03em; }
.library-head p { color: var(--muted); font-size: 11.5px; margin-top: 5px; line-height: 1.55; }
.search-box { margin: 14px 18px 12px; position: relative; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-box input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); padding: 0 42px; font-size: 16px; outline: none; }
.search-box input:focus { border-color: #8caf99; }
.search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--paper); color: #59645b; border-radius: 20px; padding: 8px 13px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.active { background: var(--green); color: var(--cream); border-color: var(--green); }
.chip.orange.active { background: var(--orange); border-color: var(--orange); }
.lib-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 18px 12px; }
.result-count { color: var(--muted); font-size: 11px; }
.result-count b { color: var(--ink); }
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.segmented { display: flex; background: #eae3d4; border-radius: 11px; padding: 3px; }
.segmented button { padding: 7px 10px; border-radius: 8px; font-size: 11px; color: var(--muted); font-weight: 600; }
.segmented button.active { background: var(--paper); color: var(--green); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.filter-btn { position: relative; }
.filter-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 9px; display: grid; place-items: center; padding: 0 4px; }
.active-filters { display: flex; gap: 6px; padding: 0 18px 10px; overflow-x: auto; }
.active-filter { flex: 0 0 auto; background: var(--green-soft); color: var(--green-2); font-size: 10px; border-radius: 20px; padding: 5px 9px; display: inline-flex; align-items: center; gap: 4px; }
.active-filter button { color: var(--green-2); display: inline-flex; padding: 0; }
.active-filter svg { width: 11px; height: 11px; }

.group { margin: 0 18px 16px; }
.group-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 4px 2px 10px; text-align: left; }
.group-head .chev { color: var(--muted-2); transition: transform .2s; display: flex; }
.group-head .chev svg { width: 16px; height: 16px; }
.group.collapsed .group-head .chev { transform: rotate(-90deg); }
.group-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.group-title svg { width: 16px; height: 16px; color: var(--green-3); }
.group-meta { margin-left: auto; color: var(--muted); font-size: 10px; }
.group-meta b { color: var(--ink); font-size: 11px; }
.group-body { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.group.collapsed .group-body { display: none; }
.grid-empty { grid-column: 1 / -1; }

.p-card { background: var(--paper); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s; min-width: 0; }
.p-card:active { transform: scale(.985); }
.p-cover { position: relative; aspect-ratio: 4 / 3; background: #e9e1d1; overflow: hidden; }
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-cover .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #b4ab99; background: linear-gradient(145deg, #eee7d8, #dfd5c2); }
.p-badge { position: absolute; left: 7px; top: 7px; font-size: 9px; font-weight: 700; padding: 4px 7px; border-radius: 7px; background: rgba(13,58,45,.86); color: #f6f2e7; backdrop-filter: blur(4px); }
.p-badge.out { background: rgba(80,75,66,.8); }
.p-badge.draft { background: var(--orange); }
.p-badge.cat { left: auto; right: 7px; background: rgba(255,253,247,.87); color: var(--green); }
.p-body { padding: 10px 10px 11px; }
.p-brand { font-size: 9.5px; color: var(--muted); letter-spacing: .08em; font-weight: 700; }
.p-model { font-size: 14.5px; font-weight: 700; line-height: 1.3; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-years { font-size: 10px; color: var(--muted); margin-top: 3px; }
.p-year-stocks { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.p-year-chip { font-size: 8px; line-height: 1.25; color: var(--green-2); background: var(--green-soft); border-radius: 5px; padding: 2px 4px; }
.p-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: 9px; }
.p-price { font-size: 14px; font-weight: 800; color: var(--green); letter-spacing: -.02em; }
.p-price small { font-size: 9px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.p-stock { font-size: 9.5px; color: var(--green-3); background: var(--green-soft); padding: 3px 6px; border-radius: 6px; white-space: nowrap; }
.p-stock.out { color: #8b8478; background: #eee9dc; }
.p-loc { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 9.5px; margin-top: 6px; }
.p-loc svg { width: 11px; height: 11px; }
.empty-state { padding: 54px 28px; text-align: center; color: var(--muted); }
.empty-art { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-3); }
.empty-art svg { width: 26px; height: 26px; }
.empty-state h3 { color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.empty-state p { font-size: 12px; line-height: 1.6; }
.empty-state .btn { margin-top: 16px; }

/* ---------- 库存总览 ---------- */
.stock-summary { display: flex; align-items: center; gap: 8px; padding: 0 18px 10px; color: var(--muted); font-size: 10.5px; }
.stock-summary b { color: var(--ink); font-size: 12px; }
.stock-summary .dot { width: 4px; height: 4px; border-radius: 50%; background: #c9c1b1; }
.stock-card { margin: 0 18px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.stock-card-head { display: flex; align-items: center; gap: 10px; padding: 12px; width: 100%; text-align: left; }
.stock-thumb { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: #e8e0d0; flex: 0 0 auto; }
.stock-title { flex: 1; min-width: 0; }
.stock-title .brand { font-size: 9px; color: var(--muted); letter-spacing: .08em; font-weight: 700; }
.stock-title h3 { font-size: 16px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-title .meta { color: var(--muted); font-size: 9.5px; margin-top: 4px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.stock-total { text-align: right; flex: 0 0 auto; padding-left: 4px; }
.stock-total b { display: block; color: var(--green); font-size: 24px; line-height: 1; letter-spacing: -.03em; }
.stock-total span { display: block; color: var(--muted); font-size: 8.5px; margin-top: 4px; }
.stock-toggle { color: var(--muted-2); display: flex; flex: 0 0 auto; transition: transform .2s; }
.stock-toggle svg { width: 16px; height: 16px; }
.stock-card.collapsed .stock-toggle { transform: rotate(-90deg); }
.stock-card.collapsed .stock-body { display: none; }
.stock-body { padding: 0 11px 11px; }
.stock-year { background: #f6f0e4; border: 1px solid #ece3d2; border-radius: 12px; padding: 9px 10px 4px; margin-top: 7px; }
.stock-year-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 5px; }
.stock-year-head b { font-size: 14px; }
.stock-year-head span { color: var(--muted); font-size: 9.5px; }
.stock-year-head span b { color: var(--green-2); font-size: 11px; margin-left: 2px; }
.stock-loc { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 7px; padding: 7px 0; border-top: 1px dashed #e4dac7; }
.stock-loc-name { min-width: 0; font-size: 11px; color: #536056; display: flex; align-items: center; gap: 4px; }
.stock-loc-name .draft { font-size: 8px; color: #975327; background: var(--orange-soft); border-radius: 4px; padding: 2px 4px; flex: 0 0 auto; }
.stock-loc-name .place { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-loc-price { color: var(--muted); font-size: 9px; white-space: nowrap; }
.stock-loc-price small { display: block; color: var(--muted-2); font-size: 7.5px; margin-top: 2px; }
.stock-warn { font-size: 8px; color: #a84b40; background: #f8e4df; border-radius: 4px; padding: 2px 4px; flex: 0 0 auto; }
.stock-warn.aged { color: #9a5b1f; background: #f6ead2; }
.stock-alert-text { color: #a84b40; font-weight: 700; }
.stock-warning-banner { display: flex; align-items: center; gap: 7px; background: #f6ead2; color: #7a4b1e; border: 1px solid #ead5b4; border-radius: 11px; padding: 9px 11px; font-size: 10.5px; line-height: 1.5; margin-bottom: 12px; }
.stock-warning-banner svg { width: 14px; height: 14px; flex: 0 0 auto; }
.stock-loc-controls { display: flex; align-items: center; gap: 6px; }
.stock-count { min-width: 20px; text-align: right; font-size: 12px; font-weight: 700; color: var(--ink); }
.stock-missing { color: #a8a193; font-size: 9px; }
.stock-empty { padding: 50px 24px; text-align: center; color: var(--muted); }
.stock-empty h3 { color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.stock-empty p { font-size: 11px; line-height: 1.6; }

/* ---------- 地点详情 ---------- */
.loc-hero { position: relative; background: var(--green); color: var(--cream); padding: max(14px, env(safe-area-inset-top)) 18px 22px; border-radius: 0 0 30px 30px; overflow: hidden; }
.loc-hero::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.loc-hero .topbar { position: static; padding: 0; background: transparent; backdrop-filter: none; color: var(--cream); }
.loc-hero .topbar .icon-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: var(--cream); }
.loc-hero h1 { font-size: 27px; letter-spacing: -.02em; margin-top: 20px; position: relative; z-index: 1; }
.loc-hero .address { color: #b8cbbd; font-size: 11.5px; margin-top: 7px; line-height: 1.6; position: relative; z-index: 1; }
.loc-hero .contact { color: #9db7a6; font-size: 11px; margin-top: 8px; display: flex; gap: 14px; position: relative; z-index: 1; }
.loc-hero .contact span { display: inline-flex; align-items: center; gap: 5px; }
.loc-hero .contact svg { width: 13px; height: 13px; }
.loc-hero-stats { display: flex; gap: 18px; margin-top: 18px; position: relative; z-index: 1; }
.loc-hero-stats div b { font-size: 20px; display: block; }
.loc-hero-stats div span { font-size: 9.5px; color: #9fb9a8; }
.loc-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 14px 18px 6px; }
.sync-btn { background: var(--orange-soft); color: #8a4a20; border: 1px solid #eccfb4; font-weight: 700; }
.sync-btn .count { background: var(--orange); color: #fff; border-radius: 10px; font-size: 10px; padding: 2px 6px; }
.detail-section { padding: 14px 18px 0; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.detail-section-head h2 { font-size: 16px; }
.detail-section-head .right { color: var(--muted); font-size: 10.5px; display: flex; align-items: center; gap: 8px; }
.location-products { display: grid; gap: 10px; }
.loc-product { display: grid; grid-template-columns: 94px 1fr; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; padding: 9px; }
.loc-product .thumb { width: 94px; height: 94px; border-radius: 11px; object-fit: cover; background: #e7dfcf; }
.loc-product-body { min-width: 0; display: flex; flex-direction: column; }
.loc-product-body .brand { font-size: 9px; color: var(--muted); letter-spacing: .08em; font-weight: 700; }
.loc-product-body h3 { font-size: 15px; margin-top: 2px; }
.loc-product-body .sub { font-size: 10px; color: var(--muted); margin-top: 3px; }
.year-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.year-chip { background: #f2ecdf; color: #546055; font-size: 9.5px; border-radius: 6px; padding: 3px 6px; }
.year-chip b { color: var(--green-2); }
.loc-product-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 6px; }
.loc-product-foot .price { color: var(--green); font-size: 13px; font-weight: 800; }
.loc-product-foot .stock { font-size: 9.5px; color: var(--muted); }
.loc-product-foot .go { margin-left: auto; color: var(--muted-2); }
.loc-product-foot .go svg { width: 15px; height: 15px; }
.draft-tag { font-size: 8.5px; background: var(--orange); color: #fff; border-radius: 5px; padding: 3px 5px; vertical-align: 2px; margin-left: 4px; }

/* ---------- 商品详情 ---------- */
.gallery-wrap { position: relative; background: #e5dccb; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; flex: 0 0 100%; scroll-snap-align: start; }
.gallery-placeholder { flex: 0 0 100%; display: grid; place-items: center; background: linear-gradient(145deg, #1c5a43, #0d3a2d); color: #b7cdbe; }
.gallery-placeholder svg { width: 54px; height: 54px; opacity: .55; }
.gallery-top { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 16px 0; z-index: 4; pointer-events: none; }
.gallery-top > * { pointer-events: auto; }
.gallery-counter { position: absolute; right: 16px; bottom: 34px; background: rgba(13, 28, 22, .58); color: #fff; border-radius: 20px; padding: 4px 9px; font-size: 10px; backdrop-filter: blur(8px); z-index: 4; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 5px; z-index: 3; }
.gallery-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.45); transition: width .2s; }
.gallery-dots span.active { width: 16px; border-radius: 4px; background: #fff; }

.product-sheet { position: relative; margin-top: -24px; border-radius: 26px 26px 0 0; background: var(--cream); padding: 22px 18px 10px; z-index: 5; }
.product-badges { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sync-callout {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--orange-soft); border: 1px solid #efd5ba; border-radius: 13px;
  padding: 11px 12px; margin-top: 13px; color: #7d421e;
}
.sync-callout > span:first-child { width: 30px; height: 30px; border-radius: 9px; background: rgba(201,108,46,.12); display: grid; place-items: center; flex: 0 0 auto; }
.sync-callout > span:first-child svg { width: 16px; height: 16px; }
.sync-callout > span:nth-child(2) { flex: 1; min-width: 0; }
.sync-callout b { display: block; font-size: 11.5px; }
.sync-callout small { display: block; font-size: 9.5px; color: #a56d46; margin-top: 2px; line-height: 1.45; }
.sync-callout > svg { width: 14px; height: 14px; color: #a56d46; flex: 0 0 auto; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 600; border-radius: 7px; padding: 4px 7px; background: var(--green-soft); color: var(--green-2); }
.tag.orange { background: var(--orange-soft); color: #8a4a20; }
.tag.gray { background: #ece7db; color: #6d726a; }
.tag svg { width: 11px; height: 11px; }
.product-title { font-size: 29px; letter-spacing: -.03em; line-height: 1.18; margin-top: 10px; }
.product-title .brand { display: block; font-size: 11px; color: var(--muted); letter-spacing: .12em; font-weight: 700; margin-bottom: 4px; }
.product-sub { color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 7px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.meta-pill { font-size: 10.5px; color: #536056; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; display: inline-flex; align-items: center; gap: 4px; }
.meta-pill svg { width: 12px; height: 12px; color: var(--green-3); }
.product-desc { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; margin-top: 14px; color: #4e5a50; font-size: 12px; line-height: 1.7; }
.product-desc .label { color: var(--muted); font-size: 9px; letter-spacing: .15em; font-weight: 700; display: block; margin-bottom: 4px; }
.section-block { margin-top: 24px; }
.section-block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-block-head h2 { font-size: 17px; letter-spacing: -.01em; }
.section-block-head p { color: var(--muted); font-size: 10px; margin-top: 2px; }
.section-block-head .action { color: var(--green-2); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.section-block-head .action svg { width: 14px; height: 14px; }
.variants { display: grid; gap: 8px; }
.variant-row { display: flex; align-items: center; gap: 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 11px 12px; }
.v-year { flex: 0 0 auto; width: 57px; }
.v-year b { display: block; font-size: 20px; line-height: 1; letter-spacing: -.03em; }
.v-year span { color: var(--muted); font-size: 9px; display: block; margin-top: 3px; }
.v-price { min-width: 0; flex: 1; }
.v-price b { font-size: 15px; color: var(--green); display: block; letter-spacing: -.01em; }
.v-price span { font-size: 9.5px; color: var(--muted); display: block; margin-top: 3px; }
.v-price span.out { color: var(--orange); }
.v-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); background: #f6f0e4; border-radius: 9px; height: 30px; overflow: hidden; }
.stepper button { width: 26px; height: 30px; display: grid; place-items: center; color: var(--green); }
.stepper button:disabled { color: #c9c3b6; }
.stepper span { min-width: 22px; text-align: center; font-size: 11px; font-weight: 700; }
.stepper svg { width: 12px; height: 12px; }
.quote-mini { height: 30px; border-radius: 9px; background: var(--green); color: var(--cream); font-size: 11px; font-weight: 700; padding: 0 10px; display: inline-flex; align-items: center; gap: 3px; }
.quote-mini svg { width: 12px; height: 12px; }
.variant-add { margin-top: 8px; }
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.image-tile { position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: #e7dfcf; }
.image-tile img { width: 100%; height: 100%; object-fit: cover; }
.image-tile .del { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(20, 25, 22, .62); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.image-tile .del svg { width: 11px; height: 11px; }
.image-add { aspect-ratio: 1; border: 1px dashed #c9c0ad; border-radius: 11px; background: #f1ebde; color: var(--muted); display: grid; place-items: center; align-content: center; gap: 5px; font-size: 9.5px; }
.image-add svg { width: 20px; height: 20px; }
.product-admin { display: flex; gap: 8px; margin-top: 22px; }
.product-admin .btn { flex: 1; min-height: 40px; font-size: 12px; }
.product-note { margin: 18px 2px 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9.5px; line-height: 1.6; }
.action-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px;
  display: flex; gap: 9px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247,243,233,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--line); z-index: 40;
}
.action-bar .btn { flex: 1; min-height: 48px; }
.action-bar .btn.secondary { flex: 0 0 118px; }

/* ---------- 报价编辑 ---------- */
.quote-metrics { display: flex; flex-direction: column; gap: 0; padding: 10px 18px 2px; }
.quote-metric-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.quote-metric-row span { color: var(--muted); font-size: 10.5px; }
.quote-metric-row b { color: var(--green); font-size: 15px; letter-spacing: -.02em; }
.quote-metric-row b.profit { color: var(--green-2); }
.quote-metric-row b.loss { color: #a84b40; }
.quote-metric-row.total { border-bottom: 0; padding-top: 10px; }
.quote-metric-row.total b { font-size: 19px; }
.quote-head { padding: 18px 18px 8px; }
.quote-head h1 { font-size: 27px; letter-spacing: -.03em; }
.quote-head p { color: var(--muted); font-size: 11px; margin-top: 5px; line-height: 1.55; }
.quote-main { margin: 12px 18px 0; background: var(--green); color: var(--cream); border-radius: 20px; padding: 14px; display: grid; grid-template-columns: 80px 1fr; gap: 12px; position: relative; overflow: hidden; }
.quote-main::after { content: ""; position: absolute; right: -30px; bottom: -46px; width: 130px; height: 130px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.quote-main img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; }
.quote-main .kicker { font-size: 9px; color: #a9c4b2; letter-spacing: .14em; font-weight: 700; }
.quote-main h2 { font-size: 18px; margin-top: 4px; }
.quote-main .sub { font-size: 10.5px; color: #b7cbbd; margin-top: 4px; }
.quote-main .from { font-size: 14px; color: var(--gold); font-weight: 800; margin-top: 9px; }
.quote-section { padding: 20px 18px 0; }
.quote-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.quote-section-head h2 { font-size: 16px; }
.quote-section-head span { color: var(--muted); font-size: 10px; }
.quote-customer { display: grid; gap: 9px; }
.quote-items { display: grid; gap: 8px; }
.quote-item { display: flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.quote-item.gift { background: #fcf5e9; border-color: #efdcc3; }
.quote-item img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.quote-item .qi-body { flex: 1; min-width: 0; }
.quote-item .qi-name { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-item .qi-price { font-size: 10px; color: var(--muted); margin-top: 2px; }
.quote-item .qi-price.gift { color: var(--orange); font-weight: 700; }
.quote-item .qi-controls { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.gift-toggle { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); background: var(--paper); }
.gift-toggle.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.gift-toggle svg { width: 14px; height: 14px; }
.qi-del { width: 26px; height: 26px; display: grid; place-items: center; color: var(--muted-2); }
.qi-del svg { width: 14px; height: 14px; }
.add-accessory { width: 100%; border: 1px dashed #c9c0ad; background: #f2ecdf; color: var(--green-2); border-radius: 14px; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; }
.add-accessory svg { width: 16px; height: 16px; }
.quote-total-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px;
  background: rgba(247,243,233,.96); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 12px;
}
.quote-total-bar .total { flex: 1; min-width: 0; }
.quote-total-bar .total span { display: block; font-size: 9.5px; color: var(--muted); }
.quote-total-bar .total b { font-size: 22px; color: var(--green); letter-spacing: -.03em; }
.quote-total-bar .btn { flex: 0 0 auto; min-height: 48px; }
.quote-tip { text-align: center; color: var(--muted-2); font-size: 9.5px; padding: 18px 24px 0; line-height: 1.6; }

/* 选择配件 */
.picker-tabs { display: flex; gap: 7px; padding: 0 0 10px; overflow-x: auto; }
.picker-tabs button { flex: 0 0 auto; }
.picker-list { display: grid; gap: 8px; }
.picker-item { display: flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 8px; text-align: left; width: 100%; }
.picker-item img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.picker-item .pi-body { flex: 1; min-width: 0; }
.picker-item .pi-name { font-size: 12px; font-weight: 700; }
.picker-item .pi-meta { font-size: 10px; color: var(--muted); margin-top: 2px; }
.picker-item .pi-right { text-align: right; flex: 0 0 auto; }
.picker-item .pi-price { font-size: 12px; color: var(--green); font-weight: 800; }
.picker-item .pi-add { font-size: 9px; color: var(--muted); margin-top: 3px; }
.picker-item.added { border-color: #a9c4b2; background: #f1f6ef; }

/* ---------- 报价单列表 ---------- */
.quotes-head { padding: 20px 18px 10px; display: flex; align-items: flex-start; gap: 10px; }
.quotes-head h1 { font-size: 29px; letter-spacing: -.03em; }
.quotes-head p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.quotes-head .icon-btn { margin-left: auto; }
.quote-list { padding: 4px 18px; display: grid; gap: 10px; }
.quote-card { display: grid; grid-template-columns: 72px 1fr; gap: 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 9px; }
.quote-card .qc-img { width: 72px; height: 96px; border-radius: 9px; object-fit: cover; background: var(--green); }
.quote-card .qc-body { min-width: 0; display: flex; flex-direction: column; }
.quote-card .qc-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-card .qc-sub { font-size: 10px; color: var(--muted); margin-top: 3px; }
.quote-card .qc-total { color: var(--green); font-size: 17px; font-weight: 800; margin-top: auto; }
.quote-card .qc-actions { display: flex; gap: 6px; margin-top: 3px; }
.quote-card .qc-actions .btn { min-height: 29px; font-size: 10px; border-radius: 8px; padding: 0 9px; }
.quote-new { margin: 4px 18px 16px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px;
  height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 253, 247, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(228, 221, 205, .9);
  display: flex; align-items: stretch; z-index: 50;
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #9aa397; font-size: 10px; font-weight: 600; position: relative; }
.tab svg { width: 21px; height: 21px; }
.tab.active { color: var(--green); }
.tab.active::before { content: ""; position: absolute; top: 0; width: 22px; height: 2px; border-radius: 2px; background: var(--green); }
.tab.active svg { stroke-width: 2; }

/* ---------- 弹层 ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 25, 20, .46); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .18s ease; }
.sheet {
  width: 100%; max-width: 520px; max-height: 92dvh; background: var(--cream);
  border-radius: 26px 26px 0 0; display: flex; flex-direction: column;
  box-shadow: 0 -20px 60px rgba(0,0,0,.18); animation: sheetUp .26s cubic-bezier(.22,.9,.3,1);
  overflow: hidden;
}
.sheet.large { max-height: 95dvh; }
.sheet-head { padding: 10px 18px 10px; flex: 0 0 auto; position: relative; }
.sheet-grab { width: 38px; height: 4px; border-radius: 3px; background: #d6cdbb; margin: 0 auto 12px; }
.sheet-title-row { display: flex; align-items: center; gap: 10px; }
.sheet-title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.sheet-sub { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.sheet-close { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: #ece5d6; display: grid; place-items: center; color: #606b61; }
.sheet-close svg { width: 16px; height: 16px; }
.sheet-body { padding: 6px 18px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-footer { padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream); flex: 0 0 auto; display: flex; gap: 9px; }
.sheet-footer .btn { flex: 1; }
@keyframes sheetUp { from { transform: translateY(30px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 分类选择 */
.cat-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 15px; }
.cat-opt { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px 4px; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.cat-opt.active { background: var(--green); border-color: var(--green); color: var(--cream); }
.cat-opt small { display: block; font-size: 8.5px; font-weight: 400; opacity: .65; margin-top: 2px; }
.variant-form { display: grid; grid-template-columns: 78px 1fr 1fr 28px; gap: 6px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 7px; margin-bottom: 7px; }
.variant-form.non-table { grid-template-columns: 1fr 1fr 28px; }
.variant-form.non-table .vin-year { display: none; }
.variant-form-head.non-table { grid-template-columns: 1fr 1fr 28px; }
.variant-form-head.non-table .vh-year { display: none; }
.variant-form .input { min-height: 40px; padding: 8px 9px; font-size: 16px; border-radius: 9px; }
.variant-form .row-del { width: 28px; height: 28px; display: grid; place-items: center; color: #a29a8b; }
.variant-form .row-del svg { width: 14px; height: 14px; }
.variant-form-head { display: grid; grid-template-columns: 78px 1fr 1fr 28px; gap: 6px; padding: 0 8px; color: var(--muted); font-size: 9px; margin-bottom: 4px; }
.add-year { color: var(--green-2); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; }
.add-year svg { width: 13px; height: 13px; }
.upload-box { display: flex; align-items: center; gap: 10px; border: 1px dashed #c9c0ad; border-radius: 13px; padding: 11px; background: #f2ecdf; color: var(--muted); font-size: 11px; }
.upload-box .up-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--paper); display: grid; place-items: center; color: var(--green-2); }
.upload-box input { display: none; }
.upload-files { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.upload-files span { font-size: 9px; background: var(--paper); border: 1px solid var(--line); padding: 3px 6px; border-radius: 5px; }
.form-actions { display: flex; gap: 9px; margin-top: 18px; }
.form-actions .btn { flex: 1; }

/* 报价预览 */
.quote-preview { font-size: 12px; }
.quote-preview img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-md); }
.preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.preview-actions .btn { min-height: 44px; font-size: 12px; }
.preview-actions .btn.wide { grid-column: 1 / -1; }
.share-hint { color: var(--muted); font-size: 10px; text-align: center; margin-top: 10px; line-height: 1.6; }
.quote-success { display: flex; align-items: center; gap: 8px; color: var(--green-2); background: var(--green-soft); border-radius: 10px; padding: 9px 11px; font-size: 11px; margin-bottom: 12px; }
.quote-success svg { width: 16px; height: 16px; }

/* 设置 */
.settings-group { margin-bottom: 18px; }
.settings-group h3 { font-size: 10px; letter-spacing: .14em; color: var(--muted); margin: 0 2px 8px; }
.settings-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.settings-row:last-child { border-bottom: 0; }
.settings-row .val { margin-left: auto; color: var(--muted); font-size: 11px; }
.settings-row svg { width: 17px; height: 17px; color: var(--green-3); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px); transform: translate(-50%, 16px);
  background: rgba(18, 30, 24, .94); color: #f7f3e9; font-size: 12px; padding: 11px 16px;
  border-radius: 12px; z-index: 300; opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
  max-width: min(420px, calc(100vw - 40px)); text-align: center; line-height: 1.5;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8e3a31; }
body.no-tabbar .toast { bottom: calc(94px + env(safe-area-inset-bottom)); }
body.sheet-open .toast { bottom: 32px; }

/* 上传进度 */
.progress-mask { position: fixed; inset: 0; background: rgba(15,25,20,.5); z-index: 250; display: grid; place-items: center; padding: 24px; }
.progress-card { background: var(--cream); border-radius: 18px; padding: 22px; width: 240px; text-align: center; box-shadow: var(--shadow-md); }
.progress-card b { font-size: 14px; display: block; margin-bottom: 5px; }
.progress-card span { font-size: 10.5px; color: var(--muted); }
.progress-bar { height: 5px; background: #e4ddcd; border-radius: 3px; margin-top: 14px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--green-2); width: 8%; transition: width .2s; }

/* 骨架 */
.skeleton { background: linear-gradient(90deg, #ece5d7 25%, #f5efe4 37%, #ece5d7 63%); background-size: 400% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 登录 / 改密 ---------- */
body.auth-mode .view { padding-bottom: 0; }
body.admin-mode .view { padding-bottom: 24px; }
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 88% 8%, rgba(64, 122, 91, .55), transparent 55%),
    linear-gradient(160deg, #0b3328 0%, #0d3a2d 52%, #123f30 100%);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  padding: max(28px, env(safe-area-inset-top)) 20px calc(26px + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}
.auth-page::before { content: ""; position: absolute; width: 270px; height: 270px; right: -120px; top: 70px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.auth-page::after { content: ""; position: absolute; width: 150px; height: 150px; right: -20px; top: 130px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.auth-brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.auth-brand .brand-mark { width: 42px; height: 42px; font-size: 18px; }
.auth-brand .brand-name { font-size: 15px; letter-spacing: .18em; }
.auth-ball { position: absolute; right: 34px; top: 120px; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fdfcf5, #d9d3c5 68%, #a9a296); box-shadow: 0 8px 20px rgba(0,0,0,.22); z-index: 1; }
.auth-ball::after { content: "8"; position: absolute; inset: 11px; border-radius: 50%; background: #151b17; color: #f4f1e8; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.auth-hero { position: relative; z-index: 2; margin-top: 34px; }
.auth-kicker { color: #a9c4b2; font-size: 10px; letter-spacing: .22em; }
.auth-title { font-size: 38px; line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin-top: 9px; }
.auth-title em { font-style: normal; color: var(--gold); }
.auth-sub { color: #b7cbbd; font-size: 12px; line-height: 1.65; margin-top: 10px; }
.auth-card {
  position: relative; z-index: 2; margin-top: 28px;
  background: var(--cream); color: var(--ink);
  border-radius: 24px; padding: 20px 18px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}
.auth-card h2 { font-size: 20px; letter-spacing: -.02em; }
.auth-card .auth-note { color: var(--muted); font-size: 10.5px; line-height: 1.6; margin-top: 5px; }
.auth-card .field { margin-top: 14px; margin-bottom: 0; }
.auth-card .btn { margin-top: 16px; min-height: 50px; }
.auth-error { background: #f8e7e3; color: #913a30; border-radius: 10px; padding: 10px 12px; font-size: 11.5px; margin-top: 12px; line-height: 1.5; }
.auth-foot { position: relative; z-index: 2; margin-top: auto; padding-top: 24px; color: #90ad9b; font-size: 10px; text-align: center; line-height: 1.7; }
.auth-foot button { color: #d8e4da; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.auth-download { color: #e4c48d; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.auth-back { color: #b7cbbd; font-size: 11px; margin-top: 14px; display: inline-flex; align-items: center; gap: 4px; }
.auth-card .auth-back { color: var(--green-2); }
.auth-back svg { width: 14px; height: 14px; }

/* ---------- 超级管理台 ---------- */
.admin-hero {
  background:
    radial-gradient(120% 80% at 88% 8%, rgba(64, 122, 91, .55), transparent 55%),
    linear-gradient(160deg, #0b3328 0%, #0d3a2d 52%, #123f30 100%);
  color: var(--cream); border-radius: 0 0 30px 30px;
  padding: max(16px, env(safe-area-inset-top)) 18px 24px;
  position: relative; overflow: hidden;
}
.admin-hero::after { content: ""; position: absolute; width: 190px; height: 190px; right: -80px; top: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.admin-top { display: flex; align-items: center; gap: 9px; position: relative; z-index: 1; }
.admin-top .brand-mark { width: 34px; height: 34px; font-size: 15px; }
.admin-top .brand-name { font-size: 13px; letter-spacing: .14em; }
.admin-top .icon-btn { margin-left: auto; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: var(--cream); }
.admin-hero h1 { font-size: 30px; letter-spacing: -.03em; margin-top: 24px; position: relative; z-index: 1; }
.admin-hero p { color: #b7cbbd; font-size: 11.5px; line-height: 1.6; margin-top: 6px; position: relative; z-index: 1; }
.admin-user { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: #d5e3d7; font-size: 11px; position: relative; z-index: 1; }
.admin-user .avatar { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: var(--cream); }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 20px; position: relative; z-index: 1; }
.admin-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: 13px; padding: 10px; }
.admin-stat b { display: block; font-size: 20px; line-height: 1.1; letter-spacing: -.02em; }
.admin-stat span { display: block; color: #9db7a7; font-size: 9px; margin-top: 4px; }
.admin-body { padding: 20px 18px 30px; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 2px 12px; }
.admin-section-head h2 { font-size: 18px; letter-spacing: -.01em; }
.admin-section-head p { color: var(--muted); font-size: 10px; margin-top: 3px; }
.admin-section-head .btn { min-height: 34px; padding: 0 12px; font-size: 11px; border-radius: 9px; }
.admin-hint { background: var(--green-soft); color: #4d6556; border-radius: 12px; padding: 10px 12px; font-size: 10.5px; line-height: 1.6; margin-bottom: 12px; }
.account-list { display: grid; gap: 10px; }
.account-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 13px; box-shadow: var(--shadow-sm); }
.account-card.disabled { opacity: .72; }
.account-head { display: flex; align-items: flex-start; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 13px; background: var(--green-soft); border: 1px solid #d7e4da; color: var(--green-2); display: grid; place-items: center; font-size: 17px; font-weight: 800; flex: 0 0 auto; }
.account-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.account-sub { color: var(--muted); font-size: 10px; margin-top: 3px; }
.role-badge { font-size: 8.5px; border-radius: 5px; padding: 2px 5px; background: var(--green-soft); color: var(--green-2); font-weight: 700; }
.role-badge.super { background: #f4e5c9; color: #8a5a1f; }
.status-dot { font-size: 9px; color: var(--green-3); margin-left: auto; flex: 0 0 auto; }
.status-dot.off { color: var(--muted-2); }
.account-locs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.account-loc { font-size: 9px; color: #66736a; background: #f3ede0; border-radius: 6px; padding: 3px 6px; }
.account-loc.more { color: var(--muted); }
.account-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #f7f1e5; border-radius: 10px; padding: 8px 4px; margin-top: 10px; }
.account-stats div { text-align: center; }
.account-stats b { display: block; font-size: 15px; color: var(--green); line-height: 1.1; }
.account-stats span { display: block; color: var(--muted); font-size: 8.5px; margin-top: 3px; }
.account-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.account-actions .btn { flex: 1; min-height: 33px; padding: 0 8px; font-size: 10px; border-radius: 8px; }
.account-actions .btn.small-danger { flex: 0 0 auto; color: #a84b40; }
.admin-foot { padding: 22px 4px 0; color: var(--muted-2); font-size: 9.5px; text-align: center; line-height: 1.7; }

/* ---------- 超级查看条 ---------- */
.workspace-bar { background: #f1e2c9; color: #70451f; border-bottom: 1px solid #e5d1b3; padding: 7px 14px; font-size: 10px; display: flex; align-items: center; gap: 8px; position: relative; z-index: 60; }
.workspace-bar[hidden] { display: none; }
.workspace-bar b { font-weight: 700; }
.workspace-bar svg { width: 13px; height: 13px; vertical-align: -2px; }
.workspace-bar button { margin-left: auto; color: #8a4a20; border: 1px solid #ddc29d; border-radius: 6px; padding: 3px 7px; font-size: 9px; background: rgba(255,255,255,.4); }

/* ---------- 账号设置 ---------- */
.settings-profile { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 11px; margin-bottom: 12px; }
.settings-profile .avatar { width: 38px; height: 38px; border-radius: 11px; }
.settings-profile .name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.settings-profile .sub { color: var(--muted); font-size: 9.5px; margin-top: 3px; }
.settings-account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 18px; }
.settings-account-actions .btn { min-height: 38px; font-size: 11px; border-radius: 9px; }
.settings-account-actions .btn.wide { grid-column: 1 / -1; }
.settings-group-title { font-size: 10px; letter-spacing: .14em; color: var(--muted); margin: 16px 2px 8px; font-weight: 700; }
.password-note { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 2px 2px 12px; }

/* ---------- 角色 / 到期 / 经销商中心 ---------- */
.tab[hidden] { display: none; }
.library-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.library-head-row .btn { flex: 0 0 auto; margin-top: 2px; }
.section-actions { display: flex; align-items: center; gap: 12px; }
.role-strip { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 0 2px 12px; color: var(--muted); font-size: 9.5px; }
.role-strip .role-badge { font-size: 9px; }
.expiry-banner { display: flex; align-items: flex-start; gap: 7px; background: #f6ead2; color: #7a4b1e; border: 1px solid #ead5b4; border-radius: 11px; padding: 9px 11px; font-size: 10.5px; line-height: 1.5; margin-bottom: 12px; }
.expiry-banner.danger { background: #f8e4df; border-color: #ecc9c1; color: #8d3b31; }
.expiry-banner svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }
.expiry-badge { display: inline-flex; width: fit-content; margin-top: 5px; font-size: 9px; padding: 3px 6px; border-radius: 5px; background: var(--green-soft); color: var(--green-2); }
.expiry-badge.warn { background: #f6ead2; color: #7a4b1e; }
.expiry-badge.danger { background: #f8e4df; color: #8d3b31; }
.account-subs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.account-loc.sub { background: var(--green-soft); color: var(--green-2); }
.settings-role-line { color: var(--muted); font-size: 9.5px; margin-top: 4px; }
.settings-dealer-card { display: grid; gap: 7px; background: #f3ede0; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.settings-dealer-card div { display: flex; justify-content: space-between; gap: 12px; font-size: 10.5px; color: var(--muted); }
.settings-dealer-card b { color: var(--ink); font-weight: 600; text-align: right; }
.readonly-tag { color: var(--muted); font-size: 9px; background: #eee9dc; border-radius: 5px; padding: 3px 6px; }

/* ---------- 商品录入入口 ---------- */
.add-page-head { padding: 20px 20px 12px; }
.add-page-head .kicker { color: var(--green-3); font-size: 9px; letter-spacing: .18em; font-weight: 800; }
.add-page-head h1 { font-size: 29px; letter-spacing: -.03em; margin-top: 6px; }
.add-page-head p { color: var(--muted); font-size: 11.5px; line-height: 1.6; margin-top: 6px; }
.add-cat-grid { display: grid; gap: 10px; padding: 6px 18px 16px; }
.add-cat-card { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; padding: 14px; box-shadow: var(--shadow-sm); }
.add-cat-card.primary { background: var(--green); color: var(--cream); border-color: var(--green); }
.add-cat-card.primary .add-cat-body small { color: #b7cbbd; }
.add-cat-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-2); flex: 0 0 auto; }
.add-cat-card.primary .add-cat-icon { background: rgba(255,255,255,.12); color: var(--cream); }
.add-cat-icon svg { width: 21px; height: 21px; }
.add-cat-body { flex: 1; min-width: 0; }
.add-cat-body b { display: block; font-size: 15px; }
.add-cat-body small { display: block; color: var(--muted); font-size: 9.5px; line-height: 1.45; margin-top: 3px; }
.add-cat-go { color: var(--muted-2); display: flex; }
.add-cat-card.primary .add-cat-go { color: #b7cbbd; }
.add-page-note { margin: 0 20px; color: var(--muted); font-size: 10px; line-height: 1.6; display: flex; gap: 5px; align-items: flex-start; }
.add-page-note svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* ---------- 经销商中心 ---------- */
.dealer-hero { background: linear-gradient(160deg, #0b3328 0%, #0d3a2d 55%, #18523e 100%); color: var(--cream); border-radius: 0 0 28px 28px; padding: max(18px, env(safe-area-inset-top)) 18px 22px; position: relative; overflow: hidden; }
.dealer-hero::after { content: ""; position: absolute; width: 190px; height: 190px; right: -70px; top: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.dealer-hero-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; margin-top: 16px; }
.dealer-avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-size: 23px; font-weight: 800; flex: 0 0 auto; }
.dealer-hero .kicker { color: #a9c4b2; font-size: 8.5px; letter-spacing: .18em; font-weight: 800; }
.dealer-hero h1 { font-size: 25px; letter-spacing: -.03em; margin-top: 3px; }
.dealer-hero-top p { color: #b7cbbd; font-size: 10px; margin-top: 4px; }
.dealer-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 18px; position: relative; z-index: 1; }
.dealer-meta div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: 11px; padding: 8px 9px; }
.dealer-meta span { display: block; color: #9db7a7; font-size: 8px; }
.dealer-meta b { display: block; font-size: 11.5px; margin-top: 4px; line-height: 1.3; }
.dealer-hero-actions { display: flex; gap: 7px; margin-top: 12px; position: relative; z-index: 1; }
.btn.light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: var(--cream); }
.dealer-body { padding: 18px 18px 30px; }
.dealer-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 4px 2px 12px; }
.dealer-section-head h2 { font-size: 18px; }
.dealer-section-head p { color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 3px; }
.dealer-section-head .btn { min-height: 34px; padding: 0 11px; font-size: 10.5px; flex: 0 0 auto; }
.dealer-limit { color: var(--muted); font-size: 10px; background: #eee9dc; padding: 5px 8px; border-radius: 6px; }
.dealer-sub-list { display: grid; gap: 10px; }
.dealer-sub-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); }
.dealer-sub-card.disabled { opacity: .72; }
.dealer-sub-head { display: flex; align-items: flex-start; gap: 9px; }
.dealer-sub-head .avatar { width: 36px; height: 36px; border-radius: 11px; font-size: 15px; }
.dealer-sub-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dealer-sub-account { color: var(--muted); font-size: 9.5px; margin-top: 3px; }
.dealer-sub-perms { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.perm-badge { font-size: 8.5px; color: var(--muted); background: #eee9dc; border-radius: 5px; padding: 3px 6px; }
.perm-badge.on { background: var(--green-soft); color: var(--green-2); }
.dealer-sub-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.dealer-sub-actions .btn { min-height: 31px; padding: 0 9px; font-size: 9.5px; border-radius: 8px; flex: 1; }
.dealer-sub-actions .btn.danger { background: transparent; color: #a84b40; border-color: #e7ccc6; }
.dealer-tip { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 16px; }
.dealer-tip svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }
.perm-options { display: grid; gap: 8px; margin-bottom: 12px; }
.perm-option { display: flex; align-items: flex-start; gap: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.perm-option input { width: 17px; height: 17px; accent-color: var(--green); margin-top: 1px; flex: 0 0 auto; }
.perm-option b { display: block; font-size: 12px; }
.perm-option small { display: block; color: var(--muted); font-size: 9.5px; line-height: 1.5; margin-top: 2px; }

/* ---------- 设置悬浮按钮 / 分类新增 / 图片 / 分享 ---------- */
.settings-fab {
  position: fixed; right: 18px; bottom: calc(78px + env(safe-area-inset-bottom));
  width: 48px; height: 48px; border-radius: 16px; z-index: 45;
  background: var(--green); color: var(--cream); border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(13,58,45,.3);
}
.settings-fab[hidden] { display: none; }
.settings-fab svg { width: 21px; height: 21px; }
body.no-tabbar .settings-fab { bottom: calc(22px + env(safe-area-inset-bottom)); }
.lib-cat-add { display: flex; gap: 8px; padding: 0 18px 12px; }
.lib-cat-add .btn { min-height: 34px; font-size: 10.5px; border-radius: 9px; }
.image-tile { position: relative; cursor: pointer; }
.image-year { position: absolute; left: 6px; bottom: 6px; background: rgba(13,58,45,.82); color: var(--cream); font-size: 8px; padding: 3px 5px; border-radius: 4px; backdrop-filter: blur(4px); }
.v-img-btn { display: inline-flex; align-items: center; gap: 2px; color: var(--green-3); background: var(--green-soft); border-radius: 7px; padding: 4px 6px; font-size: 8px; font-weight: 700; }
.variant-row { flex-wrap: wrap; align-items: flex-start; }
.v-price { flex: 1 1 calc(100% - 68px); white-space: normal; }
.v-actions { width: 100%; justify-content: flex-end; margin-top: 8px; }
.v-pricing, .v-warning-tags { white-space: normal; line-height: 1.5; }
.v-img-btn svg { width: 13px; height: 13px; }
.v-pricing { display: block; color: var(--muted); font-size: 8.5px; margin-top: 3px; white-space: nowrap; }
.v-warning-tags { display: block; color: var(--muted-2); font-size: 8px; margin-top: 2px; white-space: nowrap; }
.v-warning-tags em { font-style: normal; color: #a84b40; background: #f8e4df; border-radius: 4px; padding: 1px 3px; }
.upload-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 12px; }
.upload-preview-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; background: #e8e0d0; }
.share-select-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10.5px; color: var(--muted); margin-bottom: 9px; }
.share-select-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.share-select-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #e8e0d0; border: 2px solid transparent; }
.share-select-item img { width: 100%; height: 100%; object-fit: cover; }
.share-select-item.selected { border-color: var(--green); }
.share-check { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.88); color: transparent; display: grid; place-items: center; }
.share-check svg { width: 11px; height: 11px; }
.share-select-item.selected .share-check { background: var(--green); color: var(--cream); }
.share-select-grid + .form-hint { margin-top: 12px; }
.share-year { position: absolute; left: 5px; bottom: 5px; background: rgba(13,58,45,.82); color: var(--cream); font-size: 8px; padding: 3px 5px; border-radius: 4px; }
.picker-search { position: relative; margin-bottom: 8px; }
.picker-search > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.picker-search input { width: 100%; height: 43px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 0 38px; font-size: 15px; outline: none; }
.picker-search .search-clear { right: 7px; }
.settings-version { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 20px; padding: 13px 2px 2px; color: var(--muted); font-size: 10px; }
.settings-version .link { display: inline-flex; align-items: center; gap: 4px; color: var(--green-2); font-size: 10px; }
.settings-version .link svg { width: 13px; height: 13px; }
.update-box p { color: var(--muted); font-size: 11px; line-height: 1.7; margin-bottom: 14px; }

/* ---------- 设置页 / 账号管理 ---------- */
.settings-page { padding: 20px 18px 0; }
.settings-page-head { margin-bottom: 16px; }
.settings-page-head .kicker { color: var(--green-3); font-size: 9px; letter-spacing: .18em; font-weight: 800; }
.settings-page-head h1 { font-size: 30px; letter-spacing: -.03em; margin-top: 4px; }
.settings-page-head p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.settings-account-manage { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--green-soft); border: 1px solid #d7e4da; border-radius: 13px; padding: 11px 12px; margin-bottom: 12px; }
.settings-account-manage b { display: block; font-size: 13px; }
.settings-account-manage span { display: block; color: var(--muted); font-size: 9.5px; margin-top: 3px; }
.settings-account-manage .btn { flex: 0 0 auto; }

/* ---------- 成本 / 利润 / 库存预警表单 ---------- */
.variant-form { display: block; padding: 10px; }
.vf-line { display: grid; grid-template-columns: 1fr 88px 28px; gap: 6px; align-items: center; }
.variant-form.non-table .vf-line { grid-template-columns: 1fr 88px 28px; }
.vf-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.vf-warning { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: end; margin-top: 6px; }
.vf-pricing label, .vf-warning label { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 8.5px; font-weight: 600; }
.vf-pricing .input, .vf-warning .input { min-height: 36px; padding: 6px 8px; font-size: 14px; }
.vf-pricing .vin-price { background: #f1ebde; color: var(--green-2); font-weight: 700; }
.inbound-note { color: var(--muted); font-size: 8px; padding-bottom: 10px; white-space: nowrap; }

@media (min-width: 560px) {
  .app-shell { margin-top: 0; }
}
@media (max-width: 360px) {
  .hero-title { font-size: 36px; }
  .variant-row { flex-wrap: wrap; }
  .variant-row .v-actions { width: 100%; justify-content: flex-end; }
  .quote-item { flex-wrap: wrap; }
  .quote-item .qi-controls { width: 100%; justify-content: flex-end; }
  .action-bar .btn.secondary { flex: 0 0 104px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .account-actions .btn { flex: 1 1 45%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
