/* ============ 机遇 JIYU · 设计系统 ============ */
:root {
  /* 品牌色板：全部取自 LOGO（黄 #FFD400 / 墨 #1A1A1A / 白） */
  --brand: #6f5600;          /* 品牌色文字（白底 6.8:1） */
  --brand-fill: #ffd400;     /* 品牌主色（只做填充，不做小字） */
  --brand-fill-2: #ffe35c;
  --brand-soft: #fff6cc;
  --brand-2: #ffe35c;
  --brand-ink: #5a4700;
  --accent: #a86b00;         /* 琥珀强调（白底 4.9:1） */
  --accent-fill: #ffb300;
  --ok: #0a7a4d;
  --warn: #b26a00;
  --danger: #c62f35;
  --ink: #1a1a1a;
  --sub: #4f4f4f;
  --mute: #767676;
  --line: #e7e4da;
  --line-2: #f4f2ec;
  --bg: #f6f5f0;
  --card: #ffffff;
  --r-xl: 22px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 9px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: #eef1f7;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- 移动端外壳 ---------- */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(72px + var(--safe-bottom));
  overflow-x: hidden;
}
@media (min-width: 560px) {
  body { background: #e9edf5; }
  .app {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 30px 80px rgba(15, 23, 42, 0.14);
    border-radius: 0;
  }
}
.view { padding: 0 16px; }
.page { animation: pageIn 0.28s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 10px;
  background: rgba(245, 247, 251, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.topbar.solid { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar .tb-title { font-size: 17px; font-weight: 700; }
.topbar .tb-sub { font-size: 12px; color: var(--sub); }
.topbar .spacer { flex: 1; }
.tb-btn {
  width: 34px; height: 34px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); display: grid; place-items: center; color: var(--ink);
  cursor: pointer;
}
.tb-btn:active { transform: scale(0.94); }

.loc-chip { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--sub); }
.loc-chip .ic { color: var(--brand); }

.searchbar {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--mute); font-size: 14px;
}
.searchbar .ic { color: var(--mute); }
.searchbar input { border: 0; outline: 0; background: transparent; flex: 1; color: var(--ink); font-size: 14px; }
.searchbar input::placeholder { color: var(--mute); }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  max-width: 480px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px calc(8px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tabbar .tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--mute); padding: 4px 0; position: relative;
}
.tabbar .tab.on { color: var(--brand); font-weight: 600; }
.tabbar .tab.on::after {
  content: ""; position: absolute; top: -9px; width: 18px; height: 3px; border-radius: 3px; background: var(--brand);
}
.tabbar .tab .ic { width: 22px; height: 22px; }

/* ---------- 卡片与列表 ---------- */
.card {
  background: var(--card); border-radius: var(--r-lg); padding: 14px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.tight { padding: 12px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 2px 10px; }
.sec-head h2 { font-size: 17px; }
.sec-head .more { font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 2px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row .grow { flex: 1; min-width: 0; }
.muted { color: var(--sub); font-size: 13px; }
.tiny { font-size: 11px; color: var(--mute); }
.strong { font-weight: 700; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr { height: 1px; background: var(--line); margin: 12px 0; }
.price { font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price .cur { font-size: 0.62em; font-weight: 700; margin-right: 1px; }
.price .unit { font-size: 0.55em; font-weight: 600; color: var(--sub); margin-left: 2px; }
.price.big { font-size: 30px; }
.price.brand { color: var(--brand); }
.price.accent { color: var(--accent); }

/* ---------- 首页 hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: 20px 18px 18px;
  background: linear-gradient(135deg, #1f47d6 0%, #3a6bfa 48%, #6e8bff 100%);
  color: #fff; box-shadow: 0 14px 32px rgba(43, 91, 245, 0.28);
}
.hero::before {
  content: ""; position: absolute; right: -50px; top: -70px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.35), transparent 62%); border-radius: 50%;
}
.hero::after {
  content: ""; position: absolute; left: -30px; bottom: -80px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(110,139,255,.45), transparent 65%); border-radius: 50%;
}
.hero .h-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,.18); padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.hero h1 { font-size: 25px; line-height: 1.25; letter-spacing: -0.02em; position: relative; }
.hero .h-sub { font-size: 13px; opacity: .86; margin-top: 6px; position: relative; }
.hero .h-cta {
  position: relative; margin-top: 16px; display: flex; gap: 10px;
}
.hero .btn-light {
  background: #fff; color: var(--brand-ink); font-weight: 700; font-size: 13px;
  padding: 9px 16px; border-radius: 999px; border: 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero .btn-ghost {
  background: rgba(255,255,255,.16); color: #fff; font-weight: 600; font-size: 13px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-stats { position: relative; display: flex; gap: 22px; margin-top: 16px; }
.hero-stats b { font-size: 17px; display: block; }
.hero-stats span { font-size: 11px; opacity: .8; }

/* ---------- 四大入口 ---------- */
.entries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.entry {
  background: var(--card); border-radius: var(--r-lg); padding: 12px 8px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.9);
}
.entry:active { transform: scale(.97); }
.entry .e-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.entry .e-ico.rent { background: var(--brand-soft); color: var(--ink); }
.entry .e-ico.buy { background: linear-gradient(135deg,#0fa968,#37c98b); }
.entry .e-ico.sell { background: linear-gradient(135deg,#ff7a3d,#ffab5e); }
.entry .e-ico.sim { background: linear-gradient(135deg,#7c5cff,#a78bfa); }
.entry .e-txt { font-size: 12.5px; font-weight: 600; }
.entry .e-sub { font-size: 10px; color: var(--mute); margin-top: -5px; }

/* ---------- 机型卡片 ---------- */
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.mcard {
  flex: 0 0 138px; background: var(--card); border-radius: var(--r-lg); padding: 12px;
  box-shadow: var(--shadow); scroll-snap-align: start;
}
.mcard .art-wrap { display: flex; justify-content: center; padding: 6px 0 10px; }
.mcard .m-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .m-sub { font-size: 11px; color: var(--mute); margin-top: 2px; }
.mcard .m-price { margin-top: 8px; color: var(--brand); font-weight: 800; font-size: 16px; }
.mcard .m-price small { font-weight: 500; font-size: 10px; color: var(--mute); }

/* ---------- 设备视觉 ---------- */
.device-art { display: inline-block; }
.device-art .da-body {
  width: 58px; height: 112px; border-radius: 12px; position: relative;
  background: linear-gradient(150deg, var(--dc), color-mix(in srgb, var(--dc) 70%, #000 30%));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 8px 18px rgba(15,23,42,.18);
  padding: 4px;
}
.device-art .da-screen {
  position: absolute; inset: 5px; border-radius: 9px;
  background: linear-gradient(160deg, rgba(255,255,255,.20), rgba(255,255,255,.04) 55%, rgba(0,0,0,.14));
  display: grid; place-items: center; overflow: hidden;
}
.device-art .da-brand { font-size: 8px; letter-spacing: .12em; color: rgba(255,255,255,.75); font-weight: 700; }
.device-art .da-notch {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 4px; border-radius: 3px; background: rgba(0,0,0,.5);
}
.device-art.lg .da-body { width: 86px; height: 168px; border-radius: 17px; }
.device-art.lg .da-screen { inset: 6px; border-radius: 13px; }
.device-art.lg .da-notch { width: 26px; height: 5px; top: 9px; }
.device-art.xl .da-body { width: 118px; height: 230px; border-radius: 24px; }
.device-art.xl .da-screen { inset: 8px; border-radius: 18px; }
.device-art.xl .da-brand { font-size: 11px; }
.device-art.xl .da-notch { width: 36px; height: 6px; top: 12px; }
.device-art.sm .da-body { width: 40px; height: 78px; border-radius: 9px; }
.device-art.sm .da-notch { width: 12px; height: 3px; top: 5px; }

/* ---------- 商品行 ---------- */
.pitem {
  display: flex; gap: 12px; padding: 12px; background: var(--card);
  border-radius: var(--r-lg); box-shadow: var(--shadow); margin-bottom: 10px;
}
.pitem .thumb {
  flex: 0 0 84px; height: 100px; border-radius: var(--r-md);
  background: linear-gradient(160deg, #f7f9ff, #eef2fb); display: grid; place-items: center;
}
.pitem .p-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pitem .p-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.pitem .tags { display: flex; gap: 4px; flex-wrap: wrap; margin: 5px 0 6px; }
.pitem .p-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.pitem .p-foot .p-price { font-size: 18px; font-weight: 800; color: var(--accent); }
.pitem .p-foot .p-price small { font-size: 10px; font-weight: 500; color: var(--mute); }
.pitem .p-foot .p-sold { font-size: 11px; color: var(--mute); }

/* ---------- 标签 / 徽标 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; padding: 2px 7px; border-radius: 6px;
  background: var(--line-2); color: var(--sub); font-weight: 500;
}
.tag.brand { background: rgba(43,91,245,.09); color: var(--brand); }
.tag.ok { background: rgba(15,169,104,.1); color: var(--ok); }
.tag.accent { background: rgba(255,106,43,.1); color: var(--accent); }
.tag.warn { background: rgba(245,158,11,.12); color: #b45309; }
.tag.line { background: transparent; border: 1px solid var(--line); }

.pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; padding: 2.5px 9px; border-radius: 999px; }
.pill-warn { background: rgba(245,158,11,.12); color: #b45309; }
.pill-info { background: rgba(43,91,245,.1); color: var(--brand); }
.pill-ok { background: rgba(15,169,104,.11); color: var(--ok); }
.pill-mute { background: var(--line-2); color: var(--mute); }

.rank { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; padding: 2px 6px; border-radius: 5px; font-weight: 700; }
.rank.official { background: linear-gradient(135deg,#1f47d6,#4a78ff); color: #fff; }
.rank.verified { background: rgba(43,91,245,.1); color: var(--brand); }
.rank.normal { background: var(--line-2); color: var(--sub); }
.rank.watch { background: rgba(245,158,11,.14); color: #b45309; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: var(--r-md); padding: 12px 18px;
  font-size: 15px; font-weight: 700; cursor: pointer; background: var(--line-2); color: var(--ink);
  transition: transform .12s ease, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.brand { background: var(--ink); color: var(--brand-fill); box-shadow: 0 8px 20px rgba(26,26,26,.18); }
.btn.accent { background: linear-gradient(135deg, #ff6a2b, #ff9052); color: #fff; box-shadow: 0 8px 20px rgba(255,106,43,.26); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--sub); }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn.xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; font-weight: 600; }
.btn.soft { background: rgba(43,91,245,.08); color: var(--brand); }
.btn.ok { background: rgba(15,169,104,.1); color: var(--ok); }

/* ---------- 底部操作条 ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  max-width: 480px; margin: 0 auto; padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255,255,255,.94); border-top: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; gap: 12px;
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 11px; color: var(--mute); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: var(--card);
  border-radius: var(--r-md); padding: 12px 13px; font-size: 15px; color: var(--ink);
  outline: none; transition: border-color .18s, box-shadow .18s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43,91,245,.12);
}
.input.err, .textarea.err { border-color: var(--danger); }
.textarea { resize: vertical; min-height: 80px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  border: 1px solid var(--line); background: var(--card); color: var(--sub);
  padding: 9px 13px; border-radius: 10px; font-size: 13px; cursor: pointer; font-weight: 500;
}
.choice.on { border-color: var(--brand-fill); background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.choice.on::after { content: ""; }

.check {
  display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--sub); line-height: 1.5;
  cursor: pointer;
}
.check .box {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: transparent; margin-top: 1px;
}
.check.on .box { background: var(--brand); border-color: var(--brand); color: #fff; }
.check.on .box svg { display: block; }
.check .box svg { display: none; }

/* ---------- 进度条 ---------- */
.progress { display: flex; align-items: flex-start; padding: 6px 0 2px; }
.progress .node { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.progress .node::before {
  content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line);
}
.progress .node:first-child::before { display: none; }
.progress .node .dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); color: var(--mute);
  display: grid; place-items: center; font-size: 10px; font-weight: 700; position: relative; z-index: 1;
  border: 2px solid var(--bg);
}
.progress .node.on .dot { background: var(--brand); color: #fff; }
.progress .node.on::before { background: var(--brand); }
.progress .node .n-label { font-size: 10.5px; color: var(--mute); margin-top: 6px; text-align: center; }
.progress .node.on .n-label { color: var(--brand); font-weight: 600; }
.progress.done-all .node .dot { background: var(--ok); }
.progress.done-all .node::before { background: var(--ok); }

.steps5 { display: grid; gap: 0; }
.step-line { display: flex; gap: 12px; }
.step-line .rail { width: 22px; display: flex; flex-direction: column; align-items: center; }
.step-line .rail .d {
  width: 10px; height: 10px; border-radius: 50%; background: var(--line);
  box-shadow: 0 0 0 3px var(--card); z-index: 1;
}
.step-line .rail .d.on { background: var(--brand); }
.step-line .rail .d.err { background: var(--danger); }
.step-line .rail .v { flex: 1; width: 2px; background: var(--line); margin: 3px 0; }
.step-line .txt { padding-bottom: 16px; flex: 1; }
.step-line .txt b { font-size: 13px; display: block; }
.step-line .txt span { font-size: 11.5px; color: var(--mute); }

/* ---------- 弹层 / 抽屉 ---------- */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(8, 15, 28, 0.45); z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease both;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.sheet {
  width: 100%; max-width: 480px; background: var(--card); border-radius: 24px 24px 0 0;
  padding: 8px 18px calc(22px + var(--safe-bottom)); max-height: 88vh; overflow-y: auto;
  animation: sheetUp .28s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes sheetUp { from { transform: translateY(24px); opacity: .6 } to { transform: none; opacity: 1 } }
.sheet .grab { width: 40px; height: 4px; border-radius: 3px; background: var(--line); margin: 6px auto 14px; }
.sheet h2 { font-size: 19px; margin-bottom: 4px; }
.sheet .s-sub { font-size: 13px; color: var(--sub); margin-bottom: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 12px);
  background: rgba(12, 21, 36, .92); color: #fff; padding: 11px 18px; border-radius: 12px;
  font-size: 13.5px; max-width: 84vw; text-align: center; z-index: 80;
  opacity: 0; pointer-events: none; transition: all .25s ease; backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: rgba(190, 40, 45, .94); }

/* ---------- 骨架 / 空态 ---------- */
.sk { padding: 8px 0; }
.sk-line { height: 14px; border-radius: 7px; margin-bottom: 10px;
  background: linear-gradient(90deg, #eef1f7 25%, #f7f9fc 37%, #eef1f7 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }
.sk-card { height: 96px; border-radius: 16px; margin-bottom: 10px; background: linear-gradient(90deg,#eef1f7 25%,#f7f9fc 37%,#eef1f7 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }

.empty { text-align: center; padding: 46px 20px 40px; }
.empty-ico {
  width: 62px; height: 62px; border-radius: 20px; margin: 0 auto 14px;
  display: grid; place-items: center; background: var(--line-2); color: var(--mute);
}
.empty h3 { font-size: 15px; margin-bottom: 6px; }
.empty p { font-size: 12.5px; color: var(--mute); margin-bottom: 14px; }

/* ---------- 详情页 ---------- */
.detail-hero {
  margin: 0 -16px; padding: 18px 16px 26px;
  background: linear-gradient(165deg, #f0f4ff, #f8faff 60%, var(--bg));
  display: flex; gap: 16px; align-items: center;
}
.detail-hero .info { flex: 1; min-width: 0; }
.detail-hero h1 { font-size: 19px; line-height: 1.3; }
.detail-hero .d-price { margin-top: 10px; color: var(--accent); font-size: 26px; font-weight: 800; }
.detail-hero .d-price small { font-size: 12px; color: var(--mute); font-weight: 500; }
.detail-hero .d-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }

.sec { background: var(--card); border-radius: var(--r-lg); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.sec h3 { font-size: 15px; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.sec h3 .ic { color: var(--brand); }

.guard-card {
  background: linear-gradient(135deg, #f3f7ff, #fff); border: 1px solid #e3ebff;
  border-radius: var(--r-lg); padding: 13px 14px; margin-bottom: 12px;
}
.guard-card .g-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.guard-card .g-item { text-align: center; }
.guard-card .g-item b { display: block; font-size: 12px; }
.guard-card .g-item span { font-size: 10px; color: var(--mute); }
.guard-card .g-ico { color: var(--brand); display: inline-flex; margin-bottom: 3px; }

.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ladder .l {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; text-align: center;
  position: relative; background: var(--card);
}
.ladder .l.on { border-color: var(--brand); background: rgba(43,91,245,.05); }
.ladder .l .l-m { font-size: 18px; font-weight: 800; color: var(--brand); }
.ladder .l .l-m small { font-size: 10px; font-weight: 500; color: var(--mute); }
.ladder .l .l-t { font-size: 11px; color: var(--sub); margin-top: 2px; }
.ladder .l .l-tag { position: absolute; top: -8px; right: 6px; font-size: 9px; background: var(--accent); color: #fff; padding: 1px 5px; border-radius: 5px; }

.breakdown .bd-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.breakdown .bd-row:last-child { border-bottom: 0; }
.breakdown .bd-row .l { color: var(--sub); }
.breakdown .bd-row .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.breakdown .bd-row .v.neg { color: var(--danger); }

/* ---------- 我的 ---------- */
.profile-card {
  background: linear-gradient(135deg, #1f47d6, #4a78ff 60%, #7a99ff);
  border-radius: var(--r-xl); padding: 20px; color: #fff; box-shadow: 0 14px 32px rgba(43,91,245,.26);
}
.profile-card .p-name { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.profile-card .p-meta { font-size: 12px; opacity: .82; margin-top: 4px; }
.profile-card .p-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.profile-card .p-stats div { text-align: center; }
.profile-card .p-stats b { font-size: 19px; display: block; }
.profile-card .p-stats span { font-size: 11px; opacity: .8; }

.menu { background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.menu .mi { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line-2); }
.menu .mi:last-child { border-bottom: 0; }
.menu .mi .mi-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--line-2); color: var(--sub); }
.menu .mi .mi-t { flex: 1; font-size: 14px; }
.menu .mi .mi-v { font-size: 12px; color: var(--mute); }
.menu .mi:active { background: var(--line-2); }

/* ---------- 订单卡 ---------- */
.order-card { background: var(--card); border-radius: var(--r-lg); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.order-card .oc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-card .oc-no { font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }
.order-card .oc-body { display: flex; gap: 12px; }
.order-card .oc-thumb { flex: 0 0 60px; height: 74px; border-radius: 10px; background: linear-gradient(160deg,#f7f9ff,#eef2fb); display: grid; place-items: center; }
.order-card .oc-info { flex: 1; min-width: 0; }
.order-card .oc-title { font-size: 14px; font-weight: 600; }
.order-card .oc-sub { font-size: 11.5px; color: var(--mute); margin-top: 3px; }
.order-card .oc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.order-card .oc-amount { font-size: 15px; font-weight: 800; }

/* ---------- 筛选 ---------- */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
.filter-bar::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--sub); font-weight: 500; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }

/* ---------- 回收估价 ---------- */
.recycle-hero { text-align: center; padding: 24px 16px 18px; border-radius: var(--r-xl); background: linear-gradient(160deg,#fff5ee,#fffaf6 60%,#fff); border: 1px solid #ffe8da; margin-bottom: 14px; }
.recycle-hero .r-label { font-size: 12px; color: var(--sub); }
.recycle-hero .r-price { font-size: 40px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.recycle-hero .r-price small { font-size: 16px; font-weight: 700; }
.recycle-hero .r-note { font-size: 11.5px; color: var(--mute); }
.recycle-hero .r-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; background: rgba(255,106,43,.1); color: var(--accent); padding: 3px 9px; border-radius: 999px; margin-top: 8px; }

.model-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.model-opt { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); }
.model-opt.on { border-color: var(--accent); background: rgba(255,106,43,.04); }
.model-opt .mo-art { flex: 0 0 40px; }
.model-opt .mo-t { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.model-opt .mo-s { font-size: 10.5px; color: var(--mute); }

.deduct-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.deduct-row:last-child { border-bottom: 0; }
.deduct-row .d-name { font-size: 12.5px; font-weight: 600; }
.deduct-row .d-why { font-size: 11px; color: var(--mute); margin-top: 2px; }
.deduct-row .d-amt { font-size: 13px; font-weight: 700; color: var(--danger); white-space: nowrap; }

/* ---------- 商家／后台（桌面优先） ---------- */
.dash { max-width: 1180px; margin: 0 auto; padding: 18px 20px 60px; }
.dash-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.dash-top .brandline { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-fill); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: -.03em; overflow: hidden; }
.dash-top h1 { font-size: 19px; }
.dash-top .ds { font-size: 12px; color: var(--mute); }
.dash-top .spacer { flex: 1; }
.nav-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-pill { font-size: 13px; padding: 8px 14px; border-radius: 10px; color: var(--sub); background: transparent; border: 1px solid transparent; cursor: pointer; font-weight: 600; }
.nav-pill.on { background: var(--card); color: var(--brand); box-shadow: var(--shadow); border-color: var(--line); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border-radius: var(--r-lg); padding: 15px; box-shadow: var(--shadow); }
.stat .s-label { font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 5px; }
.stat .s-value { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .s-value small { font-size: 12px; font-weight: 600; color: var(--mute); margin-left: 3px; }
.stat .s-foot { font-size: 11px; color: var(--mute); margin-top: 4px; }
.stat.alert .s-value { color: var(--danger); }
.stat.brand .s-value { color: var(--brand); }

.panel { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.panel .p-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.panel .p-head h2 { font-size: 15px; }
.panel .p-head .spacer { flex: 1; }
.panel .p-body { padding: 14px 16px; }
.panel .p-body.flush { padding: 0; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11.5px; color: var(--mute); font-weight: 600; padding: 10px 14px; background: #fbfcfe; 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 tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table .t-title { font-weight: 600; }
.table .t-sub { font-size: 11px; color: var(--mute); }
.table-wrap { overflow-x: auto; }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 10px; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar-chart .bar .b { width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--brand-fill-2), var(--brand-fill)); min-height: 4px; }
.bar-chart .bar .b.gray { background: var(--line); }
.bar-chart .bar .bl { font-size: 10px; color: var(--mute); }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; }
.kanban .col { background: #f0f3f9; border-radius: 14px; padding: 10px; min-height: 120px; }
.kanban .col h4 { font-size: 12px; color: var(--sub); margin-bottom: 8px; display: flex; justify-content: space-between; }
.kcard { background: var(--card); border-radius: 10px; padding: 10px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(15,23,42,.05); cursor: pointer; }
.kcard .k-t { font-size: 12.5px; font-weight: 600; }
.kcard .k-s { font-size: 11px; color: var(--mute); margin-top: 3px; }
.kcard.overdue { border-left: 3px solid var(--danger); }

.timeline .tl-row { display: flex; gap: 10px; }
.timeline .tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-top: 6px; flex: 0 0 8px; }
.timeline .tl-dot.on { background: var(--brand); }
.timeline .tl-body { padding-bottom: 14px; border-left: 1px solid var(--line); margin-left: 4px; padding-left: 12px; flex: 1; }
.timeline .tl-body:last-child { border-left-color: transparent; }
.timeline .tl-t { font-size: 12.5px; font-weight: 600; }
.timeline .tl-m { font-size: 11px; color: var(--mute); }

.uploader {
  border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 18px;
  text-align: center; color: var(--mute); font-size: 12.5px; cursor: pointer; background: #fbfcfe;
}
.uploader.on { border-color: var(--ok); color: var(--ok); background: rgba(15,169,104,.05); }
.uploader img { max-height: 120px; margin: 0 auto; border-radius: 8px; }

.wizard-bar { display: flex; gap: 6px; margin-bottom: 20px; }
.wizard-bar .w { flex: 1; height: 4px; border-radius: 3px; background: var(--line); }
.wizard-bar .w.on { background: var(--brand); }

/* ---------- 评价星级 / 行情折线 / 比价 ---------- */
.stars { display: inline-flex; gap: 3px; }
.stars .star { font-size: 19px; line-height: 1; color: #cbd4e3; cursor: pointer; user-select: none; transition: color .15s; }
.sparkline-box { min-width: 150px; }
.deduct-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.deduct-row:last-child { border-bottom: none; }
.deduct-row .d-name { font-size: 13px; font-weight: 600; }
.deduct-row .d-amt { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ================= 角色分层：顾客 / 商家 / 平台 ================= */
/* 顾客端：浅底、圆角大、暖色强调（品牌蓝降为辅助） */
body.shell-consumer {
  --brand: #6f5600;
  --brand-2: #ffe35c;
  --brand-ink: #5a4700;
  --accent: #a86b00;
  background: var(--bg);
}
body.shell-consumer .btn.brand {
  background: var(--ink);
  color: var(--brand-fill);
  box-shadow: 0 10px 22px rgba(26, 26, 26, 0.18);
}
body.shell-consumer .panel,
body.shell-consumer .card { border-radius: 20px; }
body.shell-consumer .tabbar { background: rgba(255, 253, 246, 0.94); border-top-color: var(--line); }
body.shell-consumer .tab.on { color: var(--ink); }
body.shell-consumer .hero {
  background:
    radial-gradient(120% 120% at 100% 0%, #ffe35c 0%, rgba(255, 227, 92, 0) 55%),
    linear-gradient(135deg, #ffd400 0%, #ffc800 100%);
  color: var(--ink);
}
/* 商家账号浏览顾客端时的身份提示 */
.role-note {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 9px 16px; font-size: 12px; line-height: 1.5;
  background: #0d1622; color: #cfe0ff;
}
.role-note b { color: #fff; }
.role-note a { color: #8fb0ff; font-weight: 700; }

/* 商家端：深色侧栏工作台 + 品牌蓝 */
body.shell-merchant { background: #e9edf5; }
.m-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.m-side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, #0e1a29 0%, #0a121c 100%);
  color: #e8eefb; padding: 18px 14px 14px;
}
.m-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.m-brand .logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, #2b5bf5, #6d8dff); color:#fff; display:grid; place-items:center; font-weight:800; }
.m-brand b { font-size: 15px; letter-spacing: .3px; color: #fff; display: block; }
.m-brand span { display: block; font-size: 9.5px; letter-spacing: 1.4px; color: #7f95bd; }
.m-shop { padding: 2px 6px; }
.m-shop-name { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.35; }
.m-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.role-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .3px;
}
.role-badge.merchant { background: rgba(43, 91, 245, .22); color: #bcd0ff; border: 1px solid rgba(109, 141, 255, .3); }
.role-badge.consumer { background: rgba(14, 159, 138, .14); color: #0a7f70; border: 1px solid rgba(14, 159, 138, .25); }
.role-badge.ops { background: rgba(88, 112, 140, .18); color: #4a6a8a; border: 1px solid rgba(88, 112, 140, .28); }
.m-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.m-nav button {
  text-align: left; border: 0; background: transparent; color: #9fb1d0; font: inherit; font-size: 13px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.m-nav button:hover { background: rgba(255, 255, 255, .06); color: #dbe5f8; }
.m-nav button.on { background: #2b5bf5; color: #fff; font-weight: 650; box-shadow: 0 8px 18px rgba(43, 91, 245, .28); }
.m-nav button .m-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; }
.m-side-foot { margin-top: auto; padding: 10px 6px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 6px; }
.m-side-foot a, .m-side-foot button { color: #8ea3c4; font-size: 11.5px; text-decoration: none; background: none; border: 0; padding: 4px 0; text-align: left; cursor: pointer; }
.m-side-foot a:hover, .m-side-foot button:hover { color: #dbe5f8; }
.m-main { min-width: 0; padding-bottom: 40px; }
.m-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border-bottom: 1px solid var(--line); padding: 11px 18px;
}
.m-top .m-crumb { font-size: 13px; color: var(--sub); }
.m-top .m-crumb b { color: var(--ink); }
.m-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.m-body .dash { max-width: none; margin: 0; padding: 0; }
.m-body .panel { box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
@media (max-width: 900px) {
  .m-shell { grid-template-columns: 1fr; }
  .m-side { position: static; height: auto; padding: 12px 12px 10px; }
  .m-brand { border-bottom: 0; padding-bottom: 2px; }
  .m-shop { display: none; }
  .m-nav { flex-direction: row; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .m-nav button { white-space: nowrap; padding: 7px 11px; }
  .m-side-foot { flex-direction: row; align-items: center; gap: 14px; border-top: 0; padding: 4px 2px 0; }
  .m-top { position: static; }
  .m-body { padding: 12px; }
}
@media (max-width: 620px) {
  .table-scroll { -webkit-overflow-scrolling: touch; }
  .m-body .table { min-width: 720px; }
}

/* 平台后台：第三套（中性灰蓝、运维感） */
body.shell-ops {
  --brand: #6f5600;
  --brand-2: #ffe35c;
  --brand-ink: #5a4700;
  background: #eff0f2;
}
body.shell-ops .btn.brand { background: var(--ink); color: var(--brand-fill); box-shadow: 0 10px 22px rgba(26, 26, 26, .18); }
body.shell-ops .dash-top { background: #f7f9fb; }

/* 演示角色切换器（仅演示） */
.role-switch { position: fixed; left: 14px; bottom: calc(16px + var(--safe-bottom)); z-index: 75; font-family: var(--font); }
body.shell-consumer .role-switch { bottom: calc(84px + var(--safe-bottom)); }
.role-switch .rs-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px;
  border: 1px solid rgba(12, 21, 36, .14); background: rgba(255, 255, 255, .9); color: #33465e;
  font-size: 12px; font-weight: 650; cursor: pointer; box-shadow: 0 10px 26px rgba(15, 23, 42, .12);
  backdrop-filter: blur(8px);
}
.role-switch .rs-btn:hover { background: #fff; }
.role-switch .rs-panel {
  position: absolute; left: 0; bottom: 46px; width: 268px; background: #fff; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22); border: 1px solid var(--line); padding: 12px;
}
.role-switch .rs-head { font-size: 11px; color: var(--mute); padding: 2px 4px 8px; }
.role-switch .rs-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; cursor: pointer;
}
.role-switch .rs-item:hover { background: #f4f7fb; }
.role-switch .rs-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.role-switch .rs-ico.c { background: var(--brand-fill); color: var(--ink); }
.role-switch .rs-ico.m { background: var(--ink); color: var(--brand-fill); }
.role-switch .rs-ico.a { background: var(--brand-soft); color: var(--brand-ink); }
.role-switch .rs-item b { display: block; font-size: 13px; color: var(--ink); }
.role-switch .rs-item span { display: block; font-size: 10.5px; color: var(--mute); }

/* 越权提示页 */
.role-gate { max-width: 520px; margin: 9vh auto; padding: 0 20px; }
.role-gate .rg-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 26px 24px; }
.role-gate .rg-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 7px; }
.role-gate .rg-badge.merchant { background: rgba(43, 91, 245, .1); color: #24408f; }
.role-gate .rg-badge.ops { background: rgba(74, 108, 147, .12); color: #33506f; }
.role-gate h1 { font-size: 21px; margin: 14px 0 6px; }
.role-gate p { font-size: 13px; line-height: 1.7; color: var(--sub); }
.role-gate .rg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- 深色模式 ---------- */
html[data-theme="dark"] {
  --ink: #e8edf6; --sub: #a7b3c6; --mute: #7d8aa0; --line: #26303f; --line-2: #1c2532;
  --bg: #101826; --card: #18212f; --shadow: 0 8px 24px rgba(0,0,0,.3);
}
html[data-theme="dark"] body { background: var(--bg); }
html[data-theme="dark"] .topbar { background: rgba(16,24,38,.86); }
html[data-theme="dark"] .tabbar { background: rgba(24,33,47,.94); }
html[data-theme="dark"] .detail-hero { background: linear-gradient(165deg,#182231,#141c29 70%,var(--bg)); }
html[data-theme="dark"] .guard-card { background: linear-gradient(135deg,#182a4a,#18212f); border-color: #24345a; }
html[data-theme="dark"] .recycle-hero { background: linear-gradient(160deg,#2a1f1a,#18212f 65%); border-color: #3b2a20; }
html[data-theme="dark"] .pitem .thumb, html[data-theme="dark"] .order-card .oc-thumb, html[data-theme="dark"] .model-opt .mo-art { background: linear-gradient(160deg,#1d2839,#151d2a); }
html[data-theme="dark"] .kanban .col { background: #141c29; }
html[data-theme="dark"] .table th { background: #141c29; }
html[data-theme="dark"] .uploader { background: #141c29; }

/* ---------- 工具类 ---------- */
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.f12 { font-size: 12px; } .f13 { font-size: 13px; } .f11 { font-size: 11px; }
.center { text-align: center; } .flex { display: flex; } .gap8 { gap: 8px; } .gap12 { gap: 12px; }
.w100 { width: 100%; } .hidden { display: none !important; }
.safe-bottom { height: calc(78px + var(--safe-bottom)); }

/* ============ 品牌视觉 v2 · 全部由 LOGO 派生（黄 #FFD400 / 墨 #1A1A1A） ============ */
/* ---- logo 基础元件 ---- */
.brand-logo { display: inline-flex; align-items: center; gap: 8px; }
.brand-logo img { height: 24px; width: auto; display: block; }
.brand-logo.lg img { height: 34px; }
.brand-badge {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand-fill);
  display: grid; place-items: center; flex: 0 0 auto; box-shadow: 0 2px 8px rgba(26, 26, 26, .14);
}
.brand-badge img { width: 26px; height: auto; display: block; }
.brand-slogan { font-size: 11px; color: var(--mute); letter-spacing: .02em; }
.brand-wordmark { font-weight: 800; letter-spacing: -.03em; color: var(--ink); }

/* ---- 顶栏 / 底部 tab ---- */
.topbar .brand-logo img { height: 22px; }
.tabbar .tab.on { color: var(--ink); font-weight: 700; }
.tabbar .tab.on::after { background: var(--brand-fill); width: 20px; height: 3px; }
.topbar .tb-title { letter-spacing: -.02em; }

/* ---- hero：黄底黑字，直接复用 LOGO 底板 ---- */
.hero {
  background:
    radial-gradient(120% 120% at 100% 0%, #ffe35c 0%, rgba(255, 227, 92, 0) 55%),
    linear-gradient(135deg, #ffd400 0%, #ffc800 100%);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(255, 199, 0, .24);
}
.hero::before { background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 62%); }
.hero::after { background: radial-gradient(circle, rgba(26, 26, 26, .08), transparent 65%); }
.hero .h-tag { background: rgba(26, 26, 26, .9); color: var(--brand-fill); }
.hero .h-sub { opacity: .78; }
.hero .btn-light { background: var(--ink); color: var(--brand-fill); }
.hero .btn-ghost { background: rgba(255, 255, 255, .5); color: var(--ink); border-color: rgba(26, 26, 26, .18); }
.hero-stats b { color: var(--ink); }
.hero-stats span { opacity: .7; }

/* ---- 入口图标统一为品牌色 ---- */
.entry { border-color: var(--line); }
.entry .e-ico { background: var(--brand-soft); color: var(--ink); }
.entry .e-ico.rent, .entry .e-ico.buy, .entry .e-ico.sell, .entry .e-ico.sim { background: var(--brand-soft); color: var(--ink); }
.entry .e-ico.buy { background: var(--ink); color: var(--brand-fill); }

/* ---- 按钮：黑底黄字为主行动色 ---- */
.btn.brand { background: var(--ink); color: var(--brand-fill); box-shadow: 0 8px 20px rgba(26, 26, 26, .18); }
.btn.accent { background: var(--brand-fill); color: var(--ink); box-shadow: 0 8px 20px rgba(255, 199, 0, .3); }
.btn.soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn.ghost { border-color: var(--line); color: var(--sub); }
.btn.ok { background: rgba(10, 122, 77, .1); color: var(--ok); }

/* ---- 标签 /  pills ---- */
.tag.brand { background: var(--brand-soft); color: var(--brand-ink); }
.tag.accent { background: rgba(255, 179, 0, .14); color: var(--accent); }
.tag.ok { background: rgba(10, 122, 77, .1); color: var(--ok); }
.pill-info { background: var(--brand-soft); color: var(--brand-ink); }
.pill-warn { background: rgba(178, 106, 0, .12); color: var(--warn); }
.pill-ok { background: rgba(10, 122, 77, .11); color: var(--ok); }
.pill-mute { background: var(--line-2); color: var(--mute); }
.chip.on { background: var(--ink); color: var(--brand-fill); border-color: var(--ink); }
.price.brand { color: var(--brand); }
.price.accent { color: var(--accent); }
.ladder .l.on { border-color: var(--brand-fill); background: var(--brand-soft); }
.ladder .l .l-m { color: var(--brand-ink); }
.ladder .l .l-tag { background: var(--ink); color: var(--brand-fill); }
.recycle-hero { background: linear-gradient(160deg, #fffbe6, #fffdf6 60%, #fff); border-color: #f3e6b3; }
.recycle-hero .r-price { color: var(--ink); }
.recycle-hero .r-lock { background: var(--brand-soft); color: var(--brand-ink); }
.model-opt.on { border-color: var(--brand-fill); background: var(--brand-soft); }

/* ---- 我的 ---- */
.profile-card { background: radial-gradient(120% 100% at 100% 0%, #3a3a3a 0%, #1a1a1a 55%), var(--ink); color: #fff; box-shadow: 0 14px 30px rgba(26, 26, 26, .22); }
.profile-card .p-name .tag { background: var(--brand-fill) !important; color: var(--ink) !important; }
.profile-card .p-stats b { color: var(--brand-fill); }
.menu .mi .mi-ico { background: var(--line-2); color: var(--ink); }
.menu .mi.partner-entry .mi-ico { background: var(--brand-fill); color: var(--ink); }
.menu .mi.partner-entry .mi-t { font-weight: 700; }
.menu .mi.partner-entry .mi-desc { display: block; font-size: 11px; color: var(--mute); font-weight: 400; margin-top: 2px; }

/* ---- 后台 / 商家端 chrome ---- */
.logo-mark { background: var(--brand-fill); color: var(--ink); overflow: hidden; }
.dash-top .brandline img.wordmark { height: 30px; width: auto; }
.brandline .brand-sub { font-size: 11px; color: var(--mute); margin-top: 2px; }
.nav-pill.on { color: var(--brand-ink); border-color: var(--brand-fill); background: var(--brand-soft); box-shadow: none; }
.stat.brand .s-value { color: var(--brand-ink); }
.stat.brand { border-top: 3px solid var(--brand-fill); }
body.shell-ops { --brand: #6f5600; --brand-2: #ffe35c; --brand-ink: #5a4700; background: #eff0f2; }
body.shell-ops .btn.brand { background: var(--ink); color: var(--brand-fill); box-shadow: 0 10px 22px rgba(26, 26, 26, .18); }
body.shell-ops .dash-top { background: #f7f8fa; }
body.shell-ops .role-badge.ops { background: rgba(26, 26, 26, .06); color: var(--brand-ink); border-color: rgba(26, 26, 26, .12); }
body.shell-consumer .tab.on { color: var(--ink); }
body.shell-consumer .hero { background: radial-gradient(120% 120% at 100% 0%, #ffe35c 0%, rgba(255, 227, 92, 0) 55%), linear-gradient(135deg, #ffd400 0%, #ffc800 100%); }
body.shell-consumer .tabbar { background: rgba(255, 253, 246, .95); border-top-color: var(--line); }
.role-badge.merchant { background: var(--brand-soft); color: var(--brand-ink); border-color: #f0dd8a; }
.role-badge.consumer { background: rgba(26, 26, 26, .07); color: var(--ink); border-color: rgba(26, 26, 26, .12); }
body.shell-merchant .m-side { background: linear-gradient(180deg, #1c1c1c 0%, #111 100%); }
body.shell-merchant .m-nav button.on { background: var(--brand-fill); color: var(--ink); box-shadow: 0 8px 18px rgba(255, 199, 0, .18); }
body.shell-merchant .m-brand .logo-mark { background: var(--brand-fill); color: var(--ink); }
body.shell-merchant .m-brand span { color: #a89a63; }
.m-side .brand-badge { background: var(--brand-fill); }

/* ---- 越权 / 空态 / 404：统一 logo 小图 ---- */
.brand-mini { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 4px; }
.brand-mini img { width: 96px; height: auto; opacity: .92; }
.empty .empty-brand img { width: 84px; height: auto; margin: 0 auto 10px; display: block; opacity: .9; }
.empty .empty-slogan { font-size: 11px; color: var(--mute); margin-top: 6px; }

/* ---- 开屏 / 加载 ---- */
.splash {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--brand-fill);
}
.splash img { width: 56%; max-width: 240px; height: auto; }
.splash .sp-slogan { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .08em; }
.splash .sp-line { width: 34px; height: 3px; background: var(--ink); border-radius: 3px; opacity: .5; }
.load-bar { height: 3px; background: linear-gradient(90deg, var(--brand-fill), var(--ink)); border-radius: 3px; }

/* ---- 成为我的小伙伴 ---- */
.partner-hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 18px;
  background: radial-gradient(120% 120% at 100% 0%, #ffe35c 0%, rgba(255, 227, 92, 0) 58%), linear-gradient(135deg, #ffd400, #ffc800);
  color: var(--ink); box-shadow: 0 12px 26px rgba(255, 199, 0, .22);
}
.partner-hero .ph-logo { display: flex; align-items: center; gap: 10px; }
.partner-hero .ph-logo img { height: 40px; width: auto; }
.partner-hero h1 { font-size: 24px; margin-top: 12px; letter-spacing: -.02em; color: var(--ink); }
.partner-hero p { font-size: 12.5px; opacity: .8; margin-top: 4px; color: var(--ink); }
.pcard {
  background: var(--card); border-radius: var(--r-xl); padding: 16px; margin-top: 12px;
  box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.pcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-fill); }
.pcard.agent::before { background: var(--ink); }
.pcard .pc-head { display: flex; align-items: flex-start; gap: 12px; }
.pcard .pc-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-fill); color: var(--ink); display: grid; place-items: center; flex: 0 0 auto; }
.pcard.agent .pc-ico { background: var(--ink); color: var(--brand-fill); }
.pcard h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.pcard .pc-sub { font-size: 12px; color: var(--sub); margin-top: 3px; line-height: 1.6; }
.pcard .pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pcard .pc-tags span { font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.pcard.agent .pc-tags span { background: var(--line-2); color: var(--sub); }
.pcard .pc-actions { display: flex; gap: 8px; margin-top: 14px; }
.pcard .pc-actions .btn { flex: 1; }
.pcard .pc-foot { font-size: 11px; color: var(--mute); margin-top: 10px; line-height: 1.6; }
.partner-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.partner-steps .ps { flex: 1 1 30%; min-width: 88px; background: var(--line-2); border-radius: 10px; padding: 8px 9px; }
.partner-steps .ps b { display: block; font-size: 11px; color: var(--ink); }
.partner-steps .ps span { display: block; font-size: 10px; color: var(--mute); margin-top: 2px; line-height: 1.4; }
.partner-steps .ps i { font-style: normal; font-size: 10px; color: var(--brand-ink); font-weight: 700; }
.status-line { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); font-size: 12px; color: var(--brand-ink); margin-top: 12px; }
.status-line.warn { background: rgba(178, 106, 0, .1); color: var(--warn); }
.status-line.mute { background: var(--line-2); color: var(--sub); }
.calc-note { font-size: 11.5px; color: var(--sub); line-height: 1.7; background: var(--line-2); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.calc-note.brand { background: var(--brand-soft); color: var(--brand-ink); }
details.calc-detail { margin-top: 8px; }
details.calc-detail summary { cursor: pointer; font-size: 11.5px; color: var(--brand-ink); font-weight: 600; }
details.calc-detail .cd-body { font-size: 11px; color: var(--sub); line-height: 1.8; padding: 8px 0 0; }

/* 适中价三行 */
.price3 { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 10px; }
.price3 .p3-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.price3 .p3-row:last-child { border-bottom: 0; }
.price3 .p3-row .l { color: var(--sub); }
.price3 .p3-row .v { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.price3 .p3-row.head { background: var(--brand-soft); }
.price3 .p3-row.head .l, .price3 .p3-row.head .v { color: var(--brand-ink); }
.price3 .p3-row .v.mine { font-size: 16px; }
.dev-warn { margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(198, 47, 53, .07); border: 1px solid rgba(198, 47, 53, .18); color: var(--danger); font-size: 11.5px; line-height: 1.6; }
.dev-ok { margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(10, 122, 77, .07); border: 1px solid rgba(10, 122, 77, .16); color: var(--ok); font-size: 11.5px; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quote-actions .btn { flex: 1 1 46%; }
.inline-num { width: 64px; padding: 6px 8px !important; font-size: 12px; text-align: center; }

/* 对接人卡片 */
.contact-card { border: 1px dashed #e6cf7a; background: #fffdf2; border-radius: var(--r-lg); padding: 13px 14px; margin-top: 12px; }
.contact-card .cc-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--brand-ink); }
.contact-card .cc-name { font-size: 15px; font-weight: 800; margin-top: 8px; }
.contact-card .cc-rows { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.contact-card .cc-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); }
.contact-card .cc-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.contact-card .cc-row .cc-act { margin-left: auto; }
.contact-card .cc-empty { font-size: 12.5px; color: var(--warn); margin-top: 8px; }
.contact-card .cc-hours { font-size: 11px; color: var(--mute); margin-top: 8px; }

/* 代理工作台 */
.agent-code { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--brand-fill); border-radius: var(--r-lg); padding: 14px 16px; }
.agent-code .ac-code { font-size: 22px; font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.agent-code .ac-label { font-size: 10.5px; color: #cfc08a; letter-spacing: .1em; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mini-stat { background: var(--card); border-radius: var(--r-md); border: 1px solid var(--line); padding: 10px 12px; }
.mini-stat b { display: block; font-size: 17px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.mini-stat span { font-size: 10.5px; color: var(--mute); }

/* 店铺封面 / 品类色带模板 */
.shop-cover { position: relative; height: 112px; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(120deg, #ffd400 0%, #ffe35c 55%, #1a1a1a 56%, #1a1a1a 100%); }
.shop-cover .sc-band { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px 14px; }
.shop-cover .sc-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.shop-cover .sc-sub { font-size: 10.5px; color: rgba(26, 26, 26, .7); }
.shop-cover .sc-corner { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 3px 8px 3px 5px; }
.shop-cover .sc-corner img { height: 14px; width: auto; }
.shop-cover .sc-corner span { font-size: 9px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.cat-band { border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.cat-band.rent { background: var(--brand-fill); color: var(--ink); }
.cat-band.sale { background: var(--ink); color: var(--brand-fill); }
.cat-band.recycle { background: var(--brand-soft); color: var(--brand-ink); }
.cat-band.repair { background: #3a3a3a; color: #fff; }
.cat-band .cb-tag { margin-left: auto; font-size: 10px; font-weight: 600; opacity: .75; }

/* 分享卡 / 商品首图角标 */
.share-card { position: relative; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.share-card .sh-img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #fffbe6, #fff); display: grid; place-items: center; }
.share-card .sh-corner { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 5px; background: rgba(26, 26, 26, .88); color: var(--brand-fill); border-radius: 999px; padding: 4px 10px 4px 6px; }
.share-card .sh-corner img { height: 14px; width: auto; }
.share-card .sh-corner span { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; }
.share-card .sh-safe { position: absolute; inset: 10px; border: 1px dashed rgba(26, 26, 26, .14); border-radius: 12px; pointer-events: none; }
.share-card .sh-body { padding: 11px 13px 13px; }
.share-card .sh-t { font-size: 13.5px; display: block; line-height: 1.45; }
.sheet .share-card { margin-top: 10px; }
.sheet-brand { display: flex; justify-content: flex-start; margin-bottom: 6px; }
.sheet-brand img { height: 32px; width: auto; }
.img-corner { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 4px; background: rgba(26, 26, 26, .82); color: var(--brand-fill); border-radius: 999px; padding: 3px 8px 3px 5px; }
.img-corner img { height: 12px; width: auto; }
.img-corner span { font-size: 9px; font-weight: 700; }

/* 结算单 / 打印页头 */
.print-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.print-head img { height: 30px; width: auto; }
.print-head .dh-t { font-size: 15px; font-weight: 800; }
.print-head .dh-s { font-size: 10.5px; color: var(--sub); }
@media print {
  .tabbar, .topbar, .role-switch { display: none !important; }
  .view { padding: 0; }
}

/* ---- 深色模式映射（黄为主、黑为底） ---- */
html[data-theme="dark"] {
  --ink: #f3f0e6; --sub: #c9c5b8; --mute: #9b978b; --line: #34322c; --line-2: #26241f;
  --bg: #141414; --card: #1e1e1e; --brand: #ffd400; --brand-ink: #ffe35c; --brand-soft: #332d10;
  --accent: #ffb300; --shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] body { background: var(--bg); }
html[data-theme="dark"] .topbar { background: rgba(20, 20, 20, .88); }
html[data-theme="dark"] .tabbar { background: rgba(26, 26, 26, .95); border-top-color: #34322c; }
html[data-theme="dark"] .hero { color: var(--ink); }
html[data-theme="dark"] .profile-card { background: radial-gradient(120% 100% at 100% 0%, #2c2c2c 0%, #1a1a1a 60%); }
html[data-theme="dark"] .contact-card { background: #26231a; border-color: #4a4020; }
html[data-theme="dark"] .price3 .p3-row.head { background: #332d10; }
html[data-theme="dark"] .calc-note { background: #26241f; }
html[data-theme="dark"] .table th { background: #232220; }
html[data-theme="dark"] .recycle-hero { background: linear-gradient(160deg, #26231a, #1e1e1e 65%); border-color: #3f3a24; }
html[data-theme="dark"] .shop-cover { background: linear-gradient(120deg, #ffd400 0%, #ffe35c 55%, #1a1a1a 56%, #1a1a1a 100%); }
html[data-theme="dark"] .share-card .sh-img { background: linear-gradient(160deg, #26231a, #1e1e1e); }

/* ---- v2 补充：tab logo / 身份标签 / 地图选点 / 表单栅格 ---- */
.tabbar .tab-logo { width: 22px; height: 22px; border-radius: 7px; display: block; }
.p-role { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; margin-right: 4px; }
.p-role.on { background: var(--brand-fill); color: var(--ink); font-weight: 700; }
.tag.line { background: transparent; border: 1px solid var(--line); color: var(--sub); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }
.req { color: var(--danger); margin-left: 2px; }
.map-pick { position: relative; height: 136px; border-radius: 12px; overflow: hidden; background: #f1f2ec; border: 1px solid var(--line); cursor: crosshair; }
.mp-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(26, 26, 26, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 26, 26, .07) 1px, transparent 1px); background-size: 26px 26px; }
.map-pick::before { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 10px; background: rgba(26, 26, 26, .1); }
.map-pick::after { content: ""; position: absolute; top: 0; bottom: 0; left: 42%; width: 10px; background: rgba(26, 26, 26, .1); }
.mp-pin { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--ink); border: 3px solid var(--brand-fill); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.mp-tip { position: absolute; left: 8px; bottom: 8px; font-size: 10px; color: var(--sub); background: rgba(255, 255, 255, .88); border-radius: 6px; padding: 2px 6px; }

/* 开屏浮层 */
#splash { position: fixed; inset: 0; z-index: 99; transition: opacity .3s ease; }

/* ---------- 维修 2.0：品牌机型 + 大类折叠 + 项目多选 ---------- */
.brand-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.brand-scroll::-webkit-scrollbar { display: none; }
.brand-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.brand-chip i { font-style: normal; font-size: 10px; opacity: .55; }
.model-list { max-height: 264px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.model-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.model-row:last-child { border-bottom: 0; }
.model-row.on { background: var(--brand-soft); }
.model-row .mr-name { font-size: 13.5px; font-weight: 600; }
.model-row .mr-sub { font-size: 10.5px; color: var(--mute); margin-top: 3px; line-height: 1.5; }
.rp-empty { padding: 16px 12px; text-align: center; font-size: 12px; color: var(--mute); line-height: 1.7; }
.rp-picked { margin-top: 10px; padding: 11px 12px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--line); }
.rp-hint { font-size: 11px; color: var(--sub); line-height: 1.7; display: flex; gap: 5px; align-items: center; }
.rp-hint-warn { font-size: 11px; color: var(--warn); line-height: 1.7; background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .18); border-radius: 10px; padding: 8px 10px; display: flex; gap: 5px; align-items: flex-start; }
.cat-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-top: 10px; overflow: hidden; }
.cat-head { display: flex; align-items: center; gap: 10px; padding: 11px 12px; cursor: pointer; }
.cat-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.cat-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.cat-n { font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; padding: 1px 6px; }
.cat-desc { font-size: 10.5px; color: var(--mute); margin-top: 2px; }
.cat-arrow { color: var(--mute); transition: transform .18s; display: grid; place-items: center; }
.cat-card.open .cat-arrow { transform: rotate(180deg); }
.cat-body { display: none; border-top: 1px dashed var(--line); padding: 0 12px 6px; }
.cat-card.open .cat-body { display: block; }
.ri-row { display: flex; align-items: flex-start; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.ri-row:last-child { border-bottom: 0; }
.ri-row.dis { opacity: .42; cursor: not-allowed; }
.ri-box { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 11px; color: transparent; }
.ri-row.on .ri-box { background: var(--brand); border-color: var(--brand); color: #fff; }
.ri-name { font-size: 12.5px; font-weight: 600; line-height: 1.45; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ri-sub { font-size: 10.5px; color: var(--mute); margin-top: 3px; line-height: 1.55; }
.ri-price { flex: 0 0 auto; text-align: right; font-size: 13px; font-weight: 700; padding-left: 6px; }
.ri-price .ri-range { display: block; font-size: 10px; font-weight: 400; color: var(--mute); margin-top: 2px; white-space: nowrap; }
.ri-price.none { font-size: 10.5px; font-weight: 400; color: var(--mute); }
.rp-range { font-size: 25px; font-weight: 800; letter-spacing: -.5px; margin-top: 6px; }
.rp-range .rp-dash { font-weight: 400; opacity: .45; margin: 0 6px; }
.rp-detail-wrap { overflow-x: auto; margin-top: 8px; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.detail-table th { text-align: left; font-size: 10.5px; color: var(--mute); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.detail-table td { padding: 7px 4px; border-bottom: 1px solid var(--line-2); vertical-align: top; line-height: 1.5; }
.detail-table td.r { text-align: right; white-space: nowrap; font-weight: 700; }
.detail-table .tiny { font-size: 9.5px; color: var(--mute); margin-top: 2px; }
@media (max-width: 390px) {
  .cat-head { padding: 10px; gap: 8px; }
  .cat-body { padding: 0 10px 4px; }
  .ri-name { font-size: 12px; }
  .ri-price { font-size: 12px; }
  .rp-range { font-size: 22px; }
  .model-row { padding: 9px 10px; }
  .rp-picked { padding: 10px; }
}
html[data-theme="dark"] .rp-picked { background: #26241f; }
html[data-theme="dark"] .cat-ico { background: #26241f; }
