/* 小微车服 · 管理员手机端 · 20261027mAdmB 叠 mAdmA · 方案 A 底栏 · 浅色卡片 · ≥44px 热区 */
:root {
  --ink: #0F1C2E;
  --ink-2: #1E2F45;
  --brand: #1B4F8A;
  --brand-soft: #E8F0F8;
  --accent: #0D7A5F;
  --warn: #B45309;
  --danger: #B42318;
  --surface: #F4F6F9;
  --card: #FFFFFF;
  --line: #D8DEE8;
  --muted: #5B6B7C;
  --test-bar: #5C4B1E;
  --test-fg: #F5E6C8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15,28,46,.06), 0 4px 12px rgba(15,28,46,.04);
  --touch: 44px;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--surface); color: var(--ink); font-size: 14px; -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.toast.hidden { display: none !important; pointer-events: none !important; visibility: hidden !important; }

.phone {
  max-width: 480px; margin: 0 auto; min-height: 100vh;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line);
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink); color: #fff;
  padding: 12px 16px 14px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
}
.topbar .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.topbar .who { font-size: 12px; opacity: .92; }
.topbar h1 { font-size: 18px; margin: 8px 0 0; font-weight: 600; }
.topbar .env-strip {
  margin-top: 8px; display: inline-block;
  background: var(--test-bar); color: var(--test-fg);
  font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600;
}
.btn-logout {
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  border-radius: var(--radius-sm); padding: 8px 12px; min-height: var(--touch);
  font-size: 12px; cursor: pointer;
}

.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 20;
  width: 100%; max-width: 480px; display: flex; background: #fff;
  border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15,28,46,.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar button {
  flex: 1; border: none; background: transparent; padding: 8px 2px 10px;
  min-height: var(--touch);
  font-size: 10px; color: var(--muted); cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 500;
}
.tabbar button .tico {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; opacity: .7;
}
.tabbar button.active { color: var(--brand); font-weight: 700; }
.tabbar button.active .tico { opacity: 1; }

.pane { display: none; padding: 12px; }
.pane.active { display: block; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; border: 1px solid var(--line); margin-bottom: 10px;
}
.muted { color: var(--muted); font-size: 12px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.page-title h3 { margin: 0; font-size: 15px; font-weight: 600; }

.login-wrap {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px; background: var(--surface);
}
.login-card {
  width: 100%; max-width: 360px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line); padding: 24px 20px;
}
.login-card h1 { margin: 0 0 8px; font-size: 22px; color: var(--brand); }
.login-card .hint { color: var(--muted); font-size: 13px; margin: 0 0 16px; line-height: 1.5; }
.login-card label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.login-card input {
  width: 100%; padding: 12px 14px; min-height: var(--touch); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 16px; background: #fff;
}
.login-err { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 1.2em; }
.env-banner { margin-bottom: 12px; }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.badge.env { background: var(--test-bar); color: var(--test-fg); border-radius: 4px; }
.site-foot { margin-top: 18px; text-align: center; font-size: 11px; }
.site-foot a { color: var(--muted); text-decoration: none; }

button.primary, .btn.primary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: var(--touch); margin-top: 14px;
  border: none; border-radius: var(--radius-sm); background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; padding: 10px 16px;
}
button.primary:disabled { opacity: .55; cursor: not-allowed; }
button.ghost, .btn.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch); padding: 8px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font-size: 13px; cursor: pointer;
}
button.ghost.sm { min-height: 36px; padding: 6px 10px; font-size: 12px; }
button.danger-outline {
  border: 1px solid var(--danger); color: var(--danger); background: #fff;
  min-height: var(--touch); border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer;
}

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  padding: 12px 14px; min-height: var(--touch);
}
.kpi.tone-warn { border-left-color: var(--warn); }
.kpi.tone-accent { border-left-color: var(--accent); }
.kpi.tone-ink { border-left-color: var(--ink-2); }
.kpi.clickable { cursor: pointer; }
.kpi.clickable:active { background: #F8FAFC; }
.kpi .label { font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi .value { font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 4px; line-height: 1.2; }
.kpi .sub { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.35; }

.order-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 14px; margin-bottom: 10px; cursor: pointer;
  min-height: var(--touch);
}
.order-card:active { background: #F8FAFC; }
.order-card .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-card .row2 { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.order-card .row3 { margin-top: 4px; font-size: 12px; color: var(--muted); }

.st {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand);
}
.st.ok { background: #E6F5F0; color: var(--accent); }
.st.warn { background: #FEF3E2; color: var(--warn); }
.st.bad { background: #FDE8E6; color: var(--danger); }
.st.info { background: var(--brand-soft); color: var(--brand); }

.search-bar {
  display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap;
}
.search-bar input, .search-bar select {
  flex: 1 1 120px; min-height: var(--touch); padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; background: #fff;
}
.search-bar button { flex: 0 0 auto; }

.form-sec { margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid label {
  display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea {
  min-height: var(--touch); padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 15px; color: var(--ink); font-weight: 500; background: #fff;
}
.form-grid textarea { min-height: 72px; }
.ro-box {
  background: #F8FAFC; border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13px; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px;
}
.ro-box .k { color: var(--muted); }

.sheet {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40;
  width: 100%; max-width: 480px; max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(15,28,46,.18);
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
}
.sheet-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.sheet-hd h3 { margin: 0; font-size: 16px; }
.overlay {
  position: fixed; inset: 0; z-index: 35; background: rgba(15,28,46,.45);
}
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 60; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 13px; max-width: 90%; box-shadow: var(--shadow);
}
.toast.ok { background: var(--accent); }
.toast.err { background: var(--danger); }

.list-meta { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.empty { color: var(--muted); text-align: center; padding: 24px 12px; }
.section-title { font-size: 13px; font-weight: 700; margin: 16px 0 8px; color: var(--ink); }
.drill-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.drill-table th, .drill-table td { border-bottom: 1px solid var(--line); padding: 8px 4px; text-align: left; }
.drill-table th { color: var(--muted); font-weight: 600; }
.me-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); min-height: var(--touch); align-items: center; }
.me-row .k { color: var(--muted); }
.linkish { color: var(--brand); text-decoration: none; font-weight: 600; }
.filter-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.filter-chip {
  min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 12px; color: var(--muted); cursor: pointer;
}
.filter-chip.active { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); font-weight: 700; }
.action-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.action-row button { flex: 1 1 120px; }
.hint-box {
  background: #FEF9EE; border: 1px solid #F0E0C0; border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 12px; color: var(--warn); margin: 8px 0;
}

/* 方案 A · 业务三段 / 分析只读 / 我的入口 / 二级页 · 20261027mAdmA */
.segs {
  display: flex; gap: 6px; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px;
}
.segs .seg {
  flex: 1; min-height: var(--touch); border: none; background: transparent;
  border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer;
}
.segs .seg.active { background: var(--brand-soft); color: var(--brand); }
.biz-seg { display: none; }
.biz-seg.active { display: block; }
a.tool-entry, button.tool-entry {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; text-decoration: none; color: inherit;
  cursor: pointer; margin-bottom: 10px; font-family: inherit;
}
.tool-entry-title { font-size: 15px; font-weight: 650; color: var(--ink); }
.tool-entry-sub { margin-top: 2px; font-size: 11px; }
.tool-entry-chev { font-size: 22px; color: var(--muted); font-weight: 300; }
.daily-entry { border-left: 3px solid var(--accent); }
a.daily-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 6px 12px; text-decoration: none;
}
.an-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.an-chip {
  min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 12px; color: var(--muted); cursor: pointer;
}
.an-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.an-month { display: flex; align-items: flex-end; gap: 8px; height: 120px; overflow-x: auto; }
.an-mcol { flex: 1; min-width: 36px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.an-mcol .bars { display: flex; gap: 3px; align-items: flex-end; height: 88px; }
.an-mcol i { display: block; width: 10px; border-radius: 3px 3px 0 0; }
.an-mcol i.in { background: #8eb4d6; }
.an-mcol i.out { background: #1B4F8A; }
.an-mcol em { font-style: normal; font-size: 10px; color: var(--muted); margin-top: 4px; text-align: center; }
.an-stack { display: flex; align-items: center; gap: 6px; margin: 5px 0; font-size: 12px; }
.an-stack .name { width: 72px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-stack .bar { flex: 1; display: flex; height: 12px; border-radius: 4px; overflow: hidden; background: #eef2f6; }
.an-stack .bar i { display: block; height: 100%; }
.an-stack .num { width: 28px; text-align: right; color: var(--muted); }
.an-hbars .hbar { display: flex; align-items: center; gap: 6px; margin: 6px 0; font-size: 12px; }
.an-hbars .name { width: 88px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-hbars .track { flex: 1; background: #eef2f6; border-radius: 6px; height: 8px; overflow: hidden; }
.an-hbars .fill { height: 100%; background: #1B4F8A; border-radius: 6px; }
.an-hbars .num { width: 44px; text-align: right; color: var(--muted); }
.chartbox svg { width: 100%; height: auto; display: block; }
.subview {
  position: fixed; inset: 0; z-index: 25; background: var(--surface);
  max-width: 480px; margin: 0 auto; overflow: auto;
  padding: 12px 12px calc(24px + env(safe-area-inset-bottom, 0px));
}
.sub-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-height: var(--touch); }
.sub-hd h2 { margin: 0; font-size: 16px; font-weight: 650; }
.sub-item {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 8px;
}
.sub-item .t { font-weight: 650; }
.sub-item .s { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 品牌资料薄层 20261027brandDoc · 叠于 mAdmA，不改方案A 结构 */
.bd-brand-row {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; min-height: var(--touch); padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.bd-doc-item {
  padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; min-height: var(--touch);
}
.bd-preview-img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); margin-top: 8px; display: block; }

/* ---- 我的轻编辑 / 模板 / 结算摘要 · 20261027mAdmB 叠 mAdmA ---- */

.sub-item.clickable { cursor: pointer; }
.sub-item.clickable:active { background: #F8FAFC; }
.pc-suggest {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch); padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1px dashed var(--warn); background: #FEF9EE; color: var(--warn);
  font-size: 13px; font-weight: 650; cursor: pointer; width: 100%;
  text-decoration: none; margin-bottom: 8px; font-family: inherit;
}
.perm-group { margin: 12px 0 8px; }
.perm-group h4 { margin: 0 0 6px; font-size: 13px; color: var(--ink); }
.perm-row {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--touch); padding: 4px 0; font-size: 13px;
}
.perm-row input { width: 20px; height: 20px; }
.perm-row.locked { color: var(--muted); }
.sub-segs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin-bottom: 10px; -webkit-overflow-scrolling: touch; }
.sub-segs .filter-chip { flex: 0 0 auto; }
#dictBody input {
  width: 100%; min-height: var(--touch); padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; background: #fff;
}

/* 20261028mAdmAn · 醒目日报入口（分析 / 业务 / 看板 / 工作台同一套） */
.daily-cta {
  display: flex; align-items: center; gap: 10px;
  width: 100%; margin: 0 0 12px; padding: 12px 12px;
  min-height: 64px; text-decoration: none; color: inherit;
  background: linear-gradient(90deg, #FFF4E8 0%, #FFE4D6 100%);
  border: 2px solid #E25B2A; border-radius: 14px;
  box-shadow: 0 6px 16px rgba(194, 65, 12, .16);
}
.daily-cta-ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: #1B4F8A; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.daily-cta-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.daily-cta-title { font-size: 18px; font-weight: 800; color: #C2410C; letter-spacing: .02em; }
.daily-cta-sub { font-size: 12px; color: #7C2D12; line-height: 1.35; }
.daily-cta-badge {
  flex: none; background: #DC2626; color: #fff; font-size: 12px; font-weight: 800;
  border-radius: 999px; padding: 3px 8px;
}
.daily-cta-chev { flex: none; font-size: 26px; color: #C2410C; font-weight: 400; line-height: 1; }

/* 分析全量图 · 一列 + 横滑 */
.an-legend { font-size: 11px; color: var(--muted); margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.an-legend i.ln { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: 2px; }
.an-legend i.ln.in { background: #8eb4d6; }
.an-legend i.ln.loan-n { background: #1B4F8A; }
.an-legend i.ln.in-amt { background: #C2410C; }
.an-legend i.ln.loan { background: #0D7A5F; }
.an-quad-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.an-quad-scroll svg { min-width: 320px; height: auto; display: block; }
.an-quad-detail {
  display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px;
  background: #F4F7FB; border-radius: 8px; padding: 8px 10px; font-size: 13px;
}
.an-quad-detail b { width: 100%; color: var(--ink); }
.an-quad-detail span { color: var(--ink-2); }
.an-note { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 8px 0 0; }
.an-empty { color: var(--muted); font-size: 13px; padding: 12px 0; }
.an-chartbox { position: relative; }
.an-hbars .fill.g { background: #0D7A5F; }
.an-donut-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.an-donut-wrap svg { width: min(220px, 70%); margin: 0 auto; }
.an-donut-legend { font-size: 12px; }
.an-donut-legend div { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0; }
.an-donut-legend b { font-weight: 650; color: var(--muted); }
.an-donut-legend i.box, .an-legend i.box {
  display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px;
}
.an-hscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.an-hscroll .an-chartbox { min-width: 640px; }
.an-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.an-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 12px; }
.an-table th, .an-table td { padding: 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.an-table th:first-child, .an-table td:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
.an-table th { color: var(--muted); font-weight: 600; }
.an-table tr.hot td { background: #FFF7F2; }
