/* 姘哥ゥ鍔╁啘APP 路 绉诲姩绔牱寮?   鍘熷垯锛?75px 瀹戒笉鍑虹幇妯悜婊氬姩锛涘鑸笌鍏抽敭鏍囩绂佹鎶樿锛涘簳閮ㄥ畨鍏ㄥ尯鐣欑櫧銆?*/

:root {
  /* 全站统一企业版浅色主题：品牌色 瑞水黄 #FFC61E / JA-4 青 #29B6C8 */
  --bg: #eef3fa;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --surface-trans: rgba(238, 243, 250, .94);
  --line: rgba(22, 42, 70, .14);
  --line-2: rgba(22, 42, 70, .08);

  --ink: #16202e;
  --ink-2: #46566a;
  --ink-3: #78879a;

  --green-900: #0b3b2e;
  --green-800: #0d5742;
  --green-700: #0b7a5a;
  --green-600: #0f8fb0;   /* 品牌青（主按钮/选中） */
  --green-500: #29b6c8;
  --green-100: rgba(41, 182, 200, .16);
  --green-50: rgba(41, 182, 200, .09);

  --orange-600: #a86a00;
  --orange-500: #b98600;
  --orange-100: rgba(255, 198, 30, .20);

  --gold: #ffc61e;        /* 品牌黄 */
  --gold-soft: rgba(255, 198, 30, .22);

  /* 亮蓝 CTA（参考图那套浅蓝白企业风）：用于前台首页「立即询价」 */
  --cta-blue: #5b8def;
  --cta-ink: #ffffff;

  --danger: #d9474c;
  --danger-50: rgba(217, 71, 76, .10);
  --warn: #b98600;
  --warn-50: rgba(255, 198, 30, .18);
  --ok: #12a06f;
  --ok-50: rgba(18, 160, 111, .12);

  --r-sm: 6px;
  --r: 8px;
  --r-lg: 10px;
  --shadow: 0 10px 28px -24px rgba(24, 44, 80, .5);
  --shadow-lg: 0 24px 52px -32px rgba(24, 44, 80, .45);
  --tab-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: dark; }

/* 嵌在管理台「客户页预览」iframe 里时不显示滚动条（手机上本来也没有） */
html.is-embed, html.is-embed body { scrollbar-width: none; -ms-overflow-style: none; }
html.is-embed ::-webkit-scrollbar { width: 0; height: 0; }

/* 寮鸿皟鑹诧細缁垮彧鐢ㄤ簬 CTA / 姝ｅ悜鐘舵€侊紱浠锋牸鐢ㄧ櫧鑹茬瓑瀹芥暟瀛楋紝涓嶇敤褰╄壊 */
.chip.is-on,
.admin-tab.is-on { background: var(--green-600); border-color: var(--green-600); color: #06120a; }
.btn--primary { background: var(--green-600); border-color: var(--green-600); color: #06120a; }
.btn--orange { background: transparent; border-color: var(--green-600); color: var(--green-500); }
.tab.is-on { color: var(--ink); }
.brand-mark { background: var(--surface-2); border: 1px solid var(--line); color: var(--green-500); }
.quick-icon,
.cell-ico { color: var(--ink-2); background: var(--surface-2); }
.kpi-delta { color: var(--ink-3); }
.stat-num { color: var(--ink); font-family: var(--font-mono); }
.kind-tag { color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }
.point-i,
.crop-tag,
.chip-mini { color: var(--ink-2); background: var(--surface-2); border-color: var(--line); }
.fab { background: var(--green-600); color: #06120a; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.status-pill.s-new { background: rgba(88, 166, 255, .12); color: #79c0ff; }
.status-pill.s-on,
.status-pill.s-won { background: var(--ok-50); color: var(--ok); }
.status-pill.s-off,
.status-pill.s-lost { background: var(--surface-2); color: var(--ink-3); }
.toast { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.modal-mask { background: rgba(0, 0, 0, .7); }
.hero-art { opacity: .55; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body { min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  --mk-angle: 0deg;
}

/* ---------- 页面外框跑马灯（2026-11-18 用户要求） ----------
   做法：conic-gradient 高光 + mask 只留 2px 边 + @property 角度动画，5s 绕外框一圈。
   用 ::before 覆盖在内容之上、pointer-events:none，不挡点击；
   Chromium/Edge 支持 @property 时才会动，不支持就是一条静止的渐变边（不影响使用）。 */
@property --mk-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.app::before {
  content: '';
  position: fixed; /* 贴视口外框：滚动时不跑、顶部栏和底部 tab 也盖不住 */
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 50;
  pointer-events: none;
  padding: 3px;
  background: conic-gradient(
    from var(--mk-angle),
    rgba(41, 182, 200, 0) 0deg,
    rgba(41, 182, 200, 1) 8deg,
    rgba(255, 198, 30, 1) 20deg,
    rgba(255, 198, 30, 0) 32deg,
    rgba(41, 182, 200, 0) 180deg,
    rgba(41, 182, 200, 1) 188deg,
    rgba(255, 198, 30, 1) 200deg,
    rgba(255, 198, 30, 0) 212deg,
    rgba(41, 182, 200, 0) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: appMarquee 5s linear infinite;
}
@keyframes appMarquee {
  to { --mk-angle: 360deg; }
}
/* 底边一圈淡淡的常亮描边：否则只剩一段移动光带，看着像"边缘露色/渲染坏了" */
.app::after {
  content: '';
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 49;
  pointer-events: none;
  padding: 1px;
  background: rgba(41, 182, 200, .18);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
@media (prefers-reduced-motion: reduce) {
  .app::before { animation: none; }
}

/* 2026-11-19 用户反馈：「大边缘不需要跑马灯」。
   后台和登录门复用的也是同一个 .app，position:fixed inset:0 会绕着整个后台窗口跑 —— 直接在后台作用域关掉。 */
body.is-admin .app::before,
body.is-admin .app::after { display: none; }

/* 用户反馈：「边缘有锐角」「跑马灯没有从底部的圆角经过」。
   后台右侧预览是把 H5 塞进 iframe 的（.a-pvframe iframe 圆角 10px），
   而这里的 fixed 光带是方形贴边 → 被 iframe 的圆角裁成直角。app.js 检测到自己被嵌着时
   会给 <html> 加 .is-embedded，这里把光带收进来 1px 并圆角 9px，正好跟着 iframe 的曲线走。 */
html.is-embedded .app::before,
html.is-embedded .app::after { top:1px;right:1px;bottom:1px;left:1px; border-radius: 9px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--surface-trans);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}.brand { display: flex; align-items: center; gap: 7px; min-width: 0; }
.brand-mark {
  width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(145deg, var(--green-600), var(--green-900));
  color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; flex: none;
  letter-spacing: 0;
}
.brand-name { font-size: 15.5px; font-weight: 650; letter-spacing: .2px; white-space: nowrap; }
.brand-sub {
  font-size: 10.5px; color: var(--ink-3);
  border-left: 1px solid var(--line);
  padding-left: 7px; margin-left: 1px;
  white-space: nowrap;
}
.topbar-spacer { flex: 1; }

/* ---------- 顶栏滚动信息（2026-11-20）----------
   顶栏品牌与热线之间的空白用来滚动播放真实信息。
   内容复制一份 → 位移 -50% 实现无缝循环；两侧做渐隐遮罩，进出不硬切。 */
/* 2026-11-24 修卡顿：原用 mask-image 做两侧渐隐 —— mask 会让里面的动画每帧重绘；
   旧 WebView（手机）上直接表现为「一卡一卡」。改为两个绝对定位的渐变遮罩层，
   动画元素本体不再被 mask/filter 包住。 */
.topbar-news {
  flex: 1; min-width: 0; overflow: hidden;
  margin: 0 10px;
  position: relative;
}
.topbar-news::before,
.topbar-news::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 14px;
  z-index: 1;
  pointer-events: none;
}
.topbar-news::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface), rgba(0, 0, 0, 0));
}
.topbar-news::after {
  right: 0;
  background: linear-gradient(270deg, var(--surface), rgba(0, 0, 0, 0));
}
.tn-track {
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation: tn-roll 26s linear infinite;
}
.topbar-news:hover .tn-track,
.topbar-news:active .tn-track { animation-play-state: paused; }
@keyframes tn-roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tn-tag {
  font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 5px;
  background: rgba(41, 182, 200, .16); color: #0f6f7c; font-weight: 600;
}
.tn-text { font-size: 12px; color: var(--ink-2); }
.tn-sep { font-size: 12px; color: var(--ink-3); margin: 0 3px; }

/* 系统开启「减少动态效果」时不滚，改成可手动拖动 */
@media (prefers-reduced-motion: reduce) {
  .tn-track { animation: none; }
  .topbar-news { overflow-x: auto; }
}

/* 窄屏（手机为主）：品牌名几乎占满一行，滚动区只剩一条缝。
   改成顶栏两行——第一行品牌+热线，第二行整行滚动，信息才读得清。 */
@media (max-width: 519px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 7px 14px 6px; row-gap: 3px; }
  .topbar .brand { flex: 1 1 auto; min-width: 0; }
  .topbar > a[href^="tel:"] { margin-left: auto; }
  .topbar-news { order: 3; flex: 0 0 100%; margin: 0; }
  .tn-text { font-size: 11.5px; }
}
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--ink-2);
  cursor: pointer; flex: none;
}
.icon-btn:active { background: var(--green-50); }

/* ---------- 页面容器 ---------- */
.page { padding: 14px 14px calc(var(--tab-h) + var(--safe-b) + 18px); }
.page--plain { padding-bottom: 24px; }
.page-enter { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 18px 2px 10px; gap: 10px;
}
.sec-title { font-size: 16px; font-weight: 650; letter-spacing: .2px; white-space: nowrap; }
.sec-more { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-radius: var(--r-lg);
  padding: 18px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; left: 14px; right: 14px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 185, 80, .45), transparent);
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; letter-spacing: .12em;
  color: var(--ink-3); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 4px; white-space: nowrap;
}
.hero-model {
  font-family: var(--font-mono);
  font-size: 34px; font-weight: 700; line-height: 1.1;
  margin: 12px 0 4px; letter-spacing: -.02em;
}
.hero-name { font-size: 13px; color: var(--ink-2); }
.hero-specs { display: flex; gap: 22px; margin: 16px 0 18px; flex-wrap: nowrap; }
.hero-spec { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; letter-spacing: .04em; }
.hero-spec b {
  display: block; font-variant-numeric: tabular-nums;
  font-size: 16px; color: var(--ink); font-weight: 600; margin-top: 3px; letter-spacing: 0;
}
.hero-actions { display: flex; gap: 8px; position: relative; z-index: 2; }
.hero-art { position: absolute; right: -4px; bottom: 2px; width: 116px; opacity: .5; z-index: 1; }
.hero-art svg { width: 100%; height: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 38px; padding: 0 15px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: transform .06s, background .15s;
}
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--gold); border-color: var(--gold); color: #12140d; font-weight: 650; }
.btn--primary:active { filter: brightness(.94); }
.btn--ghost-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--orange { background: var(--gold); border-color: var(--gold); color: #12140d; font-weight: 650; }
.btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn--link { background: none; border: none; color: var(--green-600); padding: 0 4px; height: auto; }

/* ---------- 三大入口卡片 ---------- */
.entries { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.entry {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); color: var(--ink); cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.entry:active { transform: scale(.99); background: var(--card-hover, var(--card)); }
.entry-ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center; color: var(--gold); background: var(--gold-soft);
}
.entry-text { flex: 1; min-width: 0; }
.entry-t { font-size: 15px; font-weight: 650; letter-spacing: .2px; white-space: nowrap; }
.entry-s { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-go { color: var(--ink-3); flex: none; display: grid; place-items: center; }

/* ---------- 蹇嵎鍏ュ彛 ---------- */
.quick {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; margin-top: 14px;
  background: var(--card); border-radius: var(--r-lg); padding: 12px 4px;
  box-shadow: var(--shadow);
}
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 2px 0; cursor: pointer;
}
.quick-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700);
}
.quick-item:nth-child(2) .quick-icon { background: var(--orange-100); color: var(--orange-600); }
.quick-item:nth-child(3) .quick-icon { background: #e7f0fb; color: #2c6cb0; }
.quick-item:nth-child(4) .quick-icon { background: #f3ecfb; color: #6b4bb0; }
.quick-label { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }

/* ---------- 鏁版嵁鏉?---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 12px; background: var(--card); border-radius: var(--r);
  padding: 11px 0; box-shadow: var(--shadow);
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: var(--line-2);
}
.stat-num { font-size: 18px; font-weight: 700; color: var(--green-700); line-height: 1.2; white-space: nowrap; }
.stat-num small { font-size: 11px; font-weight: 500; margin-left: 1px; color: var(--ink-3); }
.stat-label { font-size: 11px; color: var(--ink-3); white-space: nowrap; margin-top: 1px; }

/* ---------- 浜у搧鍗?---------- */
.hscroll {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hcard {
  flex: 0 0 178px; scroll-snap-align: start;
  background: var(--card); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line-2);
  cursor: pointer;
}
.hcard-art { position: relative; height: 106px; background: var(--green-50); }
.hcard-art svg { width: 100%; height: 100%; display: block; }
.hcard-badge {
  position: absolute; left: 8px; top: 8px;
  font-size: 10px; padding: 1px 6px; border-radius: 20px;
  background: var(--surface-trans); color: var(--orange-600); font-weight: 600; white-space: nowrap;
}
.hcard-body { padding: 9px 10px 11px; }
.hcard-model { font-size: 14px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.hcard-name {
  font-size: 11.5px; color: var(--ink-3); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hcard-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 7px; gap: 6px; }
.price { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 650; font-size: 14.5px; white-space: nowrap; letter-spacing: -.01em; }
.price small { font-size: 10px; font-weight: 600; margin-left: 1px; color: var(--ink-3); font-family: var(--font-sans); }
.price-unit { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }

/* ---------- 鍒楄〃鍗?---------- */
.list-card {
  background: var(--card); border-radius: var(--r); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); overflow: hidden;
}
.list-row {
  display: flex; gap: 10px; padding: 12px 13px; align-items: center;
  cursor: pointer; border-bottom: 1px solid var(--line-2);
}
.list-row:last-child { border-bottom: none; }
.list-row:active { background: var(--green-50); }

.prod-card {
  display: flex; gap: 11px; padding: 12px;
  background: var(--card); border-radius: var(--r); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); cursor: pointer; margin-bottom: 10px;
}
.prod-art {
  width: 92px; height: 92px; flex: none; border-radius: 10px;
  background: var(--green-50); overflow: hidden;
}
.prod-art svg { width: 100%; height: 100%; }
.prod-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prod-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.prod-model { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%; }
.prod-series { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-name {
  font-size: 12.5px; color: var(--ink-2); margin-top: 1px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-specs { display: flex; gap: 4px; margin-top: 6px; flex-wrap: nowrap; overflow: hidden; }
.chip-mini {
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
  background: var(--green-50); color: var(--green-700); white-space: nowrap;
  border: 1px solid var(--green-100);
}
.prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 7px; gap: 8px; }
.prod-crops { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 绛涢€?---------- */
.filter-bar { position: sticky; top: 50px; z-index: 20; background: var(--bg); padding: 8px 0 6px; margin: -4px 0 2px; }
.search {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 0 11px; height: 38px; color: var(--ink-3);
}
.search input {
  border: none; outline: none; flex: 1; font-size: 14px; color: var(--ink);
  background: transparent; min-width: 0; height: 100%;
}
.search input::placeholder { color: var(--ink-3); }
.chips { display: flex; gap: 7px; overflow-x: auto; padding: 9px 1px 3px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 5px 12px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2); white-space: nowrap; cursor: pointer;
}
.chip.is-on { background: var(--green-700); border-color: var(--green-700); color: #fff; font-weight: 550; }

/* ---------- 详情 ---------- */
.detail-hero { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); }
/* 产品详情主图（2026-11-20 改）
   原来是 height:208px 固定高 + 图片 object-fit:contain，
   竖版图（如配件照片 247×254）只能缩到 208 高，左右各空出约 70px —— 用户反馈"中间间隙太留多"。
   改成：高度不写死，让图片按自身比例撑开（宽度撑满、最高 360px 限制超高图），不再人为留白。 */
.detail-art {
  min-height: 120px;
  background: var(--surface);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 0;
}
.detail-art img {
  display: block; margin: 0 auto;
  width: auto; height: auto;
  max-width: 100%; max-height: 360px;
  border-radius: 10px;
}
.detail-art svg { width: 100%; height: auto; display: block; }
.detail-art .art-tag {
  position: absolute; right: 10px; bottom: 8px;
  font-size: 10px; color: var(--ink-3); background: var(--surface-trans);
  padding: 1px 6px; border-radius: 4px;
}
.detail-head { padding: 13px 14px 15px; }
.detail-model { font-family: var(--font-mono); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.detail-name { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.detail-price { display: flex; align-items: baseline; gap: 6px; margin-top: 9px; }
.detail-price .price { font-size: 20px; }
.detail-summary { font-size: 13px; color: var(--ink-2); margin-top: 9px; }

.panel { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 13px 14px; margin-top: 11px; }
.panel-title { font-size: 14px; font-weight: 650; margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.panel-title::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--green-600); }
.points { display: flex; flex-direction: column; gap: 7px; }
.point { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); }
.point-i { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; font-size: 10px; font-weight: 700; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border-radius: 8px; overflow: hidden; }
.spec-cell { background: var(--surface); padding: 7px 9px; min-width: 0; }
.spec-k { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-v { font-size: 12.5px; font-weight: 600; margin-top: 1px; word-break: break-word; }

.crop-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.crop-tag { font-size: 11.5px; padding: 3px 9px; border-radius: 6px; background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); white-space: nowrap; }

.bottom-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  max-width: 520px; margin: 0 auto;
  display: flex; gap: 9px; align-items: center;
  padding: 9px 14px calc(9px + var(--safe-b));
  background: var(--surface-trans);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}.cta-ghost { flex: none; text-align: center; color: var(--ink-2); font-size: 10.5px; line-height: 1.3; padding: 0 6px; cursor: pointer; }
.cta-ghost b { display: block; font-size: 13px; color: var(--green-700); white-space: nowrap; }
.bottom-cta .btn { flex: 1; }

/* ---------- 文章 ---------- */
.art-item { display: flex; gap: 11px; padding: 13px 2px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.art-item:last-child { border-bottom: none; }
.art-body { flex: 1; min-width: 0; }
.art-title { font-size: 14.5px; font-weight: 600; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-sum { font-size: 12px; color: var(--ink-3); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-meta { display: flex; gap: 8px; margin-top: 6px; font-size: 10.5px; color: var(--ink-3); align-items: center; }
.kind-tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: var(--green-50); color: var(--green-700); white-space: nowrap; }
.kind-tag.case { background: var(--orange-100); color: var(--orange-600); }
.kind-tag.tech { background: #e7f0fb; color: #2c6cb0; }
.art-thumb {
  width: 74px; height: 74px; flex: none; border-radius: 8px; overflow: hidden;
  background: linear-gradient(150deg, var(--green-50), var(--surface)); border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--green-600);
}
.art-content { padding: 4px 2px 20px; }
.art-content h1 { font-size: 19px; line-height: 1.4; margin: 6px 0 8px; font-weight: 700; }
.art-content .meta { font-size: 11.5px; color: var(--ink-3); display: flex; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.art-content p { font-size: 14.5px; line-height: 1.85; color: #24312a; margin: 0 0 13px; }
/* 第四十九批：正文支持 Markdown 子集（标题/列表/引用/图片/行内代码/分隔线），沿用浅色企业版令牌 */
.art-content h2 { font-size: 16.5px; line-height: 1.5; margin: 18px 0 8px; font-weight: 700; color: var(--ink); }
.art-content h3 { font-size: 15px; line-height: 1.5; margin: 14px 0 6px; font-weight: 700; color: var(--ink-2); }
.art-content ul { margin: 0 0 13px; padding-left: 20px; }
.art-content li { font-size: 14.5px; line-height: 1.85; color: #24312a; margin: 2px 0; }
.art-content blockquote {
  margin: 0 0 13px; padding: 9px 12px; border-left: 3px solid #ffc61e;
  background: rgba(255, 198, 30, .1); border-radius: 0 8px 8px 0;
  font-size: 13.5px; line-height: 1.8; color: var(--ink-2);
}
.art-content img { display: block; width: 100%; height: auto; border-radius: 10px; margin: 4px 0 13px; border: 1px solid var(--line); }
.art-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: rgba(22, 42, 70, .07); padding: 1px 5px; border-radius: 5px; }
.art-content hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.art-content a { color: var(--green-800); text-decoration: underline; text-underline-offset: 2px; }

/* 表格（2026-11-20 加）：正文里的对照表要能正常排版，横向可滚不撑破页面 */
.art-content .md-tbl {
  width: 100%; border-collapse: collapse; margin: 4px 0 14px;
  font-size: 13px; display: block; overflow-x: auto; white-space: nowrap;
}
.art-content .md-tbl thead th {
  text-align: left; font-weight: 700; color: var(--ink);
  background: rgba(22, 42, 70, .05); padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.art-content .md-tbl td {
  padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--ink-2);
}
.art-content .md-tbl tr:last-child td { border-bottom: 0; }

/* ---------- 我的 ---------- */
.me-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-lg); margin: 0 0 10px; }

/* 个人信息卡（2026-11-20，按苹果「设置 · 账户」的版式重做）
   关键差别：
   - 头像改圆形 56px、去掉描边，字母用品牌色；
   - 姓名 17px/600，副标题 13px 次级灰；
   - 右侧只留一个 chevron（原来挤着"编辑资料"文字，显得拥挤）；
   - 分隔线不再顶到卡片边缘：左侧从 18px 开始，与头像右缘之后对齐；
   - 行高统一 52px，点击有底色反馈，手感更像 iOS 列表。 */
.me-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg, 18px); margin: 0 0 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(22, 42, 70, .05), 0 8px 24px rgba(22, 42, 70, .06);
}
.me-card-top {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 18px 18px; background: none; border: none; font: inherit;
  color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color .15s ease;
}
.me-card-top:active { background: var(--surface-2); }
.me-card .avatar {
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: linear-gradient(150deg, var(--green-50), #fff);
  color: var(--green-700); font-size: 21px; font-weight: 600;
  font-family: var(--font-sans, inherit); letter-spacing: 0;
}
.me-card-info { flex: 1; min-width: 0; }
.me-card .me-name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.me-card .me-sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; letter-spacing: 0; }
.me-card-chev { flex: none; display: inline-flex; color: var(--ink-3); opacity: .75; }

.me-card-acts { border-top: none; position: relative; }
/* 苹果列表的分隔线不顶到卡片边缘：从文字起点（18 内边距 + 28 图标 + 12 间距 = 58px）开始 */
.me-card-acts::before {
  content: ''; position: absolute; left: 58px; right: 0; top: 0;
  height: 1px; background: var(--line-2);
}
.me-act {
  width: 100%; display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 18px; background: none; border: none; font: inherit;
  color: var(--ink); text-align: left; cursor: pointer; position: relative;
  transition: background-color .15s ease;
}
.me-act + .me-act { border-top: none; }
.me-act + .me-act::before {
  content: ''; position: absolute; left: 58px; right: 0; top: 0;
  height: 1px; background: var(--line-2);
}
.me-act:active { background: var(--surface-2); }
.me-act-ico {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2);
}
.me-act-ico--danger { background: var(--danger-50); color: var(--danger); }
.me-act-label { flex: 1; min-width: 0; font-size: 15px; }
.me-act-chev { color: var(--ink-3); display: inline-flex; opacity: .75; }
.me-act--danger .me-act-label { color: var(--danger); }

/* 「我的」页的列表卡与个人信息卡用同一个圆角，避免一页里两种圆角并存 */
.me-page .list-card { border-radius: var(--r-lg, 18px); }

/* ---------- 发帖图片上传（2026-11-20，最多 3 张）---------- */
.postimgs { display: flex; gap: 8px; flex-wrap: wrap; }
.postimg { position: relative; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.postimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.postimg-del {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  border: none; background: rgba(12, 22, 30, .66); color: #fff; cursor: pointer;
  display: grid; place-items: center; padding: 0; backdrop-filter: blur(4px);
  z-index: 2; touch-action: manipulation;
}
/* 22px 的圆点对指头太小（实测点偏一点就落到图片上，表现为"点不动"）。
   用一个透明伪元素把命中区扩到约 42px，视觉仍保持小巧。 */
.postimg-del::after {
  content: ''; position: absolute; top:-9px;right:-9px;bottom:-9px;left:-9px; border-radius: 50%;
}
.postimg-add {
  width: 88px; height: 88px; border-radius: 12px; cursor: pointer;
  border: 1px dashed rgba(22, 42, 70, .22); background: var(--surface-2); color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font: inherit; font-size: 11.5px;
}
.postimg-add:active { background: rgba(41, 182, 200, .08); border-color: var(--green-500); color: var(--green-700); }

/* 帖子详情的图片区：最多 3 张，横排等宽 */
.post-gallery { display: flex; gap: 6px; margin: 4px 0 12px; }
.post-gallery img {
  flex: 1; min-width: 0; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); display: block;
}
.avatar { width: 44px; height: 44px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 16px; font-weight: 600; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.me-name { font-size: 16px; font-weight: 650; }
.me-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.cell { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; background: var(--surface); }
.cell:last-child { border-bottom: none; }
.cell-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex: none; }
.cell-label { flex: 1; font-size: 14px; min-width: 0; }
.cell-val { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.cell-arrow { color: #bcc9c0; flex: none; display: grid; place-items: center; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 12px; }
.field-label { font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; display: flex; justify-content: space-between; }
.field-label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; font-size: 14.5px; background: var(--surface); color: var(--ink);
  outline: none; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(47, 158, 90, .12); }

/* 小尺寸下拉（如分项权限那一列 28px 高）：
   基础样式带 padding:9px 上下，若再写死 height:28px，内容区只剩 8px，
   文字会被上下各切一半（2026-11-20 实测截图确认）。这里统一给紧凑写法。 */
.select.select--sm,
select.select[style*="height:28px"],
select.select[style*="height: 28px"] {
  padding: 0 26px 0 8px;
  line-height: 26px;
  font-size: 12px;
  background-position: right 6px center;
}
.textarea { min-height: 76px; resize: vertical; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form-hint { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.form-err { color: var(--danger); font-size: 12px; margin-top: 6px; min-height: 16px; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 24px);
  transform: translateX(-50%) translateY(10px);
  background: rgba(22, 33, 26, .93); color: #fff;
  font-size: 13px; padding: 9px 15px; border-radius: 10px;
  z-index: 100; opacity: 0; transition: opacity .2s, transform .2s;
  max-width: 86vw; text-align: center; pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { text-align: center; padding: 44px 20px; color: var(--ink-3); font-size: 13px; }
.empty svg { margin: 0 auto 10px; opacity: .5; }
.loading { text-align: center; padding: 36px; color: var(--ink-3); font-size: 13px; }
.spinner {
  width: 18px; height: 18px; border: 2px solid var(--line);
  border-top-color: var(--green-600); border-radius: 50%;
  margin: 0 auto 8px; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.banner { display: flex; gap: 9px; padding: 11px 13px; border-radius: 10px; font-size: 12.5px; line-height: 1.6; margin-bottom: 11px; }
.banner--ok { background: var(--ok-50); color: var(--ok); }
.banner--warn { background: var(--warn-50); color: var(--warn); }
.banner--danger { background: var(--danger-50); color: var(--danger); }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-width: 520px; margin: 0 auto;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface-trans);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--ink-3); cursor: pointer; padding-top: 2px;
}
.tab-label { font-size: 11.5px; white-space: nowrap; letter-spacing: .2px; font-weight: 600; }
.tab.is-on { color: var(--green-700); }
.tab.is-on .tab-label { font-weight: 600; }

/* ---------- 后台 ---------- */
.admin-top { background: var(--surface); border-bottom: 1px solid var(--line-2); padding: 9px 14px; display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 25; }
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 9px 14px; background: var(--bg); scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { flex: none; padding: 6px 12px; border-radius: 8px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.admin-tab.is-on { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.kpi { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 12px; box-shadow: var(--shadow); }
.kpi-k { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.kpi-v { font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.3; white-space: nowrap; }
.kpi-v small { font-size: 11px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.kpi-delta { font-size: 11px; color: var(--green-600); white-space: nowrap; }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 74px; margin-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; }
/* 数据点少时别只剩一根细条：柱子最宽 44px，够宽才看得出趋势 */
.bar { width: 100%; max-width: 56px; background: var(--green-100); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar.is-max { background: var(--green-500); }
.bar-x { font-size: 9px; color: var(--ink-3); white-space: nowrap; }

.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 11px; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }

.status-pill { display: inline-block; font-size: 10.5px; padding: 1px 7px; border-radius: 20px; white-space: nowrap; }
.s-new { background: #e7f0fb; color: #2c6cb0; }
.s-following { background: var(--warn-50); color: var(--warn); }
.s-won { background: var(--ok-50); color: var(--ok); }
.s-lost { background: #f1f2f1; color: var(--ink-3); }
.s-on { background: var(--ok-50); color: var(--ok); }
.s-off { background: #f1f2f1; color: var(--ink-3); }

.admin-row { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 12px; margin-bottom: 9px; box-shadow: var(--shadow); }

/* 后台卡片内边距（2026-11-20）：用户反馈"文字贴着边框"。
   原来 .admin-row 11/12px、.panel 13/14px，内容与描边几乎相切。
   这里只调后台（body.is-admin），前台 .panel 维持原样，避免连带改动前台留白。 */
body.is-admin .admin-row { padding: 15px 17px; margin-bottom: 10px; }
body.is-admin .admin-row-actions { margin-top: 10px; gap: 7px; }
body.is-admin .panel { padding: 18px 20px; }
.admin-row-top { display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.admin-row-title { font-size: 14px; font-weight: 600; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.admin-row-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* 宽屏：产品列表改多列卡片，别让一行只放一个产品（1275px 下 2 列，1600px 以上 3 列） */
@media (min-width: 1080px) {
  #pbox { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 12px; align-items: start; }
  #pbox .admin-row { margin-bottom: 0; }
  .admin-row-top .status-pill { flex: none; }
}

.modal-mask {
  position: fixed; top:0;right:0;bottom:0;left:0; background: rgba(16, 24, 19, .45); z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .15s ease-out;
}
.modal {
  width: 100%; max-width: 520px; background: var(--surface);
  border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + var(--safe-b));
  max-height: 88vh; overflow-y: auto; animation: slideUp .2s ease-out;
}
/* 桌面/平板：弹层居中并拉宽（表单字段多，520 太窄、贴底不好填） */
@media (min-width: 760px) {
  .modal-mask { align-items: center; padding: 24px; }
  .modal {
    max-width: 880px; max-height: calc(100vh - 48px);
    max-width: 880px; max-height: calc(100dvh - 48px);
    border-radius: 16px; padding: 20px 22px;
    animation: fade .16s ease-out;
  }
  .modal .form-row { gap: 14px; }
}
/* 批量选择条（后台产品列表）：吸顶常驻 + 右下角浮动，滚到哪都能点 */
.bulk-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 8px; padding: 8px 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.bulk-all { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.bulk-hint { font-size: 12px; color: var(--ink-3); }
.row-pick { width: 16px; height: 16px; margin-right: 8px; flex: none; accent-color: var(--green-600); }

/* 删除按钮的两步确认态 */
.btn.is-armed { background: #e5484d; border-color: #e5484d; color: #fff; }
@keyframes slideUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-title { font-size: 16px; font-weight: 650; }

/* ---------- 妗岄潰绔瑙堬紙浠呯獎灞忓鍣級 ---------- */
@media (min-width: 560px) {
  .app { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(15, 63, 35, .10); }
  .tabbar, .bottom-cta { box-shadow: 0 -6px 20px rgba(15, 63, 35, .06); }
}

/* ---------- 琛ュ厖锛氫骇鍝佹帓搴忎笅鎷夈€佽鎯呴〉搴曢儴鐣欑櫧銆佹爣绛捐 ---------- */
.sortsel {
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  outline: none;
  padding: 0 2px;
  max-width: 88px;
  font-family: inherit;
}
.page--cta { padding-bottom: calc(80px + var(--safe-b)); }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.chip-row .chip { cursor: pointer; }
.hidden { display: none !important; }

/* ---------- 绮句慨锛氱粏绾垮垎灞傘€佹暟瀛楃瓑瀹姐€佸幓闃村奖 ---------- */
.topbar { background: var(--surface-trans); border-bottom: 1px solid var(--line); }
.brand-name { font-size: 15px; font-weight: 650; letter-spacing: .02em; }
.brand-sub { color: var(--ink-3); font-size: 10px; letter-spacing: .06em; }

.sec-title { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.sec-more { font-size: 12px; color: var(--ink-3); }

.list-card, .prod-card, .post-card, .admin-row, .kpi, .panel, .entry {
  box-shadow: none; border: 1px solid var(--line); border-radius: var(--r-lg);
}
.entry { padding: 14px; background: var(--surface); }
.entry:active { background: var(--surface-2); }
.entry-ico { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); border-radius: 8px; }
.entry-t { font-size: 14.5px; font-weight: 600; }
.entry-s { color: var(--ink-3); }

.prod-card { padding: 14px; gap: 14px; }
.prod-art { width: 84px; height: 84px; border-radius: 8px; border: 1px solid var(--line); }
.prod-model { font-family: var(--font-mono); font-size: 15px; letter-spacing: -.01em; }
.prod-name { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.prod-specs { gap: 0; margin-top: 8px; }
.chip-mini {
  background: transparent; border: none; padding: 0;
  color: var(--ink-3); font-size: 10.5px; letter-spacing: .02em;
}
.chip-mini + .chip-mini::before { content: "·"; margin: 0 6px; opacity: .6; }
.prod-crops { color: var(--ink-3); }

.hscroll { gap: 12px; }
.hcard { border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: none; }
.hcard-art { height: 112px; border-bottom: 1px solid var(--line-2); }
.hcard-badge { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); font-weight: 500; }
.hcard-model { font-family: var(--font-mono); font-size: 14px; letter-spacing: -.01em; }
.hcard-name { color: var(--ink-3); }
.hcard-foot .price { font-size: 15px; }

.kpi-v { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 21px; font-weight: 650; letter-spacing: -.01em; }
.kpi-k { color: var(--ink-3); letter-spacing: .02em; }
.bar, .bars .bar { border-radius: 2px 2px 0 0; }

.tabbar { background: var(--surface-trans); border-top: 1px solid var(--line); }
.tab { position: relative; }
.tab.is-on::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; background: var(--green-500); border-radius: 0 0 2px 2px;
}
.tab-label { letter-spacing: .02em; }

.btn { border-radius: var(--r); font-weight: 550; }
.btn--sm { border-radius: 6px; }
.icon-btn { border-radius: var(--r); background: var(--surface); }

.search, .input, .select, .textarea {
  border-radius: var(--r); background: var(--surface); border-color: var(--line);
}
.search:focus-within, .input:focus, .select:focus, .textarea:focus {
  border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(63, 185, 80, .12);
}
.hero-art { right: -2px; bottom: 2px; width: 112px; opacity: .85; }
.hero-art svg { display: block; }
.detail-art { background: linear-gradient(180deg, var(--green-50) 0%, var(--surface) 78%); }
.detail-art svg { width: 100%; height: 100%; display: block; }
.detail-art .art-tag { right: 12px; bottom: 10px; }
.cta-ghost em { display: block; font-style: normal; font-size: 9.5px; color: var(--ink-3); margin-top: 1px; }

/* ---------- 渚涙眰甯?---------- */
.post-card {
  display: flex; gap: 11px; padding: 12px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  cursor: pointer;
}
.post-thumb { width: 72px; height: 72px; flex: none; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.post-thumb svg { width: 100%; height: 100%; display: block; }
.post-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-title {
  font-size: 14.5px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta {
  font-size: 10.5px; color: var(--ink-3); margin-top: 5px;
  display: flex; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.post-meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.post-meta > span.kind-badge, .post-meta > span.price { flex: none; }
.post-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 6px; gap: 8px; }
.kind-badge { font-size: 10px; padding: 1px 6px; border-radius: 4px; white-space: nowrap; flex: none; }
.k-supply { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.k-demand { background: var(--warn-50); color: var(--warn); }
.k-service { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.k-share { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

.post-body p { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); margin: 0 0 13px; }
.post-price { font-size: 22px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.post-price-note { font-size: 11.5px; color: var(--ink-3); }
.contact-row { display: flex; align-items: center; gap: 9px; }
.contact-name { font-size: 14px; font-weight: 600; }
.contact-phone { font-size: 12px; color: var(--ink-3); }

.fab {
  /* 内容列最宽 520px 居中：宽屏时把悬浮钮收进内容列，否则它会贴到浏览器窗口最右边、和中间内容脱节 */
  position: fixed; right: max(14px, calc((100vw - 520px) / 2 + 14px));
  bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
  z-index: 45; width: 52px; height: 52px; border-radius: 12px;
  background: var(--green-600); color: #06120a; border: none;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  max-width: 520px;
}
.fab:active { background: var(--green-500); }

/* ---------- 鏈€缁堢粺涓€锛堣鐩栧墠闈㈡墍鏈夐仐鐣欑殑楂橀ケ鍜?浣庡姣旓級 ---------- */
.btn--primary { background: var(--green-600); border-color: var(--green-600); color: #06120a; font-weight: 600; }
.btn--orange { background: var(--green-600); border-color: var(--green-600); color: #06120a; font-weight: 600; }
/* 2026-11-18 用户：「立即询价」那个青太深，要参考图里的亮蓝（不是品牌深青），只动前台首页这颗主 CTA */
.page--home .hero .btn--orange {
  background: var(--cta-blue); border-color: var(--cta-blue); color: var(--cta-ink); font-weight: 650;
  box-shadow: 0 8px 18px -12px rgba(91, 141, 239, .9);
}
.page--home .hero .btn--orange:active { filter: brightness(.95); }
.btn--ghost-light { background: transparent; border-color: var(--line); color: var(--ink); }
.stat-num { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 19px; font-weight: 650; }
.stat-num small { color: var(--ink-3); }
.chip.is-on { background: var(--green-600); border-color: var(--green-600); color: #06120a; }
.tab.is-on { color: var(--ink); }
.admin-tab.is-on { background: var(--green-600); border-color: var(--green-600); color: #06120a; }
.point-i, .crop-tag, .kind-tag, .cell-ico, .quick-icon {
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.cta-ghost b { color: var(--ink); }
.cta-ghost em { color: var(--ink-3); }
.cell-arrow { color: var(--ink-3); }
.art-content p { color: var(--ink-2); }
.toast { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }

/* ---------- 妗岄潰绠＄悊鍙帮紙瀵归綈閫夊瀷鍔╂墜鍚庡彴锛氬乏瀵艰埅 + 涓唴瀹?+ 鍙抽瑙堬級 ---------- */
body.is-admin .app { max-width: none; }
body.is-admin .topbar, body.is-admin .tabbar { display: none; }

.a-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
@media (min-width: 1280px) { .a-shell { grid-template-columns: 232px minmax(0, 1fr) 380px; } }

.a-side {
  border-right: 1px solid var(--line); background: var(--card);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 14px 10px;
}
.a-brand {
  display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650;
  padding: 4px 8px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px;
}
.a-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); flex: none; }
.a-tag { font-size: 10px; color: var(--ink-3); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; font-weight: 400; }
.a-nav { flex: 1; overflow: auto; }
.a-navsc { display: block; font-size: 10px; color: var(--ink-3); letter-spacing: .12em; padding: 12px 10px 6px; }
.a-navb {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px;
  color: var(--ink-2); font-size: 13.5px; text-decoration: none;
}
.a-navb:hover { background: var(--surface-2); color: var(--ink); }
.a-navb.is-on { background: var(--surface-2); color: var(--ink); box-shadow: inset 2px 0 0 var(--green-500); }
.a-sidefoot { border-top: 1px solid var(--line-2); padding-top: 10px; }
.a-kv { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); padding: 0 4px; }
.a-kv b { color: var(--ink-2); font-weight: 550; }

.a-pane { min-width: 0; display: flex; flex-direction: column; }
.a-top {
  display: flex; align-items: flex-end; gap: 14px; padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 5;
}
.a-thead { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.a-eyebrow { font-size: 10.5px; color: var(--ink-3); letter-spacing: .14em; }
.a-thead b { font-size: 17px; font-weight: 650; white-space: nowrap; }
.a-hint { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-actions { margin-left: auto; display: flex; gap: 8px; }
/* 内容区铺满整个中间栏：原来卡在 1100px，宽屏右侧会剩一大块空白 */
.a-body { padding: 18px 22px 40px; max-width: none; }

.a-preview {
  border-left: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0;
}
.a-pvhead { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; border-radius: 14px 14px 0 0; }
.a-pvframe { flex: 1; padding: 12px; display: flex; min-height: 0; }
.a-pvframe iframe { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 10px; background: #000; }
.a-pvfoot { font-size: 10.5px; color: var(--ink-3); padding: 0 14px 12px; }

/* 桌面管理台内容区：密度与列数 */
.a-body .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a-body .kpi-v { font-size: 22px; }
.a-body .admin-row, .a-body .list-card, .a-body .panel, .a-body .post-card, .a-body .prod-card { margin-bottom: 10px; }
@media (max-width: 1100px) { .a-body .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 鐧诲綍闂紙宸︼細鍝佺墝涓庡姛鑳芥竻鍗?/ 鍙筹細鐧诲綍鍗★級
   鐗堝紡锛氬乏鏍忎笁鍧楋紙鍝佺墝琛?/ 姝ｆ枃 / 鍏徃鎶ご锛夊叡鐢ㄤ竴鏉?520px 涓酱锛屾暣鏍忔按骞冲眳涓紱
   鍙虫爮涓€寮犲眳涓殑鐧诲綍鍗°€傛暣椤靛簳鑹蹭负娓愬彉绱犳潗鍥?public/img/gate-bg.png銆?   瀛楀彿灞傜骇锛氶〉闈富鏍囬 42 > 鍗＄墖鏍囬 25 > 姝ｆ枃 15 > 娓呭崟 14/13.5 > 鏍囨敞 12/11銆?*/
.a-gate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  column-gap: clamp(48px, 5vw, 84px);
  width: 100%;
  padding: 0 max(24px, calc((100% - 1140px) / 2));
  min-height: 100vh;
  background:
    /* 浅色玻璃：左侧最实（托住文字），右侧放开让照片透出来 */
    linear-gradient(100deg, rgba(248, 251, 255, .96) 0%, rgba(248, 251, 255, .90) 24%, rgba(248, 251, 255, .62) 44%, rgba(248, 251, 255, .24) 64%, rgba(248, 251, 255, .04) 84%),
    linear-gradient(180deg, rgba(248, 251, 255, .55) 0%, rgba(248, 251, 255, 0) 28%),
    linear-gradient(0deg, rgba(248, 251, 255, .55) 0%, rgba(248, 251, 255, 0) 32%),
    radial-gradient(560px 420px at 72% 50%, rgba(41, 182, 200, .10), rgba(255, 255, 255, 0) 72%),
    var(--ad-bg) url('/img/gate-bg.jpg?v=7') center / cover no-repeat;
  color: var(--ad-ink);
}
/* 页面顶边的一道高光线：玻璃板边缘的那种亮 */
.a-gate::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(41, 182, 200, .55) 16%, rgba(255, 198, 30, .40) 52%, transparent 100%);
  pointer-events: none;
}
.a-gate-side {
  display: flex; flex-direction: column; align-items: stretch;
  padding: 34px 0 30px;
}
.a-gate-brand, .a-gate-main, .a-gate-foot { width: 100%; }
.a-gate-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 19px; font-weight: 650; letter-spacing: .01em;
  color: var(--ad-ink); flex: none;
}
.a-gate-brand .a-tag {
  color: #3b2c00; background: linear-gradient(135deg, var(--gold), #ffe575);
  border-color: rgba(185, 134, 0, .35);
  font-weight: 600; font-size: 11.5px; padding: 2px 7px; border-radius: 5px;
}
/* 品牌灯：白芯红晕的呼吸灯（原来那颗哑红点压在暗红照片上发灰） */
.a-gate-brand .a-dot {
  width: 10px; height: 10px;
  background: radial-gradient(circle at 50% 45%, #fff 0 16%, #ff6b70 55%, #e5484d 100%);
  animation: gate-breathe 2.6s ease-in-out infinite;
}
@keyframes gate-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 96, 100, .55), 0 0 10px rgba(255, 96, 100, .35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 96, 100, 0), 0 0 18px rgba(255, 96, 100, .8); }
}
@media (prefers-reduced-motion: reduce) {
  .a-gate-brand .a-dot { animation: none; box-shadow: 0 0 0 3px rgba(255, 96, 100, .28); }
}

.a-gate-main { margin: auto 0; padding: 20px 0; }
.a-gate-eyebrow {
  margin: 0 0 20px; font-size: 11px; letter-spacing: .24em;
  color: var(--ad-dim);
}
.a-gate-title {
  margin: 0;
  font-size: clamp(32px, 2.4vw, 42px);
  line-height: 1.2; letter-spacing: -.025em; font-weight: 700;
  color: var(--ad-ink);
}
.a-gate-sub {
  margin: 18px 0 0; max-width: 560px;
  font-size: 15px; line-height: 1.85; color: var(--ad-ink-2);
}
.a-gate-list {
  list-style: none; margin: 30px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--ad-line-2);
  display: flex; flex-direction: column; gap: 13px;
}
.a-gate-list li {
  display: grid; grid-template-columns: 26px 92px minmax(0, 1fr);
  gap: 14px; align-items: baseline;
}
.a-gate-no {
  font-size: 11px; color: var(--ad-dim);
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.a-gate-list b { font-size: 14px; font-weight: 650; color: var(--ad-ink); }
.a-gate-note { font-size: 13.5px; color: var(--ad-ink-2); }

.a-gate-foot {
  flex: none; margin: 0; padding-top: 18px;
  border-top: 1px solid var(--ad-line-2);
  font-size: 12.5px; color: var(--ad-ink-2); letter-spacing: .02em;
}

.a-gate-form {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 40px 0; min-width: 0;
}
@property --gate-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.a-gate-card {
  position: relative;
  width: 100%; max-width: 420px;
  padding: 34px 32px 30px;
  border: 1px solid rgba(22, 42, 70, .10); border-radius: 16px;
  /* 浅色玻璃：半透明白 + 背景虚化 */
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .80));
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  backdrop-filter: blur(22px) saturate(120%);
  box-shadow:
    0 30px 70px -40px rgba(24, 44, 80, .65),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}
/* 玻璃板内侧的角部高光：让卡片看起来是一块有厚度的玻璃 */
.a-gate-card::before {
  content: ''; position: absolute; top:0;right:0;bottom:0;left:0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 10% -12%, rgba(41, 182, 200, .14), rgba(255, 198, 30, .06) 42%, rgba(255, 255, 255, 0) 62%);
}
/* 卡片边框跑马灯：白亮高光绕边一圈（conic-gradient + 双层 mask 只留 1px 边） */
.a-gate-card::after {
  content: ''; position: absolute; top:-1px;right:-1px;bottom:-1px;left:-1px; border-radius: 17px; padding: 1px;
  background: conic-gradient(from var(--gate-a),
    rgba(255, 255, 255, 0) 0deg 268deg,
    rgba(255, 255, 255, .18) 292deg,
    rgba(255, 255, 255, .78) 336deg,
    #fff 354deg,
    rgba(255, 255, 255, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: gate-run 4.6s linear infinite;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, .3));
}
@keyframes gate-run { to { --gate-a: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .a-gate-card::after { animation: none; opacity: .5; }
}
.a-gate-card h1 {
  margin: 0 0 8px; font-size: 25px; font-weight: 650;
  letter-spacing: -.015em; color: var(--ad-ink);
}
.a-gate-tip { margin: 0 0 24px; font-size: 13px; color: var(--ad-dim); }
/* 2026-11-23 登录门「两道门」：当前库标识 + 另一道门的入口（本机才能看到公网那扇） */
.a-gate-env {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 12px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--ad-line, rgba(0, 0, 0, .08));
  font-size: 12px; line-height: 1.6; color: var(--ad-dim);
}
.a-gate-env-name { display: inline-flex; align-items: center; gap: 6px; }
.a-gate-env-name::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--ad-dim);
}
.a-gate-env.is-dev .a-gate-env-name::before { background: #d97706; }
.a-gate-env.is-prod .a-gate-env-name::before { background: #0f9d58; }
.a-gate-env-link {
  color: #0f766e; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.a-gate-env-link:hover { text-decoration: underline; }
/* 「进入另一边的后台」做成红色实心按钮 + 跑马灯扫光：它是一次导航，且要一眼看见 */
.a-gate-env-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 16px; border-radius: 9px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  color: #fff; text-decoration: none;
  border: 1px solid #dc2626; background: #dc2626;
  box-shadow: 0 2px 10px rgba(220, 38, 38, .22);
  transition: background .15s ease, box-shadow .15s ease;
}
.a-gate-env-btn:hover { background: #b91c1c; border-color: #b91c1c; box-shadow: 0 3px 14px rgba(185, 28, 28, .3); }
.a-gate-env-btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 38%; left: -45%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  animation: gateSweep 3s ease-in-out infinite;
}
@keyframes gateSweep { 0% { left: -45%; } 55% { left: 115%; } 100% { left: 115%; } }
@media (prefers-reduced-motion: reduce) { .a-gate-env-btn::after { animation: none; display: none; } }
/* 公网页上的按钮同为红色，语义一致：都是「去另一套环境」 */
.a-gate-env-btn--back { background: #dc2626; border-color: #dc2626; color: #fff; }
.a-gate-env-btn--back:hover { background: #b91c1c; border-color: #b91c1c; }
.a-gate-env-hint { color: var(--ad-dim); opacity: .85; }
/* 2026-11-23 公网只读横幅：服务端 readonly.flag 开启时挂在页面顶部 */
.a-readonly-bar {
  position: sticky; top: 0; z-index: 60;
  padding: 8px 14px; font-size: 12.5px; line-height: 1.6; text-align: center;
  background: #fff7e0; color: #7a5200;
  border-bottom: 1px solid #f0d9a8;
}
.a-gate .a-field {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 16px; font-size: 12.5px; letter-spacing: .02em; color: var(--ad-ink-2);
}
.a-gate .input {
  height: 46px; padding: 0 14px; border-radius: 10px;
  font-size: 15px; border-color: var(--ad-line);
  background: #fff; color: var(--ad-ink);
}
.a-gate .input::placeholder { color: var(--ad-dim); }
.a-gate .input:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(41, 182, 200, .20); }
.a-gate .form-err { margin: 2px 0 0; min-height: 0; font-size: 12px; }
.a-gate .form-err:empty { display: none; }
.a-gate .btn--primary {
  height: 48px; margin-top: 10px; border-radius: 10px;
  font-size: 15px; font-weight: 650; letter-spacing: .04em;
}

@media (max-width: 1100px) { .a-gate-side { padding: 28px 32px 26px; } }
@media (max-width: 900px) {
  .a-gate { grid-template-columns: 1fr; }
  .a-gate-side { display: none; }
  .a-gate-form { padding: 24px; }
  .a-gate-card { max-width: 420px; padding: 28px 22px 24px; border: none; background: transparent; }
}

/* ============================================================
   绠＄悊鍙?路 榛戝簳鐧藉瓧鐗?   鎺掔増鐓ф妱銆屽彾宸ラ€夊瀷鍔╂墜銆嶇鐞嗗彴锛圞PI 涓€琛岄摵寮€ / 鍐呭鍥涘垪骞舵帓 /
   姣忓潡鐙珛 panel-h 鏍囬鏍?/ 搴曢儴淇℃伅鏉★級锛岄厤鑹叉寜瀹冪殑鏄庢殫鍙嶈浆锛?   鐧藉簳榛戝瓧 鈫?榛戝簳鐧藉瓧锛涘畠鐢ㄧ孩鑹插己璋冿紝杩欓噷鍚屾牱鐢ㄧ孩鑹插己璋冦€?   鍏ㄩ儴瑙勫垯闄愬畾 body.is-admin锛屽墠鍙颁笉鍙楀奖鍝嶃€?   ============================================================ */
:root {
  /* 后台令牌默认也走浅色（登录门只读 :root，后台 body.is-admin 再覆盖一次） */
  --ad-bg: #eef3fa;
  --ad-island: #f8fbff;
  --ad-panel: rgba(255, 255, 255, .9);
  --ad-line: rgba(22, 42, 70, .14);
  --ad-line-2: rgba(22, 42, 70, .08);
  --ad-ink: #16202e;
  --ad-ink-2: #46566a;
  --ad-dim: #78879a;
  --ad-accent: #d9474c;
  --ad-accent-soft: rgba(217, 71, 76, .10);
  /* 语义色：正向 / 待办 / 进行中，替代各处零散的硬编码色 */
  --ad-ok: #12a06f;
  --ad-warn: #b98600;
  --ad-info: #0f8fb0;
}

body.is-admin .app { background: var(--ad-bg); }

/* ---- 三块分开的卡片，不做光场 ---- */
.a-shell {
  gap: 14px;
  padding: 14px;
  background: var(--ad-bg);
}

.a-side, .a-pane, .a-preview {
  position: relative; z-index: 1;
  border-radius: 14px;
  border: 1px solid var(--ad-line);
  background: var(--ad-island);
  box-shadow: none;
}
.a-side { border-right: 1px solid var(--ad-line); height: calc(100vh - 28px); padding: 16px 12px; }
.a-preview { border-left: 1px solid var(--ad-line); height: calc(100vh - 28px); }

/* 三块等高的「应用式」布局（2026-11-17）：
   以前 .a-pane 不限高、高度跟着内容走，.a-body 底部 48px padding 就成了卡片里一条空边，
   中间这块的边框会比左右两块长出去一截（实测多 41px）。现在三块同高，中间内容在自己的滚动区里滚。 */
@media (min-width: 901px) {
  .a-pane { height: calc(100vh - 28px); overflow: hidden; }
  .a-pane > .a-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
}
@media (min-width: 901px) and (max-width: 1279px) {
  .a-pane { height: calc(100vh - 24px); }
}

/* ---- 鍝佺墝鍖?---- */
.a-brand {
  padding: 2px 8px 16px;
  border-bottom: 1px solid var(--ad-line-2);
  font-size: 14.5px;
  color: var(--ad-ink);
}
/* 侧栏品牌灯 = 后端连接状态呼吸灯：正常绿、异常红（JS 每 15s 探一次 /api/health） */
.a-side .a-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2ea043;
  animation: ad-dot-ok 2.6s ease-in-out infinite;
}
.a-side .a-dot.is-bad { background: var(--ad-accent); animation: ad-dot-bad 1.4s ease-in-out infinite; }
@keyframes ad-dot-ok {
  0%, 100% { box-shadow: 0 0 0 2px rgba(46, 160, 67, .10), 0 0 6px 1px rgba(46, 160, 67, .40); opacity: .82; }
  50% { box-shadow: 0 0 0 4px rgba(46, 160, 67, .28), 0 0 13px 3px rgba(46, 160, 67, .78); opacity: 1; }
}
@keyframes ad-dot-bad {
  0%, 100% { box-shadow: 0 0 0 2px rgba(229, 72, 77, .14), 0 0 6px 1px rgba(229, 72, 77, .45); opacity: .85; }
  50% { box-shadow: 0 0 0 5px rgba(229, 72, 77, .34), 0 0 14px 4px rgba(229, 72, 77, .85); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .a-side .a-dot { animation: none; } }

/* 「管理台」标签：白底黑字实心药丸，一眼能认出来这是后台 */
.a-brand .a-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: #000; background: #f2f2f2; border: 1px solid #f2f2f2;
  padding: 2px 8px; border-radius: 5px;
}

/* ---- 瀵艰埅锛氶€変腑鎬佸乏渚х孩鏉?+ 娣＄孩搴?---- */
.a-nav { padding-top: 4px; }
.a-navsc { letter-spacing: .16em; font-size: 10px; color: var(--ad-dim); }
.a-navb {
  border-radius: 8px; margin-bottom: 2px;
  color: var(--ad-ink-2);
  transition: background .16s ease, color .16s ease;
}
.a-navb:hover { background: rgba(255, 255, 255, .05); color: var(--ad-ink); }
.a-navb.is-on {
  background: linear-gradient(90deg, var(--ad-accent-soft), rgba(229, 72, 77, .02));
  color: #fff;
  box-shadow: inset 2px 0 0 var(--ad-accent);
}
.a-sidefoot { border-top: 1px solid var(--ad-line-2); }
/* 退出登录：侧栏底部一颗低调的描边按钮 */
.a-logout {
  margin-top: 8px; width: 100%; height: 28px; border-radius: 7px;
  border: 1px solid var(--ad-line); background: transparent;
  color: var(--ad-dim); font-size: 12px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.a-logout:hover { color: var(--ad-ink); border-color: rgba(255, 255, 255, .22); }
.a-kv { color: var(--ad-dim); }
.a-kv b { color: var(--ad-ink-2); }

/* ---- 顶栏：一行放完（小标 · 大标题 · 说明 ……… 刷新），原来三层竖排太吃高度 ---- */
.a-top {
  position: relative;
  flex-direction: row; align-items: center; gap: 12px;
  padding: 11px 24px;
  border-bottom: 1px solid var(--ad-line);
  border-radius: 14px 14px 0 0;
  background: transparent;
}
.a-thead {
  flex: 1 1 auto; min-width: 0;
  flex-direction: row; align-items: baseline; flex-wrap: nowrap; column-gap: 10px; row-gap: 0;
}
.a-top .a-eyebrow { font-size: 10px; letter-spacing: .18em; color: var(--ad-dim); white-space: nowrap; }
.a-top .a-thead b { font-size: 18px; letter-spacing: -.01em; color: var(--ad-ink); white-space: nowrap; }
.a-top .a-hint {
  flex: 0 1 auto; min-width: 0; font-size: 11.5px; color: var(--ad-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.a-top .a-actions { position: static; margin-left: auto; flex: none; }

/* ---- 鍐呭鍖?---- */
.a-body { padding: 20px 24px 48px; }

.a-body .kpi {
  border-radius: 12px;
  border: 1px solid var(--ad-line);
  background: var(--ad-panel);
  transition: border-color .18s ease, transform .18s ease;
}
.a-body .kpi::after { display: none; }
.a-body .kpi:hover { border-color: rgba(229, 72, 77, .38); transform: translateY(-1px); }
.a-body .kpi-k { font-size: 12px; letter-spacing: .04em; color: var(--ad-dim); }
.a-body .kpi-v { font-size: 30px; font-weight: 700; line-height: 1.15; margin-top: 2px; letter-spacing: -.03em; color: var(--ad-ink); font-variant-numeric: tabular-nums; }

.a-body .panel, .a-body .list-card, .a-body .admin-row, .a-body .post-card, .a-body .prod-card {
  border-radius: 12px;
  border: 1px solid var(--ad-line);
  background: var(--ad-panel);
  transition: border-color .18s ease;
}
.a-body .panel:hover, .a-body .list-card:hover, .a-body .admin-row:hover {
  border-color: rgba(255, 255, 255, .16);
}

/* ---- 棰勮鍖?---- */
.a-pvhead { padding: 14px 16px; border-bottom: 1px solid var(--ad-line-2); color: var(--ad-ink); }
.a-pvframe { padding: 14px; }
.a-pvframe iframe { border-radius: 10px; border-color: var(--ad-line); }
.a-pvfoot { padding: 0 16px 14px; color: var(--ad-dim); }

/* ---- 鎸夐挳锛氬己璋冭壊鏀规垚绾?---- */
body.is-admin .btn--primary,
body.is-admin .btn--orange {
  background: var(--ad-accent);
  border-color: var(--ad-accent);
  color: #fff;
}
body.is-admin .btn--primary:hover { background: #f0575c; }
body.is-admin .chip.is-on,
body.is-admin .admin-tab.is-on {
  background: var(--ad-accent);
  border-color: var(--ad-accent);
  color: #fff;
}

/* ---- 婊氬姩鏉?---- */
body.is-admin ::-webkit-scrollbar { width: 10px; height: 10px; }
body.is-admin ::-webkit-scrollbar-track { background: transparent; }
body.is-admin ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 99px; border: 2px solid transparent; background-clip: padding-box;
}
body.is-admin ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .26); background-clip: padding-box; }


/* ---------- 鐪嬫澘閲嶆帓锛氬洓鍒楀苟鎺掞紙鐓ф妱閫夊瀷鍔╂墜绠＄悊鍙扮殑淇℃伅瀵嗗害锛?---------- */
/* 看板顶部条：时间范围 + 公司/更新时间 + 常用动作，一行搞定（原来那块四行的 hero 卡已删） */
.ov-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ov-bar .chips { margin: 0; }
.ov-meta { margin-left: auto; font-size: 11.5px; color: var(--ad-dim); white-space: nowrap; }

/* 看板撑满一屏：给看板一个固定高度，底部「最近动态」吃掉剩余高度，既不空也不溢出 */
.a-body--fill {
  display: flex;
  flex-direction: column;
  /* 不写死高度：顶栏变矮后由 flex 吃满剩余空间，底部不会空一条 */
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 20px;
}
/* 除了底部动态块，其余块一律不许被压缩，只有动态块吃剩余高度 */
.a-body--fill > * { flex: 0 0 auto; }
.a-body--fill > .a-home-row--feed { flex: 1 1 0; min-height: 0; }
/* 底部动态行固定三等分：必须压过 .a-home-row 的四列模板（同特异度、写在后面会赢），否则第三列右侧整块留白 */
.a-body .a-home-row--feed { flex: 1 1 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 248px; align-items: stretch; }
@media (max-width: 1180px) {
  .a-body .a-home-row--feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 两列时第三块横跨整行，不留下半行空白 */
  .a-body .a-home-row--feed > .panel:nth-child(3) { grid-column: 1 / -1; }
  .a-body--fill > .a-home-row--feed { flex: 0 0 auto; }
}
@media (max-width: 900px) { .a-body .a-home-row--feed { grid-template-columns: 1fr; } }
.a-home-row--feed .panel { flex-direction: column; height: 100%; }
.feed { flex: 1 1 auto; padding: 2px 0; display: flex; flex-direction: column; overflow-y: auto; }
.feed-row {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8px 16px; text-decoration: none; color: inherit;
  border-bottom: 1px dashed var(--ad-line-2);
  /* 高度不足时不再把行压扁（会叠字），保底 40px，放不下就在卡片里滚 */
  flex: 1 1 auto; min-height: 40px;
}
/* 行数少时由 flex 拉满整块高度，不再在卡片底部留一大块空白 */
.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: rgba(255, 255, 255, .03); }
.feed-l1 { display: flex; align-items: center; gap: 8px; }
.feed-l1 b { font-size: 13.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-l1 .feed-s { margin-left: auto; flex: 0 0 auto; }
.feed-l2 { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.feed-l2 em { font-style: normal; font-size: 12px; color: var(--ad-dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-l2 .feed-t { margin-left: auto; flex: 0 0 auto; }
.feed-t { font-size: 11.5px; color: var(--ad-dim); font-variant-numeric: tabular-nums; }
.feed-s { font-size: 11px; padding: 1.5px 8px; border-radius: 999px; border: 1px solid var(--ad-line); color: var(--ad-dim); }
.feed-s.st-new { color: var(--ad-warn); border-color: rgba(217, 154, 43, .42); }
.feed-s.st-following { color: var(--ad-info); border-color: rgba(74, 144, 217, .42); }
.feed-s.st-won { color: var(--ad-ok); border-color: rgba(46, 160, 67, .42); }
.feed-s.st-paid, .feed-s.st-done { color: var(--ad-ok); border-color: rgba(46, 160, 67, .42); }
.feed-s.st-draft { color: var(--ad-dim); }
.feed-s.st-cancel, .feed-s.st-lost { color: var(--ad-dim); border-color: rgba(255, 255, 255, .12); }
.panel-more { margin-left: auto; font-size: 11.5px; color: var(--ad-dim); text-decoration: none; }
.panel-more:hover { color: var(--ad-ink); }

/* 6 个 KPI：按容器实际宽度自动定列数（后台带预览栏时内容区只有 ~580px，
   以前用视口宽度判断 6 列，会把每张卡挤到 82px、数字被切） */
.a-body .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 12px; margin-bottom: 12px; }

.a-home-row {
  display: grid;
  /* 自动列数：容器宽就多列，窄就减列，不再硬塞四列把标题挤成竖排 */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  /* 四块同高：内容少的那块不往下拖，底边对齐 */
  align-items: stretch;
}
@media (max-width: 1180px) { .a-home-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .a-home-row { grid-template-columns: 1fr; } }

.a-home-row .panel,
.a-body > .panel {
  margin: 0 0 12px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--ad-line);
  background: var(--ad-panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.a-home-row .panel {
  margin: 0;
  min-height: 112px;
  height: 100%;
}

.a-body .panel-h {
  display: flex; align-items: center; gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ad-line-2);
  background: rgba(255, 255, 255, .045);
  overflow: hidden;
}
/* 面板标题不换行、超长省略：否则窄面板会把「销售趋势」挤成一字一行 */
.panel-h b, .panel-h .panel-legend {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}

/* 后台深色主题下的分段筛选：默认 .seg 是浅底浅字，看起来像"禁用" */
.a-body .seg {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--ad-line-2, rgba(255, 255, 255, .1));
  border-radius: 11px;
}
.a-body .seg-i { color: rgba(255, 255, 255, .62); }
.a-body .seg-i.is-on {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  box-shadow: none;
}
.a-body .panel-h b { font-size: 14.5px; font-weight: 650; letter-spacing: .005em; color: var(--ad-ink); }
.a-body .panel-b { padding: 12px 16px; flex: 1; min-width: 0; }
.panel-legend {
  margin-left: auto; display: flex; align-items: center;
  font-size: 11.5px; color: var(--ad-dim); white-space: nowrap;
}
.panel-legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; margin: 0 4px 0 8px; }
.mini-empty { font-size: 12.5px; color: var(--ad-dim); padding: 4px 0; }

/* 缁忛攢鍟嗘帓琛岃 */
.rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 13.5px; color: var(--ad-ink-2);
  border-bottom: 1px solid var(--ad-line-2);
}
.rank-row:last-child { border-bottom: none; }
.rank-no { width: 16px; color: var(--ad-dim); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ad-ink); }
.rank-meta { font-size: 11.5px; color: var(--ad-dim); white-space: nowrap; }
.rank-amt { font-size: 13.5px; font-weight: 600; color: var(--ad-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 棰勮琛?*/
.alert-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; font-size: 13px; color: var(--ad-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ad-line-2);
}
.alert-row:last-child { border-bottom: none; }
.alert-row:hover { background: rgba(255, 255, 255, .04); }

/* 棰勮涓庡緟鍔烇細涓夊潡骞舵帓灏忓崱锛屽拰 KPI 鍛煎簲 */
.alert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px 16px; }
@media (max-width: 900px) { .alert-grid { grid-template-columns: 1fr; } }
.alert-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--ad-line);
  background: rgba(255, 255, 255, .035);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.alert-card:hover { border-color: rgba(229, 72, 77, .35); background: rgba(229, 72, 77, .05); }
.ac-k { font-size: 12px; color: var(--ad-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-v { font-size: 24px; font-weight: 700; color: var(--ad-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ac-v small { font-size: 11.5px; font-weight: 500; color: var(--ad-dim); margin-left: 3px; }
.ac-v.warn { color: var(--ad-accent); }

/* ---------- 椤堕儴淇℃伅鍗?+ 搴曢儴淇℃伅鏉★紙琛ラ綈鐗堥潰锛?---------- */
.a-hero {
  display: flex; gap: 24px; align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  background: var(--ad-panel);
  margin-bottom: 14px;
}
.a-hero-l { flex: 1; min-width: 0; }
.a-hero-kicker { font-size: 11.5px; color: var(--ad-dim); margin-bottom: 7px; }
.a-hero-title { font-size: 21px; font-weight: 700; margin: 0 0 7px; color: var(--ad-ink); letter-spacing: -.02em; }
.a-hero-sub { font-size: 12.5px; color: var(--ad-ink-2); margin: 0 0 13px; line-height: 1.7; }
.a-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.a-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ad-ink-2);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--ad-line);
  white-space: nowrap;
}
.a-pill.ok { color: #7ee2a8; border-color: rgba(126, 226, 168, .3); }
.a-pill.ok i { width: 6px; height: 6px; border-radius: 50%; background: #3fb950; }
.a-hero-r { display: flex; flex-direction: column; gap: 8px; flex: none; }
.a-hero-r .btn { white-space: nowrap; }

.a-footbar {
  display: flex; flex-wrap: wrap; gap: 26px;
  padding: 13px 16px;
  border: 1px solid var(--ad-line);
  border-radius: 12px;
  background: var(--ad-panel);
  font-size: 12px; color: var(--ad-dim);
}
.a-footbar span { white-space: nowrap; }

@media (max-width: 900px) {
  .a-hero { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .a-hero-r { flex-direction: row; }
  .a-hero-r .btn { flex: 1; text-align: center; }
  .a-footbar { gap: 10px 18px; }
}

/* 窄屏：浮层间隙收窄，避免挤压 */
@media (max-width: 1279px) {
  .a-shell { gap: 12px; padding: 12px; }
  .a-side { height: calc(100vh - 24px); }
  /* 两列布局下预览栏本来就没位置：以前它被挤到第二行，页面被撑成两屏、下方一大片黑 */
  .a-preview { display: none; }
}
@media (max-width: 900px) {
  .a-shell { gap: 0; padding: 0; }
  .a-side, .a-pane, .a-preview { border-radius: 0; border: none; height: auto; }
  .a-top { padding: 16px 16px 12px; border-radius: 0; }
  .a-top .a-actions { position: static; }
  .a-body { padding: 16px 16px 40px; }
}

/* ---------- 产品页：选型向导（默认视图）/ 全部机型切换 ---------- */
/* 分段控件（2026-11-20 按苹果 UISegmentedControl 重做）
   原来 .seg-i 是 <button> 但没去边框，浏览器默认的按钮框直接露出来 → 看着像老式按钮组。
   苹果的做法：一个淡灰圆角底槽 + 选中的白色「滑块」，块之间不留缝，靠底色分开。 */
.seg {
  display: inline-flex; gap: 0; padding: 2px; border-radius: 10px;
  background: rgba(120, 120, 128, .12);
  margin: 2px 0 12px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.seg::-webkit-scrollbar { display: none; }
.seg-i {
  border: 0; cursor: pointer; white-space: nowrap;
  padding: 6px 13px; border-radius: 8px;
  font-size: 13px; font-weight: 500; line-height: 1.25;
  color: rgba(60, 60, 67, .62); background: transparent;
  min-height: 32px; display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.seg-i:hover { color: rgba(60, 60, 67, .85); }
.seg-i.is-on {
  background: #fff; color: #1d1d1f; font-weight: 600;
  box-shadow: 0 1px 2.5px rgba(0, 0, 0, .13), 0 0 0 .5px rgba(0, 0, 0, .05);
}
.seg-i.is-on:hover { color: #1d1d1f; }
.seg-i:active { transform: scale(.98); }

.wiz-head { padding: 2px 2px 12px; }
.wiz-k { font-size: 11px; letter-spacing: .12em; color: var(--ink-3); }
.wiz-t { font-size: 22px; font-weight: 700; letter-spacing: -.3px; margin-top: 4px; }
.wiz-s { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.6; }
.wiz-bar { height: 3px; border-radius: 2px; background: var(--line-2, #e4e9e4); margin-top: 12px; overflow: hidden; }
.wiz-bar i { display: block; height: 100%; background: var(--green-600, #1f7a3a); transition: width .25s ease; }

.wiz-sec { margin: 16px 0 0; }
.wiz-sec > b { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 9px; }
.wiz-note { font-weight: 400; font-size: 11.5px; color: var(--ink-3); margin-left: 6px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 9px 14px; margin: 0 8px 8px 0;
  border: 1px solid var(--line-2, #e0e6e0); border-radius: 10px;
  background: var(--surface, #fff); color: var(--ink-2, #444); font-size: 13.5px; font-weight: 500;
  transition: border-color .15s, background .15s, color .15s;
}
.pill.is-on { border-color: var(--green-600, #1f7a3a); background: var(--green-50, #eef7ef); color: var(--green-700, #17602e); font-weight: 650; }
.pill:active { transform: scale(.99); }

.wiz-foot { display: flex; gap: 10px; margin: 20px 0 6px; }
.wiz-foot .btn { flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.match { border: 1px solid var(--line-2, #e4e9e4); border-radius: var(--r, 12px); background: var(--surface, #fff); padding: 13px 14px; margin-bottom: 11px; }
.match-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.match-model { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.match-name { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.match-price { text-align: right; white-space: nowrap; }
.match-price b { font-size: 19px; color: var(--green-700, #17602e); }
.match-price span { font-size: 11px; color: var(--ink-3); margin-left: 2px; }
.match-price em { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.match-why { margin: 10px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--ink-2, #444); line-height: 1.75; }
.match-why li { margin: 1px 0; }
.match-act { display: flex; gap: 8px; margin-top: 11px; }
.match-act .btn { flex: 1; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 380px) {
  .pill { font-size: 12.5px; padding: 8px 11px; }
  .wiz-t { font-size: 20px; }
}

/* ---------- 产品 tab：内嵌原版选型页（保留 APP 顶栏 + 底栏，退回用底部导航） ---------- */
.page--frame { padding: 0; }
.select-frame {
  display: block; width: 100%; border: 0; background: var(--bg);
  min-height: 60vh; /* 旧内核 vh 计算失败时的兜底 */
  /* 顶栏 50 + 底栏 tab-h + 安全区，剩下的都给选型页 */
  height: calc(100vh - 50px - var(--tab-h) - var(--safe-b));
  height: calc(100vh - 50px - var(--tab-h) - var(--safe-b));
  height: calc(100dvh - 50px - var(--tab-h) - var(--safe-b));
}

/* ---------- 后台产品表单：图片/视频缩略 ---------- */
.media-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.media-thumb {
  position: relative; width: 88px; height: 88px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
}
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb > button {
  position: absolute; right: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .72); color: #fff; font-size: 14px; line-height: 1;
}
.media-tag {
  position: absolute; left: 4px; bottom: 4px; font-size: 10px; color: #d8ffe4;
  background: rgba(0, 0, 0, .6); padding: 1px 5px; border-radius: 6px;
}

/* ---------- 现场开单：照片上传 ---------- */
.photo-add {
  width: 100%; min-height: 46px; border-radius: 10px;
  border: 1px dashed var(--line); background: var(--surface-2);
  color: var(--ink-2); font-size: 13px; font-family: inherit;
}
.photo-add:active { border-color: var(--green-600); color: var(--green-500); }
.photo-thumb { position: relative; display: inline-block; margin-top: 8px; }
.photo-thumb img {
  width: 112px; height: 112px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); display: block;
}
.photo-thumb button {
  position: absolute; right: -8px; top: -8px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 15px; line-height: 1;
}

/* 危险按钮：红色描边；二次确认时整块变红、白字（以前用行内 color，确认态文字红底红字看不见） */
.btn--danger {
  color: #ff6b6b; border-color: rgba(229, 72, 77, .45);
}
.btn--danger:hover { border-color: rgba(229, 72, 77, .7); }
.btn--danger.is-armed, .btn.is-armed {
  background: #e5484d; border-color: #e5484d; color: #fff;
}

/* 后台列表缩略图 */
.admin-thumb {
  width: 44px; height: 44px; flex: none; border-radius: 8px; overflow: hidden;
  background: var(--green-50, rgba(46,160,67,.08)); border: 1px solid var(--line-2);
}
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-thumb-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: rgba(22, 42, 70, .26);
}

/* ==================================================================
   经营看板 · 企业版浅色玻璃样板（只作用于 .ovx 作用域，不影响其余后台页）
   零依赖：图表全部手写 SVG
   ================================================================== */
.ovx {
  --x-ink: #16202e; --x-ink2: #4a5a6e; --x-ink3: #7d8b9d;
  --x-line: rgba(28, 45, 72, .13); --x-line2: rgba(28, 45, 72, .16);
  --x-card: rgba(255, 255, 255, .74); --x-card2: rgba(255, 255, 255, .55);
  --x-indigo: #0f8fb0; --x-violet: #29b6c8; --x-green: #12a06f; --x-amber: #b98600; --x-red: #d9474c;
  background:
    radial-gradient(1100px 420px at 12% -8%, rgba(41, 182, 200, .20), transparent 62%),
    radial-gradient(900px 380px at 96% 4%, rgba(255, 198, 30, .20), transparent 60%),
    linear-gradient(180deg, #f4f7fe 0%, #eef2fb 46%, #e9eff9 100%);
  /* 2026-11-19 反馈「留白太多、没骨美感」：容器内边距 18→14、行距 12→10，先收回最外圈空气 */
  border-radius: 22px; padding: 14px; color: var(--x-ink);
  display: flex; flex-direction: column; gap: 10px;
}
.ovx * { box-sizing: border-box; }

/* ---- hero ---- */
.ovx-hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 13px 16px 11px;
  background:
    radial-gradient(320px 180px at 92% -20%, rgba(255, 198, 30, .22), transparent 70%),
    linear-gradient(120deg, #eaf6f8 0%, #f4f7ff 52%, #fdf8ec 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 42px -26px rgba(38, 58, 120, .55);
}
.ovx-hero-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.ovx-hero-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ovx-hi { font-size: 12px; color: var(--x-ink2); white-space: nowrap; }
.ovx-title { font-size: 19px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.ovx-sub { font-size: 12px; color: var(--x-ink3); margin-top: 5px; }
.ovx-hero-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ovx-date {
  font-size: 12px; color: var(--x-ink2); background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px; padding: 6px 12px;
}
.ovx-range { display: flex; gap: 6px; }
.ovx-range button {
  font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--x-line2);
  background: rgba(255, 255, 255, .7); color: var(--x-ink2); cursor: pointer;
}
.ovx-range button.is-on {
  background: linear-gradient(135deg, var(--x-indigo), var(--x-violet)); color: #fff; border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(15, 143, 176, .8);
}

/* ---- KPI ---- */
.ovx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 8px; }
.ovx-kpi {
  /* 白边在浅底上等于没边（看着就"塌"）→ 换冷灰边，四张卡才有骨架 */
  background: var(--x-card); border: 1px solid var(--x-line); border-radius: 14px;
  padding: 10px 12px; backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px -22px rgba(30, 50, 110, .5);
}
.ovx-kpi-k { font-size: 11.5px; color: var(--x-ink3); display: flex; align-items: center; gap: 6px; }
.ovx-kpi-k i { width: 7px; height: 7px; border-radius: 50%; background: var(--x-indigo); display: inline-block; }
.ovx-kpi-v { font-size: 24px; font-weight: 700; letter-spacing: -.5px; margin-top: 4px; }
.ovx-kpi-v small { font-size: 11.5px; font-weight: 500; color: var(--x-ink3); margin-left: 3px; }
.ovx-kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
/* 窄卡里「环比 —」+ 迷你折线会互相挤压 → 折线定宽、徽标不换行（1fr 卡实测 55px 竖排的真凶） */
.ovx-kpi-foot .ovx-svg { width: 64px !important; height: 22px !important; flex: none; }
.ovx-delta { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(22, 163, 122, .12); color: var(--x-green); white-space: nowrap; }
.ovx-delta.is-down { background: rgba(217, 71, 76, .12); color: var(--x-red); }
.ovx-delta.is-flat { background: rgba(125, 139, 157, .14); color: var(--x-ink3); }

/* ---- 卡片通用 ---- */
.ovx-card {
  background: var(--x-card); border: 1px solid var(--x-line); border-radius: 14px;
  padding: 12px; backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -24px rgba(30, 50, 110, .5);
}
/* 卡头下压一条细分割线：这是「骨」的主要来源——去掉它，卡片之间就只剩一片白 */
.ovx-card-h {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--x-line);
}
.ovx-card-h b { font-size: 13.5px; }
.ovx-card-h span { font-size: 11.5px; color: var(--x-ink3); }
.ovx-grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.ovx-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
/* 右侧竖列：结构概览 + 经销商排行 上下取景，和左边趋势同高 */
.ovx-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
/* 最后一张（经销商排行）在「一屏模式」里吃掉剩余高度，右列底边才能和左边趋势对齐；
   自然流式下必须按内容高（早先无条件 flex:1 1 0 会让它在矮窗口里被压成 31px 高、文字被裁）。 */
.ovx-col > .ovx-card { flex: 0 0 auto; }
@media (max-width: 900px) { .ovx-grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---- 图表 ---- */
.ovx-svg { width: 100%; height: auto; display: block; overflow: visible; }
.ovx-chart-x { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 10.5px; color: var(--x-ink3); margin-top: 2px; }
.ovx-chart-x em { font-style: normal; color: var(--x-indigo); font-weight: 650; white-space: nowrap; }
/* 趋势图体：自然流式给固定高，一屏模式下吃满卡片剩余高度（preserveAspectRatio=none，不会被"图太高"顶破行） */
.ovx-chart-body { position: relative; height: 126px; }
.ovx-chart-body .ovx-area { width: 100%; height: 100%; display: block; }
.ovx-peak {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: #fff; border: 2.4px solid var(--x-indigo); box-sizing: border-box;
}

/* ---- 指标行 / 榜单（浅色版） ---- */
.ovx-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px;
  padding: 6px 0; border-top: 1px solid var(--x-line); font-size: 12.5px;
}
.ovx-row:first-child { border-top: none; }
.ovx-row .n { font-weight: 650; color: var(--x-ink); }
.ovx-row .k { color: var(--x-ink3); white-space: nowrap; }
.ovx-row .k b { color: var(--x-ink2); font-weight: 650; margin-left: 2px; }
.ovx-row .k.ok b { color: var(--x-green); }
.ovx-row .k.money b { color: var(--x-amber); }
.ovx-rank { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--x-line); font-size: 12.5px; }
.ovx-rank:first-child { border-top: none; }
.ovx-rank .no { width: 18px; height: 18px; border-radius: 6px; background: rgba(15, 143, 176, .12); color: var(--x-indigo); font-size: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.ovx-rank .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovx-rank .mt { color: var(--x-ink3); font-size: 11.5px; }
.ovx-rank .am { font-weight: 650; color: var(--x-amber); }

/* ---- 预警 ---- */
.ovx-alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.ovx-alert {
  display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, .62); border: 1px solid var(--x-line);
  border-radius: 12px; padding: 10px;
}
.ovx-alert .ak { font-size: 11.5px; color: var(--x-ink3); }
.ovx-alert .av { font-size: 20px; font-weight: 700; }
.ovx-alert .av small { font-size: 11px; font-weight: 500; color: var(--x-ink3); margin-left: 3px; }
.ovx-alert.is-warn { border-color: rgba(224, 138, 30, .5); background: linear-gradient(180deg, rgba(255, 247, 235, .9), rgba(255, 255, 255, .7)); }
.ovx-alert.is-warn .av { color: var(--x-amber); }

/* ---- feed（浅色） ---- */
.ovx-feed-row { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-top: 1px solid var(--x-line); text-decoration: none; color: inherit; }
.ovx-feed-row:first-child { border-top: none; }
.ovx-feed-l1 { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.ovx-feed-l1 b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovx-feed-l1 span { font-size: 11px; color: var(--x-indigo); background: rgba(15, 143, 176, .1); border-radius: 999px; padding: 1px 7px; flex: none; }
.ovx-feed-l2 { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--x-ink3); }
.ovx-feed-l2 em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==================================================================
   后台 · 企业版浅色主题（品牌色：瑞水黄 #FFC61E / JA-4 青 #29B6C8）
   做法：① 覆盖 --ad-* 令牌；② 定点覆盖原先写死"白/黑"的地方；
        ③ 品牌色只用于强调（选中态、主按钮、悬停描边、顶栏渐变线）。
   .ovx（经营看板）自己带一套同名令牌，不受这里影响。
   ================================================================== */
body.is-admin {
  --ad-bg: #eef3fa;
  --ad-island: #f8fbff;
  --ad-panel: rgba(255, 255, 255, .88);
  --ad-line: rgba(22, 42, 70, .13);
  --ad-line-2: rgba(22, 42, 70, .075);
  --ad-ink: #16202e;
  --ad-ink-2: #46566a;
  --ad-dim: #78879a;
  --ad-accent: #d9474c;
  --ad-accent-soft: rgba(217, 71, 76, .10);
  --ad-ok: #12a06f;
  --ad-warn: #b98600;
  --ad-info: #0f8fb0;
  --brand-yellow: #ffc61e;
  --brand-yellow-deep: #b98600;
  --brand-teal: #29b6c8;
  --brand-teal-deep: #0f8fb0;
  /* 通用令牌也一起翻成浅色：.btn / .chip / .search / .bulk-bar 等都吃这一套 */
  --bg: #eef3fa;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --surface-trans: rgba(238, 243, 250, .92);
  --line: rgba(22, 42, 70, .14);
  --line-2: rgba(22, 42, 70, .08);
  --ink: #16202e;
  --ink-2: #46566a;
  --ink-3: #78879a;
  --green-900: #0b3b2e; --green-800: #0d5742; --green-700: #0b7a5a;
  --green-600: #12a06f; --green-500: #17b380;
  --green-100: rgba(18, 160, 111, .14); --green-50: rgba(18, 160, 111, .08);
  --orange-600: #a86a00; --orange-500: #b98600; --orange-100: rgba(255, 198, 30, .18);
  --gold: var(--brand-yellow); --gold-soft: rgba(255, 198, 30, .18);
  --danger: #d9474c; --danger-50: rgba(217, 71, 76, .10);
  --warn: #b98600; --warn-50: rgba(255, 198, 30, .16);
  --ok: #12a06f; --ok-50: rgba(18, 160, 111, .12);
  --shadow-lg: 0 20px 44px -30px rgba(24, 44, 80, .5);
  color-scheme: light;
}

.a-shell { background: linear-gradient(180deg, #f3f7fd 0%, #eaf1fa 100%); }
.a-side, .a-pane, .a-preview {
  background: rgba(255, 255, 255, .74);
  border-color: rgba(22, 42, 70, .10);
  box-shadow: 0 22px 44px -38px rgba(24, 44, 80, .55);
  backdrop-filter: blur(10px);
}

/* 侧栏：黄色「管理台」标 + 青色选中态 */
.a-brand .a-tag {
  color: #3b2c00;
  background: linear-gradient(135deg, var(--brand-yellow), #ffe575);
  border-color: rgba(185, 134, 0, .35);
}
.a-navb { color: var(--ad-ink-2); }
.a-navb:hover { background: rgba(41, 182, 200, .10); color: var(--brand-teal-deep); }
.a-navb.is-on {
  background: linear-gradient(90deg, rgba(41, 182, 200, .22), rgba(255, 198, 30, .12));
  color: var(--brand-teal-deep);
  box-shadow: inset 2px 0 0 var(--brand-teal);
}
.a-logout { color: var(--ad-dim); border-color: var(--ad-line); }
.a-logout:hover { color: var(--brand-teal-deep); border-color: rgba(41, 182, 200, .5); }

/* ---- 项目联动：侧栏底部一组跨系统入口 ---- */
.a-links { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--ad-line-2); }
.a-linkb {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; margin-top: 3px; border-radius: 8px;
  font-size: 12.5px; color: var(--ad-ink-2); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.a-linkb:hover { background: rgba(41, 182, 200, .10); color: var(--brand-teal-deep); }
.a-linkb span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-linkb em { font-style: normal; font-size: 10.5px; color: var(--ad-dim); letter-spacing: .04em; }
.a-lk-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: rgba(22, 42, 70, .22);
}
.a-lk-dot.is-on { background: var(--ad-ok); box-shadow: 0 0 0 3px rgba(18, 160, 111, .16); }
.a-lk-dot.is-off { background: rgba(22, 42, 70, .22); }

/* 顶栏：青色眉标 + 底部品牌渐变线 */
.a-top { border-bottom: 1px solid var(--ad-line); }
.a-top .a-eyebrow { color: var(--brand-teal-deep); }
.a-top::after {
  content: ''; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-yellow));
}

/* 卡片：白色玻璃 + 青色悬停描边 */
.a-body .panel, .a-body .list-card, .a-body .admin-row, .a-body .post-card, .a-body .prod-card {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(22, 42, 70, .10);
}
.a-body .panel:hover, .a-body .list-card:hover, .a-body .admin-row:hover, .a-body .kpi:hover {
  border-color: rgba(41, 182, 200, .45);
}
.a-body .panel-h {
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, .55));
  border-bottom: 1px solid rgba(22, 42, 70, .08);
}
.a-admin-row, .admin-row { background: #fff; }
.admin-row:hover { background: linear-gradient(180deg, rgba(41, 182, 200, .05), rgba(255, 198, 30, .05)); }

/* 按钮 / 分段 / 选中 chip：品牌色 */
body.is-admin .btn.btn--primary,
body.is-admin .btn.btn--orange {
  background: linear-gradient(135deg, var(--brand-teal-deep), var(--brand-teal));
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 20px -14px rgba(15, 143, 176, .9);
}
body.is-admin .btn--primary:hover { filter: brightness(1.06); }
body.is-admin .chip.is-on,
body.is-admin .admin-tab.is-on {
  background: linear-gradient(135deg, var(--brand-teal-deep), var(--brand-teal));
  border-color: transparent; color: #fff;
}
.a-body .seg { background: rgba(22, 42, 70, .05); border-color: rgba(22, 42, 70, .10); }
.a-body .seg-i { color: var(--ad-dim); }
.a-body .seg-i.is-on { background: #fff; color: var(--ad-ink); box-shadow: 0 1px 3px rgba(24, 44, 80, .12); }

/* 表格 / 状态 / 提示条 */
body.is-admin th { color: var(--ad-dim); }
body.is-admin td, body.is-admin th { border-color: var(--ad-line-2); }
.status-pill.s-on { color: #0b7a5a; background: rgba(18, 160, 111, .12); border-color: rgba(18, 160, 111, .30); }
.status-pill.s-off { color: var(--ad-dim); background: rgba(22, 42, 70, .05); border-color: rgba(22, 42, 70, .12); }
body.is-admin .banner { background: rgba(255, 198, 30, .16); border-color: rgba(185, 134, 0, .32); color: #5b4300; }
body.is-admin .banner--warn { background: rgba(255, 198, 30, .20); }
body.is-admin .banner--danger { background: rgba(217, 71, 76, .10); border-color: rgba(217, 71, 76, .30); color: #8c2226; }
.feed-row:hover { background: rgba(41, 182, 200, .07); }

/* 表单控件 & 弹层 */
body.is-admin .input, body.is-admin .select, body.is-admin .textarea {
  background: #fff; color: var(--ad-ink); border-color: rgba(22, 42, 70, .16);
}
body.is-admin .input:focus, body.is-admin .select:focus, body.is-admin .textarea:focus {
  border-color: var(--brand-teal); box-shadow: 0 0 0 3px rgba(41, 182, 200, .18);
}
body.is-admin .modal { background: #fff; color: var(--ad-ink); border-color: rgba(22, 42, 70, .12); }
body.is-admin .modal-mask { background: rgba(16, 26, 44, .40); backdrop-filter: blur(2px); }

/* 结构概览：会销 / 品类 / 地区 三列合并成一条，给小屏留呼吸 */
.ovx-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ovx-tri-i { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.ovx-tri-i span { font-size: 11px; color: var(--x-ink3); white-space: nowrap; }
.ovx-tri-i b { font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--x-ink); white-space: nowrap; }
.ovx-tri-i em { font-style: normal; font-size: 11px; color: var(--x-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 竖排变体：放在「销售趋势」右侧 1fr 栏里，三行自然高（高度交给卡片，不用 100% 免得把标题顶出去） */
.ovx-tri--col { grid-template-columns: minmax(0, 1fr); gap: 0; }
.ovx-tri--col .ovx-tri-i { align-items: center; padding: 6px 0; border-top: 1px solid var(--x-line); }
.ovx-tri--col .ovx-tri-i:first-child { border-top: none; padding-top: 0; }
.ovx-tri--col .ovx-tri-i:last-child { padding-bottom: 0; }
.ovx-tri--col .ovx-tri-i em { flex: 1; min-width: 0; }
.ovx-tri--col .ovx-tri-i b { margin-left: auto; font-size: 15px; }
.ovx-ticker {
  position: relative; overflow: hidden; border-radius: 999px;
  border: 1px solid rgba(41, 182, 200, .38);
  background: linear-gradient(90deg, rgba(41, 182, 200, .16), rgba(255, 198, 30, .20));
  padding: 0 16px;
  height: 34px;
  display: flex; align-items: center;
  /* 2026-11-23 去卡顿：这里原来用 mask-image 做两端渐隐，遮罩内的位移动画
     每帧都要重绘整块，滚起来一顿一顿。改成两端覆盖层做同样的渐隐效果。 */
}
.ovx-ticker::before,
.ovx-ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 26px; z-index: 1; pointer-events: none;
}
.ovx-ticker::before { left: 0; background: linear-gradient(90deg, #eef3fb 12%, rgba(238, 243, 251, 0)); }
.ovx-ticker::after { right: 0; background: linear-gradient(270deg, #f6f1e2 12%, rgba(246, 241, 226, 0)); }
.ovx-ticker-track {
  display: flex; align-items: center; gap: 26px; white-space: nowrap;
  height: 20px; line-height: 20px;
  animation: ovxMarquee 30s linear infinite; will-change: transform;
  transform: translateZ(0); backface-visibility: hidden;
}
.ovx-ticker:hover .ovx-ticker-track { animation-play-state: paused; }
@keyframes ovxMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .ovx-ticker-track { animation: none; } }
.ovx-ticker-item { font-size: 12.5px; line-height: 20px; color: var(--x-ink2); display: inline-flex; align-items: center; gap: 5px; }
.ovx-ticker-item b { color: var(--x-ink); font-weight: 700; }
.ovx-ticker-item i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-teal); flex: none; }
.ovx-ticker-item.is-warn i { background: var(--brand-yellow); }

/* ---- 看板布局：由 JS 实测决定「一屏(is-fit)」还是「自然流式(可滚)」，绝不裁字 ---- */
@media (min-width: 901px) {
  .a-body--fill.is-fit { overflow: hidden; }
  .a-body--fill.is-fit > .ovx {
    height: 100%;
    display: grid;
    /* 6 段：跑马灯 / hero / KPI / 趋势+右列(结构·排行) / 预警 / 最近动态
       2026-11-18：行高按内容自适应，避免 fr 拉伸把卡片撑出大片空白。
       2026-11-19 用户反馈「留白太多、没骨美感」—— 真凶是 align-content:space-between：
       6 行都是 min-content，容器剩下的高度全被均摊到行与行之间，看着就是一条条空带。
       现在改成固定 6px 行距，把富余高度**只给趋势那一行**（唯一真正需要高度的元素），
       其余卡片保持内容高，视觉上收紧但不是硬压。 */
    grid-template-rows: min-content min-content min-content minmax(132px, 1fr) min-content min-content;
    align-content: start;
    gap: 6px;
    padding: 12px;
    overflow: hidden;
  }
  /* 右列：两张卡都从顶部排，最后一张**撑满列高** ——
     用户 2026-11-19 反馈「下面可以空着但不要留白」：趋势行吃掉富余高度后，
     右列若仍按内容高，就会在「经销商排行」下面留一条无主的空白带。
     让末卡吃到列底，空的地方就变成卡片自己的底，且底边与左边趋势卡对齐（这才是"空着"而不是"留白"）。 */
  .a-body--fill.is-fit .ovx-col > .ovx-card:last-child { flex: 1 1 auto; min-height: min-content; }
  /* 行高自适应后，卡片不再被拉伸：列里两张卡都按内容高、趋势图给固定高度 */
  .a-body--fill.is-fit .ovx-chart-body { height: 132px; flex: 0 0 auto; }
  .a-body--fill.is-fit .ovx-card { min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 7px 10px; }
  .a-body--fill.is-fit .ovx-card-h { margin-bottom: 5px; }
  .a-body--fill.is-fit .ovx-card-h b { font-size: 12.5px; }
  .a-body--fill.is-fit .ovx-hero { padding: 10px 14px; }
  .a-body--fill.is-fit .ovx-title { font-size: 18px; }
  .a-body--fill.is-fit .ovx-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .a-body--fill.is-fit .ovx-kpi { padding: 6px 10px; }
  .a-body--fill.is-fit .ovx-kpi-v { font-size: 18px; }
  .a-body--fill.is-fit .ovx-kpi-foot { margin-top: 3px; }
  .a-body--fill.is-fit .ovx-delta { white-space: nowrap; font-size: 10.5px; padding: 2px 6px; }
  .a-body--fill.is-fit .ovx-kpi-foot .ovx-svg { width: 62px !important; height: 21px !important; flex: none; }
  .a-body--fill.is-fit .ovx-svg { max-height: 100%; }
  .a-body--fill.is-fit .ovx-alerts { display: flex; gap: 8px; }
  .a-body--fill.is-fit .ovx-alert { flex: 1 1 0; min-width: 0; padding: 6px 9px; }
  .a-body--fill.is-fit .ovx-alert .ak { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .a-body--fill.is-fit .ovx-alert .av { font-size: 16px; }
  .a-body--fill.is-fit .ovx-row { padding: 3px 0; font-size: 12px; }
  .a-body--fill.is-fit .ovx-feed-row { padding: 2px 0; }
  .a-body--fill.is-fit .ovx-feed-l1 { font-size: 12px; }
  .a-body--fill.is-fit .ovx-feed-l2 { font-size: 11px; }
  .a-body--fill.is-fit .ovx-chart-body { height: auto; flex: 1 1 auto; min-height: 54px; }
  .a-body--fill.is-fit .ovx-tri--col .ovx-tri-i { padding: 4px 0; }
}
/* 没有 is-fit 时（放不下）：自然流式 + 纵向滚动，保证不裁字 */
@media (min-width: 901px) {
  .a-body--fill:not(.is-fit) { overflow: auto; }
  .a-body--fill:not(.is-fit) > .ovx { height: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; }
  .a-body--fill:not(.is-fit) .ovx-card { overflow: visible; }
  .a-body--fill:not(.is-fit) .ovx-feed-row { padding: 6px 0; }
}

.a-hero {
  position: relative;
  /* 关键：1398 行那条旧规则给了 .a-hero display:flex + gap:24 + align-items:center，
     而这里之前只覆盖了 padding/border/background —— display 仍是 flex，
     导致「标题行」和「指标行」变成并排的两个 flex 项、全挤在一行（标题被压窄到「经营」竖排）。
     这里显式改成纵向列，两行才是两行。 */
  display: flex; flex-direction: column; align-items: stretch; gap: 9px;
  padding: 13px 20px 12px;
  border-bottom: 1px solid var(--ad-line);
  border-radius: 14px 14px 0 0;
  /* 宽度断点要按「英雄带自己的实际宽度」算：中栏右边还有预览栏，视口宽度会误判 */
  container-type: inline-size;
  background:
    radial-gradient(760px 200px at 88% -40%, rgba(255, 198, 30, .26), transparent 70%),
    radial-gradient(620px 200px at 6% -60%, rgba(41, 182, 200, .20), transparent 72%),
    linear-gradient(180deg, #ffffff, rgba(255, 255, 255, .55));
}
/* 2026-11-19 用户反馈「不整齐或拥挤」「都是歪的，排不下去可以改变形态」：
   原来靠 flex-wrap 自由折行，标题/指标/日期三块各自落在不同高度上。
   现在改成**两行定式**：
     第 1 行 = 标题（左）↔ 日期+刷新（右），nowrap，说明文字超长就省略号；
     第 2 行 = 整条给指标（4 栏等宽）+ 环形图。
   两行都是定式，不再出现谁被挤到下一行的情况。 */
.a-hero-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 16px; flex-wrap: nowrap; min-width: 0;
}
.a-hero-main { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.a-hero .a-actions { flex: none; align-items: center; }
/* 面包屑/标题不参与压缩：只有说明文字该被省略号截断（否则窄一点就把「经营」挤成竖排） */
.a-hero .a-eyebrow { flex: none; white-space: nowrap; }
.a-hero-title { font-size: 19px; letter-spacing: -.01em; color: var(--ad-ink); white-space: nowrap; flex: none; }
.a-hero .a-hint { font-size: 11.5px; color: var(--ad-dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 日期胶囊与刷新按钮统一 28px 高：原来一个 27 一个 30，看着就是没对齐 */
.a-hero-date {
  height: 28px; display: inline-flex; align-items: center;
  font-size: 11.5px; color: var(--ad-ink-2);
  background: rgba(255, 255, 255, .8); border: 1px solid var(--ad-line);
  border-radius: 999px; padding: 0 11px; white-space: nowrap;
}
.a-hero .a-actions .btn { height: 28px; }
.a-hero-stats {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex-wrap: nowrap;
}
/* 容器再窄一点时，环形图允许掉到指标下面（指标自己已经是 2×2） */
@container (max-width: 520px) { .a-hero-stats { flex-wrap: wrap; } }
/* 4 栏等宽：宽度不够时整排变 2×2，不会出现「3 个 + 1 个」的残行 */
.a-hero-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex: 1 1 auto; min-width: 0; }
@container (max-width: 780px) { .a-hero-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 420px) { .a-hero-chips { grid-template-columns: minmax(0, 1fr); } }
.a-hero-load { font-size: 12px; color: var(--ad-dim); }
.a-hero-stat {
  height: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11.5px; color: var(--ad-dim);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--ad-line);
  border-radius: 10px; padding: 0 10px;
  white-space: nowrap; min-width: 0; overflow: hidden;
}
.a-hero-stat i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.a-hero-stat i.is-teal { background: var(--brand-teal); }
.a-hero-stat i.is-yellow { background: var(--brand-yellow); }
.a-hero-stat b { font-size: 15px; color: var(--ad-ink); font-weight: 700; letter-spacing: -.02em; }
.a-hero-stat small { font-size: 10.5px; color: var(--ad-dim); margin-left: 2px; }
.a-hero-ring { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.a-hero-ring em { font-style: normal; font-size: 11.5px; color: var(--ad-dim); line-height: 1.4; }
.a-hero-ring em b { display: block; font-size: 16px; color: var(--ad-ink); }

/* 预览区：浅色外壳 + 手机边框感 */
.a-preview { background: rgba(255, 255, 255, .86) !important; }
.a-pvhead { background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .6)); }
.a-pvpill {
  font-size: 10.5px; color: var(--brand-teal-deep);
  background: rgba(41, 182, 200, .12); border-radius: 999px; padding: 2px 8px;
}
.a-pvframe iframe {
  border: 1px solid rgba(22, 42, 70, .12);
  border-radius: 16px;
  box-shadow: 0 16px 34px -26px rgba(24, 44, 80, .6), inset 0 0 0 6px rgba(255, 255, 255, .9);
  background: #fff;
}
.a-pvfoot { color: var(--ad-dim); }

/* 滚动条（浅色） */
body.is-admin ::-webkit-scrollbar-thumb { background: rgba(22, 42, 70, .18); background-clip: padding-box; }
body.is-admin ::-webkit-scrollbar-thumb:hover { background: rgba(22, 42, 70, .32); background-clip: padding-box; }

/* 批量条 / 搜索框 / 基础按钮 / 胶囊 / 状态标签：浅色化（这些用的是通用令牌） */
body.is-admin .bulk-bar { background: rgba(238, 243, 250, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
body.is-admin .search { background: #fff; border-color: var(--line); color: var(--ink-3); }
body.is-admin .search input { color: var(--ink); background: transparent; }
body.is-admin .btn { background: #fff; color: var(--ink); border-color: var(--line); }
body.is-admin .btn:hover { border-color: rgba(41, 182, 200, .5); color: var(--brand-teal-deep); }
body.is-admin .chip { background: #fff; color: var(--ink-2); border-color: var(--line); }
body.is-admin .chip:hover { border-color: rgba(41, 182, 200, .5); color: var(--brand-teal-deep); }
body.is-admin .status-pill { background: rgba(22, 42, 70, .05); color: var(--ink-2); border-color: var(--line); }
body.is-admin .status-pill.s-new { background: rgba(15, 143, 176, .12); color: #0b6c80; }
body.is-admin .status-pill.s-on, body.is-admin .status-pill.s-won { background: rgba(18, 160, 111, .12); color: #0b7a5a; }
body.is-admin .status-pill.s-off, body.is-admin .status-pill.s-lost { background: rgba(22, 42, 70, .06); color: var(--ink-3); }
body.is-admin .feed-s { border-color: var(--line); color: var(--ink-3); }
body.is-admin .panel-more, body.is-admin .mini-empty { color: var(--ink-3); }
body.is-admin .bulk-all, body.is-admin .bulk-hint { color: var(--ink-2); }

.metrics-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding: 9px 4px; border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.7;
}
.metrics-row:first-child { border-top: none; }
.metrics-row .mr-name { font-weight: 650; color: var(--ink); }
.metrics-row .mr-kv { color: var(--ink-3); white-space: nowrap; }
.metrics-row .mr-kv b { color: var(--ink-2); font-weight: 650; margin-left: 2px; }
.metrics-row .mr-kv.is-ok b { color: var(--green-600); }
.metrics-row .mr-kv.is-money b { color: var(--orange-600); }

/* ---------- 首页 / 下单 Hub：铺满视口，底部不留大片空白 ---------- */
.page--home, .page--hub {
  display: flex; flex-direction: column;
  min-height: calc(100vh - 50px - var(--tab-h) - var(--safe-b));
  min-height: calc(100vh - 50px - var(--tab-h) - var(--safe-b));
  min-height: calc(100dvh - 50px - var(--tab-h) - var(--safe-b));
  /* 高度里已经扣掉了底栏，这里不再叠加一份底栏高度，否则页脚/卡片会被顶起一大截 */
  padding-bottom: calc(var(--safe-b) + 16px);
}
.page--home .hero { flex: 0 0 auto; }
.page--home .entries, .page--hub .entries {
  flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px;
  justify-content: center;
}
.page--home .entries .entry, .page--hub .entries .entry {
  flex: 1 1 0; min-height: 84px; align-items: center;
}
.page--hub .entries .entry { min-height: 104px; }
.page--home .stats { flex: 0 0 auto; margin-top: 14px; }
.page--home .home-foot {
  flex: 0 0 auto; margin-top: auto; padding-top: 16px;
  text-align: center; font-size: 11px; color: var(--ink-3); line-height: 1.8;
}

/* ---------- 触控命中区（2026-11-17）：WCAG 2.2 AA 2.5.8 要求指针目标 >=24x24 CSS px；
   行内文字链接豁免，这里是块级链接与下拉控件，用 min-height 撑命中区、字号与配色不变 ---------- */
.sec-more,
.panel-more { display: inline-flex; align-items: center; min-height: 24px; }
.sortsel { min-height: 24px; padding: 3px 2px; }

/* ============================================================
   可读性 / 可点性覆盖 —— 仅前台（2026-11-20）
   依据：Orbix Studio 的 Wellnest 案例（面向老年用户）——
         「one clear action at a time / large cards, plain labels / friendly, not clinical」。
   落地口径：
     · 触控目标 >=44px（WCAG 2.2 AAA 2.5.5，比上面 AA 的 24px 更严）
     · 辅助文字 >=12.5px（原 10.5 / 11.5px 对老花不友好）
     · 卡片副标题允许换行显示完整，不靠省略号截断
   作用域：body:not(.is-admin) —— 后台管理端（body.is-admin）完全不受影响。
   回滚：删掉本段即可。
   ============================================================ */
body:not(.is-admin) .btn {
  height: 44px;
  font-size: 14.5px;
  padding: 0 16px;
}
body:not(.is-admin) .btn--sm {
  height: 40px;
  font-size: 13px;
  padding: 0 12px;
}
body:not(.is-admin) .hero-spec {
  font-size: 12.5px;
}
body:not(.is-admin) .hero-name {
  font-size: 13.5px;
}
body:not(.is-admin) .entry-s {
  font-size: 12.5px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.45;
}
body:not(.is-admin) .page--home .home-foot {
  font-size: 12px;
}

/* ---------- 到场登记页（客户扫码，免登录）----------
   现场受众 40–60 岁、老花眼、安卓中端机：字号放大、输入框加高、按钮变宽。 */
.ck-page { padding-top: 14px; }
.ck-head { margin: 4px 0 18px; }
.ck-title { font-size: 20px; font-weight: 700; line-height: 1.35; }
.ck-sub { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.ck-page .field-label { font-size: 14px; }
.ck-input { height: 50px; font-size: 17px; }
.ck-btn { height: 52px; font-size: 17px; margin-top: 4px; }
.ck-page .chip { font-size: 14px; padding: 9px 15px; }
.ck-done { text-align: center; padding: 56px 20px 20px; }
.ck-done-ico {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--green-50); color: var(--green-700); display: grid; place-items: center;
}
.ck-done-title { font-size: 21px; font-weight: 700; }
.ck-done-seq { font-size: 15px; color: var(--ink-2); margin-top: 10px; }
.ck-done-seq b { font-size: 22px; color: var(--green-700); }
.ck-done-tip { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }
.ck-done-hint { font-size: 13.5px; color: var(--ink-2); margin-top: 18px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.ck-done-hint b { letter-spacing: 1px; }

/* ---------- 开单页的「到场客户」搜索列表 ---------- */
.ck-list:not(:empty) { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-height: 264px; overflow-y: auto; }
.ck-item {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: none; border: none; font: inherit; text-align: left; cursor: pointer;
  border-top: 1px solid var(--line-2);
}
.ck-item:first-child { border-top: none; }
.ck-item:active { background: var(--surface-2); }
.ck-item.is-ordered { opacity: .62; }
.ck-seq {
  flex: none; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 6px;
  background: rgba(41, 182, 200, .16); color: #0f6f7c; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center;
}
.ck-name { font-size: 14.5px; font-weight: 600; }
.ck-phone { font-size: 12.5px; color: var(--ink-3); letter-spacing: .5px; }
.ck-tag { margin-left: auto; font-size: 11px; color: var(--danger); }
.ck-tag--soft { color: var(--ink-3); }

/* 询价页：登录后的只读身份行（不再摆两个让他重填的输入框） */
.who-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 14px; margin: 0 0 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r);
}
.who-label { font-size: 11.5px; color: var(--ink-3); }
.who-val { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: .2px; }
.who-edit { margin-left: auto; font-size: 11.5px; color: var(--green-700); text-decoration: none; }
.who-edit:hover { text-decoration: underline; }

/* 返回入口（2026-11-20 用户：返回要用醒目的，可以用产品黄） */
.back-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: .2px;
  color: #3a2a00; text-decoration: none;
  background: linear-gradient(165deg, #ffd45a 0%, #ffc61e 100%);
  border: 1px solid #e8b000; border-radius: 999px;
  padding: 6px 14px 6px 10px; margin: 0 0 10px 2px;
  box-shadow: 0 3px 10px rgba(255, 198, 30, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.back-pill .bp-ico { font-size: 16px; line-height: 1; font-weight: 700; }
.back-pill:active { filter: brightness(.96); }

/* ==================== 城市选择底部面板（2026-11-20）==================== */
.pick-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 11px 14px; border-radius: var(--r-lg, 16px);
  background: var(--surface); border: 1px solid var(--line, #e6e6eb);
  font-size: 14px; color: var(--ink); text-align: left; cursor: pointer;
}
.pick-btn .pb-ico { display: inline-flex; color: var(--ink-3); }
.pick-btn .pb-t { font-weight: 600; }
.pick-btn .pb-n { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.pick-btn .pb-chev { display: inline-flex; color: var(--ink-3); transform: rotate(90deg); }
.pick-btn:active { background: var(--surface-2); }

.sheet-mask {
  position: fixed; top:0;right:0;bottom:0;left:0; z-index: 120;
  background: rgba(12, 20, 28, .38);
  display: flex; align-items: flex-end; justify-content: center;
  animation: sheetFade .16s ease both;
}
.sheet {
  width: 100%; max-width: 520px; max-height: 78vh;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 6px 0 calc(12px + var(--safe-b, 0px));
  display: flex; flex-direction: column;
  box-shadow: 0 -12px 40px rgba(12, 32, 44, .18);
  animation: sheetUp .22s cubic-bezier(.22, .8, .3, 1) both;
}
.sheet-bar { display: flex; justify-content: center; padding: 6px 0 2px; }
.sheet-bar span { width: 38px; height: 4px; border-radius: 2px; background: #d7dde3; }
.sheet-head { display: flex; align-items: center; padding: 6px 16px 8px; }
.sheet-title { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.sheet-x {
  margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: var(--surface-2, #f1f4f7); color: var(--ink-3);
  display: grid; place-items: center; cursor: pointer;
}
.sheet-search {
  display: flex; align-items: center; gap: 8px; margin: 0 16px 8px;
  padding: 9px 12px; border-radius: 12px; background: var(--surface-2, #f1f4f7);
  color: var(--ink-3);
}
.sheet-search input { flex: 1; border: 0; background: transparent; font-size: 14px; color: var(--ink); outline: none; }
.sheet-list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px 8px 6px; }
.sheet-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 10px; border: 0; border-radius: 12px; background: transparent;
  font-size: 14.5px; color: var(--ink); text-align: left; cursor: pointer;
}
.sheet-item + .sheet-item { border-top: 1px solid rgba(0, 0, 0, .05); }
.sheet-item .si-n { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.sheet-item .si-tick { display: inline-flex; color: #b38600; }
.sheet-item.is-on { background: rgba(255, 198, 30, .16); font-weight: 700; color: #3a2a00; }
.sheet-none { padding: 22px; text-align: center; color: var(--ink-3); font-size: 13px; }
@keyframes sheetFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes sheetUp { from { transform: translateY(18px) } to { transform: translateY(0) } }

/* 面板内列表滚动条：细、半透明（默认那条太粗太黑） */
.sheet-list { scrollbar-width: thin; }
.sheet-list::-webkit-scrollbar { width: 4px; }
.sheet-list::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .18); border-radius: 2px; }
.sheet-list::-webkit-scrollbar-track { background: transparent; }

/* 面板内列表：隐藏滚动条（手机靠手指滑，桌面/无头渲染不会出现粗黑条） */
.sheet-list { scrollbar-width: none; -ms-overflow-style: none; }
.sheet-list::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ==================== 通用下拉：自定义按钮 + 底部面板（2026-11-21）====================
   原生 <select> 的展开列表是系统画的（有的环境黑底灰字），CSS 改不了，
   所以把 select 变透明层，按钮和面板都由我们自己画。 */
.sel-wrap { position: relative; display: block; }
.sel-wrap > select.sel-native {
  position: absolute !important; top:0;right:0;bottom:0;left:0; width: 100% !important; height: 100% !important;
  opacity: 0; pointer-events: none; appearance: none;
}
.sel-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 11px 14px; border-radius: var(--r-lg, 16px);
  background: var(--surface, #fff); border: 1px solid var(--line, #e6e6eb);
  font-size: 14px; color: var(--ink, #1d1d1f); text-align: left; cursor: pointer;
  min-height: 44px;
}
.sel-btn .sel-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-btn .sel-chev { display: inline-flex; color: var(--ink-3); transform: rotate(90deg); }
.sel-btn:active { background: var(--surface-2); }
.sheet-group {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3);
  padding: 12px 12px 6px; background: transparent;
}
.pick-btn--sm { min-height: 38px; padding: 8px 12px; font-size: 13px; }

/* ==================== 2026-11-21 用户选 1B + 6B ==================== */

/* 1B：返回入口统一「白底 + 金色箭头」（与选型页同规格），不再用黄底块 */
.back-pill {
  background: #fff;
  border: 1px solid rgba(13, 37, 61, .10);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(13, 37, 61, .07);
  padding: 6px 14px 6px 11px;
}
.back-pill .bp-ico { color: #d9a000; }
.back-pill:active { background: #f5f7f9; filter: none; }

/* 6B：首页底部公司信息独立白卡（原来三行挤在一起贴着底栏） */
.home-foot-card {
  margin: 16px 12px 26px;
  padding: 18px 16px 16px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e6e6eb);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(12, 32, 44, .05);
}
.home-foot-card .hf-co {
  font-size: 13.5px; font-weight: 650; color: var(--ink);
  letter-spacing: .01em; line-height: 1.4;
}
.home-foot-card .hf-hot {
  margin-top: 8px; font-size: 12.5px; color: var(--ink-3);
  letter-spacing: .02em;
}

/* 6B 修正：--surface 在皮肤下是半透明白，这里要的是实心白卡 */
.home-foot-card { background: #fff; }

/* 2026-11-21 修图5：chev 图标本身就是朝下的 V（m6 9 6 6 6-6），
   之前给它加了 rotate(90deg) 反而转成朝左。这里取消旋转。 */
.sel-btn .sel-chev,
.pick-btn .pb-chev { transform: none; }

/* ==================== 2026-11-21 提示性控件：产品黄 + 液态玻璃 ====================
   用户要求：下拉按钮、进度条、返回键这类"提示性"控件统一改成醒目的产品黄 + 液态玻璃。
   液态玻璃四层：①半透明黄渐变本体 ②backdrop-filter 折射 ③1px 白内高光 ④底部暗线 + 柔和金色投影 */
.sel-btn,
.back-pill {
  background: linear-gradient(165deg, rgba(255, 214, 96, .94) 0%, rgba(255, 198, 30, .88) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -1px 0 rgba(160, 116, 0, .14),
    0 5px 16px rgba(255, 198, 30, .28);
  color: #3a2a00;
  font-weight: 650;
}
.sel-btn .sel-t { color: #3a2a00; }
.sel-btn .sel-chev,
.back-pill .bp-ico { color: #6a4a00; }
.back-pill:active,
.sel-btn:active { filter: brightness(.97); }

/* 2026-11-21 修「综合按钮突出来看着蠢」
   实测：搜索框高 38px、圆角 14px；黄色下拉按钮高 46px、圆角 22px，上下各 -4px 直接溢出容器的白底。
   这里把嵌在 .search 里的下拉压回容器内部：不溢出、无投影、无白描边、圆角跟随容器。 */
.search .sel-wrap { display: flex; align-items: center; }
.search .sel-btn {
  height: 30px; min-height: 0; padding: 0 10px;
  border-radius: 10px;
  border: 0;
  box-shadow: none;
  background: linear-gradient(165deg, rgba(255, 214, 96, .95) 0%, rgba(255, 198, 30, .92) 100%);
  font-size: 13px; font-weight: 650;
}
.search .sel-btn .sel-chev { color: #6a4a00; }
.search .sel-btn:active { filter: brightness(.97); }

/* ==================== 2026-11-21 用户选 B + D ==================== */

/* B：首页公司名 + 热线合并成一行（原来两行占 82px，现在约 40px） */
.home-foot-card {
  margin: 10px 12px 18px;
  padding: 12px 14px;
}
.home-foot-card .hf-line {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; min-width: 0;
}
.home-foot-card .hf-co {
  font-size: 12.5px; font-weight: 650; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 68%;
}
.home-foot-card .hf-dot { color: var(--ink-3); font-size: 12px; }
.home-foot-card .hf-hot {
  font-size: 12.5px; font-weight: 650; color: var(--brand-yellow-deep, #b38600);
  white-space: nowrap; letter-spacing: .02em;
}

/* D：「我的」页版本行贴底（页面至少一屏高，内容不满时也落在视口底部） */
.me-page {
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--tab-h, 56px) - var(--safe-b, 0px) - 56px);
  min-height: calc(100dvh - var(--tab-h, 56px) - var(--safe-b, 0px) - 56px);
}
.me-page #verLine { margin-top: auto; }

/* 首页底部：公司卡被底栏遮住半截 —— 单独给首页补足底栏留白（2026-11-21） */
.page--home { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 30px); }

/* 2026-11-21 用户：下单按钮合进搜索框（原来单独一行浪费空间） */
.search .back-pill {
  height: 26px; min-height: 0; padding: 0 9px 0 7px;
  border-radius: 8px; border: 0; box-shadow: none;
  font-size: 12.5px; font-weight: 650; letter-spacing: .01em;
  background: linear-gradient(165deg, rgba(255, 214, 96, .95) 0%, rgba(255, 198, 30, .92) 100%);
  display: inline-flex; align-items: center; gap: 2px;
  flex: none;
}
.search .back-pill .bp-ico { color: #6a4a00; font-size: 15px; line-height: 1; }
.search .back-pill:active { filter: brightness(.97); }
/* 融合：搜索框内左侧“返回+搜索”贴在一起，不再各带一层白边 */
.search { gap: 6px; }

/* 2026-11-21 进度条居中：/select/ 是独立页，只加载 select 目录下的样式，
   所以这条写在 public/select/style.css，不放这里（放这里不会生效）。 */

/* ==================== 2026-11-21 C：热线号上顶栏 ====================
   顶栏右侧原来只有一个电话图标，号码看不到；现在把号码写在图标左边。
   窄屏时隐藏副标题「农机服务推广」给号码腾位置。 */
.topbar-tel {
  width: auto !important; padding: 0 8px; gap: 5px;
  display: inline-flex; align-items: center; flex: none;
}
.topbar-tel .tel-num {
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-2, #4a4a52); white-space: nowrap; font-variant-numeric: tabular-nums;
}
@media (max-width: 400px) {
  .brand-sub { display: none; }
}

/* ==================== 2026-11-21 图二：「‹ 下单」在搜索框里太抢戏 ====================
   搜索框里放两个实心黄（左导航 + 右筛选）看着一样重，层级混乱。
   导航降为“透明底 + 金色箭头 + 灰字”，实心黄只留给右侧筛选。 */
.search .back-pill {
  background: transparent;
  border: 0; box-shadow: none;
  height: 26px; min-height: 0;
  padding: 0 4px 0 2px;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-2, #4a4a52);
}
.search .back-pill .bp-ico { color: #d9a000; font-size: 16px; line-height: 1; }
.search .back-pill:active { background: rgba(0, 0, 0, .04); border-radius: 7px; filter: none; }

/* ==================== 2026-11-21 用户同意两件事 ==================== */

/* ① 「我的」页版本行改常驻细条：底栏之上，任何屏幕高度都看得见（方案 F）
   之前用 flex 贴底在 667 屏无效（内容本身超一屏），只能常驻。 */
#verLine {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--tab-h, 56px) + var(--safe-b, 0px));
  margin: 0;
  padding: 5px 14px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid var(--line);
  font-size: 10.5px !important;
  line-height: 1.4;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: .01em;
  z-index: 30;
  pointer-events: none;
}
/* 常驻条会盖住内容底部，给页面补出这一段高度 */
.me-page { padding-bottom: calc(var(--tab-h, 56px) + var(--safe-b, 0px) + 46px); }

/* ==================== 2026-11-21 页脚改「纯署名」（用户选 A）====================
   原来是一张白卡装「公司名 · 金色电话」，两层问题：
   ① 电话已在顶栏常驻，页脚重复；② 金色号码比公司名抢眼，层级反了。
   现在：不装卡、不用强调色，就是一行居中的灰字署名（苹果 App 页脚的做法）。 */
.home-foot-card {
  margin: 16px 12px 22px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.home-foot-card .hf-co {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .02em;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
  line-height: 1.5;
}

/* ==================== 2026-11-21 下单页顶部提示条 ====================
   「不登录也能逛，下单/询价时再登录」原在页底（top 600，底栏 611 起，被盖住要上滑）。
   它是降低下单顾虑的关键信息，提到入口卡上方，做成一条轻提示（不是警告）。 */
.hub-tip {
  display: flex; align-items: center; gap: 7px;
  margin: 0 2px 12px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(255, 198, 30, .12);
  border: 1px solid rgba(224, 164, 0, .28);
  font-size: 12px;
  font-weight: 550;
  color: #6a4a00;
  line-height: 1.4;
}
.hub-tip svg { flex: none; color: #c99400; }

/* ==================== 2026-11-21 会销开单页排布修正 ====================
   实测三个不一致：
   ① 列宽 —— 「数量」91px vs「现场收款」262px。.form-row 是 1fr 1fr，但 1fr = minmax(auto,1fr)，
      长的下拉文本把 min-content 撑大，把左列挤扁 → 改 minmax(0,1fr)。
   ② 配色 —— 表单里的下拉被包成黄玻璃按钮，和白色输入框并列像"贴上去的" → 表单内改回白底同款。
   ③ 高度 —— 下拉 46px vs 输入框 39px → 下拉改用与 .input 相同的 padding。 */
.form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.form-row > .field { min-width: 0; }

.field .sel-btn {
  height: auto;
  min-height: 0;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface, #fff);
  box-shadow: none;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
}
.field .sel-btn .sel-t { font-weight: 400; }
.field .sel-btn .sel-chev { color: var(--ink-3); }
.field .sel-btn:active { filter: none; background: var(--surface-2, #f5f7f9); }

/* ==================== 2026-11-21 悬浮「+」按钮改产品黄 ====================
   用户：在动态里面也加一个图二的按钮，颜色改产品黄。
   原来 .fab 是绿色 --green-600（供求帖用），现在统一改成产品黄液态玻璃，两处一致。 */
.fab {
  background: linear-gradient(165deg, #ffd45a 0%, #ffc61e 100%);
  color: #3a2a00;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -1px 0 rgba(160, 116, 0, .16),
    0 8px 22px rgba(255, 198, 30, .42);
}
.fab:active { filter: brightness(.97); }

/* ==================== 2026-11-21 首页 hero 卡收紧（用户：这里是不是可以缩再一点）====================
   实测 258px 高：padding 18+16、机器图 136、型号 34px、specs margin 16/18、按钮 44。
   等比收紧约 20%：机器图 108、型号 29、间距与内边距各减 3-6px。 */
.hero { padding: 14px 14px 12px; }
.hero-model { font-size: 29px; margin: 9px 0 3px; }
.hero-name { font-size: 12.5px; }
.hero-specs { margin: 10px 0 12px; gap: 18px; }
.hero-spec { font-size: 10px; }
.hero-spec b { font-size: 15px; }
.hero-actions .btn { padding-top: 9px; padding-bottom: 9px; }

/* ==================== 2026-11-21 顶栏「测试版本」徽标 ====================
   用户：品牌名后面加一个测试版本，要醒目。用品牌红底白字（和管理台徽标同一套语言）。 */
.beta-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #d81e06;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.6;
  vertical-align: 2px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(216, 30, 6, .3);
}
/* 极窄屏（≤340）隐藏副标题，保证品牌名 + 徽标 + 热线不被挤断 */
@media (max-width: 340px) {
  .brand-sub { display: none; }
}

/* ==================== 2026-11-21 订单页「看得出新单」====================
   用户：订单里这样显示根本看不出有没有新进订单。
   补：顶部今日新增条（产品黄，和「提示性控件」同一套语言）+ 当天单的红「新」标。 */
.ord-newbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(255, 214, 96, .22), rgba(255, 198, 30, .12));
  border: 1px solid rgba(255, 198, 30, .38);
  font-size: 12.5px;
  color: var(--ink-2);
}
.ord-newbar b { color: #8a6a00; font-size: 14.5px; font-weight: 750; }
.ord-new {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 4px;
  background: #d81e06;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: 2px;
}

/* ==================== 2026-11-21 修「小尺寸输入框/下拉文字被裁」====================
   用户截图：订单类型「配件快递」只露出半行、备注文字上下被切。
   实测根因：.input/.select 基类有 padding:9px 上下，而多处内联写死 height:30px / 32px，
   box-sizing:border-box 下内容区只剩 10-12px，一行字要 15-17px → 上下各被切约 5px。
   处理：凡是内联高度 ≤ 36px 的控件，上下 padding 归零，让浏览器按 line-height 垂直居中。
   只动上下、不动左右（select 的右侧箭头留白保留）。
   注：必须逐个枚举具体数值 —— 用 "height:3" 会误伤 height:39px 的正常输入框。 */
.input[style*="height:26px"], .select[style*="height:26px"],
.input[style*="height:28px"], .select[style*="height:28px"],
.input[style*="height:30px"], .select[style*="height:30px"],
.input[style*="height:32px"], .select[style*="height:32px"],
.input[style*="height:34px"], .select[style*="height:34px"],
.input[style*="height: 26px"], .select[style*="height: 26px"],
.input[style*="height: 28px"], .select[style*="height: 28px"],
.input[style*="height: 30px"], .select[style*="height: 30px"],
.input[style*="height: 32px"], .select[style*="height: 32px"],
.input[style*="height: 34px"], .select[style*="height: 34px"] {
  padding-top: 0;
  padding-bottom: 0;
}
/* 内联高度小于 28 的（如 26px 小标签下拉）再额外收紧行高，避免挤出 */
select[style*="height:26px"], select[style*="height: 26px"] { padding-right: 22px; }

/* ==================== 2026-11-21 修订单卡片状态下拉「又高又空」====================
   用户：这个按钮有BUG。
   实测：它被 .sel-btn 基础样式撑成 136×46（min-height:44px + padding:11px 14px + width:100%），
   而左边「详情 / 改单」按钮只有 30px 高；文字只占 84px，右侧空 36px。
   订单卡操作行里的下拉应与相邻按钮同规格：高 30、宽随文字、圆角 8。 */
.admin-row-actions .sel-wrap { width: auto; display: inline-block; }
.admin-row-actions .sel-btn {
  width: auto;
  min-height: 30px;
  height: 30px;
  padding: 0 8px;
  gap: 4px;
  border-radius: 8px;
  font-size: 12.5px;
}
.admin-row-actions .sel-btn .sel-t { flex: 0 1 auto; }

/* ==================== 2026-11-21 订单卡右侧放大字金额（苹果列表套路）====================
   用户：后面的留白是不是可以放入更多的购买信息 → 选 A：右侧放大字金额 + 数量。
   原来的金额和数量挤在 meta 行里、字号一样，扫不出来；移到右上角做主数字。 */
.admin-row-top { align-items: flex-start; gap: 10px; }
.ord-amt {
  margin-left: auto;
  text-align: right;
  line-height: 1.15;
  flex: 0 0 auto;
}
.ord-amt b {
  display: block;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.02em;
  color: var(--orange-600);
  font-variant-numeric: tabular-nums;
}
.ord-amt b small { font-size: 11px; font-weight: 600; letter-spacing: 0; }
.ord-amt span { font-size: 11px; color: var(--ink-3); }

/* ==================== 2026-11-21 订单详情分区（苹果式：分区标题 + 键值对）====================
   用户：上面的信息是不是太少了也不够精准。
   原来「销售组/销售员」埋在备注文字里；现在按 客户/订单/金额/明细 四段，每段键值对齐。 */
.od-sec {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 14px 0 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}
.od-sec:first-child { margin-top: 2px; }
.od-kv-list {
  background: var(--surface-2, #f7f8fa);
  border-radius: 10px;
  padding: 4px 10px;
}
.od-kv {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  font-size: 12.5px;
}
.od-kv + .od-kv { border-top: 1px solid rgba(0, 0, 0, .05); }
.od-k { flex: 0 0 70px; color: var(--ink-3); }
.od-v { flex: 1; min-width: 0; color: var(--ink); word-break: break-all; }
.od-v.od-warn { color: var(--orange-600, #b45309); font-weight: 600; }
.od-amount-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(255, 214, 96, .18), rgba(255, 198, 30, .08));
  border: 1px solid rgba(255, 198, 30, .3);
}
.od-amt-main { display: flex; align-items: baseline; gap: 8px; }
.od-amt-main span { font-size: 12px; color: var(--ink-3); }
.od-amt-main b { font-size: 20px; font-weight: 750; color: var(--orange-600); letter-spacing: -.02em; }
.od-amt-sub { display: flex; gap: 12px; font-size: 11.5px; color: var(--ink-3); flex-wrap: wrap; justify-content: flex-end; }

/* ==================== 2026-11-21 后台密度优化（用户：格子搞这么大干什么？留白这么多）====================
   实测（分销与佣金页，1250 宽）：KPI 卡 222×96、表单字段高 64（输入框只 39，其余 25 是空白）、
   保存/结算按钮 880~922×38 通栏。
   苹果做法：信息密度优先，不把控件拉满整行；一块区域只留一条操作按钮，右对齐。 */
.a-body .kpi { padding: 8px 10px; }
.a-body .kpi-k { font-size: 10.5px; }
.a-body .kpi-v { font-size: 19px; line-height: 1.25; }
.a-body .field { margin-bottom: 7px; }
.a-body .field-label { margin-bottom: 2px; font-size: 12px; }
/* 区块内的竖排间距也收一档 */
.a-body .panel-b { padding-top: 2px; padding-bottom: 2px; }

/* 后台输入框再压一档：39 → 35（padding 9→7），前台不动 */
.a-body .field .input,
.a-body .field .select,
.a-body .field .textarea { padding: 7px 10px; }

/* 2026-11-21 分佣规则一行紧凑排布：层数 + 三级费率，输入框按内容收窄 */
.rate-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.rate-item { flex: 0 0 auto; }
.rate-item .field-label { margin-bottom: 3px; }
.rate-item .select { width: 96px; }
.rate-inp { display: flex; align-items: center; gap: 4px; }
.rate-inp .input { width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.rate-inp span { font-size: 12.5px; color: var(--ink-3); }

/* 分佣规则里的「3 层」是配置项，不是主操作 → 跟旁边输入框同一套白底外观 */
.rate-item .sel-btn {
  height: 35px;
  min-height: 0;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface, #fff);
  box-shadow: none;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  gap: 4px;
}
.rate-item .sel-btn .sel-t { flex: 0 0 auto; }
.rate-item .sel-btn .sel-chev { color: var(--ink-3); }

/* ==================== 2026-11-21 账号卡片改两列（用户：不能缩一半吗？一行放二条，留白这么多干什么）====================
   原来一个账号占满整行（约 900px），右侧大片空白。改成两列网格，卡片自己收边框。 */
.user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.user-grid .user-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  margin: 0;
  background: var(--surface);
}
.user-grid .user-card .admin-row-top { margin-bottom: 4px; gap: 6px; }
.user-grid .user-card .admin-row-title { font-size: 13.5px; }
.user-grid .user-card .admin-row-meta { font-size: 11.5px; gap: 4px 10px; margin-bottom: 6px; }
.user-grid .user-card .admin-row-actions { gap: 5px; }
.user-grid .user-card .admin-row-actions .btn { height: 27px; font-size: 12px; padding: 0 9px; }
@media (max-width: 900px) {
  .user-grid { grid-template-columns: 1fr; }
}

/* ==================== 2026-11-21 后台列表统一两列（用户：这里也是搞这么长干什么）====================
   问题：订单/内容/会销活动/分销成员等列表，一行一条拉满 1200px，右侧整片空白。
   做法：不用逐页改，用 :has() 统一规则 —— 「直接子元素里有连续两个以上 .admin-row 的容器」自动两列。
   限制：只作用于 .a-body（后台内容区），前台与弹层不受影响；≤900px 回单列。 */
@media (min-width: 900px) {
  .a-body div.rows2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    align-items: start;
  }
  .a-body div.rows2 > .admin-row { margin-bottom: 0; }
}
/* 后台列表行内边距收紧一档（原来 15/17 偏大，是"格子大"的一部分） */
body.is-admin .admin-row { padding: 11px 13px; margin-bottom: 9px; }
body.is-admin .admin-row-actions { margin-top: 8px; gap: 6px; }

/* 后台列表容器：显式包裹层（订单/内容/活动等直接把 .admin-row 挂在 .a-body 上，
   用 :has() 会把筛选条和按钮一起塞进网格，所以改为在模板里包一层 .admin-list） */
.admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
}
.admin-list > .admin-row { margin-bottom: 0; }
@media (max-width: 900px) {
  .admin-list { grid-template-columns: 1fr; }
}

/* ==================== 2026-11-21 下拉面板宽屏改为「贴按钮展开」====================
   用户：这个一定要显示到下面吗？（桌面宽屏却用移动端底部抽屉，面板离按钮很远）
   宽屏（≥768px）用 .sheet--pop 锚定在触发按钮下方，手机仍走底部抽屉。 */
.sheet--pop {
  position: fixed;
  bottom: auto;
  width: auto;
  min-width: 180px;
  max-width: 340px;
  max-height: 62vh;
  border-radius: 14px;
  padding: 4px 0 6px;
  box-shadow: 0 14px 40px rgba(12, 32, 44, .22), 0 2px 8px rgba(12, 32, 44, .08);
  animation: sheetPop .14s cubic-bezier(.2, .8, .3, 1) both;
}
/* 顶部那条小横杠是底部抽屉的抓手，锚定菜单里不需要 */
.sheet--pop .sheet-bar { display: none; }
.sheet--pop .sheet-head { padding: 8px 14px 4px; }
.sheet--pop .sheet-title { font-size: 14px; }
.sheet--pop .sheet-list { padding: 2px 6px 0; }
.sheet--pop .sheet-item { border-radius: 8px; }
@keyframes sheetPop {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* 订单页「待处理」胶囊：有压单时给一层暖色，扫一眼就知道今天要催 */
.a-body .chip--todo:not(.is-on) {
  border-color: rgba(255, 176, 32, .55);
  color: #8a5a00;
  background: rgba(255, 214, 96, .14);
}
.a-body .chip--todo:not(.is-on) b { color: #b45309; }

/* 分佣规则分区标题（2026-11-21 两种规则显性化：岗位定比例 / 队伍定分配 / 上级推荐奖） */
.rate-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin: 12px 0 6px;
}
.rate-label:first-of-type { margin-top: 4px; }
.rate-label b { color: #8a6a00; margin-right: 2px; }

/* ==================== 2026-11-21 订单筛选合并成一行 ====================
   用户：把全部类型和全部状态放一行，全部类型放到最右边。
   结构：类型 | 状态 →→→ 全部（重置两个维度，推到最右） */
.chips--ordfilter {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
/* 类型与状态之间的分隔：一道竖线，比空白更能说明"这是两个维度" */
.chips--ordfilter .chips-sep {
  width: 1px;
  height: 16px;
  background: var(--line);
  margin: 0 3px;
  flex: none;
}
/* 「全部」推到最右边 */
.chips--ordfilter .chip--all { margin-left: auto; }

/* ==================== 2026-11-21 产品页工具栏 ====================
   用户：新增产品和配件类型整理，放到筛选行（标红处）的位置。
   原来是两条 btn--block 通栏按钮，各占一整行；现在收进筛选行右侧。 */
.prod-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.prod-toolbar .seg { margin-bottom: 0; }
.prod-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex: none;
}
.prod-actions .btn { height: 28px; padding: 0 12px; font-size: 12.5px; }

/* ==================== 2026-11-21 同一行卡片高度统一 ====================
   用户：前面的高的和后面的高度要统一（左卡矮、右卡 meta 换行变高）。
   根因：.admin-list 与 #pbox 都写了 align-items:start —— 每张卡按自身高度排，
   同行不拉伸，所以内容多换一行的那张就更高。
   改法：改回默认 stretch 让同行等高；卡片内部改 flex 列，操作按钮用 margin-top:auto 贴底，
   这样矮的卡不会把按钮悬在中间、底部也不会空一块。 */
.admin-list,
#pbox { align-items: stretch; }
.admin-list > .admin-row,
#pbox > .admin-row {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.admin-list > .admin-row > .admin-row-actions,
#pbox > .admin-row > .admin-row-actions { margin-top: auto; }

/* ==================== 2026-11-21 分佣规则改成「一行一块」 ====================
   用户：这个布局还要优化，还是用苹果设计的思维。
   原来：三块各自带小标题 + 说明文字 + 大间距，整卡 408px 只装 9 个数字。
   现在：每块一行 —— 左标签（主名 12.5px + 副名 10.5px）/ 中间控件 / 右侧操作，
        块与块之间只用一道 1px 分隔线，不再靠大间距分块。 */
.rule-line {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}
.panel-title + .rule-line { border-top: 0; }
.rule-name {
  flex: none;
  width: 76px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.25;
}
.rule-name span {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-3);
  margin-top: 1px;
}
.rule-fields {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  min-width: 0;
}
/* 每个字段是「文字 + 输入框 + %」的紧凑一组，不再是上下两行的 field */
.rule-fields label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}
.rule-fields label input.input {
  width: 54px;
  height: 27px;
  padding: 0 6px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
}
.rule-fields label i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink-3);
}
.rule-fields label .select { height: 27px; padding: 0 24px 0 8px; font-size: 12.5px; }
.rule-static { font-size: 12.5px; color: var(--ink-2); }
.rule-static em { font-style: normal; color: var(--ink-3); font-size: 11.5px; }
.rule-foot {
  border-top: 1px solid var(--line);
  padding-top: 7px;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}
.panel-title .panel-sub {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 8px;
}

/* ==================== 2026-11-21 列表卡加高（用户：高度可以在高一点）====================
   量出来 122px 的构成：padding 22 + 标题 22 + meta 44(两行) + 按钮 30 = 118，
   留给三段之间的间隙只有 4px —— 不是内容太小，是**没有呼吸**。
   按苹果的分组列表节奏，卡内三段各留 5/10px，上下内边距 14。 */
body.is-admin .admin-row { padding: 14px 15px; }
body.is-admin .admin-row-top { margin-bottom: 5px; }
body.is-admin .admin-row-meta { margin-top: 0; margin-bottom: 10px; }
body.is-admin .admin-row-actions { margin-top: 0; gap: 7px; }
/* 没有操作按钮的卡（只读视图）不要多留那 10px */
body.is-admin .admin-row-meta:last-child { margin-bottom: 0; }

/* ==================== 2026-11-21 建队时自选分配比例 ====================
   用户：加一个新建团队，把规则放里面自选。 */
.split-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.split-row label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.split-row label input.input {
  width: 58px;
  height: 30px;
  padding: 0 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.split-row label i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.split-row .split-rest { color: var(--ink-3); }
.split-row .split-rest b { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ==================== 2026-11-21 分销成员按队伍分块 ====================
   用户：没有队伍和团队的人不显示，这里只显示团队和队伍。
   每队一块（队名/人数/队长/分配比例），未分队收进折叠条。 */
.team-block { margin-bottom: 14px; }
.team-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 2px 7px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 9px;
}
.team-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.team-sub { font-size: 11.5px; color: var(--ink-3); flex: 1; min-width: 0; }
.team-head .btn { margin-left: auto; flex: none; }
.team-empty {
  font-size: 12px;
  color: var(--ink-3);
  padding: 10px 2px;
}
.loose-block { margin-top: 4px; }
.loose-block > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 8px 2px;
  border-top: 1px solid var(--line);
}
.loose-block > summary::-webkit-details-marker { display: none; }
.loose-block > summary::before {
  content: '▸';
  color: var(--ink-3);
  font-size: 10px;
  transition: transform .15s ease;
}
.loose-block[open] > summary::before { transform: rotate(90deg); }
.loose-block > summary span { color: var(--ink-3); font-size: 11px; }

/* ==================== 2026-11-21 分佣规则区字体与排布重排 ====================
   用户：字体和排布重新优化一下。
   要点：标签去掉冗余副名占位、数字右对齐统一宽度、% 紧贴数字、块与块对齐成一条竖线。 */
.rule-line { gap: 12px; min-height: 40px; padding: 6px 0; }
.rule-name {
  width: 68px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.1px;
}
/* 副名改成一行的浅灰小字，不再换行占两行高度 */
.rule-name span {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-top: 2px;
  line-height: 1.3;
}
.rule-fields { gap: 4px 14px; }
.rule-fields label {
  font-size: 12px;
  color: var(--ink-3);
  gap: 3px;
}
/* 数字统一右对齐 + 等宽数字，让 6 个输入框视觉成列 */
.rule-fields label input.input {
  width: 52px;
  height: 26px;
  padding: 0 5px;
  text-align: right;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
}
.rule-fields label i { font-size: 11px; margin-left: 1px; }
/* 「队员平分」是算出来的，不用输入框的样子，弱化成文字 */
.rule-fields .rule-rest {
  font-size: 12px;
  color: var(--ink-3);
  padding-left: 2px;
}
.rule-fields .rule-rest b {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
}
/* 保存按钮与三行右边缘对齐 */
.rule-line > .btn { height: 28px; padding: 0 16px; flex: none; }
.rule-foot { padding-top: 8px; font-size: 10.5px; line-height: 1.5; }

/* 副名宽度给足，避免「可选，调 0 停用」这种短句折行 */
.rule-name { width: 74px; }

/* ==================== 2026-11-21 订单卡客户信息行 ====================
   用户：购买人的姓名电话地址都要显示在上面。
   位置：标题下方单独一行（订单先看卖给谁，再看产品编号）。 */
.ord-cust {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 5px 0 2px;
  font-size: 12.5px;
  line-height: 1.4;
}
.ord-cust .oc-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}
.ord-cust .oc-phone {
  color: var(--ink-2);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
  border-bottom: 1px dashed rgba(0,0,0,.16);
}
.ord-cust .oc-phone:hover { color: var(--orange-600); border-bottom-color: var(--orange-600); }
.ord-cust .oc-region { color: var(--ink-3); }
.ord-cust .oc-miss { color: var(--ink-3); opacity: .75; }
.ord-cust .oc-region::before,
.ord-cust .oc-phone + .oc-region::before { content: '·'; margin-right: 6px; color: rgba(0,0,0,.18); }

/* ==================== 2026-11-21 三条规则各自可开关 ====================
   用户：我说的规则是图二，可以多种规则可以自选。
   每行左侧一个开关；停用该行置灰、控件不可编辑。 */
.rule-sw {
  flex: none;
  width: 18px;
  height: 18px;
  position: relative;
  cursor: pointer;
  display: inline-flex;
}
.rule-sw input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.rule-sw i {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(0, 0, 0, .22);
  background: #fff;
  transition: background .15s ease, border-color .15s ease;
  position: relative;
}
.rule-sw i::after {
  content: '';
  position: absolute;
  left: 5px; top: 1.5px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg) scale(0);
  transition: transform .12s ease;
}
.rule-sw input:checked + i {
  background: linear-gradient(165deg, #ffd45a 0%, #ffc61e 100%);
  border-color: #e8b000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 3px rgba(255,198,30,.35);
}
.rule-sw input:checked + i::after { transform: rotate(42deg) scale(1); }
.rule-sw input:focus-visible + i { outline: 2px solid rgba(255,198,30,.5); outline-offset: 2px; }
/* 停用态：整行灰掉，控件不可点 */
.rule-line.is-off { opacity: .45; }
.rule-line.is-off .rule-fields { pointer-events: none; }
.rule-line.is-off .rule-fields input,
.rule-line.is-off .rule-fields select { background: rgba(0,0,0,.03); color: var(--ink-3); }

/* ==================== 2026-11-21 建队时自选适用规则 ==================== */
.rule-pick { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rule-pick label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.rule-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.rule-pick i {
  width: 17px; height: 17px;
  border-radius: 5px;
  border: 1.5px solid rgba(0,0,0,.22);
  background: #fff;
  position: relative;
  transition: background .15s ease, border-color .15s ease;
}
.rule-pick i::after {
  content: '';
  position: absolute; left: 4.5px; top: 1px;
  width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(42deg) scale(0);
  transition: transform .12s ease;
}
.rule-pick input:checked + i {
  background: linear-gradient(165deg, #ffd45a 0%, #ffc61e 100%);
  border-color: #e8b000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 3px rgba(255,198,30,.35);
}
.rule-pick input:checked + i::after { transform: rotate(42deg) scale(1); }

/* ==================== 2026-11-21 订单卡重排：客户名做主视觉 ====================
   用户：这个排布要更合理一点，客户放大醒目一点。
   层级改为：订单号（小灰标识）→ 客户名（16px 主视觉）→ 电话·地址（次要）→ 标签行 → 操作。 */
.ord-no {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .3px;
  font-variant-numeric: tabular-nums;
}
/* 客户名：卡片里最大的一块字 */
.ord-cust {
  margin: 6px 0 3px;
  gap: 6px;
  line-height: 1.25;
}
.ord-cust .oc-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 电话与地址降为次要信息，同一行、更小、更灰 */
.ord-cust .oc-phone {
  font-size: 11.5px;
  color: var(--ink-3);
  border-bottom: 1px dashed rgba(0,0,0,.14);
}
.ord-cust .oc-region { font-size: 11.5px; color: var(--ink-3); }
.ord-cust .oc-miss { font-size: 11.5px; }
/* 客户名独占一行时，电话/地址换到下面一行 */
.ord-cust { flex-wrap: wrap; }
.ord-cust .oc-name { flex: 0 0 100%; }
.ord-cust .oc-name + .oc-phone,
.ord-cust .oc-name + .oc-miss { margin-top: 1px; }
/* 客户名已占满一行后，地址前面的 · 不要重复出现 */
.ord-cust .oc-name + .oc-phone::before { content: none; }

/* ==================== 2026-11-21 建队表单：适用规则在上、分配规则在下 ====================
   用户：适用规则在上级，分配规则在下级，适用规则选了才有分配规则。 */
.rule-pick--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.rule-pick--stack label {
  display: grid;
  grid-template-columns: 17px auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.rule-pick--stack label:first-child { border-top: 0; }
.rule-pick--stack label em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
  justify-self: end;
  text-align: right;
}
.field-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 6px;
}
#splitField.is-off { opacity: .5; }

/* ==================== 2026-11-21 订单卡：金额做主视觉 ====================
   用户：「金额放大醒目一点」。
   订单卡里最该被一眼看到的是钱，不是订单号也不是客户名。 */
.ord-amt b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.ord-amt b small {
  font-size: 12px;
  font-weight: 600;
  margin-left: 1px;
  letter-spacing: 0;
}
.ord-amt span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 1px;
}
/* 客户名回退到次要层级（上一轮误放大到 16px） */
.ord-cust .oc-name {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0;
}
/* 单号与状态同一行的留白收紧一点，给右侧金额让位 */
.admin-row-top { gap: 6px; }

/* 金额与右侧状态徽标之间留出呼吸，别贴在一起 */
.ord-amt { padding-right: 10px; }

/* ==================== 2026-11-21 分佣规则三层：层级/部门/队伍 ====================
   岗位费率是费率表不是分配维度，单独成块（无开关、始终生效）。 */
.rate-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.rate-block-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.rate-block-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.rate-block-sub { font-size: 11px; color: var(--ink-3); }
.rule-static.rule-todo {
  font-size: 11.5px;
  color: var(--ink-3);
  font-style: normal;
  opacity: .85;
}

/* ==================== 2026-11-21 订单卡改左右两列 ====================
   用户：金额不会向下放到留白的地方吗？中间空这么多干什么？
         图二，订单编号的状态不一样颜色也不一样，订单号也要放大。
   左列全部内容，右列（金额+台数+状态）在整卡高度里垂直居中，右下不再留白。 */
.ord-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  gap: 14px;
}
.ord-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ord-main .admin-row-actions { margin-top: auto; }
.ord-side {
  flex: none;
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.ord-side .ord-amt { padding-right: 0; text-align: right; }
.ord-side .status-pill { flex: none; }
/* 单号放大 + 提亮：它是订单的身份证，不能被压成灰色小字 */
.ord-no {
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
}
/* 窄屏回单列，金额回到上方右侧 */
@media (max-width: 720px) {
  .ord-row { flex-direction: column !important; }
  .ord-side {
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
    margin-top: 8px;
  }
}

/* ==================== 2026-11-22 后台长文本防御 ====================
   browse-check 在 390 宽下测到 admin-articles 横向溢出 12px（正式库数据下没有），
   原因是某些长词/长串不换行撑破了卡片。这里统一兜一层，不让任何一块内容顶出屏幕。 */
body.is-admin .admin-row,
body.is-admin .panel,
body.is-admin .sec-head { min-width: 0; }
body.is-admin .admin-row-title,
body.is-admin .admin-row-meta,
body.is-admin .admin-row-meta > *,
body.is-admin .od-v,
body.is-admin .cell-label,
body.is-admin .cell-val { overflow-wrap: anywhere; word-break: break-word; }
body.is-admin .admin-row-top { min-width: 0; flex-wrap: wrap; }
/* 表格/预格式化块在窄屏可以横向滚，但不要撑破整页 */
body.is-admin pre,
body.is-admin table { max-width: 100%; }

/* ==================== 2026-11-22 登录密码「显示」按钮 ====================
   用户反复登不进，但密码框只有圆点，看不出自己输了几位。 */
.pwd-wrap { position: relative; display: block; }
.pwd-wrap .input { padding-right: 52px; }
.pwd-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pwd-eye:hover { background: #fff; border-color: rgba(0, 0, 0, .2); color: var(--ink); }
.pwd-eye.is-on {
  background: linear-gradient(165deg, #ffd45a 0%, #ffc61e 100%);
  border-color: #e8b000;
  color: #5a4400;
}

/* ==================== 2026-11-22 会销活动「上活动商品」弹窗 ====================
   SKU 选择器改带图：左侧 88px 预览，右侧选择 + 上传。 */
.apsku { display: flex; gap: 14px; align-items: flex-start; }
.apsku-img {
  flex: 0 0 88px; width: 88px; height: 88px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.apsku-img img { width: 100%; height: 100%; object-fit: contain; }
.apsku-empty { font-size: 11.5px; color: var(--ink-3); }
.apsku-main { flex: 1; min-width: 0; }
.apup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apup-tip { font-size: 11.5px; color: var(--ink-3); }

/* ==================== 2026-11-22 分佣规则页 · 苹果风格重排 ====================
   目标：大留白、圆角、毛玻璃分组卡片、数字右对齐等宽、主操作右侧不拉通栏。 */
.panel.has-rate {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, .06);
  padding: 22px 24px;
}
/* 规则行：更松的行距、更轻的分隔线 */
.rule-line { padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, .055); }
.rule-line:last-of-type { border-bottom: 0; }
/* 费率块：像 iOS 设置页的分组 */
.rate-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, .055);
}
.rate-block-head { margin-bottom: 10px; }
.rate-block-title { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.rate-block-sub { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }
/* 字段：数字右对齐等宽、% 紧贴数字 */
.rule-fields { gap: 10px 18px; }
.rule-fields > label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
}
.rule-fields .input {
  width: 78px; height: 34px; text-align: right;
  font-variant-numeric: tabular-nums; font-weight: 600;
  border-radius: 9px;
}
.rule-fields > label > i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.rule-rest { font-size: 12px; color: var(--ink-3); }
.rule-rest b { color: var(--ink); font-variant-numeric: tabular-nums; }
/* iOS 那种绿白滑块 */
.rule-sw { flex: none; }
.rule-sw i {
  display: block; width: 44px; height: 26px; border-radius: 13px;
  background: #e9e9eb; position: relative; transition: background .22s ease;
}
.rule-sw i::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18), 0 1px 1px rgba(0, 0, 0, .08);
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}
.rule-sw input:checked + i { background: #34c759; }
.rule-sw input:checked + i::after { transform: translateX(18px); }
.rule-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
/* 保存按钮：右侧、不拉通栏、苹果蓝 */
.rule-line .btn--primary { border-radius: 10px; height: 34px; padding: 0 18px; }
/* 结转列表 */
#carrybox { border-radius: 14px; overflow: hidden; }

/* ==================== 2026-11-22 建队/规则弹窗 · 苹果风格 ====================
   用户要求：iOS 那种绿白滑块、主操作右侧不拉满整行。 */
/* 「适用规则」整行：开关在左、名称居中、说明右对齐成灰色小字 */
.rule-pick--stack { display: block; }
.rule-pick--stack label {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 2px; border-bottom: 1px solid rgba(0, 0, 0, .055);
  cursor: pointer; font-size: 13px; color: var(--ink);
}
.rule-pick--stack label:last-child { border-bottom: 0; }
.rule-pick--stack label > span { font-weight: 500; white-space: nowrap; }
.rule-pick--stack label > em {
  flex: 1; min-width: 0; text-align: right; font-style: normal;
  font-size: 11.5px; color: var(--ink-3); line-height: 1.4;
}
/* iOS 绿白滑块（46×28） */
.rule-pick--stack i,
.rule-pick i {
  flex: none; width: 46px; height: 28px; border-radius: 14px;
  border: 0; background: #e9e9eb; position: relative;
  transition: background .22s ease;
}
.rule-pick--stack i::after,
.rule-pick i::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18), 0 1px 1px rgba(0, 0, 0, .08);
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}
.rule-pick--stack input:checked + i,
.rule-pick input:checked + i { background: #34c759; }
.rule-pick--stack input:checked + i::after,
.rule-pick input:checked + i::after { transform: translateX(18px); }
/* 分配规则三个数：等宽右对齐 */
.split-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.split-row > label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
}
.split-row .input {
  width: 72px; height: 34px; text-align: right;
  font-variant-numeric: tabular-nums; font-weight: 600; border-radius: 9px;
}
.split-row > label > i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.split-rest { font-size: 12px; color: var(--ink-3); }
.split-rest b { color: var(--ink); font-variant-numeric: tabular-nums; }
/* 弹窗底部操作区：右侧、不拉通栏 */
.modal-foot { display: flex; justify-content: flex-end; margin-top: 18px; }
.modal-foot .btn--primary { border-radius: 10px; }

/* ==================== 2026-11-22 分佣规则页 v2 · 反「挤成一团」====================
   用户反馈：界面乱、看不懂。根因是每行横排 5~7 个元素。
   改法：规则行用 grid 固定三列（开关 / 名称 / 参数），参数一律竖排一行一个。 */
.panel .rule-line {
  display: grid;
  grid-template-columns: 48px 86px minmax(0, 1fr);
  align-items: start;
  gap: 10px 14px;
  padding: 15px 0;
  border-top: 1px solid rgba(0, 0, 0, .055);
}
.panel .panel-title + .rule-line { border-top: 0; }
/* 开关固定列，绝不再压到文字上 */
.panel .rule-line .rule-sw {
  justify-self: start;
  align-self: center;
  flex: none;
  width: 44px;
}
.panel .rule-line .rule-sw i { width: 44px; height: 26px; border-radius: 13px; }
.panel .rule-line .rule-sw i::after { width: 22px; height: 22px; }
.panel .rule-line .rule-sw input:checked + i::after { transform: translateX(18px); }
.panel .rule-line .rule-name { width: auto; min-width: 0; padding-top: 1px; }
/* 参数区：竖排，一行一个，标签左、数值右 */
.panel .rule-line .rule-fields,
.panel .rate-block .rule-fields {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  max-width: 460px;
}
.panel .rule-fields > label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 20px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(0, 0, 0, .035);
}
.panel .rule-fields > label:last-of-type { border-bottom: 0; }
.panel .rule-fields .input,
.panel .rule-fields .select {
  width: 76px;
  height: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  border-radius: 8px;
  padding: 0 9px;
}
.panel .rule-fields > label > i {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-3);
  text-align: left;
}
/* 合计行：单独一条，视觉上收口 */
.panel .rule-fields > .rule-rest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, .075);
  font-size: 12.5px;
  color: var(--ink-3);
}
.panel .rule-fields > .rule-rest b {
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
/* 静态说明（部门分配那行） */
.panel .rule-fields > .rule-static {
  min-height: 34px;
  display: flex;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-3);
}
/* 保存按钮：落在第三列右端 */
.panel .rule-line > .btn--primary {
  grid-column: 3;
  justify-self: end;
  margin-top: 4px;
}
/* 费率分组：每组一块浅底，组间留白 */
.panel .rate-block {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid rgba(0, 0, 0, .05);
  background: rgba(250, 250, 252, .78);
}
.panel .rate-block-head { margin-bottom: 4px; }
.panel .rate-block-title { font-size: 12.5px; font-weight: 650; letter-spacing: -.005em; }
.panel .rate-block-sub {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.5;
  max-width: 520px;
}
/* 规则页脚 */
.panel .rule-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, .055);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ==================== 2026-11-22 分佣规则页 v3 · 压掉横向留白 ====================
   用户反馈：别留白这么多。/ 根因是每个费率组独占一整行，右侧 60% 空着。
   改法：四个费率组两列并排，行高压到 30px，整体高度砍一半。 */
/* 费率组：两列并排（窄屏自动回落单列） */
.panel .rate-block {
  margin-top: 10px;
  padding: 10px 14px 8px;
  border-radius: 12px;
}
.panel .rate-block { display: block; }
@media (min-width: 900px) {
  /* 用负 margin 造一条两列河，避免改 HTML 结构 */
  .panel .rate-block {
    width: calc(50% - 6px);
    margin-right: 12px;
    margin-bottom: 10px;
    display: inline-block;
    vertical-align: top;
  }
  .panel .rate-block:nth-of-type(even) { margin-right: 0; }
}
/* 组内：标签左、数值紧贴右端，不再固定 460 上限 */
.panel .rate-block .rule-fields { max-width: none; width: 100%; }
.panel .rate-block .rule-fields > label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 18px;
  min-height: 30px;
  gap: 6px;
  font-size: 12.5px;
  border-bottom: 0;
}
.panel .rate-block .rule-fields .input {
  width: 68px; height: 28px; border-radius: 7px; padding: 0 8px;
  font-size: 13px;
}
.panel .rate-block .rule-fields > .rule-rest {
  min-height: 26px; margin-top: 2px; padding-top: 4px; font-size: 11.5px;
}
.panel .rate-block .rule-fields > .rule-rest b { font-size: 13px; }
.panel .rate-block .rule-fields > .rule-static { min-height: 28px; font-size: 12px; }
/* 组头压紧 */
.panel .rate-block-head { margin-bottom: 2px; }
.panel .rate-block-title { font-size: 12px; }
.panel .rate-block-sub { font-size: 11px; margin-top: 2px; line-height: 1.4; }
/* 规则行也压紧：15px → 8px，行高 38 → 32 */
.panel .rule-line { padding: 8px 0; gap: 6px 12px; }
.panel .rule-fields > label { min-height: 32px; }
.panel .rule-fields .input, .panel .rule-fields .select { height: 30px; }
.panel .rule-fields > .rule-rest { min-height: 30px; }
/* 部门分配那行没参数，压到一行高 */
.panel .rule-line .rule-fields > .rule-static { min-height: 32px; }
/* 页脚收紧 */
.panel .rule-foot { margin-top: 10px; padding-top: 8px; }

/* ==================== 2026-11-22 分佣规则页 v3 修正 ====================
   上一版用 inline-block + nth-of-type 判断奇偶，会错位。
   改成 flex 容器：规则行占满整行，费率组自动两列。 */
@media (min-width: 900px) {
  .panel.has-rate {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }
  .panel.has-rate > * { flex: 1 1 100%; min-width: 0; }
  .panel.has-rate > .rate-block {
    flex: 1 1 calc(50% - 5px);
    width: auto;
    margin: 0;
    display: block;
  }
  /* 关掉上一版留下的 margin/宽度 */
  .panel .rate-block { width: auto; margin-right: 0; margin-bottom: 0; }
  /* panel-title 与 rule-foot 占满整行 */
  .panel.has-rate > .panel-title,
  .panel.has-rate > .rule-foot { flex: 1 1 100%; }
}

/* ==================== 2026-11-22 分佣规则页 v4 · 卡片分组 ====================
   用户要求：独立卡片、间距拉开、长说明收进问号、数值右对齐、关键数字强调。 */
.cfg-wrap { display: flex; flex-direction: column; gap: 14px; }
.cfg-lead {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 650; padding-bottom: 2px;
}
.cfg-lead > span { font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.cfg-lead > .btn { margin-left: auto; height: 32px; padding: 0 16px; border-radius: 9px; }
/* 卡片 */
.cfg-card {
  border: 1px solid rgba(0, 0, 0, .065);
  border-radius: 14px;
  background: #fff;
  padding: 14px 18px 10px;
  transition: opacity .2s ease, border-color .2s ease;
}
.cfg-card.is-off { opacity: .55; }
.cfg-card--wide { grid-column: 1 / -1; }
/* 卡片头：开关 + 标题 + 问号 + 右侧合计 */
.cfg-hd {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(0, 0, 0, .055);
}
.cfg-hd > h3 { margin: 0; font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; }
.cfg-sum {
  margin-left: auto; font-size: 11.5px; color: var(--ink-3); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cfg-sum > b { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 1px; }
.cfg-sum--strong {
  font-size: 12px; color: #946200;
  background: rgba(255, 198, 30, .16);
  border: 1px solid rgba(224, 164, 0, .32);
  border-radius: 8px; padding: 3px 9px;
}
.cfg-sum--strong > b { font-size: 15px; color: #7a5000; }
/* 问号按钮 */
.cfg-q {
  flex: none; width: 17px; height: 17px; line-height: 1;
  border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18);
  background: #fff; color: var(--ink-3);
  font-size: 11px; font-weight: 700; font-family: inherit;
  cursor: help; padding: 0; position: relative;
}
.cfg-q:hover { background: #f2f2f7; color: var(--ink-2); }
/* 提示气泡：hover / focus 显示，点击也能固定（JS 加 .is-open） */
.cfg-q::after {
  content: attr(data-tip);
  position: absolute; left: 50%; top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
  width: 268px; padding: 9px 11px;
  background: rgba(30, 30, 34, .95); color: #fff;
  font-size: 11.5px; font-weight: 400; line-height: 1.55;
  border-radius: 9px; text-align: left; white-space: normal;
  opacity: 0; pointer-events: none; z-index: 30;
  transition: opacity .16s ease, transform .16s ease;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
}
.cfg-q:hover::after, .cfg-q:focus-visible::after, .cfg-q.is-open::after {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
/* 卡片体：一行一个，标签左、数值右 */
.cfg-body { padding-top: 4px; }
.cfg-body--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
@media (max-width: 760px) { .cfg-body--2col { grid-template-columns: 1fr; } }
.cfg-grp-h {
  font-size: 11px; font-weight: 600; color: var(--ink-3);
  letter-spacing: .02em; padding: 8px 0 2px;
}
.cfg-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 34px;
  border-bottom: 1px solid rgba(0, 0, 0, .032);
}
.cfg-row:last-child { border-bottom: 0; }
.cfg-lb { font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.cfg-lb.cfg-muted { color: var(--ink-3); font-size: 12px; }
/* 数值：右对齐等宽 */
.cfg-in { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.cfg-in .input {
  width: 84px; height: 30px; text-align: right;
  font-variant-numeric: tabular-nums; font-weight: 600;
  font-size: 13px; border-radius: 8px; padding: 0 9px;
}
.cfg-in > i { font-style: normal; font-size: 11.5px; color: var(--ink-3); width: 16px; }
.cfg-sel { width: 88px; height: 30px; border-radius: 8px; font-size: 12.5px; }
/* iOS 滑块（本页复用） */
.ios-sw { flex: none; display: inline-flex; cursor: pointer; }
.ios-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.ios-sw > i {
  display: block; width: 44px; height: 26px; border-radius: 13px;
  background: #e9e9eb; position: relative; transition: background .22s ease;
}
.ios-sw > i::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18), 0 1px 1px rgba(0, 0, 0, .08);
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}
.ios-sw input:checked + i { background: #34c759; }
.ios-sw input:checked + i::after { transform: translateX(18px); }
.cfg-foot { font-size: 11px; color: var(--ink-3); padding: 2px 2px 0; line-height: 1.55; }

/* ==================== 2026-11-22 分佣规则页 v5 · 按用户规格 ====================
   白卡片 + 12px 圆角 + 轻阴影；标题/开关一行；合计移到底部用主题黄突出；
   佣金上限卡片浅黄底；输入框 38px 高、百分比 80px 宽。 */
.cfg-wrap { display: flex; flex-direction: column; gap: 16px; }

/* ① 页面头部：标题 + 灰色副标题 + 右上角主色保存按钮 */
.cfg-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 2px 2px 4px;
}
.cfg-head-txt { min-width: 0; }
.cfg-head-txt > h2 {
  margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3;
}
.cfg-head-txt > p {
  margin: 3px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.4;
}
.cfg-save {
  margin-left: auto; flex: none;
  height: 38px; padding: 0 24px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
}

/* ② 卡片：白底、12px 圆角、轻阴影 */
.cfg-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .035);
  padding: 0;
  overflow: hidden;
  transition: opacity .2s ease, box-shadow .2s ease;
}
.cfg-card.is-off { opacity: .58; }
.cfg-card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .055); }

/* 卡片头：标题(左) + 问号 + 开关(右) */
.cfg-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px 11px;
  border-bottom: 1px solid rgba(0, 0, 0, .055);
}
.cfg-hd > h3 {
  margin: 0; font-size: 13.5px; font-weight: 650; letter-spacing: -.01em;
  display: flex; align-items: baseline; gap: 7px; min-width: 0;
}
.cfg-hd > h3 > span {
  font-size: 11px; font-weight: 400; color: var(--ink-3); letter-spacing: 0;
}
.cfg-hd > .ios-sw { margin-left: auto; }
/* 没有开关的卡片，问号仍紧跟标题 */
.cfg-hd > .cfg-q { margin-left: 2px; }

/* 卡片体：标签左 / 数值右，一行一个 */
.cfg-body { padding: 4px 18px 8px; }
.cfg-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 46px;
  border-bottom: 1px solid rgba(0, 0, 0, .032);
}
.cfg-row:last-child { border-bottom: 0; }
.cfg-lb { font-size: 13px; color: var(--ink-2); min-width: 0; }
/* 输入框：统一 38px 高，百分比固定 80px 宽，右对齐等宽 */
.cfg-in { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.cfg-in .input {
  width: 80px; height: 38px; text-align: right;
  font-variant-numeric: tabular-nums; font-weight: 600;
  font-size: 13.5px; border-radius: 9px; padding: 0 10px;
}
.cfg-in > i { font-style: normal; font-size: 12px; color: var(--ink-3); width: 15px; text-align: left; }
.cfg-in--ro > b {
  display: inline-block; min-width: 80px; text-align: right;
  font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.cfg-sel { width: 92px; height: 38px; border-radius: 9px; font-size: 13px; }

/* ③ 底部合计：大字、加粗、主题黄 */
.cfg-total {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 2px;
  margin: 0; padding: 11px 18px 13px;
  border-top: 1px solid rgba(0, 0, 0, .055);
  background: rgba(255, 250, 235, .7);
  font-size: 12.5px; color: var(--ink-2);
}
.cfg-total > b {
  font-size: 20px; font-weight: 800; letter-spacing: -.02em;
  color: #b07800; font-variant-numeric: tabular-nums; margin-left: 6px;
  line-height: 1;
}
.cfg-total > i { font-style: normal; font-size: 13px; font-weight: 700; color: #b07800; }

/* ④ 佣金上限卡片：浅黄底，强调它是风控闸门 */
.cfg-card--caps {
  background: linear-gradient(180deg, rgba(255, 248, 226, .92) 0%, rgba(255, 252, 242, .92) 100%);
  border-color: rgba(224, 164, 0, .3);
}
.cfg-card--caps .cfg-hd { border-bottom-color: rgba(224, 164, 0, .22); }
.cfg-card--caps .cfg-row { border-bottom-color: rgba(0, 0, 0, .028); }
.cfg-sub {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 0 2px;
  font-size: 12px; font-weight: 650; color: #8a5c00;
}
.cfg-sub > i { font-style: normal; font-size: 11px; font-weight: 400; color: rgba(138, 92, 0, .7); }

/* ⑤ 卡片内小字说明 */
.cfg-note {
  padding: 9px 18px 11px;
  border-top: 1px solid rgba(0, 0, 0, .045);
  font-size: 11.5px; color: var(--ink-3); line-height: 1.5;
}
.cfg-card--caps .cfg-note {
  border-top-color: rgba(224, 164, 0, .2);
  color: #8a5c00;
}

/* ⑥ 底部提示条 */
.cfg-foot {
  padding: 2px 2px 0;
  font-size: 11px; color: var(--ink-3); line-height: 1.6;
}

/* ==================== 2026-11-22 分佣规则页 v6 · 中间留白减半 ====================
   用户：中间的留白不要留那么多，减半对齐。
   根因：.cfg-row 用 justify-content:space-between，标签贴左、输入框贴右，
        中间全部是空带。改成三列 grid：标签占固定列、输入框紧跟、空白挪到最右。 */
.cfg-row {
  display: grid;
  grid-template-columns: 176px 86px minmax(0, 1fr);
  align-items: center;
  gap: 0 10px;
  justify-content: start;
  min-height: 44px;
}
.cfg-lb { grid-column: 1; }
.cfg-in { grid-column: 2; justify-content: flex-start; }
/* 只读值（队员平分）同列对齐 */
.cfg-in--ro > b { min-width: 80px; }
/* 下拉也走第二列 */
.cfg-sel { grid-column: 2; }
/* 合计行：数值仍然靠右，但整行收紧 */
.cfg-total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  justify-items: end;
  gap: 0 6px;
}
/* 窄屏：标签列缩到 120，避免挤压 */
@media (max-width: 720px) {
  .cfg-row { grid-template-columns: 118px 86px minmax(0, 1fr); }
}

/* ==================== 2026-11-22 分佣规则页 v7 · 卡片两列并排 ====================
   用户：整个长度减半组合在一起。
   根因：卡片满宽 1200px，内容只占左侧 350px，右侧整片空。
   改法：.cfg-wrap 变两列网格（整体限宽 1000），头部/底部/上限卡跨两列。 */
.cfg-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
  max-width: 1000px;
}
/* 头部、底部提示条、佣金上限卡：占满整行 */
.cfg-head,
.cfg-foot,
.cfg-card--caps { grid-column: 1 / -1; }
/* 卡片内部：标签列收窄，值紧跟 */
.cfg-row { grid-template-columns: 132px 84px minmax(0, 1fr); }
/* 合计行：flex 一行到底，避免 % 掉行 */
.cfg-total {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 4px;
  flex-wrap: nowrap;
}
/* 窄屏回落单列 */
@media (max-width: 900px) {
  .cfg-wrap { grid-template-columns: 1fr; max-width: none; }
}

/* ==================== 2026-11-22 分佣规则页 v8 · 卡片等高 + 配对调整 ====================
   用户：把较矮的卡片内容填充撑平，或者调整配对顺序。两件都做：
   ① 卡片改 flex 列，.cfg-body flex:1 撑开，合计/说明贴底 → 同行两卡等高
   ② 用 order 调配对：层级(4行) ↔ 部门链(3行+合计+说明)，队伍(3行+合计) ↔ 渠道链(3行+合计) */
.cfg-wrap { align-items: stretch; }
.cfg-card { display: flex; flex-direction: column; }
.cfg-card > .cfg-body { flex: 1 1 auto; }
.cfg-card > .cfg-total,
.cfg-card > .cfg-note { flex: none; }
/* 配对：层级1 | 部门2 | 队伍3 | 渠道4 */
.cfg-card[data-rule-row="level"] { order: 1; }
.cfg-card[data-rule-row="dept"] { order: 2; }
.cfg-card[data-rule-row="team"] { order: 3; }
.cfg-card:not([data-rule-row]):not(.cfg-card--caps) { order: 4; }

/* ==================== 2026-11-22 分佣规则页 v9 · 3×2 网格填满 ====================
   用户：把佣金上限放到图一的留白处。
   改法：上限拆成「单笔」「月度」两张卡，不再跨两列，正好填满第 3 行；
        6 个格子全部有内容，页面无空洞。 */
.cfg-wrap { max-width: 1040px; }
/* 取消上限卡的跨列 */
.cfg-card--caps { grid-column: auto; }
/* 6 张卡：层级1 部门2 队伍3 渠道4 单笔5 月度6 */
.cfg-card[data-rule-row="level"] { order: 1; }
.cfg-card[data-rule-row="dept"] { order: 2; }
.cfg-card[data-rule-row="team"] { order: 3; }
.cfg-card:not([data-rule-row]):not(.cfg-card--caps) { order: 4; }
.cfg-card--caps { order: 5; }
/* 等高时内容贴顶、合计/说明贴底，内部不留大空 */
.cfg-card > .cfg-body { flex: 1 1 auto; }
.cfg-card--caps > .cfg-note { margin-top: auto; }

/* ==================== 2026-11-22 分佣规则页 v10 · 2 行 × 3 列 ====================
   用户：你说的不是这个意思，是 2×3。
   改法：三列两行（横排 3 个、竖排 2 个），6 张卡正好铺满。 */
.cfg-wrap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1360px;
  gap: 14px;
}
/* 头部与底部仍占满整行 */
.cfg-head,
.cfg-foot { grid-column: 1 / -1; }
.cfg-card--caps { grid-column: auto; }
/* 第 1 行：层级(1) 队伍(2) 渠道(3)；第 2 行：部门(4) 单笔(5) 月度(6) */
.cfg-card[data-rule-row="level"] { order: 1; }
.cfg-card[data-rule-row="team"] { order: 2; }
.cfg-card:not([data-rule-row]):not(.cfg-card--caps) { order: 3; }
.cfg-card[data-rule-row="dept"] { order: 4; }
.cfg-card--caps:nth-of-type(1) { order: 5; }
.cfg-card--caps:nth-of-type(2) { order: 6; }
/* 三列时标签列收窄一点，避免挤压 */
.cfg-row { grid-template-columns: 104px 80px minmax(0, 1fr); }
.cfg-in .input { width: 76px; }
.cfg-lb { font-size: 12.5px; }
/* 响应式：1100 以下回两列，780 以下单列 */
@media (max-width: 1100px) {
  .cfg-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1040px; }
  .cfg-row { grid-template-columns: 132px 84px minmax(0, 1fr); }
  .cfg-in .input { width: 80px; }
}
@media (max-width: 780px) {
  .cfg-wrap { grid-template-columns: 1fr; max-width: none; }
}

/* ==================== 2026-11-22 分佣规则页 v11 · 修正三处 ====================
   ① .cfg-foot 没设 order，默认 0，比卡片小 → 跑到页面最上面（bug）
   ② 三列下标签列 104px 太窄，「普通（销售/售后/用户）」换行
   ③ 单笔上限卡只有 2 行，空白大 */
/* ① 底部提示条归位 */
.cfg-foot { order: 99; }
/* ② 标签列放宽到 118px，并允许长标签缩字号而不是换行 */
.cfg-row { grid-template-columns: 146px 76px minmax(0, 1fr); }
.cfg-lb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-card--caps .cfg-lb { font-size: 12px; letter-spacing: -.01em; }
/* ③ 单笔上限卡补一行「当前生效」，把空白填成有效信息 */
.cfg-now {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding: 8px 18px 10px;
  border-top: 1px solid rgba(224, 164, 0, .2);
  font-size: 11.5px; color: #8a5c00;
}
.cfg-now > b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ==================== 2026-11-22 v12 · 上限两卡缩短并对齐 ====================
   用户：高度缩短、拉长对齐。
   删掉多余行后两卡行数接近，这里再压一行高度、让说明条贴底对齐。 */
.cfg-card--caps .cfg-row { min-height: 42px; }
.cfg-card--caps .cfg-body { padding-bottom: 4px; }
.cfg-card--caps > .cfg-note { margin-top: auto; }
.cfg-card--caps .cfg-hd { padding: 11px 16px 9px; }
.cfg-card--caps .cfg-body { padding-left: 16px; padding-right: 16px; }


/* 2026-11-22 顶栏排一排：农标 + 名称 + 测试版本 + 农机服务推广 全在一行，电话靠右 */
/* 2026-11-23 改回两行式（用户指定要「后台预览那种」）：第一行品牌 + 电话，第二行滚动资讯；
   副标题「农机服务推广」去掉，位置让给滚动条。 */
.topbar .brand { display: flex; align-items: center; gap: 6px; min-width: 0; }
.topbar .brand .brand-name { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.topbar .brand .brand-sub { display: none; }
.topbar .topbar-tel { margin-left: auto; flex: none; display: flex; align-items: center; gap: 5px; }
.topbar .topbar-news { display: block; }
@media (max-width: 519px) {
  .topbar .topbar-news { min-height: 20px; }
}
@media (max-width: 380px) {
  .topbar .brand .brand-name { font-size: 14.5px; }
}


/* 2026-11-22 必填标记放在输入框内部左上，不再占 label 位置 */
.ck-req { position: relative; display: block; }
.ck-req::before {
  content: '*';
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #e5484d;
  font-size: 15px;
  font-weight: 700;
  pointer-events: none;
  z-index: 2;
}
.ck-req .input { padding-left: 26px; }

/* ==================== 2026-11-24 登录门视觉 v2 ====================
   用户：图标和登录界面重新设计一下。
   问题：① 背景是农机照片拼贴，灰暗杂乱、压掉高级感；② 品牌点是颗红呼吸灯，
   和网页顶栏的「农」标、新 APP 图标都不一致；③ 八条介绍单列拉得很长，字细碎；
   ④ 黄色主按钮 + 红色公网按钮两个高饱和色抢视线。
   做法：去照片底改品牌渐变；红点换「农」标；八条改两列带分隔线；按钮收敛为一个青色主按钮，
   红色入口保留（用户明确要的）但缩小成胶囊。全部作用域在 .a-gate 内，只影响登录门。
   回滚：删掉本段即可恢复 11-23 版。 */
.a-gate {
  grid-template-columns: minmax(0, 1fr) minmax(0, 404px);
  column-gap: clamp(40px, 4.2vw, 72px);
  padding: 0 max(28px, calc((100% - 1180px) / 2));
  background:
    radial-gradient(1100px 620px at 8% -6%, rgba(41, 182, 200, .16), rgba(41, 182, 200, 0) 62%),
    radial-gradient(820px 560px at 96% 2%, rgba(255, 198, 30, .16), rgba(255, 198, 30, 0) 60%),
    linear-gradient(168deg, #fbfdfd 0%, #f2f7f8 46%, #f7f4ea 100%);
}
.a-gate::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 182, 200, .45) 18%, rgba(242, 193, 78, .45) 54%, transparent);
}

/* 品牌：红点呼吸灯 → 「农」标（与网页顶栏、APP 图标统一） */
.a-gate-brand { font-size: 20px; letter-spacing: -.01em; gap: 10px; }
.a-gate-brand .a-dot { display: none; }
.a-gate-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 0;
  background: linear-gradient(140deg, #19C0D4, #0B7F92);
  box-shadow: 0 6px 16px -6px rgba(11, 127, 146, .55);
}

.a-gate-eyebrow {
  margin-bottom: 16px; font-size: 11px; letter-spacing: .26em; color: #8a949e;
  display: flex; align-items: center; gap: 12px;
}
.a-gate-eyebrow::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(242, 193, 78, .55), rgba(242, 193, 78, 0));
}
.a-gate-title { font-size: clamp(30px, 2.15vw, 38px); line-height: 1.24; letter-spacing: -.022em; }
.a-gate-sub { margin-top: 14px; font-size: 14.5px; line-height: 1.8; color: #5a6673; max-width: 520px; }

/* 八条：两列 + 细线 + 金色序号 */
.a-gate-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(28, 45, 72, .10);
}
.a-gate-list li {
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-areas: "no name" ". note";
  gap: 2px 10px; padding: 11px 0;
  border-bottom: 1px solid rgba(28, 45, 72, .07);
}
.a-gate-list li:nth-last-child(-n+2) { border-bottom: 0; }
.a-gate-no {
  grid-area: no; font-size: 11px; font-weight: 600; color: #b58a1d;
  letter-spacing: .04em; padding-top: 2px;
}
.a-gate-list b { grid-area: name; font-size: 13.5px; font-weight: 650; }
.a-gate-note { grid-area: note; font-size: 12.5px; line-height: 1.55; color: #6b7783; }
.a-gate-foot { border-top-color: rgba(28, 45, 72, .08); font-size: 12px; color: #8b949e; }

/* 表单卡：更安静的玻璃卡，去掉旋转彩边 */
.a-gate-card {
  max-width: 404px; padding: 30px 30px 24px; border-radius: 20px;
  border: 1px solid rgba(22, 42, 70, .08);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 30px 60px -34px rgba(18, 38, 66, .42), 0 8px 20px -14px rgba(18, 38, 66, .18);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.a-gate-card::before, .a-gate-card::after { display: none; }
.a-gate-card h1 { font-size: 22px; letter-spacing: -.01em; margin-bottom: 8px; }
.a-gate-tip { margin-bottom: 20px; font-size: 12.5px; line-height: 1.7; color: #7b8592; }
.a-gate-card .a-field { margin-bottom: 14px; }
.a-gate-card .a-field > span { font-size: 12px; color: #7b8592; margin-bottom: 6px; }
/* 表单卡内的控件要压过 body.is-admin 的通用按钮/输入框样式，故带上前缀 */
html.skin-orbix body.is-admin .a-gate .a-gate-card .input {
  height: 44px; border-radius: 12px; font-size: 14px;
  background: #f4f6f8; border-color: transparent;
}
html.skin-orbix body.is-admin .a-gate .a-gate-card .input:focus {
  background: #fff; border-color: rgba(15, 143, 163, .55);
  box-shadow: 0 0 0 3px rgba(15, 143, 163, .12);
}
html.skin-orbix body.is-admin .a-gate .a-gate-card .btn--primary {
  height: 46px; border-radius: 12px; font-size: 15px; font-weight: 650;
  background: linear-gradient(180deg, #14A9BF, #0E8CA0); border: 0; color: #fff;
  box-shadow: 0 10px 24px -12px rgba(14, 140, 160, .7);
}
html.skin-orbix body.is-admin .a-gate .a-gate-card .btn--primary:hover { background: linear-gradient(180deg, #17B7CD, #0F94A8); filter: none; }
.a-gate-env {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid rgba(28, 45, 72, .08);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.a-gate-env-name { font-size: 11.5px; color: #7b8592; }
/* 红色公网入口保留（用户明确要求红色 + 跑马灯），但收成小胶囊，不和主按钮抢 */
.a-gate-env-btn {
  height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}
.a-gate-env-hint { font-size: 11px; }

/* 手机登录页细节收口（2026-11-24） */




/* 2026-11-24：手机端进后台改用 APP 自带登录弹窗后，发现弹窗主按钮是白色玻璃款（跟白底糊在一起），
   主操作不醒目。只针对登录/注册这两个弹窗的按钮改成品牌青，不动其它弹窗。 */
html.skin-orbix #lbtn,
html.skin-orbix #rbtn {
  background: linear-gradient(180deg, #14A9BF, #0E8CA0) !important;
  border-color: transparent !important;
  color: #fff !important;
  font-weight: 650;
  box-shadow: 0 10px 22px -12px rgba(14, 140, 160, .72);
}
html.skin-orbix #lbtn:active,
html.skin-orbix #rbtn:active { filter: brightness(.96); }
/* 2026-11-24 修卡顿：手机走的是旧 WebView，顶栏的 backdrop-filter 会让内部滚动资讯
   每帧重算整块背景模糊 → 表现为「一卡一卡」。移动端改成不透明底色，去掉 blur。 */
@media (max-width: 700px) {
  .topbar {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
/* 2026-11-24 用户：手机端右侧那条滚动条去掉（页面仍可正常滚动）。
   用 body:not(.is-admin) 限定，后台在桌面上仍保留滚动条以便拖动长列表。 */
body:not(.is-admin) { scrollbar-width: none; -ms-overflow-style: none; }
body:not(.is-admin) ::-webkit-scrollbar { width: 0; height: 0; display: none; }