/* 曼亚建设 · 预算报价系统 */
:root {
  --ink: #16211C;
  --ink2: #2A3A33;
  --ink3: #46554E;
  --muted: #7C8781;
  --faint: #A6AEA9;
  --paper: #F5F3ED;
  --card: #FFFFFF;
  --line: #E5E0D4;
  --line2: #EFEBE2;
  --green: #1F5F4F;
  --green2: #2E7D67;
  --green-soft: #E8F0EC;
  --gold: #A98545;
  --gold-soft: #F3EADA;
  --red: #B0433A;
  --red-soft: #F8E9E7;
  --amber: #B8832A;
  --amber-soft: #FAF0DC;
  --blue: #3C6285;
  --blue-soft: #EAF0F6;
  --r: 14px;
  --shadow: 0 1px 2px rgba(22,33,28,.04), 0 8px 24px -12px rgba(22,33,28,.18);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --num: "SF Pro Display", "DIN Alternate", "Helvetica Neue", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-soft); }

/* ---------- 布局 ---------- */
.app { display: flex; height: 100vh; overflow: hidden; }

.side {
  width: 232px; flex: 0 0 232px;
  background: linear-gradient(168deg, #17251F 0%, #101B16 60%, #0D1713 100%);
  color: #D9DFDA;
  display: flex; flex-direction: column;
  position: relative;
}
.side::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 20% 0%, rgba(169,133,69,.14), transparent 45%);
}
.brand { padding: 26px 22px 20px; position: relative; z-index: 1; }
.brand-mark { display: flex; align-items: baseline; gap: 8px; }
.brand-cn { font-size: 19px; font-weight: 600; letter-spacing: 4px; color: #F3EFE4; }
.brand-en {
  font-size: 9px; letter-spacing: 3.2px; color: var(--gold);
  text-transform: uppercase; font-weight: 500;
}
.brand-sub {
  margin-top: 9px; font-size: 10.5px; color: #7E8C84; letter-spacing: 1.6px;
}
.brand-line { height: 1px; background: linear-gradient(90deg, rgba(169,133,69,.5), transparent); margin-top: 16px; }

.proj-switch {
  margin: 4px 14px 16px; padding: 11px 12px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  cursor: pointer; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px; transition: .18s;
}
.proj-switch:hover { background: rgba(255,255,255,.07); }
.proj-dot { width: 6px; height: 6px; border-radius: 50%; background: #62C39E; box-shadow: 0 0 0 3px rgba(98,195,158,.18); flex: none; }
.proj-txt { min-width: 0; }
.proj-txt b { display: block; font-size: 11.5px; font-weight: 500; color: #EAF0EC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-txt span { font-size: 9.5px; color: #7A887F; letter-spacing: .4px; }

.nav { padding: 6px 12px; position: relative; z-index: 1; flex: 1; overflow-y: auto; }
.nav-label { font-size: 9px; letter-spacing: 2px; color: #5C6A62; padding: 12px 12px 7px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px;
  color: #A9B5AE; font-size: 12.5px; margin-bottom: 2px; transition: .15s; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.045); color: #E4EAE5; }
.nav-item.on { background: rgba(169,133,69,.14); color: #F0E6D2; }
.nav-item.on::before {
  content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-item svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; opacity: .85; flex: none; }
.nav-item .badge {
  margin-left: auto; font-size: 9px; padding: 1px 6px; border-radius: 8px;
  background: rgba(255,255,255,.08); color: #9AA79F;
}
.side-foot {
  padding: 14px 20px 18px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: 9.5px; color: #5E6C64; line-height: 1.7; position: relative; z-index: 1;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 62px; flex: none; display: flex; align-items: center; gap: 16px;
  padding: 0 26px; background: rgba(255,255,255,.72);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(10px);
}
.crumb { font-size: 11px; color: var(--muted); letter-spacing: .3px; }
.crumb b { color: var(--ink); font-weight: 500; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border-radius: 8px; font-size: 11.5px; border: 1px solid var(--line);
  background: #fff; color: var(--ink2); transition: .15s;
}
.pill:hover { border-color: #CFC7B5; background: #FCFBF7; }
.pill.solid { background: var(--green); border-color: var(--green); color: #fff; }
.pill.solid:hover { background: var(--green2); }
.pill.gold { background: var(--ink); border-color: var(--ink); color: #F2EADA; }
.pill svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.view { flex: 1; overflow-y: auto; padding: 24px 26px 60px; scroll-behavior: smooth; }
.view > * { animation: rise .34s cubic-bezier(.2,.7,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* ---------- 通用 ---------- */
.h1 { font-size: 21px; font-weight: 600; letter-spacing: .5px; }
.h2 { font-size: 14px; font-weight: 600; letter-spacing: .3px; }
.sub { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.65; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid { display: grid; gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.card-h { padding: 15px 18px; border-bottom: 1px solid var(--line2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-b { padding: 16px 18px; }
.card-t { font-size: 12.5px; font-weight: 600; letter-spacing: .3px; }
.card-x { font-size: 10.5px; color: var(--faint); }
.mono { font-family: var(--num); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.tiny { font-size: 10.5px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10px; padding: 2px 7px;
  border-radius: 5px; background: #F2F0E9; color: var(--ink3); white-space: nowrap;
}
.tag.g { background: var(--green-soft); color: var(--green); }
.tag.a { background: var(--amber-soft); color: var(--amber); }
.tag.r { background: var(--red-soft); color: var(--red); }
.tag.b { background: var(--blue-soft); color: var(--blue); }
.tag.gold { background: var(--gold-soft); color: var(--gold); }

.seg { display: inline-flex; background: #EEEAE0; border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { padding: 5px 11px; border-radius: 6px; font-size: 11px; color: var(--ink3); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); font-weight: 500; }

/* ---------- 工作台 ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 18px;
  background: linear-gradient(122deg, #1B2C25 0%, #223B31 52%, #1B2A24 100%);
  color: #EAEFEA; padding: 26px 28px; margin-bottom: 14px;
  border: 1px solid #2B4038;
}
.hero::before {
  content: ""; position: absolute; right: -90px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(169,133,69,.22), transparent 62%);
}
.hero::after {
  content: ""; position: absolute; right: 40px; bottom: -60px; width: 240px; height: 240px;
  border: 1px solid rgba(233,225,206,.07); border-radius: 50%;
}
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; position: relative; z-index: 1; }
.hero-kicker { font-size: 9.5px; letter-spacing: 2.6px; color: var(--gold); text-transform: uppercase; }
.hero-title { font-size: 25px; font-weight: 600; letter-spacing: .8px; margin-top: 9px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 14px; }
.hero-meta div { font-size: 10.5px; color: #93A39A; }
.hero-meta b { display: block; font-size: 12.5px; color: #E3EAE4; font-weight: 500; margin-top: 4px; }
.hero-badge {
  padding: 5px 10px; border-radius: 20px; border: 1px solid rgba(169,133,69,.42);
  color: #E6D3AE; font-size: 10px; letter-spacing: 1.2px;
}
.hero-num { position: relative; z-index: 1; margin-top: 22px; display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.hero-num .lab { font-size: 10px; color: #8C9C93; letter-spacing: .8px; }
.hero-num .val { font-family: var(--num); font-size: 34px; font-weight: 600; letter-spacing: -.5px; margin-top: 4px; }
.hero-num .val small { font-size: 14px; font-weight: 400; opacity: .55; margin-right: 4px; }
.hero-split { display: flex; gap: 28px; padding-left: 26px; border-left: 1px solid rgba(255,255,255,.1); }
.hero-split .v { font-family: var(--num); font-size: 16px; margin-top: 5px; color: #DCE4DE; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.kpi.g::after { background: var(--green); }
.kpi.a::after { background: var(--gold); }
.kpi.b::after { background: var(--blue); }
.kpi .k { font-size: 10.5px; color: var(--muted); letter-spacing: .4px; }
.kpi .v { font-family: var(--num); font-size: 23px; font-weight: 600; margin-top: 8px; letter-spacing: -.3px; }
.kpi .v small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.kpi .d { font-size: 10px; color: var(--faint); margin-top: 6px; }

.two { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }

/* 流程 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.flow-step { padding: 4px 14px 6px; position: relative; cursor: pointer; }
.flow-step + .flow-step { border-left: 1px dashed var(--line); }
.flow-step .n {
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-family: var(--num); background: #F0EDE4; color: var(--ink3); margin-bottom: 10px;
}
.flow-step.done .n { background: var(--green); color: #fff; }
.flow-step.active .n { background: var(--gold-soft); color: var(--gold); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold-soft); }
.flow-step .t { font-size: 11.5px; font-weight: 500; }
.flow-step .s { font-size: 10px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.flow-step .go { position: absolute; right: 12px; top: 4px; font-size: 14px; color: var(--faint); opacity: 0; transition: .15s; }
.flow-step:hover .go { opacity: 1; }

/* 条形 */
.bars { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 82px; align-items: center; gap: 10px; }
.bar-row .l { font-size: 11px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 7px; background: #F1EEE6; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2E7D67, #4E9B84); transition: width .5s cubic-bezier(.2,.7,.3,1); }
.bar-fill.gold { background: linear-gradient(90deg, #A98545, #C9A96E); }
.bar-row .v { text-align: right; font-family: var(--num); font-size: 11.5px; }
.bar-row .v em { font-style: normal; color: var(--faint); font-size: 9.5px; margin-left: 4px; }

.stack { display: flex; height: 34px; border-radius: 8px; overflow: hidden; background: #F1EEE6; }
.stack div { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 9.5px; color: #fff; transition: width .5s; white-space: nowrap; overflow: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.legend span { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert { display: flex; gap: 9px; padding: 10px 12px; border-radius: 9px; font-size: 11px; line-height: 1.6; }
.alert.danger { background: var(--red-soft); color: #8A342C; }
.alert.warn { background: var(--amber-soft); color: #7E5716; }
.alert.info { background: var(--blue-soft); color: #2E4F6C; }
.alert .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-top: 6px; flex: none; }

/* ---------- 图纸 ---------- */
.drop {
  border: 1.5px dashed #D6CEBC; border-radius: 14px; padding: 34px; text-align: center;
  background: linear-gradient(180deg, #FDFCF8, #F8F6EF); transition: .2s; cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--green); background: var(--green-soft); }
.drop .ic { width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.drop .ic svg { width: 19px; height: 19px; stroke: var(--green); fill: none; stroke-width: 1.5; }
.drop b { font-size: 12.5px; font-weight: 500; }
.drop p { font-size: 10.5px; color: var(--muted); margin-top: 6px; }

.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 10px; }
.file { border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; background: #fff; position: relative; transition: .15s; }
.file:hover { border-color: #D3CBB9; box-shadow: 0 4px 14px -8px rgba(22,33,28,.2); }
.file .ft { display: flex; align-items: center; gap: 8px; }
.file .ext { width: 30px; height: 34px; border-radius: 5px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 700; letter-spacing: .4px; flex: none; }
.file .ext.pdf { background: var(--red-soft); color: var(--red); }
.file .ext.png, .file .ext.jpg { background: var(--blue-soft); color: var(--blue); }
.file .nm { font-size: 11.5px; font-weight: 500; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.file .meta { font-size: 9.5px; color: var(--faint); margin-top: 9px; display: flex; gap: 8px; flex-wrap: wrap; }
.file .feat { font-size: 10px; color: var(--ink3); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line2); line-height: 1.55; }
.file .del { position: absolute; right: 8px; top: 8px; width: 20px; height: 20px; border-radius: 5px; color: var(--faint); opacity: 0; }
.file:hover .del { opacity: 1; }
.file .del:hover { background: var(--red-soft); color: var(--red); }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow: auto; border-radius: 0 0 var(--r) var(--r); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
thead th {
  position: sticky; top: 0; z-index: 2; background: #FBFAF6;
  font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .5px;
  text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 9px 10px; border-bottom: 1px solid var(--line2); font-size: 11.5px; vertical-align: middle; }
tbody tr:hover { background: #FCFBF7; }
tbody tr.sec td { background: #F7F4EC; font-weight: 600; font-size: 11.5px; color: var(--ink); padding: 8px 10px; }
td.r, th.r { text-align: right; }
td.c, th.c { text-align: center; }
td.num { font-family: var(--num); font-variant-numeric: tabular-nums; text-align: right; }
.cell-in {
  width: 74px; padding: 4px 6px; border: 1px solid transparent; border-radius: 5px;
  text-align: right; font-family: var(--num); font-size: 11.5px; background: transparent;
}
.cell-in:hover { border-color: var(--line); background: #fff; }
.cell-in:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 2px var(--green-soft); }
.cell-in.cost { color: var(--ink3); border-bottom: 1px dotted #C9C1AE; border-radius: 0; }
.name-cell { font-weight: 500; }
.name-cell .sp { font-size: 10px; color: var(--faint); font-weight: 400; margin-top: 2px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.amount { font-family: var(--num); font-weight: 500; }
tfoot td { padding: 11px 10px; font-size: 12px; background: #FBFAF6; border-top: 1px solid var(--line); }

.avatar-src { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.s-dxf { background: var(--green); }
.s-elev { background: var(--gold); }
.s-draw { background: var(--blue); }
.s-est { background: var(--amber); }
.s-manual { background: var(--faint); }

.mini-bar { height: 4px; width: 54px; background: #F0EDE5; border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; }
.mini-bar i { display: block; height: 100%; background: var(--green2); }

/* ---------- 材料归面 ---------- */
.stackbar { display: flex; height: 18px; border-radius: 4px; overflow: hidden; background: #F4F1E9; min-width: 160px; }
.stackbar i { display: block; height: 100%; }
.legend-sq { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.elev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 10px; }
.elev { border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; background: #fff; }
.elev .code { font-family: var(--num); font-size: 10px; letter-spacing: 1px; color: var(--gold); font-weight: 600; }
.elev .zone { font-size: 11.5px; font-weight: 500; margin-top: 5px; line-height: 1.45; min-height: 32px; }
.elev .nums { display: flex; gap: 12px; margin-top: 8px; font-size: 10px; color: var(--muted); }
.elev .nums b { font-family: var(--num); color: var(--ink); font-weight: 500; }
.elev .feat { font-size: 9.5px; color: var(--faint); margin-top: 8px; line-height: 1.55; border-top: 1px dashed var(--line2); padding-top: 7px; }

/* ---------- 报价单 ---------- */
.quote-doc { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 40px 46px; max-width: 1040px; margin: 0 auto; box-shadow: 0 2px 30px -14px rgba(22,33,28,.3); }
.qd-head { text-align: center; border-bottom: 2px solid var(--ink); padding-bottom: 18px; }
.qd-head h1 { font-size: 26px; letter-spacing: 6px; font-weight: 600; }
.qd-head .en { font-size: 9px; letter-spacing: 4px; color: var(--gold); margin-top: 7px; }
.qd-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 20px; margin: 18px 0 22px; font-size: 10.5px; color: var(--ink3); }
.qd-meta b { color: var(--ink); font-weight: 500; }
.qd-tbl { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.qd-tbl th { background: #F4F1E8; border: 1px solid #DCD5C6; padding: 7px 8px; font-weight: 500; text-align: center; }
.qd-tbl td { border: 1px solid #E4DED1; padding: 6px 8px; vertical-align: top; }
.qd-tbl td.n { text-align: right; font-family: var(--num); }
.qd-tbl tr.s td { background: #F8F5EE; font-weight: 600; }
.qd-sum { margin-top: 20px; margin-left: auto; width: 340px; font-size: 11px; }
.qd-sum div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dotted #DDD6C7; }
.qd-sum .tot { border-top: 2px solid var(--ink); border-bottom: none; margin-top: 6px; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--green); }
.qd-foot { margin-top: 26px; font-size: 9.5px; color: var(--muted); line-height: 1.9; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- 客户版报价书：封面 / 编制说明 / 汇总 / 明细 ---------- */
.quote-page { margin: 0 auto 18px; }
.qd-cover { min-height: 880px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cv-company { font-size: 13px; letter-spacing: 4px; color: var(--green); }
.cv-title { font-size: 34px; letter-spacing: 10px; font-weight: 600; margin: 30px 0 12px; color: var(--ink); }
.cv-en { font-size: 9px; letter-spacing: 3px; color: var(--gold); }
.cv-rule { width: 100%; height: 2px; background: var(--ink); margin: 30px 0; }
.cv-proj { font-size: 17px; color: var(--ink); }
.cv-addr { font-size: 11px; color: var(--muted); margin-top: 10px; }
.cv-foot { margin-top: 84px; font-size: 13px; line-height: 2.6; color: var(--ink); }
.st-company { text-align: right; font-size: 11px; color: var(--green); letter-spacing: 1px; }
.st-h { text-align: center; font-size: 22px; letter-spacing: 8px; font-weight: 600; margin: 10px 0 26px; }
.st-sec { font-size: 12px; font-weight: 600; color: var(--green); margin: 20px 0 6px; }
.st-ol { margin: 0; padding-left: 22px; font-size: 10.5px; line-height: 1.95; color: var(--ink3); }
.st-ol li { margin-bottom: 2px; }
.qd-tbl tr { page-break-inside: avoid; }

/* ---------- 市场 ---------- */
.mkt-row { display: grid; grid-template-columns: 200px 90px 1fr 64px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line2); }
.mkt-scale { position: relative; height: 20px; }
.mkt-scale .bg { position: absolute; left: 0; right: 0; top: 9px; height: 3px; background: #F1EEE6; border-radius: 2px; }
.mkt-scale .band { position: absolute; top: 7px; height: 7px; background: var(--green-soft); border-radius: 4px; border: 1px solid #CFE0D8; }
.mkt-scale .mark { position: absolute; top: 3px; width: 2px; height: 15px; background: var(--ink); }
.mkt-scale .lbl { position: absolute; font-size: 8.5px; color: var(--faint); top: -3px; }
.mkt-scale .lbl.lo { transform: translateX(-50%); }
.mkt-scale .lbl.hi { transform: translateX(-50%); }

/* 空态 */
.empty { text-align: center; padding: 50px 20px; color: var(--faint); font-size: 11.5px; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D9D3C6; border-radius: 6px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: #C4BCA9; }

/* 打印 */
@media print {
  html, body { height: auto; overflow: visible; }
  .app { display: block; height: auto; overflow: visible; }
  .side, .topbar, .no-print { display: none !important; }
  .main { display: block; flex: none; overflow: visible; height: auto; }
  .view { overflow: visible; height: auto; padding: 0; }
  .view > * { animation: none; }
  .quote-doc { border: none; box-shadow: none; padding: 0; max-width: none; }
  .quote-page { page-break-after: always; break-after: page; margin: 0; padding: 0; min-height: 0; }
  .quote-page:last-of-type { page-break-after: auto; break-after: auto; }
  .qd-cover { min-height: 0; padding-top: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .qd-tbl tr, .st-ol li { break-inside: avoid; }
  thead { display: table-header-group; }
  body { background: #fff; }
}

@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .flow-step + .flow-step { border-left: none; }
  .side { width: 196px; flex-basis: 196px; }
}
@media (max-width: 820px) {
  .side { display: none; }
  .view { padding: 16px; }
  .hero-num .val { font-size: 26px; }
  .hero-split { padding-left: 0; border-left: none; }
}

/* ================= 项目切换菜单 ================= */
.proj-menu {
  position: fixed; z-index: 120; padding: 10px;
  background: #1A2620; color: #E7EDE8;
  border: 1px solid rgba(255,255,255,.10); border-radius: 12px;
  box-shadow: 0 26px 64px -18px rgba(0,0,0,.6);
  animation: pmIn .16s ease-out;
}
@keyframes pmIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.pm-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 8px 8px; font-size: 9.5px; letter-spacing: 1.8px; color: #7E8D84; }
.pm-head em { font-style: normal; letter-spacing: .4px; color: #6B7A71; }
.pm-list { max-height: 292px; overflow-y: auto; }
.pm-item { display: flex; align-items: center; gap: 9px; padding: 9px 8px; border-radius: 8px; cursor: pointer; }
.pm-item:hover { background: rgba(255,255,255,.05); }
.pm-item.on { background: rgba(169,133,69,.16); }
.pm-flag { width: 2px; height: 26px; border-radius: 2px; background: transparent; flex: none; }
.pm-item.on .pm-flag { background: #C9A227; }
.pm-main { min-width: 0; flex: 1; }
.pm-main b { display: block; font-size: 12px; font-weight: 500; color: #EEF3EF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-main span { font-size: 10px; color: #7E8D84; letter-spacing: .2px; }
.pm-right { display: flex; align-items: center; gap: 6px; flex: none; }
.pm-right em { font-style: normal; font-size: 11px; color: #D9C9A3; font-variant-numeric: tabular-nums; }
.pm-del { width: 18px; height: 18px; border-radius: 5px; border: none; background: transparent; color: #6E7C74; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.pm-del:hover { background: #5A302B; color: #E9B7B0; }
.pm-del.armed { background: #8A342C; color: #fff; width: auto; padding: 0 6px; font-size: 10px; }
.pm-foot { display: flex; gap: 6px; padding-top: 9px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.pm-btn { flex: 1; min-width: 88px; height: 29px; border-radius: 7px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #D6DED8; font-size: 11px; cursor: pointer; transition: .15s; }
.pm-btn:hover { background: rgba(255,255,255,.09); }
.pm-btn.primary { background: #A98545; border-color: #A98545; color: #1A2620; font-weight: 600; }
.pm-btn.primary:hover { background: #B8944F; }
.pm-hint { padding: 9px 8px 2px; font-size: 9.5px; color: #5F6E65; letter-spacing: .2px; }
.pm-empty { padding: 18px; text-align: center; color: #6E7C74; font-size: 11px; }

/* ---------- 待办跳转（2026-10-19） ---------- */
.alert.click { cursor: pointer; transition: .15s; }
.alert.click:hover { filter: brightness(.97); transform: translateX(2px); }
.alert .alert-go { margin-left: auto; font-size: 10px; opacity: .65; white-space: nowrap; align-self: center; letter-spacing: .3px; }
.alert.click:hover .alert-go { opacity: 1; text-decoration: underline; }
.tag.warn { background: var(--amber-soft); color: #7E5716; }
.tag.ok { background: var(--green-soft); color: var(--green); }
.alert.ok { background: var(--green-soft); color: #2C5B4C; }

/* 登录与系统弹层（2026-10-23） */
#loginMask .login-card {
  background: #fff; border-radius: 14px; padding: 30px 32px; width: 320px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35); display: flex; flex-direction: column; text-align: center;
}
#loginMask .login-card input {
  height: 36px; border: 1px solid #D8D2C4; border-radius: 8px; padding: 0 10px;
  font-size: 12.5px; margin-bottom: 10px; outline: none; background: #FCFBF7;
}
#loginMask .login-card input:focus { border-color: #1F5F4F; }
#sysModal input { height: 30px; border: 1px solid #D8D2C4; border-radius: 7px; padding: 0 8px; font-size: 12px; background: #fff; }
#sysModal .tbl th { font-size: 11px; text-align: left; padding: 6px 8px; background: #F2F0E9; border-bottom: 1px solid #E0DCD0; }
#sysModal .tbl td { font-size: 11.5px; padding: 5px 8px; border-bottom: 1px solid #F0EDE4; }

/* ---- 测试环境标识（方案A：线上 fjmanya.cn 为唯一主库） ---- */
#testEnvBar {
  position: fixed; top: 0; left: 0; right: 0; height: 26px; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, #8C3A31, #B0433A 40%, #8C3A31);
  color: #FFF3E8; font-size: 12px; letter-spacing: .4px;
  box-shadow: 0 1px 6px rgba(0,0,0,.22);
}
#testEnvBar b { color: #FFE1B0; font-weight: 700; }
body.testenv .app { height: calc(100vh - 26px); margin-top: 26px; }
body.testenv #loginMask { top: 26px !important; }
#testEnvBar.ipHint {
  background: linear-gradient(90deg, #7A5A18, #B98A25 40%, #7A5A18);
  color: #FFF6E0;
}
#testEnvBar.ipHint b { color: #FFE9B8; }
