/* ============================================================
   app.css — 出海帮 · 跨境卖家作业台 · 桌面优先设计系统
   ------------------------------------------------------------
   设计基准：**电脑为主**。
   - 三栏工作台：左侧持久导航 / 顶栏 / 内容区，底部状态栏
   - 1280px 起为基准布局，1440 / 1920 为舒适区（不缩小字号，只加宽）
   - 1024px 以下才折叠导航（此时已是"窄桌面"，不是手机）
   - 表格为主操作面：吸顶表头、行悬浮、行选中、排序、分页
   - 所有交互元素给出可见焦点环；键盘可完成主要操作
   ============================================================ */

:root {
  /* —— 品牌与语义色 —— */
  /* 品牌主色：远洋青（深）—— 全国通用，不带地域色；
     与 --warn 的琥珀色明确分开，避免「警告长得像品牌」。 */
  --brand: #0e6f66;
  --brand-ink: #0a544e;
  --brand-soft: #eef6f4;
  /* 交互强调色：比品牌色亮一档，用于可点元素与中等强调按钮 */
  --accent: #0d9488;
  --accent-ink: #0f766e;
  --accent-soft: #f0fdfa;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --info: #1d4ed8;
  --info-soft: #eff6ff;

  /* —— 桌面中性色（比移动端更冷、更密） —— */
  --bg: #f1f3f5;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f4f5f7;
  --ink: #171a1f;
  --ink-2: #4a5058;
  --ink-3: #7b828c;
  --line: #dfe3e8;
  --line-2: #eceff2;

  /* —— 导航栏（深色，与内容区形成明确的桌面工作区分隔） —— */
  --nav-bg: #1c2128;
  --nav-bg-2: #252c35;
  --nav-ink: #c9d1d9;
  --nav-ink-dim: #8b949e;
  --nav-active: #2d3748;
  --nav-brand: #5eead4;

  /* —— 尺寸 —— */
  --nav-w: 236px;
  --nav-w-collapsed: 60px;
  --topbar-h: 48px;
  --statusbar-h: 28px;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;

  /* —— 阴影（桌面层级感） —— */
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-2: 0 2px 8px rgba(16, 24, 40, .08);
  --shadow-3: 0 12px 32px rgba(16, 24, 40, .16);
  --shadow-pop: 0 8px 24px rgba(16, 24, 40, .18);

  --font: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;               /* 桌面应用：整页不滚动，滚动发生在内容区 */
}

body {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* —— 可见焦点环（键盘可达性） —— */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ============================================================
   应用外壳
   ============================================================ */
#app {
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  grid-template-rows: 100%;
  height: 100vh;
  transition: grid-template-columns .16s ease;
}
#app.nav-collapsed { grid-template-columns: var(--nav-w-collapsed) 1fr; }

/* ---------- 左侧导航 ---------- */
.nav {
  background: var(--nav-bg);
  color: var(--nav-ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #0d1117;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar-h);
  padding: 0 14px;
  border-bottom: 1px solid var(--nav-bg-2);
  flex: 0 0 auto;
}
.nav-brand .mark {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  background: transparent;
  overflow: visible;
}
.nav-brand .mark img { width: 100%; height: 100%; display: block; border-radius: 7px; object-fit: contain; }
.nav-brand .txt { overflow: hidden; white-space: nowrap; }
.nav-brand .txt b { display: block; color: #fff; font-size: 13px; letter-spacing: .2px; }
.nav-brand .txt span { display: block; color: var(--nav-ink-dim); font-size: 11px; }
#app.nav-collapsed .nav-brand .txt { display: none; }
#app.nav-collapsed .nav-brand { justify-content: center; padding: 0; }

.nav-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 0 20px;
}
.nav-scroll::-webkit-scrollbar { width: 8px; }
.nav-scroll::-webkit-scrollbar-thumb { background: #333b45; border-radius: 4px; }

.nav-group { margin-bottom: 4px; }
.nav-group-title {
  padding: 12px 16px 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--nav-ink-dim);
  text-transform: uppercase;
}
#app.nav-collapsed .nav-group-title {
  text-align: center; padding: 12px 0 5px;
  font-size: 0; overflow: hidden;
}
#app.nav-collapsed .nav-group-title::after {
  content: '···'; font-size: 11px; letter-spacing: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 14px;
  margin: 1px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--nav-ink);
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  position: relative;
}
.nav-item:hover { background: var(--nav-bg-2); color: #fff; }
.nav-item .ico { flex: 0 0 16px; width: 16px; text-align: center; font-size: 13px; opacity: .9; }
.nav-item .lbl { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .kbd-hint {
  font-family: var(--mono); font-size: 10px; color: var(--nav-ink-dim);
  border: 1px solid #39414b; border-radius: 3px; padding: 0 4px; opacity: 0;
  transition: opacity .12s;
}
.nav-item:hover .kbd-hint { opacity: 1; }
.nav-item.active {
  background: var(--nav-active);
  color: #fff;
  font-weight: 600;
}
.nav-item.active::before {
  content: ''; position: absolute; left: -8px; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--nav-brand);
}
.nav-item .badge {
  background: var(--danger); color: #fff; border-radius: 999px;
  font-size: 10px; padding: 0 5px; line-height: 15px; font-weight: 700;
}
#app.nav-collapsed .nav-item { justify-content: center; padding: 8px 0; }
#app.nav-collapsed .nav-item .lbl,
#app.nav-collapsed .nav-item .kbd-hint,
#app.nav-collapsed .nav-item .badge { display: none; }

/* 折叠态：底部按钮也收成图标，否则「命令 / 退出」会被挤成竖排文字 */
#app.nav-collapsed .nav-foot .btn { justify-content: center; padding: 6px 0; gap: 0; }
#app.nav-collapsed .nav-foot .btn .lbl { display: none; }

.nav-foot {
  flex: 0 0 auto;
  border-top: 1px solid var(--nav-bg-2);
  padding: 8px;
}
.nav-foot .btn {
  width: 100%; justify-content: flex-start;
  background: transparent; color: var(--nav-ink-dim);
  border: 0; cursor: pointer; font: inherit; font-size: 12px;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: var(--radius-sm);
}
.nav-foot .btn:hover { background: var(--nav-bg-2); color: #fff; }

/* ---------- 主区域 ---------- */
.main {
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr var(--statusbar-h);
  overflow: hidden;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  z-index: 5;
}
.topbar .title {
  font-size: 14px; font-weight: 700; letter-spacing: .1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar .sub { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.topbar .spacer { flex: 1 1 auto; }

.omni {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 9px;
  height: 30px;
  min-width: 240px;
  cursor: text;
}
.omni:hover { border-color: #c3cad2; background: #fff; }
.omni .ico { color: var(--ink-3); font-size: 12px; }
.omni .txt { flex: 1; color: var(--ink-3); font-size: 12.5px; }
.omni .kbd {
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; background: #fff;
}

.conn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-2);
  padding: 3px 9px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--line);
  cursor: pointer;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; flex: 0 0 7px; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(21,128,61,.15); }
.dot.off { background: var(--danger); box-shadow: 0 0 0 3px rgba(185,28,28,.13); }
.dot.warn { background: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,.15); }

.userchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 9px 3px 4px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font: inherit; font-size: 12px; color: var(--ink);
}
.userchip:hover { background: var(--surface-3); }
.userchip .av {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700;
}

/* ---------- 内容区 ---------- */
.content {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 20px 28px;
  scroll-behavior: smooth;
}
.content::-webkit-scrollbar { width: 12px; height: 12px; }
.content::-webkit-scrollbar-thumb { background: #cbd2d9; border-radius: 6px; border: 3px solid var(--bg); }
.content::-webkit-scrollbar-thumb:hover { background: #adb6bf; }

.page-head {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 16px;
}
.page-head h1 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .1px; }
.page-head .desc { color: var(--ink-3); font-size: 12.5px; margin-top: 3px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 状态栏 ---------- */
.statusbar {
  display: flex; align-items: center; gap: 16px;
  padding: 0 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-3);
  overflow: hidden; white-space: nowrap;
}
.statusbar .sb { display: inline-flex; align-items: center; gap: 5px; }
.statusbar .sb b { color: var(--ink-2); font-weight: 600; }
.statusbar .push { margin-left: auto; }

/* ============================================================
   通用组件
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  margin-bottom: 16px;
  overflow: hidden;
}
.card > header {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
}
.card > header h2 { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.card > header .desc { font-size: 11.5px; color: var(--ink-3); }
.card > header .tools { margin-left: auto; display: flex; gap: 7px; align-items: center; }
.card .body { padding: 16px; }
.card .body.tight { padding: 0; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1500px) { .g6 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 1280px) { .g4, .g5 { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* KPI */
.kpi {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 13px 15px; box-shadow: var(--shadow-1);
  position: relative; overflow: hidden;
}
.kpi::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); opacity: .8;
}
.kpi.warn::after { background: var(--warn); }
.kpi.danger::after { background: var(--danger); }
/* 仪表盘分色：钱=绿、待办=琥珀、风险=红，让一眼知道先看哪里 */
.kpi.money { background: linear-gradient(180deg, #ffffff 0%, #f3fbf7 100%); border-color: #cfe8dd; }
.kpi.money::after { background: var(--accent); }
.kpi.money .val { color: var(--accent-ink); }
.kpi.todo { background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%); border-color: #fde4b0; }
.kpi.todo::after { background: var(--warn); }
.kpi.todo .val { color: var(--warn); }
.kpi.risk { background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%); border-color: #fecaca; }
.kpi.risk::after { background: var(--danger); }
.kpi.risk .val { color: var(--danger); }
.kpi .label { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.kpi .val { font-size: 25px; font-weight: 800; letter-spacing: -.4px; margin-top: 2px; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi .val.accent { color: var(--accent-ink); }
.kpi .sub { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.kpi.clickable { cursor: pointer; }
.kpi.clickable:hover { border-color: #c8cfd6; box-shadow: var(--shadow-2); }

/* 按钮 */
button { font-family: inherit; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 12px; font-size: 12.5px; font-weight: 600;
  /* 默认按钮 = 次操作：白底描边。这样「主操作」才是页面上唯一抢眼的那个，
     不会出现「每个按钮都是一块实心色」的视觉噪音。 */
  cursor: pointer; background: var(--surface); color: var(--ink);
  white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn:hover { background: var(--surface-3); border-color: #c3cad2; }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-3); border-color: #c3cad2; }
.btn.teal { background: var(--accent); border-color: transparent; color: #fff; }
.btn.teal:hover { background: var(--accent-ink); border-color: transparent; }
.btn.danger { background: var(--danger); border-color: transparent; color: #fff; }
.btn.danger:hover { background: #991b1b; border-color: transparent; }
.btn.sm { padding: 3px 9px; font-size: 11.5px; }
.btn.block { width: 100%; justify-content: center; }
.btn .ico { font-size: 12px; }

/* 表单：桌面密度 —— 标签左、控件右 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}
.form-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.c1 { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.span2 { grid-column: span 2; }
.field.span3 { grid-column: span 3; }
.field > label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 11px; color: var(--ink-3); }

input[type=text], input[type=password], input[type=number], input[type=date], input[type=email], select, textarea {
  width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit; font-size: 12.5px;
  background: #fff; color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
input:hover, select:hover, textarea:hover { border-color: #c3cad2; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(180,83,9,.12);
}
input:disabled, select:disabled, textarea:disabled { background: var(--surface-3); color: var(--ink-3); cursor: not-allowed; }
textarea { resize: vertical; min-height: 88px; font-family: var(--mono); font-size: 12px; line-height: 1.6; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path fill='%237b828c' d='M0 0h10L5 6z'/></svg>"); background-repeat: no-repeat; background-position: right 9px center; padding-right: 26px; }

.check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.check input { width: auto; margin: 0; }

/* ============================================================
   数据表（桌面主操作面）
   ============================================================ */
.table-wrap { overflow: auto; max-height: calc(100vh - 320px); }
table.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
table.dt thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface-2);
  text-align: left; font-weight: 600; font-size: 11.5px; color: var(--ink-2);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.dt thead th.sortable { cursor: pointer; user-select: none; }
table.dt thead th.sortable:hover { background: #eef1f4; color: var(--ink); }
table.dt thead th .sort { margin-left: 5px; color: var(--ink-3); font-size: 10px; }
table.dt thead th.sorted .sort { color: var(--brand); }
table.dt tbody td {
  padding: 7px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle;
}
table.dt tbody tr:nth-child(even) { background: #fcfcfd; }
table.dt tbody tr:hover { background: #f4f7f9; }
table.dt tbody tr.selected { background: var(--brand-soft); }
table.dt tbody tr.clickable { cursor: pointer; }
table.dt td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12px; }
table.dt td.mono { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
table.dt td.strong { font-weight: 600; }
table.dt td.actions { white-space: nowrap; text-align: right; }
table.dt td.actions .btn { margin-left: 4px; }
table.dt .empty-cell { text-align: center; color: var(--ink-3); padding: 28px 12px; font-size: 12.5px; }

.dt-toolbar {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-bottom: 1px solid var(--line-2);
  background: var(--surface); flex-wrap: wrap;
}
.dt-toolbar .search {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 8px; height: 28px; min-width: 200px; background: #fff;
}
.dt-toolbar .search input {
  border: 0; padding: 0; height: 26px; font-size: 12.5px; background: transparent;
}
.dt-toolbar .search input:focus { box-shadow: none; }
.dt-toolbar .count { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.dt-toolbar .count b { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.dt-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-top: 1px solid var(--line-2);
  background: var(--surface-2); font-size: 12px; color: var(--ink-3);
}
.dt-foot .pager { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.dt-foot .pager button {
  min-width: 26px; height: 25px; padding: 0 7px;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  font-size: 11.5px; cursor: pointer; color: var(--ink-2);
}
.dt-foot .pager button:hover:not(:disabled) { background: var(--surface-3); border-color: #c3cad2; }
.dt-foot .pager button:disabled { opacity: .4; cursor: not-allowed; }
.dt-foot .pager button.current { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.dt-foot select { height: 25px; padding: 0 22px 0 7px; font-size: 11.5px; width: auto; }

/* ============================================================
   徽标 / 提示
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 1px 8px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  background: var(--surface-3); color: var(--ink-2);
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.no { background: var(--danger-soft); color: var(--danger); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); }
.tag {
  display: inline-block; background: #eef2ff; color: #3730a3;
  border-radius: 4px; padding: 1px 6px; font-size: 11px; margin: 0 3px 3px 0;
}
.kbd {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-2);
  background: var(--surface-3); border: 1px solid var(--line);
  border-radius: 3px; padding: 1px 5px;
}
code { font-family: var(--mono); font-size: 11.5px; background: var(--surface-3); padding: 1px 4px; border-radius: 3px; }

.alert {
  border-radius: var(--radius-sm); padding: 9px 12px;
  font-size: 12.5px; margin-bottom: 10px; border: 1px solid transparent;
  display: flex; gap: 8px; align-items: flex-start;
}
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; }
.alert.no, .alert.danger { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: #bbf7d0; }
.alert.info { background: var(--info-soft); color: var(--info); border-color: #bfdbfe; }
.alert:last-child { margin-bottom: 0; }
.alert .ico { flex: 0 0 auto; }

/* Toast（替代 alert()，不阻塞、不冻结界面） */
.toasts {
  position: fixed; right: 18px; bottom: calc(var(--statusbar-h) + 14px);
  z-index: 200; display: flex; flex-direction: column; gap: 8px;
  max-width: 380px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--ink-3);
  border-radius: var(--radius); box-shadow: var(--shadow-pop);
  padding: 9px 13px; font-size: 12.5px; color: var(--ink);
  display: flex; gap: 9px; align-items: flex-start;
  animation: toast-in .16s ease-out;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
.toast .msg { flex: 1; }
.toast .close { cursor: pointer; color: var(--ink-3); border: 0; background: none; font-size: 15px; line-height: 1; padding: 0 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ============================================================
   模态框
   ============================================================ */
.modal-back {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(16,24,40,.42);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fade-in .12s ease-out;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  width: 560px; max-width: 100%; max-height: 86vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.modal.wide { width: 860px; }
.modal > header {
  padding: 13px 18px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 12px;
}
.modal > header h3 { margin: 0; font-size: 14px; font-weight: 700; }
.modal > header .x {
  margin-left: auto; cursor: pointer; border: 0; background: none;
  font-size: 18px; line-height: 1; color: var(--ink-3);
}
.modal > header .x:hover { color: var(--ink); }
.modal .mbody { padding: 18px; overflow-y: auto; }
.modal > footer {
  padding: 12px 18px; border-top: 1px solid var(--line-2);
  display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2);
}

/* 命令面板 */
.cmdk-back {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(16,24,40,.38);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  animation: fade-in .1s ease-out;
}
.cmdk {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3); width: 620px; max-width: 92vw;
  overflow: hidden; display: flex; flex-direction: column;
}
.cmdk input {
  border: 0; border-radius: 0; padding: 13px 16px; font-size: 14px;
  border-bottom: 1px solid var(--line-2);
}
.cmdk input:focus { box-shadow: none; }
.cmdk .list { max-height: 46vh; overflow-y: auto; }
.cmdk .item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; cursor: pointer; font-size: 13px;
}
.cmdk .item:hover, .cmdk .item.active { background: var(--brand-soft); }
.cmdk .item .ico { width: 18px; text-align: center; }
.cmdk .item .group { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.cmdk .empty { padding: 20px; text-align: center; color: var(--ink-3); font-size: 12.5px; }

/* 登录页（独立全屏，不套工作台外壳） */
.auth-shell {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1100px 620px at 18% -8%, #1f3f3b 0%, #16211f 52%, #0d1211 100%);
  padding: 24px;
}
.auth-card {
  background: #fff; border-radius: 18px; padding: 32px 34px;
  width: 424px; max-width: 100%;
  box-shadow: 0 28px 70px rgba(0,0,0,.34), 0 2px 0 rgba(255,255,255,.5) inset;
}
.auth-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.auth-logo {
  width: 52px; height: 52px; flex: 0 0 52px;
  background: transparent;
}
.auth-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.auth-head-txt { min-width: 0; }
.auth-card h2 { margin: 0 0 3px; font-size: 21px; color: var(--ink); letter-spacing: .1px; }
.auth-card p.lead { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.auth-tabs button {
  border: 0; background: none; padding: 7px 12px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent;
}
.auth-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.auth-card .btn { width: 100%; justify-content: center; padding: 9px; font-size: 13.5px; }
.qrbox {
  width: 190px; height: 190px; border: 2px dashed var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 12px; text-align: center; margin: 0 auto 10px; overflow: hidden;
  background: var(--surface-2);
}
.qrbox img { width: 100%; height: 100%; object-fit: contain; }

/* 等待开通：三步引导，让人知道先付款、再通知、最后登录 */
.open-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ostep { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.ostep .n { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.ostep .obody { flex: 1; min-width: 0; }
.ostep .obody b { font-size: 14px; }
.ostep .qrbox { width: 160px; height: 160px; margin: 8px 0; }

/* ============================================================
   杂项
   ============================================================ */
.hint { font-size: 11.5px; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.row.tight { gap: 5px; }
.grow { flex: 1 1 auto; }
.spacer { flex: 1 1 auto; }
.hidden { display: none !important; }
.spin {
  display: inline-block; width: 12px; height: 12px; vertical-align: -2px;
  border: 2px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  background: linear-gradient(90deg, #eef1f4 25%, #f6f8fa 37%, #eef1f4 63%);
  background-size: 400% 100%; animation: shimmer 1.2s ease infinite;
  border-radius: 4px; height: 13px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

pre.code {
  background: #1c2128; color: #e6edf3; padding: 12px 14px;
  border-radius: var(--radius-sm); overflow-x: auto;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.65;
  margin: 0; white-space: pre-wrap; word-break: break-word;
}

.goods-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; background: var(--surface-2);
}
.goods-box h3 { margin: 0 0 8px; font-size: 13px; color: var(--accent-ink); }

/* 树状图（上下游） */
.tree { display: flex; flex-direction: column; gap: 12px; }
.tree-node {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 13px; background: var(--surface-2);
}
.tree-node .tn-head { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13px; }
.tree-node .tn-body { margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.tree-arrow { text-align: center; color: var(--ink-3); font-size: 14px; }

/* 步骤轨迹 */
.steps { display: flex; flex-wrap: wrap; gap: 5px; }
.step-pill {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 600;
  background: var(--ok-soft); color: var(--ok);
}
.step-pill.fail { background: var(--danger-soft); color: var(--danger); }

/* 窄桌面（≤1024）：折叠导航。这是桌面小窗，不是手机。 */
@media (max-width: 1024px) {
  #app { grid-template-columns: var(--nav-w-collapsed) 1fr; }
  #app .nav-brand .txt { display: none; }
  #app .nav-item .lbl { display: none; }
  #app .nav-group-title { font-size: 0; text-align: center; padding: 12px 0 5px; }
  #app .nav-group-title::after { content: '···'; font-size: 11px; }
  #app .nav-item { justify-content: center; padding: 8px 0; }
  #app .nav-foot .btn { justify-content: center; padding: 6px 0; gap: 0; }
  #app .nav-foot .btn .lbl { display: none; }
  .omni { min-width: 140px; }
  .form-grid.c3, .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .g2, .g3, .g4, .g5, .g6, .form-grid, .form-grid.c3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   视觉精修（2026-11）
   ------------------------------------------------------------
   目标：从「技术人员的后台」改成「做生意的人的工作台」。
   原则：
     ① 正文字号提到 13.5px —— 长时间看屏幕不累；
     ② 卡片、区块间距加大 —— 信息不再挤成一团；
     ③ 主操作明显强于次要操作 —— 用户一眼知道该点哪个；
     ④ 空状态 / 引导块有自己的层级 —— 不是一句灰字糊过去；
     ⑤ 所有规则只加宽、不设死宽 —— 1024 与 1440 都不横向溢出。
   ============================================================ */

body { font-size: 13.5px; line-height: 1.6; }

.content { padding: 20px 24px 34px; }

.card {
  margin-bottom: 18px;
  border-radius: 12px;
}
.card > header { padding: 12px 18px; }
.card > header h2 { font-size: 13.5px; letter-spacing: .1px; }
.card > header .desc { font-size: 12px; }
.card .body { padding: 18px; }
.card .body.tight { padding: 0; }

.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 20px; letter-spacing: .1px; }
.page-head .desc { font-size: 13px; line-height: 1.7; color: var(--ink-2); max-width: 900px; margin-top: 4px; }

/* —— 按钮层级：主操作强、次操作轻 —— */
.btn {
  padding: 7px 14px; font-size: 13px; border-radius: 7px;
  transition: background .13s, box-shadow .13s, border-color .13s, transform .06s;
}
.btn.primary {
  background: linear-gradient(180deg, #12867c, #0a5c55);
  border-color: transparent; color: #fff;
  box-shadow: 0 1px 2px rgba(10, 92, 85, .24), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn.primary:hover {
  background: linear-gradient(180deg, #0d6f68, #084a44);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(10, 92, 85, .28);
}
.btn.lg { padding: 11px 24px; font-size: 14.5px; border-radius: 9px; }
.btn.ghost { box-shadow: none; }
.btn.ghost:hover { box-shadow: var(--shadow-1); }

/* —— 指标卡：数字是主角 —— */
.kpi { padding: 14px 16px; }
.kpi .label { font-size: 12px; letter-spacing: .1px; }
.kpi .val { font-size: 27px; }
.kpi .sub { font-size: 11.5px; line-height: 1.55; margin-top: 4px; }

/* —— 提示条：字大一点、行距松一点，读得下去 —— */
.alert { font-size: 13px; line-height: 1.7; padding: 11px 14px; border-radius: 8px; }
.alert .ico { flex: 0 0 auto; margin-top: 1px; }

.hint { font-size: 12px; line-height: 1.7; color: var(--ink-3); }

/* —— 表格：桌面主力操作面，行高与字号都要够 —— */
.dt th { font-size: 12px; }
.dt td { font-size: 13px; }

/* —— 登录页：把「先免费诊断」做成真正的第一入口 —— */
.auth-start {
  margin: 2px 0 20px;
  padding: 18px 18px 20px;
  border: 1px solid #cfe4e0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fdfc, #edf8f6);
  box-shadow: inset 0 1px 0 #fff;
}
.auth-start-t {
  font-size: 15px; font-weight: 800;
  color: var(--accent-ink); letter-spacing: .1px; line-height: 1.45;
}
.auth-start-d {
  font-size: 12.5px; color: var(--ink-2);
  line-height: 1.75; margin: 6px 0 15px;
}
.auth-start .btn { width: 100%; justify-content: center; }

/* —— 首次启动凭据：像一张要抄下来的卡片，不是技术说明 —— */
.auth-firstrun {
  margin-top: 16px; padding: 15px 16px;
  border: 1px solid #eed9a4; border-radius: 12px;
  background: #fffdf6;
}
.auth-firstrun-t { font-size: 13px; font-weight: 800; color: #8a5a00; }
.auth-firstrun-row { font-size: 13px; margin-top: 7px; color: var(--ink-2); }
.auth-firstrun-row b {
  font-family: var(--mono); font-size: 14px; color: var(--ink);
  letter-spacing: .5px; word-break: break-all;
}
.auth-firstrun-note {
  font-size: 11.5px; color: var(--ink-3);
  line-height: 1.75; margin: 9px 0 11px;
}
.auth-firstrun .btn { width: auto; }

/* —— 首页新手进度：告诉用户「下一步做什么」，而不是让他自己找 —— */
.onboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.onboard-step {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  background: var(--surface-2);
  position: relative;
}
.onboard-step.done { border-color: #bfe3cd; background: #f4fcf7; }
.onboard-step.now { border-color: #cfe4e0; background: linear-gradient(180deg, #f8fdfc, #f1faf8); }
.onboard-n {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--ink-3); letter-spacing: .5px;
}
.onboard-step.done .onboard-n { color: var(--ok); }
.onboard-step.now .onboard-n { color: var(--accent-ink); }
.onboard-t { font-size: 13px; font-weight: 700; margin-top: 3px; color: var(--ink); }
.onboard-d { font-size: 11.5px; color: var(--ink-3); line-height: 1.65; margin-top: 4px; }
.onboard-step .btn { margin-top: 9px; }

/* 输入框：加高、字号提一档 —— 点得准，填得不费劲 */
input[type=text], input[type=password], input[type=number],
input[type=date], input[type=email], select, textarea {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 7px;
  transition: border-color .12s, box-shadow .12s;
}
input[type=text]:focus, input[type=password]:focus, input[type=number]:focus,
input[type=date]:focus, input[type=email]:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
  outline: none;
}
/* 表单标签：从"灰小字"提到能一眼扫到 */
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

/* 登录页底部一句话定位：让人知道这个产品到底帮他做什么 */
.auth-tagline {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .2px;
}

/* 表单提交：实心深灰。与绿色主 CTA 明确分工 ——
   绿=从这里开始（第一条路），深灰=我要提交（表单动作）。
   两个都用绿色会让页面上同时出现两个"主按钮"，谁都不突出。 */
.btn.submit {
  background: #1f2937; border-color: transparent; color: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .18);
}
.btn.submit:hover { background: #111827; border-color: transparent; }

/* 人机验证：图片 + 输入 + 换一题，一行放得下 */
.captcha-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.captcha-img {
  min-width: 200px; min-height: 52px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: #f7f4ec;
  font-size: 12px; color: var(--ink-3); overflow: hidden;
}
.captcha-img svg { display: block; }
.captcha-row input { width: 130px; }
#email_code, #mfa_code, #mfa_enable_code { letter-spacing: 2px; font-family: var(--mono); }

/* 免费诊断报告：一页看清结论、依据、必做与不要做 */
.diag-report { margin-top: 12px; }
.diag-hero {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  background: linear-gradient(135deg, #f7fbfa, #f2f7f6);
}
.diag-hero.try { border-color: #b7dfd2; background: linear-gradient(135deg, #f1fbf7, #e9f7f1); }
.diag-hero.prepare { border-color: #ecd2a7; background: linear-gradient(135deg, #fffaf1, #fdf3e2); }
.diag-hero.not_yet { border-color: #ebc0c0; background: linear-gradient(135deg, #fff7f7, #fdeeee); }
.diag-kicker { font-size: 11.5px; letter-spacing: .4px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; }
.diag-hero h3 { margin: 8px 0 10px; font-size: 21px; line-height: 1.4; color: var(--ink); }
.diag-sub { display: flex; gap: 8px; flex-wrap: wrap; }
.diag-chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.diag-chip.ok { border-color: #bfe3cd; color: #1d7a46; background: #f2fbf6; }
.diag-chip.warn { border-color: #ecd2a7; color: #8a5a00; background: #fff9ee; }
.diag-chip.danger { border-color: #ebc0c0; color: #a12a2a; background: #fff6f6; }
.diag-chip.info { border-color: #cfe0eb; color: #315d78; background: #f4f9fc; }
.diag-note { margin-top: 10px; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); }
.diag-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px; margin-top: 12px;
}
.diag-factor {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; background: #fff;
}
.diag-factor.ok { border-color: #cfe9da; }
.diag-factor.warn { border-color: #efd7b2; background: #fffdf8; }
.diag-factor-mark {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; background: #94a3b8;
}
.diag-factor.ok .diag-factor-mark { background: #1d7a46; }
.diag-factor.warn .diag-factor-mark { background: #b45309; }
.diag-factor-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.diag-factor-detail { font-size: 12px; line-height: 1.65; color: var(--ink-3); margin-top: 3px; }
.diag-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.diag-split section { border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; background: #fff; }
.diag-split h4, .diag-resources h4 { margin: 0 0 8px; font-size: 13.5px; color: var(--ink); }
.diag-split ol, .diag-split ul, .diag-resources ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.9; color: var(--ink-2); }
.diag-resources { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; background: #f8fafb; }
.diag-resources li span { display: block; color: var(--ink-3); font-size: 12px; }
.diag-foot { margin-top: 12px; font-size: 11.5px; line-height: 1.7; color: var(--ink-3); }
@media (max-width: 820px) { .diag-split { grid-template-columns: 1fr; } }

/* 单品成本试算：把每个钱袋子拆开看，避免一行字挤在一起 */
.cost-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px; margin-top: 12px;
}
.cost-grid > div {
  background: rgba(255,255,255,.75); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px;
}
.cost-grid span { display: block; font-size: 11.5px; color: var(--ink-3); }
.cost-grid b { display: block; font-size: 15px; margin-top: 2px; color: var(--ink); }
.cost-kpis { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.cost-kpis b { font-size: 15px; color: var(--teal); }

/* 免费诊断：填之前先让人知道会拿到什么，避免“免费”两个字太虚 */
.explore-expect {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px;
}
.explore-expect > div {
  background: #f7faf9; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
}
.explore-expect b { display: block; font-size: 12.5px; color: var(--ink); }
.explore-expect span { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; margin-top: 3px; }
@media (max-width: 760px) { .explore-expect { grid-template-columns: 1fr; } }

/* 备案信息：公司主体、备案号、联系邮箱、隐私与协议入口 */
.auth-legal {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: center;
  font-size: 10.5px; color: var(--ink-3); line-height: 1.6;
}
.auth-legal a { color: var(--ink-3); text-decoration: none; }
.auth-legal a:hover { color: var(--brand); text-decoration: underline; }
.auth-legal i { font-style: normal; color: #c4ced6; }

/* 拼图滑块验证码：公网模式使用 */
.captcha-img.slider {
  display: block; min-width: 0; min-height: 0; border: 0; background: transparent;
  padding: 0; overflow: visible;
}
.slide-stage {
  position: relative; border-radius: 9px; overflow: hidden;
  border: 1px solid var(--line); background: #0f2b33;
}
.slide-bg, .slide-bg svg { display: block; width: 100%; height: 100%; }
.slide-piece { position: absolute; left: 0; width: 52px; height: 52px; will-change: left; filter: drop-shadow(0 2px 4px rgba(0,0,0,.28)); }
.slide-piece svg { display: block; width: 100%; height: 100%; }
.slide-range { width: 100%; margin-top: 8px; accent-color: var(--brand); }
.slide-hint { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* 拼图验证码：滑块与题面同宽，换一题按钮不要撑满整行 */
.captcha-row .btn { width: auto; }
.slide-range { width: 280px; max-width: 100%; }
.captcha-row .slide-range { width: 280px; max-width: 100%; }

/* 品牌组合：产品名在上、公司名在下；首页底部公司信息区 */
.auth-shell { height: auto; min-height: 100vh; overflow-y: auto; align-items: center; }
.auth-wrap { width: 424px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; }
.auth-company {
  font-size: 11.5px; color: var(--brand); font-weight: 700; letter-spacing: .3px;
  margin: -1px 0 3px;
}
.site-footer {
  color: #c9dbe0; font-size: 11.5px; line-height: 1.7; padding: 0 6px 6px;
}
.sf-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.sf-brand img { width: 28px; height: 28px; object-fit: contain; background: transparent; }
.sf-brand b { display: block; color: #fff; font-size: 12.5px; letter-spacing: .2px; }
.sf-brand span { display: block; color: #9fb6bd; font-size: 10.5px; }
.sf-meta { display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: center; }
.sf-meta a { color: #c9dbe0; text-decoration: none; }
.sf-meta a:hover { color: #fff; text-decoration: underline; }
.sf-meta .sf-icp { color: #c9dbe0; }
@media (max-width: 520px) {
  .auth-card { padding: 26px 22px; border-radius: 16px; }
  .auth-shell { padding: 14px; }
}

/* 公开页统一品牌组合：产品名在上、公司名在下 */
.brand-lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.brand-lockup img { width: 46px; height: 46px; object-fit: contain; background: transparent; }
.brand-lockup b { display: block; font-size: 16px; color: var(--ink); letter-spacing: .2px; }
.brand-lockup span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.about-page > h1 { font-size: 26px; margin: 0 0 14px; }

/* 首页底部公司信息区（登录后的“我的生意”页也保留一份） */
.company-foot {
  margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 10px 18px;
}
.cf-brand { display: flex; align-items: center; gap: 9px; }
.cf-brand img { width: 30px; height: 30px; object-fit: contain; background: transparent; }
.cf-brand b { display: block; font-size: 12.5px; color: var(--ink); }
.cf-brand span { display: block; font-size: 10.5px; color: var(--ink-3); }
.cf-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--ink-3); }
.cf-meta a { color: var(--ink-3); text-decoration: none; }
.cf-meta a:hover { color: var(--brand); text-decoration: underline; }
