/* ==========================================================================
   供应链平台 · 视觉规范
   参考 Apple 的设计语言：系统字体、克制的中性色、大标题、毛玻璃、
   圆角卡片、分段控件、iOS 分组列表，以及自然的缓动曲线。
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --bg: #f5f5f7;
  --surface: #ffffff;
  --group-bg: #ffffff;
  --sheet-bg: #f2f2f7;
  --sidebar: rgba(240, 240, 244, 0.72);
  --glass: rgba(250, 250, 252, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --fill: rgba(118, 118, 128, 0.12);
  --fill-soft: rgba(118, 118, 128, 0.07);
  --hover: rgba(0, 0, 0, 0.035);
  --press: rgba(0, 0, 0, 0.06);
  --thumb: #ffffff;

  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --sep: rgba(60, 60, 67, 0.12);
  --sep-strong: rgba(60, 60, 67, 0.22);

  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-ink: #0066cc;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --on-accent: #ffffff;

  --good: #248a3d;  --good-soft: rgba(52, 199, 89, 0.14);
  --bad: #d70015;   --bad-soft: rgba(255, 59, 48, 0.1);
  --switch-on: #34c759;

  /* 三种身份的识别色（仅用于标记，不用于文字主体） */
  --admin: #5856d6;    --admin-ink: #4b48c8;    --admin-soft: rgba(88, 86, 214, 0.11);
  --supplier: #ff9500; --supplier-ink: #b25000; --supplier-soft: rgba(255, 149, 0, 0.12);
  --customer: #30b0c7; --customer-ink: #0b7285; --customer-soft: rgba(48, 176, 199, 0.13);

  --radius-s: 10px;
  --radius: 14px;
  --radius-l: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 0 0 0.5px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03), 0 10px 30px -12px rgba(0, 0, 0, 0.08);
  --shadow-lift: 0 0 0 0.5px rgba(0, 0, 0, 0.04), 0 4px 10px rgba(0, 0, 0, 0.04), 0 22px 44px -16px rgba(0, 0, 0, 0.16);
  --shadow-pop: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 12px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-thumb: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --sidebar-w: 264px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --surface: #1c1c1e;
    --group-bg: #1c1c1e;
    --sheet-bg: #111113;
    --sidebar: rgba(28, 28, 30, 0.7);
    --glass: rgba(22, 22, 24, 0.76);
    --glass-strong: rgba(44, 44, 46, 0.86);
    --fill: rgba(118, 118, 128, 0.24);
    --fill-soft: rgba(118, 118, 128, 0.14);
    --hover: rgba(255, 255, 255, 0.045);
    --press: rgba(255, 255, 255, 0.08);
    --thumb: #636366;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #8b8b90;
    --sep: rgba(84, 84, 88, 0.55);
    --sep-strong: rgba(120, 120, 128, 0.6);
    --accent: #0a84ff;
    --accent-hover: #2491ff;
    --accent-ink: #4aa3ff;
    --accent-soft: rgba(10, 132, 255, 0.2);
    --good: #30d158;  --good-soft: rgba(48, 209, 88, 0.16);
    --bad: #ff6961;   --bad-soft: rgba(255, 69, 58, 0.16);
    --switch-on: #30d158;
    --admin: #7d7aff;    --admin-ink: #a5a3ff;    --admin-soft: rgba(125, 122, 255, 0.18);
    --supplier: #ff9f0a; --supplier-ink: #ffb340; --supplier-soft: rgba(255, 159, 10, 0.16);
    --customer: #40c8e0; --customer-ink: #6fd8ea; --customer-soft: rgba(64, 200, 224, 0.16);
    --shadow-card: 0 0 0 0.5px rgba(255, 255, 255, 0.06);
    --shadow-lift: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 20px 40px -16px rgba(0, 0, 0, 0.7);
    --shadow-pop: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-thumb: 0 3px 8px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #1c1c1e;
  --group-bg: #1c1c1e;
  --sheet-bg: #111113;
  --sidebar: rgba(28, 28, 30, 0.7);
  --glass: rgba(22, 22, 24, 0.76);
  --glass-strong: rgba(44, 44, 46, 0.86);
  --fill: rgba(118, 118, 128, 0.24);
  --fill-soft: rgba(118, 118, 128, 0.14);
  --hover: rgba(255, 255, 255, 0.045);
  --press: rgba(255, 255, 255, 0.08);
  --thumb: #636366;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #8b8b90;
  --sep: rgba(84, 84, 88, 0.55);
  --sep-strong: rgba(120, 120, 128, 0.6);
  --accent: #0a84ff;
  --accent-hover: #2491ff;
  --accent-ink: #4aa3ff;
  --accent-soft: rgba(10, 132, 255, 0.2);
  --good: #30d158;  --good-soft: rgba(48, 209, 88, 0.16);
  --bad: #ff6961;   --bad-soft: rgba(255, 69, 58, 0.16);
  --switch-on: #30d158;
  --admin: #7d7aff;    --admin-ink: #a5a3ff;    --admin-soft: rgba(125, 122, 255, 0.18);
  --supplier: #ff9f0a; --supplier-ink: #ffb340; --supplier-soft: rgba(255, 159, 10, 0.16);
  --customer: #40c8e0; --customer-ink: #6fd8ea; --customer-soft: rgba(64, 200, 224, 0.16);
  --shadow-card: 0 0 0 0.5px rgba(255, 255, 255, 0.06);
  --shadow-lift: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 20px 40px -16px rgba(0, 0, 0, 0.7);
  --shadow-pop: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-thumb: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { cursor: default; }
a { color: var(--accent-ink); text-decoration: none; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
input:focus-visible, select:focus-visible { outline: none; }
::selection { background: var(--accent-soft); }

svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--text-2); }
.accent { color: var(--accent-ink); }
.mono { font-family: var(--mono); font-size: 0.93em; letter-spacing: 0; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.neg { color: var(--bad) !important; }

.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .cur { font-size: 0.66em; font-weight: 500; margin-right: 0.08em; opacity: 0.75; }
.price .dec { font-size: 0.66em; opacity: 0.75; }

/* ---------- Logo ---------- */
.logo {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 9px; color: #fff;
  background: linear-gradient(150deg, #3d97ff 0%, #0a6ef0 45%, #0a4fc4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 6px rgba(10, 79, 196, 0.25);
}
.logo svg { width: 19px; height: 19px; stroke-width: 2; }
.logo-lg { width: 68px; height: 68px; border-radius: 19px; margin: 0 auto 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 28px rgba(10, 79, 196, 0.3); }
.logo-lg svg { width: 38px; height: 38px; stroke-width: 1.8; }

/* ==========================================================================
   登录
   ========================================================================== */
.login { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 40px 16px; overflow: hidden; }
.login-aura { position: absolute; inset: 0; pointer-events: none; }
.login-aura i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: float 18s var(--ease) infinite alternate; }
.login-aura i:nth-child(1) { width: 46vmax; height: 46vmax; left: -8vmax; top: -12vmax; background: radial-gradient(circle, rgba(0, 113, 227, 0.45), transparent 65%); }
.login-aura i:nth-child(2) { width: 40vmax; height: 40vmax; right: -10vmax; top: 6vmax; background: radial-gradient(circle, rgba(48, 176, 199, 0.4), transparent 65%); animation-delay: -6s; }
.login-aura i:nth-child(3) { width: 42vmax; height: 42vmax; left: 22vmax; bottom: -22vmax; background: radial-gradient(circle, rgba(255, 149, 0, 0.32), transparent 65%); animation-delay: -12s; }
@keyframes float { to { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); } }

.login-card {
  position: relative; width: min(420px, 100%);
  padding: 48px 36px 28px; text-align: center;
  background: var(--glass); border-radius: var(--radius-xl);
  -webkit-backdrop-filter: saturate(180%) blur(40px); backdrop-filter: saturate(180%) blur(40px);
  box-shadow: var(--shadow-pop);
  animation: rise 0.7s var(--ease-out) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.login-card h1 { font: 600 28px/1.15 var(--font-display); letter-spacing: -0.024em; }
.login-card .lead { margin: 8px 0 28px; color: var(--text-2); }

.field-stack { position: relative; text-align: left; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--sep-strong); transition: box-shadow 0.2s; }
.field-stack:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
.float-field { position: relative; display: block; }
.float-field + .float-field { border-top: 1px solid var(--sep); }
.float-field input { width: 100%; height: 58px; padding: 22px 56px 6px 16px; border: 0; background: transparent; font-size: 17px; outline: none; }
.float-field span { position: absolute; left: 16px; top: 18px; font-size: 17px; color: var(--text-3); pointer-events: none; transition: transform 0.2s var(--ease), color 0.2s; transform-origin: left top; }
.float-field input:focus + span, .float-field input:not(:placeholder-shown) + span { transform: translateY(-9px) scale(0.72); color: var(--text-2); }
.go-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-3); box-shadow: inset 0 0 0 1.5px currentColor; transition: all 0.25s var(--ease);
}
.go-btn svg { width: 17px; height: 17px; stroke-width: 2.2; }
.go-btn.ready { color: #fff; background: var(--accent); box-shadow: none; }
.login-error { min-height: 22px; margin-top: 10px; font-size: 13px; color: var(--bad); }

.divider-label { display: flex; align-items: center; gap: 12px; margin: 12px 0 14px; font-size: 12px; color: var(--text-3); }
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--sep); }
.demo-list { display: grid; gap: 8px; }
.demo-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--fill-soft); text-align: left; transition: background 0.2s, transform 0.2s var(--ease); }
.demo-item:hover { background: var(--fill); }
.demo-item:active { transform: scale(0.985); }
.demo-item > svg { color: var(--text-3); width: 16px; height: 16px; }
.demo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.demo-text b { font-size: 14.5px; font-weight: 600; }
.demo-text span { font-size: 12.5px; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fineprint { margin: 22px 0 0; font-size: 12px; color: var(--text-3); }

/* ==========================================================================
   外壳：侧边栏 / 顶栏 / 标签栏
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; padding: 18px 12px 12px;
  background: var(--sidebar); border-right: 1px solid var(--sep);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 18px; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.016em; line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--text-3); }

.nav { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-label { padding: 16px 10px 6px; font-size: 11.5px; font-weight: 600; color: var(--text-3); letter-spacing: 0.02em; }
.nav-item { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--text); font-size: 14px; transition: background 0.15s; }
.nav-item svg { width: 19px; height: 19px; color: var(--accent); }
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: var(--fill); font-weight: 600; }

.me { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; text-align: left; transition: background 0.15s; }
.me:hover { background: var(--hover); }
.me > svg { width: 15px; height: 15px; color: var(--text-3); }
.me-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.me-name { font-size: 13.5px; font-weight: 600; }
.me-sub { font-size: 12px; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 52px;
  display: flex; align-items: center; justify-content: center; padding: 0 24px;
  border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s;
}
.topbar.scrolled { background: var(--glass); border-bottom-color: var(--sep); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.topbar-title { font-size: 15px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.35s var(--ease); }
.topbar.scrolled .topbar-title { opacity: 1; transform: none; }
.topbar-me { display: none; position: absolute; right: 16px; border-radius: 50%; }

.page { max-width: 1200px; margin: 0 auto; padding: 0 40px 96px; }
.page.enter { animation: pageIn 0.5s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 28px; }
.ph-text { min-width: 0; }
.eyebrow { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.large-title { font: 700 34px/1.12 var(--font-display); letter-spacing: -0.028em; }
.subtitle { margin: 8px 0 0; max-width: 46em; color: var(--text-2); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.tabbar { display: none; }

/* ==========================================================================
   基础组件
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 980px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s var(--ease), opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; stroke-width: 2.1; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-gray { background: var(--fill); color: var(--text); }
.btn-gray:hover { background: var(--press); }
.btn-gray svg { color: var(--accent); }
.btn-plain { color: var(--accent-ink); padding: 0 6px; height: 32px; }
.btn-plain:hover { opacity: 0.75; }
.btn-plain svg { width: 14px; height: 14px; margin-left: -2px; }
.btn-sm { height: 30px; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: 0.35; pointer-events: none; }
.strong { font-weight: 600 !important; }

.card { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-card); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 24px 4px; }
.card-title { font: 600 17px/1.3 var(--font-display); letter-spacing: -0.018em; }
.card-sub { margin-top: 2px; font-size: 13px; color: var(--text-2); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 980px; font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--fill-soft); color: var(--text-2); letter-spacing: 0;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-admin { background: var(--admin-soft); color: var(--admin-ink); }
.badge-supplier { background: var(--supplier-soft); color: var(--supplier-ink); }
.badge-customer { background: var(--customer-soft); color: var(--customer-ink); }
.badge-special {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 6px;
  border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: 0;
  color: var(--accent-ink); background: var(--accent-soft); white-space: nowrap; vertical-align: 1px;
}
.you { margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--text-3); padding: 1px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--sep-strong); }

.avatar {
  --s: 36px; width: var(--s); height: var(--s); flex: none;
  display: inline-grid; place-items: center; border-radius: 50%;
  font-size: calc(var(--s) * 0.42); font-weight: 600; color: #fff; letter-spacing: 0;
  background: linear-gradient(180deg, #a8adb9, #858994);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.3);
}
.avatar.r-admin { background: linear-gradient(180deg, #8f8df5, #5856d6); }
.avatar.r-supplier { background: linear-gradient(180deg, #ffb859, #ff8a00); }
.avatar.r-customer { background: linear-gradient(180deg, #5fd0e3, #2aa3ba); }

/* 品类图标：品牌 Logo 原色显示，底板在深色模式下也保持浅色，保证黑色 Logo 可见 */
.tile { --tile-bg: linear-gradient(150deg, #ffffff, #f1f1f4); width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--tile-bg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07); }
.tile img { width: 26px; height: 26px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.tile-md { width: 48px; height: 48px; border-radius: 14px; }
.tile-md img { width: 30px; height: 30px; }
.tile-xl { width: 96px; height: 96px; border-radius: 26px; }
.tile-xl img { width: 60px; height: 60px; }
/* 深色模式下产品卡片的大图区不铺白底，改为深色底 + 浅色圆角 Logo 底板，避免大面积刺眼 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile { --tile-bg: linear-gradient(150deg, #f7f7f9, #e4e4ea); box-shadow: none; }
  :root:not([data-theme="light"]) .tile-lg { --tile-bg: linear-gradient(150deg, #2c2c2e, #1c1c1e); }
  :root:not([data-theme="light"]) .tile-lg img { padding: 12px; border-radius: 22%; background: linear-gradient(150deg, #f7f7f9, #e4e4ea); }
}
:root[data-theme="dark"] .tile { --tile-bg: linear-gradient(150deg, #f7f7f9, #e4e4ea); box-shadow: none; }
:root[data-theme="dark"] .tile-lg { --tile-bg: linear-gradient(150deg, #2c2c2e, #1c1c1e); }
:root[data-theme="dark"] .tile-lg img { padding: 12px; border-radius: 22%; background: linear-gradient(150deg, #f7f7f9, #e4e4ea); }

/* Toolbar · 搜索 · Chips · 分段控件 */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }

.search { position: relative; display: flex; align-items: center; width: 260px; }
.search svg { position: absolute; left: 10px; width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }
.search input {
  width: 100%; height: 36px; padding: 0 12px 0 34px; border: 0; border-radius: var(--radius-s);
  background: var(--fill); outline: none; transition: background 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); opacity: 0.5; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 980px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep-strong);
  font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--text-3); }
.chip-n { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip.on { background: var(--text); color: var(--bg); box-shadow: none; }
.chip.on .chip-n { color: inherit; opacity: 0.6; }

.seg { position: relative; display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill); }
.seg button { position: relative; z-index: 1; height: 30px; padding: 0 14px; border-radius: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.seg button .count { margin-left: 5px; font-weight: 400; color: var(--text-3); font-variant-numeric: tabular-nums; }
.seg button:not(.on):hover { opacity: 0.7; }
.seg-thumb { position: absolute; top: 2px; bottom: 2px; left: 0; border-radius: 7px; background: var(--thumb); box-shadow: var(--shadow-thumb); transition: transform 0.4s var(--ease), width 0.4s var(--ease); }

.switch { position: relative; display: inline-block; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.switch input:disabled { cursor: not-allowed; }
.switch .track { position: absolute; inset: 0; border-radius: 31px; background: var(--fill); transition: background 0.25s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16); transition: transform 0.35s var(--spring); }
.switch input:checked + .track { background: var(--switch-on); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:disabled + .track { opacity: 0.5; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.select-pill { position: relative; display: inline-flex; align-items: center; flex: none; }
.select-pill select {
  appearance: none; -webkit-appearance: none; height: 32px; max-width: 200px; padding: 0 30px 0 12px;
  border: 0; border-radius: 980px; background: var(--fill); font-size: 13px; font-weight: 500; cursor: pointer; outline: none;
}
.select-pill select:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
.select-pill svg { position: absolute; right: 10px; width: 14px; height: 14px; color: var(--text-2); pointer-events: none; stroke-width: 2.2; }

.icon-btn { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); transition: background 0.15s, color 0.15s; }
.icon-btn:hover { background: var(--fill); color: var(--text); }
.icon-btn.danger:hover { background: var(--bad-soft); color: var(--bad); }

.empty { padding: 56px 24px; text-align: center; color: var(--text-2); }
.empty > svg { width: 44px; height: 44px; margin-bottom: 12px; color: var(--text-3); stroke-width: 1.3; }
.empty h3 { margin-bottom: 4px; font-size: 17px; font-weight: 600; color: var(--text); }
.empty p { margin: 0; font-size: 14px; }

.shake { animation: shake 0.45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* ==========================================================================
   概览
   ========================================================================== */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { padding: 20px 22px 18px; }
.kpi-label { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.kpi-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--fill-soft); color: var(--text-2); }
.kpi-icon svg { width: 16px; height: 16px; }
.kpi-value { margin-top: 16px; font: 600 34px/1.05 var(--font-display); letter-spacing: -0.03em; }
.kpi-value small { margin-left: 4px; font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.kpi-foot { margin-top: 6px; font-size: 12.5px; color: var(--text-3); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.grid-2 > .card { display: flex; flex-direction: column; }

/* 价格对应关系 */
.chain { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.2fr) 40px minmax(0, 1fr); align-items: stretch; padding: 20px 24px 16px; }
.chain-node { display: flex; flex-direction: column; min-width: 0; padding: 16px; border-radius: 16px; }
.chain-node.supplier { background: var(--supplier-soft); }
.chain-node.customer { background: var(--customer-soft); }
.chain-node.platform { background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep), 0 8px 24px -10px rgba(0, 0, 0, 0.12); }
.chain-role { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.chain-role svg { width: 15px; height: 15px; }
.supplier .chain-role { color: var(--supplier-ink); }
.customer .chain-role { color: var(--customer-ink); }
.platform .chain-role { color: var(--admin-ink); }
.chain-who { margin-top: 2px; font-size: 13px; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chain-price-label { margin-top: auto; padding-top: 16px; font-size: 12px; color: var(--text-2); }
.chain-price { font: 600 26px/1.15 var(--font-display); letter-spacing: -0.02em; }
.chain-link { position: relative; display: grid; place-items: center; color: var(--text-3); }
.chain-link::before { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 1.5px; background: var(--sep-strong); }
.chain-link .eq { position: relative; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep-strong); font-size: 14px; font-weight: 600; color: var(--text-2); line-height: 1; }
.chain-dl { margin: 10px 0 0; display: grid; gap: 2px; }
.chain-dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 0; }
.chain-dl dt { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.chain-dl dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chain-dl .m { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--sep); }
.chain-dl .m dd span { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.s { background: var(--supplier); }
.dot.c { background: var(--customer); }
.chain-foot { display: flex; gap: 8px; align-items: flex-start; margin: 0 24px 20px; padding: 12px 14px; border-radius: 12px; background: var(--fill-soft); font-size: 13px; color: var(--text-2); }
.chain-foot svg { width: 16px; height: 16px; margin-top: 2px; color: var(--text-3); }

/* 单系列横向条形图 */
.bars { flex: 1; display: grid; align-content: center; gap: 20px; padding: 20px 24px 24px; }
.bar-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 52px; align-items: center; gap: 12px; font-size: 13px; cursor: default; }
.bar-label { color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bar-track { position: relative; height: 14px; }
.bar-track::before { content: ""; position: absolute; left: 0; top: -8px; bottom: -8px; width: 1px; background: var(--sep); }
.bar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--accent); transform-origin: left center; animation: grow 0.9s var(--ease-out) both; transition: filter 0.15s; }
.bar-row:hover .bar-fill { filter: brightness(1.12) saturate(1.1); }
@keyframes grow { from { transform: scaleX(0); } }
.bar-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.tip {
  position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; max-width: 240px;
  padding: 8px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.5;
  background: var(--glass-strong); box-shadow: var(--shadow-pop);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  opacity: 0; transition: opacity 0.15s;
}
.tip.show { opacity: 1; }

/* 调价记录列表 */
.log-list { padding: 4px 0 8px; }
.log-row { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 24px; text-align: left; }
.log-row + .log-row::before { content: ""; position: absolute; top: 0; left: 78px; right: 0; height: 1px; background: var(--sep); }
button.log-row { transition: background 0.15s; }
button.log-row:hover { background: var(--hover); }
.log-main { flex: 1; min-width: 0; }
.log-title { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.log-title .badge, .log-title .badge-special { margin-left: 0; flex: none; }
.log-sub { margin-top: 1px; font-size: 12.5px; color: var(--text-3); }
.log-end { display: flex; align-items: center; gap: 10px; flex: none; }
.amt-lg { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

.from-to { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.from-to .from { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--sep-strong); }
.from-to svg { width: 13px; height: 13px; color: var(--text-3); stroke-width: 2; }
.from-to .to { font-weight: 600; }
.tag-new { font-size: 11px; font-weight: 600; color: var(--accent-ink); }
.delta { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 8px 0 6px; border-radius: 980px; font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta svg { width: 13px; height: 13px; stroke-width: 2.4; }
.delta.good { color: var(--good); background: var(--good-soft); }
.delta.bad { color: var(--bad); background: var(--bad-soft); }
.delta.flat { color: var(--text-2); background: var(--fill-soft); }

/* ==========================================================================
   列表（表格化行）
   ========================================================================== */
.mapping-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0 2px 14px; font-size: 13px; color: var(--text-2); }
.mapping-note .k { display: inline-flex; align-items: center; gap: 6px; }
.mapping-note b { color: var(--text); font-weight: 600; }
.mapping-note svg { width: 16px; height: 16px; color: var(--text-3); }

.list { overflow: hidden; }
.list-head, .list-row { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 16px; padding: 0 20px 0 24px; }
.list-head { min-height: 50px; font-size: 12px; font-weight: 500; color: var(--text-3); border-bottom: 1px solid var(--sep); }
.list-head em { display: block; font-style: normal; font-size: 11px; font-weight: 400; color: var(--text-3); opacity: 0.85; }
.list-row { position: relative; width: 100%; min-height: 68px; text-align: left; transition: background 0.15s; }
.list-row + .list-row::before { content: ""; position: absolute; top: 0; left: 78px; right: 0; height: 1px; background: var(--sep); }
.list-row:hover { background: var(--hover); }
.list-row:active { background: var(--press); }
.list .num { text-align: right; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.list .num .badge-special { margin: 3px 0 0; }
.list .amt { font-weight: 500; white-space: nowrap; }
.list .rate { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.list .chev { display: grid; place-items: center; color: var(--text-3); }
.list .chev svg { width: 16px; height: 16px; }
.prod-cell { display: flex; align-items: center; gap: 14px; min-width: 0; }
.prod-text { display: flex; flex-direction: column; min-width: 0; }
.prod-name { font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prod-meta { font-size: 12.5px; color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.p-list { --cols: minmax(0, 2.3fr) minmax(0, 1fr) 112px 112px 104px 78px 16px; }
.u-list { --cols: minmax(0, 1.4fr) minmax(0, 1.5fr) 76px minmax(0, 1fr) 84px 84px 16px; }
.sp-list { --cols: minmax(0, 2.2fr) minmax(0, 1fr) 112px 132px 140px 16px; }

/* ==========================================================================
   品类
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; gap: 18px; padding: 22px; text-align: left; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.cat-top { display: flex; align-items: flex-start; justify-content: space-between; }
.cat-top .chev { color: var(--text-3); }
.cat-top .chev svg { width: 16px; height: 16px; }
.cat-name { font: 600 19px/1.25 var(--font-display); letter-spacing: -0.02em; }
.cat-desc { margin-top: 4px; font-size: 13px; color: var(--text-2); }
.cat-stats { display: flex; gap: 22px; padding-top: 14px; border-top: 1px solid var(--sep); font-size: 12px; color: var(--text-3); }
.cat-stats b { display: block; font-size: 17px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cat-add { align-items: center; justify-content: center; gap: 8px; min-height: 200px; border-radius: var(--radius-l); color: var(--accent-ink); font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--sep-strong); }
.cat-add:hover { background: var(--hover); box-shadow: inset 0 0 0 1.5px var(--accent); transform: none; }
.cat-add svg { width: 30px; height: 30px; stroke-width: 1.4; }

.cat-preview { display: grid; place-items: center; padding: 8px 0 24px; }
.cat-preview .tile { animation: pop 0.4s var(--spring); }
@keyframes pop { from { transform: scale(0.85); } }
.icon-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 12px; }
.icon-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 10px 2px 8px; border-radius: 12px; color: var(--text-2); transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
.icon-opt:hover { background: var(--fill-soft); }
.icon-opt.on { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.icon-opt .tile { width: 36px; height: 36px; border-radius: 10px; }
.icon-opt .tile img { width: 24px; height: 24px; }
.io-name { max-width: 100%; font-size: 11.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   角色与权限
   ========================================================================== */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.role-card { padding: 22px; }
.role-card .ro-icon { width: 40px; height: 40px; border-radius: 12px; }
.ro-icon { display: grid; place-items: center; background: var(--ro-soft); color: var(--ro-ink); }
.r-admin { --ro-soft: var(--admin-soft); --ro-ink: var(--admin-ink); }
.r-supplier { --ro-soft: var(--supplier-soft); --ro-ink: var(--supplier-ink); }
.r-customer { --ro-soft: var(--customer-soft); --ro-ink: var(--customer-ink); }
.rc-name { margin-top: 16px; font: 600 19px/1.25 var(--font-display); letter-spacing: -0.02em; }
.rc-desc { margin-top: 4px; font-size: 13.5px; color: var(--text-2); }
.rc-count { margin-top: 14px; font-size: 12.5px; color: var(--text-3); }

.table-wrap { overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; min-width: 560px; }
.matrix th, .matrix td { padding: 14px 20px; text-align: left; vertical-align: middle; }
.matrix thead th { padding-top: 18px; font-size: 12.5px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--sep); }
.matrix tbody tr:not(.grp) td { border-bottom: 1px solid var(--sep); }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix .c { width: 20%; text-align: center; }
.matrix .grp td { padding: 22px 20px 8px; font-size: 12.5px; font-weight: 600; color: var(--text-3); border-bottom: 1px solid var(--sep); }
.pm-name { font-weight: 500; }
.pm-desc { font-size: 12.5px; color: var(--text-3); }
.perm { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.perm.yes { background: var(--good-soft); color: var(--good); }
.perm.yes svg { width: 14px; height: 14px; stroke-width: 2.6; }
.perm.no { color: var(--text-3); }
.perm-note { display: block; margin-top: 4px; font-size: 11.5px; color: var(--text-2); }

/* ==========================================================================
   供应商 / 客户
   ========================================================================== */
.explain { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 24px 24px; }
.explain-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.explain h3 { margin-top: 14px; font: 600 17px/1.3 var(--font-display); letter-spacing: -0.018em; }
.explain p { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.explain p b { color: var(--text); font-weight: 600; }
.explain p:last-of-type { margin-bottom: 24px; }
.explain .btn { margin-top: auto; }

.hist-row { justify-content: space-between; min-height: 56px; }
.hr-main { display: flex; flex-direction: column; line-height: 1.35; }
.hr-date { font-size: 12.5px; color: var(--text-3); }

.cat-strip { margin-bottom: 20px; }
.cat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 16px 24px 24px; }
.cat-pill { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 16px; background: var(--fill-soft); text-align: left; transition: background 0.2s, transform 0.3s var(--ease); }
.cat-pill:hover { background: var(--fill); transform: translateY(-2px); }
.cat-pill .tile { margin-bottom: 10px; }
.cp-name { font-weight: 600; }
.cp-n { font-size: 12.5px; color: var(--text-3); }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.prod-card { display: flex; flex-direction: column; padding: 12px 12px 18px; text-align: left; animation: rise 0.5s var(--ease-out) both; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tile-lg { width: 100%; height: auto; aspect-ratio: 5 / 4; border-radius: 14px; margin-bottom: 16px; }
.tile-lg img { width: 64px; height: 64px; transition: transform 0.6s var(--ease); }
.prod-card:hover .tile-lg img { transform: scale(1.08); }
.pc-cat, .pc-name, .pc-spec { padding: 0 6px; }
.pc-cat { font-size: 12px; font-weight: 600; color: var(--text-3); }
.pc-name { margin-top: 2px; font: 600 17px/1.3 var(--font-display); letter-spacing: -0.018em; }
.pc-spec { margin-top: 2px; font-size: 13px; color: var(--text-2); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 16px 6px 0; }
.pc-price { font: 600 22px/1.1 var(--font-display); letter-spacing: -0.02em; }
.pc-unit { margin-left: 3px; font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--text-3); letter-spacing: 0; }

.tl-group-title { margin: 28px 4px 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tl-group-title:first-of-type { margin-top: 0; }

.detail-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 0 26px; }
.tile-hero { width: 128px; height: 128px; border-radius: 32px; margin-bottom: 18px; }
.tile-hero img { width: 76px; height: 76px; }
.dh-cat { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.dh-name { margin-top: 2px; font: 700 26px/1.2 var(--font-display); letter-spacing: -0.025em; }
.dh-spec { margin-top: 4px; font-size: 13.5px; color: var(--text-2); }
.dh-price-label { display: flex; align-items: center; margin-top: 22px; font-size: 13px; color: var(--text-2); }
.dh-price { margin-top: 2px; font: 600 40px/1.1 var(--font-display); letter-spacing: -0.03em; }
.dh-price .unit { margin-left: 6px; font-family: var(--font); font-size: 15px; font-weight: 400; color: var(--text-3); letter-spacing: 0; }

/* ==========================================================================
   账户
   ========================================================================== */
.narrow { max-width: 680px; margin: 0 auto; }
.profile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0 30px; text-align: center; }
.profile .avatar { margin-bottom: 8px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3); }
.profile-name { font: 700 28px/1.2 var(--font-display); letter-spacing: -0.026em; }
.profile-sub { color: var(--text-2); margin-bottom: 6px; }

/* ==========================================================================
   iOS 分组列表（表单）
   ========================================================================== */
.group { margin: 0 0 26px; }
.group-title { padding: 0 16px 7px; font-size: 13px; color: var(--text-2); }
.group-body { background: var(--group-bg); border-radius: 12px; overflow: hidden; }
.group-foot { padding: 7px 16px 0; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.group-foot.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.frow { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; text-align: left; }
.frow + .frow::before, .ov-row + .ov-row::before, .ov-row + .ov-add::before, .group-body > .pick + .frow::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.frow > .lbl { width: 92px; flex: none; }
.frow input, .frow select { flex: 1; min-width: 0; height: 47px; padding: 0; border: 0; background: transparent; outline: none; }
.frow input::placeholder { color: var(--text-3); }
.frow input[readonly] { color: var(--text-2); }
.frow select { appearance: none; -webkit-appearance: none; padding-right: 22px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 9 4-4 4 4M8 15l4 4 4-4'/%3E%3C/svg%3E") no-repeat right center / 15px; }
.frow .value { margin-left: auto; color: var(--text-2); text-align: right; }
.frow-end { margin-left: auto; display: flex; align-items: center; }
.frow-link { cursor: pointer; transition: background 0.15s; }
.frow-link:hover { background: var(--hover); }
.frow-link .chev { margin-left: auto; color: var(--text-3); display: grid; }
.frow-link .chev svg { width: 16px; height: 16px; }
.frow-danger { justify-content: center; color: var(--bad); font-weight: 500; cursor: pointer; transition: background 0.15s; }
.frow-danger:hover { background: var(--bad-soft); }
.frow-danger:disabled { color: var(--text-3); background: none; cursor: not-allowed; }

/* 价格输入 */
.price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-field { display: block; padding: 14px 16px 12px; border-radius: 14px; background: var(--group-bg); cursor: text; transition: box-shadow 0.2s; }
.price-field.supplier { --pf: var(--supplier); --pf-ink: var(--supplier-ink); --pf-soft: var(--supplier-soft); }
.price-field.customer { --pf: var(--customer); --pf-ink: var(--customer-ink); --pf-soft: var(--customer-soft); }
.price-field:focus-within { box-shadow: inset 0 0 0 1.5px var(--pf), 0 0 0 4px var(--pf-soft); }
.pf-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--pf-ink); }
.pf-label .dot { background: var(--pf); }
.pf-input { display: flex; align-items: baseline; gap: 3px; margin: 6px 0 2px; font: 600 30px/1.2 var(--font-display); letter-spacing: -0.02em; }
.pf-input .cur { font-size: 20px; font-weight: 500; color: var(--text-3); }
.pf-input input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; outline: none; font: inherit; letter-spacing: inherit; font-variant-numeric: tabular-nums; }
.pf-input input::placeholder { color: var(--text-3); opacity: 0.5; }
.pf-hint { font-size: 12px; color: var(--text-2); }
.margin-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--group-bg); font-size: 14px; transition: background 0.2s, color 0.2s; }
.margin-line b { font-weight: 600; font-variant-numeric: tabular-nums; }
.margin-line .sep { margin: 0 8px; color: var(--text-3); }
.margin-line .ml-label { display: inline-flex; align-items: center; gap: 6px; }
.margin-line .ml-label svg { width: 16px; height: 16px; }
.margin-line.neg { background: var(--bad-soft); color: var(--bad); }

/* 多选 chips */
.pick { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.pick-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 980px; background: var(--fill-soft); font-size: 13.5px; transition: background 0.2s, color 0.2s, padding 0.2s; }
.pick-chip svg { width: 0; height: 15px; stroke-width: 2.6; opacity: 0; transition: width 0.25s var(--ease), opacity 0.2s, margin 0.25s var(--ease); }
.pick-chip:hover { background: var(--fill); }
.pick-chip.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; padding-left: 10px; }
.pick-chip.on svg { width: 15px; opacity: 1; margin-right: 5px; }

/* 专属价 */
.ov-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 10px 8px 16px; }
.ov-who { flex: 1; min-width: 0; }
.ov-name { font-size: 14px; font-weight: 500; }
.ov-kind { font-size: 12px; color: var(--text-3); }
.ov-price { display: flex; align-items: center; gap: 2px; width: 118px; height: 36px; padding: 0 10px; border-radius: 9px; background: var(--fill-soft); color: var(--text-3); font-variant-numeric: tabular-nums; transition: box-shadow 0.2s; }
.ov-price:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ov-price input { width: 100%; min-width: 0; border: 0; background: transparent; outline: none; text-align: right; color: var(--text); font-weight: 600; }
.ov-add { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; color: var(--accent-ink); cursor: pointer; transition: background 0.15s; }
.ov-add:hover { background: var(--hover); }
.ov-add svg { width: 21px; height: 21px; }
.ov-add select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }

/* 视角预览 */
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.view-card { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 14px; background: var(--group-bg); min-width: 0; }
.view-card.supplier { --vc: var(--supplier-ink); }
.view-card.customer { --vc: var(--customer-ink); }
.vc-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--vc); }
.vc-head svg { width: 16px; height: 16px; }
.vc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid var(--sep); }
.vc-row > span { display: flex; align-items: center; }
.vc-row b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vc-empty { padding: 8px 0; font-size: 13px; color: var(--text-3); border-bottom: 1px solid var(--sep); }
.vc-hidden { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--text-3); }
.vc-hidden svg { width: 14px; height: 14px; }

/* 身份选择 */
.role-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.role-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 14px; background: var(--group-bg); text-align: left; transition: box-shadow 0.2s, transform 0.2s var(--ease); }
.role-opt:active { transform: scale(0.98); }
.role-opt .ro-icon { width: 34px; height: 34px; border-radius: 10px; margin-bottom: 4px; }
.role-opt .ro-icon svg { width: 19px; height: 19px; }
.ro-name { font-size: 14.5px; font-weight: 600; }
.ro-desc { font-size: 12px; line-height: 1.4; color: var(--text-2); }
.ro-check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--sep-strong); color: transparent; transition: all 0.2s; }
.ro-check svg { width: 12px; height: 12px; stroke-width: 3; }
.role-opt.on { box-shadow: inset 0 0 0 2px var(--accent); }
.role-opt.on .ro-check { background: var(--accent); box-shadow: none; color: #fff; }

.sheet-profile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 24px; text-align: center; }
.sp-name { margin-top: 6px; font: 600 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.sp-sub { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); }

/* ==========================================================================
   浮层：Sheet / Alert / Menu / Toast
   ========================================================================== */
.backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.35s var(--ease); }
.backdrop.show { opacity: 1; }
.backdrop-alert { z-index: 120; background: rgba(0, 0, 0, 0.2); }

.sheet {
  --group-bg: var(--surface);
  position: fixed; left: 50%; top: 50%; z-index: 110;
  width: min(var(--sheet-w, 600px), calc(100vw - 32px)); max-height: min(860px, calc(100vh - 48px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--sheet-bg); border-radius: 22px; box-shadow: var(--shadow-pop);
  opacity: 0; transform: translate(-50%, -47%) scale(0.97);
  transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease);
}
.sheet.show { opacity: 1; transform: translate(-50%, -50%); }
.sheet-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; flex: none;
  height: 56px; padding: 0 10px; border-bottom: 1px solid var(--sep);
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.sheet-head .t { font-size: 16px; font-weight: 600; }
.sheet-head .l { justify-self: start; }
.sheet-head .r { justify-self: end; }
.sheet-head .btn-plain { height: 36px; padding: 0 10px; font-size: 16px; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 22px 20px 12px; }

.alert {
  position: fixed; left: 50%; top: 50%; z-index: 130; width: 300px; overflow: hidden; text-align: center;
  background: var(--glass-strong); border-radius: 18px; box-shadow: var(--shadow-pop);
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  opacity: 0; transform: translate(-50%, -50%) scale(1.1);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.alert.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.alert-body { padding: 22px 20px 18px; }
.alert-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.alert-msg { margin-top: 6px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.alert-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--sep); }
.alert-actions button { height: 46px; font-size: 16px; color: var(--accent-ink); transition: background 0.15s; }
.alert-actions button:hover { background: var(--hover); }
.alert-actions button + button { border-left: 1px solid var(--sep); }
.alert-actions .destructive { color: var(--bad); font-weight: 600; }

.menu {
  position: fixed; z-index: 150; min-width: 260px; padding: 6px;
  background: var(--glass-strong); border-radius: 14px; box-shadow: var(--shadow-pop);
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  animation: menuIn 0.22s var(--ease-out);
}
@keyframes menuIn { from { opacity: 0; transform: scale(0.94); } }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.mh-name { font-weight: 600; font-size: 14px; }
.mh-sub { font-size: 12px; color: var(--text-2); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 14px; text-align: left; }
.menu-item svg { width: 17px; height: 17px; color: var(--text-2); }
.menu-item:hover { background: var(--accent); color: #fff; }
.menu-item:hover svg, .menu-item:hover .muted { color: #fff; }
.mi-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mi-check { margin-left: auto; }
.menu-sep { height: 1px; margin: 5px 10px; background: var(--sep); }
.menu-label { padding: 6px 10px 4px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.role-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin: 0 4px; }
.role-dot.r-admin { background: var(--admin); }
.role-dot.r-supplier { background: var(--supplier); }
.role-dot.r-customer { background: var(--customer); }

.toast {
  position: fixed; left: 50%; top: 18px; z-index: 300;
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  padding: 10px 18px 10px 14px; border-radius: 980px;
  background: var(--glass-strong); box-shadow: var(--shadow-pop);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  font-size: 14px; font-weight: 500; pointer-events: none;
  opacity: 0; transform: translate(-50%, -24px) scale(0.96);
  transition: transform 0.45s var(--spring), opacity 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast svg { width: 19px; height: 19px; color: var(--good); }
.toast[data-tone="bad"] svg { color: var(--bad); }
.toast[data-tone="info"] svg { color: var(--accent); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .chain { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.25fr) 28px minmax(0, 1fr); padding: 18px 18px 14px; }
  .chain-node { padding: 14px; }
  .chain-price { font-size: 22px; }
  .chain-foot { margin: 0 18px 18px; }
  .p-list { --cols: minmax(0, 2fr) 104px 104px 96px 72px 16px; }
  .p-list .list-head > :nth-child(2), .p-list .list-row > :nth-child(2) { display: none; }
  .u-list { --cols: minmax(0, 1.3fr) minmax(0, 1.4fr) 76px minmax(0, 1fr) 84px 16px; }
  .u-list .list-head > :nth-child(5), .u-list .list-row > :nth-child(5) { display: none; }
}

@media (max-width: 1000px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { padding: 0 16px; }
  .topbar-me { display: block; }
  .page { padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
  .large-title { font-size: 30px; }
  .page-head { margin-bottom: 22px; }

  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--glass); border-top: 1px solid var(--sep);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  }
  .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 10.5px; font-weight: 500; color: var(--text-3); transition: color 0.2s; }
  .tab svg { width: 24px; height: 24px; }
  .tab.active { color: var(--accent); }

  .kpis, .kpis-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 16px; }
  .kpi-value { font-size: 28px; margin-top: 12px; }
  .roles { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .toolbar .spacer { display: none; }
  .search { width: 100%; order: -1; }
  .chips { width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px; }

  .list .hide-m { display: none !important; }
  .list .list-head { display: none; }
  .list-head, .list-row { padding: 0 12px 0 16px; gap: 12px; }
  .list-row + .list-row::before, .log-row + .log-row::before { left: 70px; }
  .p-list { --cols: minmax(0, 1fr) auto auto 14px; }
  .p-list .num[data-m]::before { content: attr(data-m); font-size: 11px; color: var(--text-3); line-height: 1.3; }
  .u-list { --cols: minmax(0, 1fr) auto 14px; }
  .sp-list { --cols: minmax(0, 1fr) auto 14px; }

  .log-row { padding: 10px 16px; gap: 12px; }
  .log-end { flex-direction: column; align-items: flex-end; gap: 4px; }
  .card-head { padding: 18px 16px 4px; }
  .chain { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .chain-link { height: 30px; }
  .chain-link::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; }
  .chain-price-label { padding-top: 10px; }
  .chain-foot { margin: 0 16px 16px; }
  .bars { padding: 16px 16px 20px; }
  .explain { padding: 20px 16px; }
  .explain-list { width: calc(100% + 32px); margin: 14px -16px 12px; }
  .cat-row { padding: 14px 16px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prod-card { padding: 8px 8px 14px; }
  .tile-lg { margin-bottom: 12px; }
  .tile-lg img { width: 48px; height: 48px; }
  .pc-cat, .pc-name, .pc-spec { padding: 0 4px; }
  .pc-name { font-size: 15px; }
  .pc-foot { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 4px 0; }
  .pc-foot .badge-special { margin-left: 0; }
  .pc-price { font-size: 19px; }

  .sheet {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: calc(100dvh - 24px);
    border-radius: 16px 16px 0 0; transform: translateY(100%); opacity: 1;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sheet.show { transform: translateY(0); }
  .sheet-body { padding: 20px 16px 12px; }
  .price-pair { gap: 10px; }
  .pf-input { font-size: 24px; }
  .views { grid-template-columns: minmax(0, 1fr); }
  .role-pick { grid-template-columns: minmax(0, 1fr); }
  .role-opt { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: center; padding-right: 44px; }
  .role-opt .ro-icon { grid-row: span 2; margin: 0; }
  .ro-check { top: 50%; margin-top: -10px; }
  .frow > .lbl { width: 84px; }
  .icon-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 400px) {
  .kpi-value { font-size: 24px; }
  .large-title { font-size: 28px; }
  .login-card { padding: 40px 22px 24px; }
}

/* ==========================================================================
   接入后端后新增：侧边栏收起、元/刀价格、汇率、折扣列表、注册申请、申请开通
   ========================================================================== */
.app { transition: grid-template-columns 0.3s var(--ease); }
.brand { position: relative; }
.brand-text { min-width: 0; }
.sb-toggle { margin-left: auto; width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--text-2); transition: background 0.15s, color 0.15s; }
.sb-toggle:hover { background: var(--hover); color: var(--text); }
.sb-toggle svg { width: 19px; height: 19px; }
.nav-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 980px; background: #d70015; color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.app.sb-collapsed { grid-template-columns: 68px minmax(0, 1fr); }
.sb-collapsed .sidebar { padding: 18px 0 12px; align-items: center; }
.sb-collapsed .brand { flex-direction: column; gap: 10px; padding: 4px 0 14px; }
.sb-collapsed .brand-text, .sb-collapsed .nav-label, .sb-collapsed .nav-text, .sb-collapsed .me-text, .sb-collapsed .me > svg { display: none; }
.sb-collapsed .sb-toggle { margin: 0; width: 40px; height: 40px; border-radius: 10px; }
.sb-collapsed .nav { align-items: center; gap: 4px; }
.sb-collapsed .nav-item { position: relative; width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 10px; }
.sb-collapsed .nav-item svg { width: 20px; height: 20px; }
.sb-collapsed .nav-badge { position: absolute; top: 6px; right: 5px; min-width: 0; width: 8px; height: 8px; padding: 0; font-size: 0; box-shadow: 0 0 0 2px var(--sidebar); }
.sb-collapsed .me { width: auto; padding: 4px; }

.loading { display: flex; justify-content: center; gap: 8px; padding: 120px 0; }
.loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); animation: blink 1s infinite ease-in-out both; }
.loading span:nth-child(2) { animation-delay: 0.15s; }
.loading span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }
.empty .btn { margin-top: 16px; }

.pd { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-unit { font-size: 0.55em; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.pd.lg .pd-num { font-size: 17px; font-weight: 600; }
.pd.lg .pd-unit { font-size: 12px; }
.log-end.col { flex-direction: column; align-items: flex-end; gap: 0; }
.log-end .sub { font-size: 12.5px; color: var(--text-2); }
.chain-zhe { font-size: 13px; font-weight: 600; margin-top: 2px; }
.chain-dl dt { white-space: nowrap; flex: none; }
.chain-dl dd { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.chain-dl dd span { font-size: 12px; font-weight: 400; color: var(--text-2); }
.chain-dl > div { align-items: center; }
.list .rate .sp { font-weight: 600; color: var(--accent-ink); }
.ink-s { color: var(--supplier-ink); font-weight: 600 !important; }
.ink-c { color: var(--customer-ink); font-weight: 600 !important; }

.rate-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 980px; background: var(--surface); color: var(--text); font-size: 13px; box-shadow: var(--shadow-card); white-space: nowrap; }
a.rate-pill:hover { color: var(--accent-ink); }
.rate-pill.warn { background: var(--warn-soft, rgba(255,149,0,.14)); color: var(--supplier-ink); box-shadow: none; }
.mapping-note .spacer { flex: 1; }
.notice { display: flex; align-items: center; gap: 10px; margin: -8px 0 20px; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; }
.notice svg { width: 18px; height: 18px; }
.notice span { flex: 1; }
.notice b { font-weight: 600; }

.rate-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 24px 24px; flex: 1; }
.rate-big { font: 600 44px/1.05 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rate-big span { margin-left: 8px; font: 400 14px var(--font); color: var(--text-2); letter-spacing: 0; }
.rate-meta { font-size: 13px; color: var(--text-2); }
.rate-formula { align-self: stretch; display: flex; flex-direction: column; gap: 2px; margin: 14px 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--fill-soft); font-size: 13.5px; }
.rate-formula b { font-weight: 600; }
.rate-formula span { color: var(--text-2); }
.rate-card .btn { margin-top: auto; }

.disc-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 3fr); gap: 16px; margin-bottom: 20px; }
.disc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rate-edit { display: flex; flex-direction: column; padding: 18px 20px; }
.re-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.rate-input { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; color: var(--text-2); font-size: 15px; }
.rate-input span { flex: none; white-space: nowrap; }
.rate-input input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; font: 600 36px/1.15 var(--font-display); letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.rate-input input::placeholder { color: var(--text-3); opacity: 0.5; }
.re-meta { margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.stat { display: flex; flex-direction: column; padding: 18px 20px; }
.stat-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.stat-value { margin-top: auto; padding-top: 14px; font: 600 28px/1.1 var(--font-display); letter-spacing: -0.02em; }
.stat-foot { font-size: 12.5px; color: var(--text-3); }
.d-list { --cols: minmax(0, 2.2fr) minmax(0, 1fr) 92px 92px 92px 92px 90px; margin-bottom: 20px; }
.s-list { --cols: minmax(0, 1.6fr) minmax(0, 1.6fr) 100px 92px minmax(0, 1.6fr); }
.d-list .card-head, .s-list .card-head { padding-bottom: 12px; }
.list-row.static { cursor: default; }
.list-row.static:hover, .list-row.static:active { background: transparent; }
.show-m { display: none; }

.group-title.split { display: flex; justify-content: space-between; gap: 12px; }
.pf-input input { flex: 1; }
.pf-unit { font: 400 14px var(--font); color: var(--text-2); letter-spacing: 0; white-space: nowrap; }
.pf-zhe { display: block; min-height: 20px; font-size: 14px; font-weight: 600; color: var(--text); }
.pf-hint { display: block; }
.pick-chip.strong { font-weight: 600; }
.pick-sep { width: 1px; height: 20px; align-self: center; background: var(--sep-strong); }
.ov-price { width: 132px; color: var(--text-2); }
.ov-price span { font-size: 12px; white-space: nowrap; }
.vc-val { display: flex; flex-direction: column; align-items: flex-end; }
.vc-val span { font-size: 12px; color: var(--text-2); }
.banner { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; }
.banner svg { width: 18px; height: 18px; flex: none; }
.group-textarea { display: block; width: 100%; box-sizing: border-box; resize: vertical; min-height: 84px; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--group-bg); outline: none; font: inherit; line-height: 1.5; color: var(--text); }
.group-textarea:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }

.a-list { --cols: minmax(0, 1.1fr) 64px minmax(0, 2.3fr) minmax(0, 1.2fr) 76px 76px 220px; }
.a-list .list-row { min-height: 78px; padding-top: 10px; padding-bottom: 10px; }
.contact-list { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact { display: flex; align-items: center; gap: 8px; min-width: 0; }
.contact .ct { flex: none; width: 62px; font-size: 12px; color: var(--text-2); }
.contact .ch { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }
.copy-btn { flex: none; height: 24px; padding: 0 8px; border-radius: 980px; background: var(--fill-soft); color: var(--accent-ink); font-size: 12px; font-weight: 500; }
.copy-btn:hover { background: var(--fill); }
.note-cell { font-size: 13px; line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.danger-text { color: var(--bad); }
.badge-warn { background: var(--supplier-soft); color: var(--supplier-ink); }
.badge-info { background: var(--accent-soft); color: var(--accent-ink); }

.pc-foot { padding-top: 16px; }
.pc-zhe { padding: 2px 6px 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pc-unit { margin-left: 4px; }
.dh-price .unit { margin-left: 6px; }
.dh-zhe { margin-top: 4px; font-size: 15px; font-weight: 600; }
.dh-zhe span { margin-left: 8px; font-size: 12.5px; font-weight: 400; color: var(--text-2); }

.login-apply { width: 100%; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--sep); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.apply-card { text-align: left; padding-top: 28px; width: min(460px, 100%); }
.apply-card h1 { margin-top: 18px; }
.apply-card .lead { margin-bottom: 22px; }
.back-link { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; }
.back-link svg { width: 18px; height: 18px; stroke-width: 2.2; }
.apply-form { display: flex; flex-direction: column; gap: 18px; }
.af-block { display: flex; flex-direction: column; gap: 8px; }
.af-label { font-size: 13px; color: var(--text-2); }
.af-block .seg { display: grid; grid-template-columns: 1fr 1fr; }
.af-block textarea { resize: none; padding: 12px 16px; border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep-strong); outline: none; font: inherit; line-height: 1.5; color: var(--text); }
.af-block textarea:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
.apply-form .login-error { margin: -6px 0 -6px; min-height: 20px; }
.apply-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 0 8px; }
.apply-done h1 { margin-top: 20px; }
.done-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--good-soft); color: var(--good); }
.done-icon svg { width: 32px; height: 32px; stroke-width: 2.4; }

@media (max-width: 1100px) {
  .disc-top { grid-template-columns: minmax(0, 1fr); }
  .a-list { --cols: minmax(0, 1.2fr) 72px minmax(0, 1.7fr) 76px 230px; }
  .a-list .list-head > :nth-child(4), .a-list .list-row > :nth-child(4),
  .a-list .list-head > :nth-child(5), .a-list .list-row > :nth-child(5) { display: none; }
}
@media (max-width: 860px) {
  .app.sb-collapsed { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .disc-stats { grid-template-columns: minmax(0, 1fr); }
  .d-list { --cols: minmax(0, 1fr) auto auto auto auto; }
  .s-list { --cols: minmax(0, 1fr) auto auto; }
  .a-list { --cols: minmax(0, 1fr); }
  .a-list .list-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .a-list .contact-list, .a-list .row-actions { grid-column: 1 / -1; }
  .a-list .row-actions { justify-content: flex-start; }
  .show-m { display: inline; }
  .rate-pill { height: 30px; font-size: 12.5px; }
  .toolbar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .toolbar .seg::-webkit-scrollbar { display: none; }
  .toolbar .seg button { padding: 0 11px; }
}

/* ==========================================================================
   供需对接（客户需求 / 供应商供货能力 / 管理员汇总）
   ========================================================================== */
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.small { font-size: 12px; }
.frow .suffix { flex: none; font-size: 14px; color: var(--text-2); }
.sup-cell, .mq { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.sup-cell .sub, .mq-sub { max-width: 100%; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-main { font-size: 14px; white-space: nowrap; }
.mq-main b { font-weight: 600; font-variant-numeric: tabular-nums; }

.mstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.mstat { display: flex; flex-direction: column; padding: 16px 18px; text-align: left; transition: transform 0.3s var(--ease), box-shadow 0.2s; }
.mstat:hover { transform: translateY(-2px); }
.mstat.on { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow-card); }
.mstat-value { margin: 10px 0 2px; font: 600 28px/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mstat-value small { margin-left: 4px; font: 400 13px var(--font); letter-spacing: 0; color: var(--text-3); }
.dot.m-no_supply { background: var(--bad); }
.dot.m-short { background: var(--supplier); }
.dot.m-no_demand { background: var(--accent); }
.dot.m-ok { background: var(--good); }
.sub-chips { margin-bottom: 14px; }

.m-list { --cols: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.5fr) 92px 16px; }
.r-list { --cols: minmax(0, 1.3fr) minmax(0, 1.4fr) 104px minmax(0, 1fr) 76px 176px; }
.w-list { --cols: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.8fr) minmax(0, 1fr) 76px 176px; }
.r-list .list-row, .w-list .list-row { min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.o-list { --cols: minmax(0, 2fr) minmax(0, 1fr) 120px 230px; }
.n-list { --cols: minmax(0, 2fr) 120px minmax(0, 1.4fr) 90px 16px; margin-bottom: 20px; }
.wl-list { --cols: minmax(0, 1.6fr) 120px minmax(0, 1.4fr) 104px 72px; }
.n-list .card-head, .wl-list .card-head { padding-bottom: 12px; }
.wl-list .list-row + .list-row::before { left: 24px; }
.row-actions .badge { align-self: center; }
.link-cell { margin: -6px -8px; padding: 6px 8px; border-radius: 10px; text-align: left; transition: background 0.15s; }
.link-cell:hover { background: var(--hover); }

.prod-card { position: relative; }
.pc-need { position: absolute; top: 20px; right: 20px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 980px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 113, 227, 0.28); }
.pc-need svg { width: 13px; height: 13px; stroke-width: 2.6; }

.mini-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.mini-head > div { flex: 1; min-width: 0; }
.mini-head .mh-name { font: 600 17px/1.3 var(--font-display); letter-spacing: -0.015em; }
.mini-head .mh-sub { margin-top: 2px; font-size: 13px; }
.msum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.msum-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--group-bg); }
.msum-item b { font: 600 22px/1.2 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.msum-item > span:last-child { font-size: 12.5px; color: var(--text-3); }
.mp-row { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; }
.mp-row + .mp-row::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--sep); }
.mp-main { flex: 1; min-width: 0; }
.mp-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.mp-person { flex: none; font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.mp-name .badge { margin-left: auto; flex: none; }
.mp-sub { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.mp-contacts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.mp-contacts .contact .ct { width: auto; }
.mp-actions { display: flex; gap: 6px; flex: none; align-self: center; }

@media (max-width: 1100px) {
  .mstats { gap: 12px; }
  .r-list { --cols: minmax(0, 1.2fr) minmax(0, 1.3fr) 104px 176px; }
  .w-list { --cols: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.7fr) 176px; }
  .r-list .list-head > :nth-child(4), .r-list .list-row > :nth-child(4),
  .r-list .list-head > :nth-child(5), .r-list .list-row > :nth-child(5),
  .w-list .list-head > :nth-child(4), .w-list .list-row > :nth-child(4),
  .w-list .list-head > :nth-child(5), .w-list .list-row > :nth-child(5) { display: none; }
}
@media (max-width: 860px) {
  .mstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .m-list, .n-list { --cols: minmax(0, 1fr) auto 14px; }
  .m-list .mq { align-items: flex-end; text-align: right; }
  .wl-list { --cols: minmax(0, 1fr) auto auto; }
  .wl-list .list-row + .list-row::before { left: 16px; }
  .o-list { --cols: minmax(0, 1fr) auto; }
  .o-list .list-row { row-gap: 10px; padding-top: 10px; padding-bottom: 12px; }
  .o-list .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .r-list, .w-list { --cols: minmax(0, 1fr); }
  .r-list .list-row, .w-list .list-row { row-gap: 10px; }
  .r-list .row-actions, .w-list .row-actions { justify-content: flex-start; }
  .mstat { padding: 14px; }
  .mstat .stat-foot { display: none; }
  .pc-need { top: 14px; right: 14px; }
  .mp-row { flex-wrap: wrap; }
  .mp-actions { width: 100%; padding-left: 48px; }
}

/* ==========================================================================
   报价单 · 导出 · 邮件通知 · 过期提醒
   ========================================================================== */
.warn-text { color: var(--supplier-ink); }
.notice .btn { flex: none; }
div.notice { cursor: default; }
.banner.good { background: var(--good-soft); color: var(--good); }
.banner.warn { background: var(--supplier-soft); color: var(--supplier-ink); }
.banner b { font-weight: 600; }
.mail-tip { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; line-height: 1.5; }
.mail-tip svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.mail-tip b { font-weight: 600; }
.mail-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.mail-stats .stat { padding: 14px 16px; }
.mail-stats .stat-value { padding-top: 8px; font-size: 24px; }
.mail-stats .stat-value small { font: 400 13px var(--font); color: var(--text-3); }
.group-title.gap { margin-top: 22px; }
.preset-row { padding: 0 4px 12px; }
.pick-chip.on:not(:has(svg)) { padding-left: 13px; }
.send-row { justify-content: space-between; gap: 12px; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.sr-main { display: flex; flex-direction: column; min-width: 0; }
.sr-err { font-size: 12px; color: var(--bad); }
.sr-end { display: flex; align-items: center; gap: 10px; flex: none; font-size: 12.5px; }
.quote-text { min-height: 300px; font-size: 14px; line-height: 1.65; }
.ex-row { min-height: 58px; color: var(--text); }
.ex-row:hover { color: var(--text); }
.ex-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.ex-icon svg { width: 18px; height: 18px; }
.ex-main { display: flex; flex-direction: column; min-width: 0; }
.ex-sub { font-size: 12px; color: var(--text-3); }
.ex-row .chev svg { width: 17px; height: 17px; }

.frow > .lbl.wide { width: auto; min-width: 92px; margin-right: 12px; }
[data-form=freq] select { text-align: right; text-align-last: right; }

/* 更新汇总 */
.gt-ver { flex: none; min-width: 38px; padding: 1px 6px; border-radius: 6px; background: var(--fill-soft); font-size: 12px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.cl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-head h2 { font: 600 20px/1.3 var(--font-display); letter-spacing: -0.02em; }
.cl-badge { padding: 3px 10px; border-radius: 980px; background: var(--fill); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.cl-badge.latest { background: var(--accent); color: var(--on-accent); }
.cl-date { margin-left: auto; font-size: 13px; color: var(--text-3); }
.cl-summary { color: var(--text-2) !important; }
.cl-items { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cl-items li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.65; }
.cl-items .badge { flex: none; margin-top: 2px; }
.cl-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) {
  .cl-figs { grid-template-columns: minmax(0, 1fr); }
  .cl-date { margin-left: 0; width: 100%; }
}

/* 内部报价表：平台信息 */
.i-chev { display: inline-grid; place-items: center; width: 16px; margin-right: 6px; color: var(--text-3); transition: transform 0.2s var(--ease); vertical-align: -2px; }
.i-chev svg { width: 14px; height: 14px; stroke-width: 2.4; }
.i-row.open .i-chev { transform: rotate(90deg); color: var(--accent); }
.i-plat-n { color: var(--accent-ink); font-weight: 500; }
.i-plats { display: flex; flex-direction: column; gap: 10px; padding: 4px 20px 18px 46px; background: var(--hover); }
.plat { padding: 14px 16px 12px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep); }
.plat-head { display: flex; align-items: center; gap: 10px; }
.plat-head b { font-weight: 600; }
.plat-price { padding: 2px 9px; border-radius: 980px; background: var(--customer-soft); color: var(--customer-ink); font-size: 12.5px; font-weight: 600; }
.plat-head .spacer { flex: 1; }
.plat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 10px 0 0; }
.pf { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.pf.wide { grid-column: 1 / -1; }
.pf dt { flex: none; width: 70px; font-size: 12.5px; color: var(--text-3); }
.pf dd { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; flex-wrap: wrap; }
.pf-v { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.pf-v a { color: var(--accent-ink); }
.pf-v.pre { white-space: pre-wrap; color: var(--text-2); }
.plat-foot { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.plat-empty { padding: 10px 2px; font-size: 13.5px; }
.plat-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plat-warn { font-size: 12px; color: var(--supplier-ink); }
@media (max-width: 720px) {
  .i-plats { padding: 4px 12px 14px; }
  .plat-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 使用教程 */
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.guide-toc { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.gt-title { padding: 0 10px 8px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.gt-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-align: left; font-size: 14px; color: var(--text-2); transition: background 0.15s, color 0.15s; }
.gt-item:hover { background: var(--hover); color: var(--text); }
.gt-num, .gc-num { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: 600; font-variant-numeric: tabular-nums; }
.gt-num { width: 22px; height: 22px; background: var(--fill-soft); font-size: 12px; }
.guide-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; max-width: 860px; }
.guide-summary { padding: 20px 24px; }
.gs-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.gs-title svg { width: 20px; height: 20px; color: var(--good); }
.guide-summary ul { margin: 10px 0 0; padding-left: 22px; color: var(--text-2); line-height: 1.9; }
.guide-ch { padding: 24px 28px 26px; scroll-margin-top: 80px; }
.gc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gc-head h2 { font: 600 20px/1.3 var(--font-display); letter-spacing: -0.02em; }
.gc-num { width: 30px; height: 30px; background: var(--accent); color: var(--on-accent); font-size: 14px; }
.guide-ch p { margin: 8px 0 0; line-height: 1.75; color: var(--text); }
.guide-ch b { font-weight: 600; }
.gc-steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: gs; }
.gc-steps li { position: relative; padding: 7px 0 7px 38px; line-height: 1.6; counter-increment: gs; }
.gc-steps li::before { content: counter(gs); position: absolute; left: 4px; top: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.gc-fig { margin: 18px 0 0; }
.gc-img { display: block; width: 100%; padding: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--sep), 0 8px 24px -12px rgba(0, 0, 0, 0.25); cursor: zoom-in; background: #f5f5f7; }
.gc-img img { display: block; width: 100%; height: auto; }
.gc-fig figcaption { margin-top: 8px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.gc-tip { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; line-height: 1.6; }
.gc-tip svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.gc-faq { border-top: 1px solid var(--sep); }
.gc-faq:first-of-type { margin-top: 8px; }
.gc-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 500; cursor: pointer; list-style: none; }
.gc-faq summary::-webkit-details-marker { display: none; }
.gc-faq summary svg { width: 16px; height: 16px; color: var(--text-3); transition: transform 0.2s; flex: none; }
.gc-faq[open] summary svg { transform: rotate(180deg); }
.gc-faq p { margin: -4px 0 14px; color: var(--text-2); }
.guide-notice a { font-weight: 600; text-decoration: underline; }
.guide-notice .btn svg { width: 16px; height: 16px; }
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, 0.82); opacity: 0; transition: opacity 0.25s; cursor: zoom-out; }
.lightbox.show { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 12px; object-fit: contain; background: #fff; }
.lightbox figcaption { color: rgba(255, 255, 255, 0.85); font-size: 13px; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; }
.lb-close svg { width: 18px; height: 18px; }
@media (max-width: 1000px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide-toc { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .guide-toc::-webkit-scrollbar { display: none; }
  .gt-title { display: none; }
  .gt-item { flex: none; padding: 7px 12px 7px 8px; border-radius: 980px; background: var(--fill-soft); white-space: nowrap; }
}
@media (max-width: 720px) {
  .guide-ch { padding: 20px 16px; }
  .gc-head h2 { font-size: 18px; }
  .guide-toc { width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px; }
}

/* 改价 / 新品时选择通知谁 */
.notify-pick { border-top: 1px solid var(--sep); padding-top: 4px; }
.np-label { padding: 10px 16px 0; font-size: 12px; color: var(--text-3); }
.notify-pick .pick { padding-top: 8px; }

/* 内部报价表 */
.i-list { --cols: minmax(0, 2.4fr) 112px 112px 90px 64px 72px; margin-bottom: 16px; }
.i-list .card-head { padding-bottom: 12px; }
.i-list .list-head .num > span { display: inline-flex; align-items: center; gap: 5px; }
.i-list .list-row { min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.i-list .list-row + .list-row::before { left: 24px; }
.i-cat { display: flex; align-items: center; gap: 12px; }
.i-special { margin-top: 2px; font-size: 12px; color: var(--accent-ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.list .amt.neg { color: var(--bad); }
.inline-pick { padding: 0; }
.frow-link > svg:first-child { width: 20px; height: 20px; color: var(--accent); flex: none; }
a.frow-link, a.frow-link:hover { color: var(--text); }
.m-only { display: none; }
@media (max-width: 860px) {
  .m-only { display: block; }
}

@media (max-width: 720px) {
  .i-list { --cols: minmax(0, 1fr) auto auto; }
  .i-list .list-row + .list-row::before { left: 16px; }
  .notice { flex-wrap: wrap; }
  .mail-stats { gap: 8px; }
  .mail-stats .stat { padding: 12px; }
  .mail-stats .stat-foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
