:root {
  color-scheme: light;
  --ink: #1b3837;
  --text: #354d4a;
  --muted: #61756e;
  --teal: #126754;
  --deep: #194d43;
  --soft: #e9f2eb;
  --sand: #f7f2e7;
  --line: #dce5dd;
  --canvas: #f4f6f1;
  --white: #fff;
  --warm: #826021;
  --danger: #943d35;
  font: 15px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: #0c493e; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #538c74; outline-offset: 3px; }
h1:focus, main:focus { outline: none; }
svg, img { vertical-align: middle; }
svg { flex-shrink: 0; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3,strong { color: var(--ink); }
small { font-size: 12px; }
[hidden] { display: none !important; }
::selection { background: #cfe6d6; color: var(--deep); }
.visually-hidden, .skip:not(:focus) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
.skip:focus { position:fixed; left:16px; top:12px; z-index:20; padding:8px 14px; border-radius:8px; background:#fff; }
.initial,.loading,.standalone { padding:48px; color:var(--muted); }
.standalone { max-width:720px; margin:10vh auto; }
.brand { display:inline-flex; align-items:center; gap:12px; }
.brand img { border-radius:11px; box-shadow:0 3px 9px #244d3c18; }
.brand strong,.brand-en { display:block; }
.brand strong { font-size:21px; font-weight:700; letter-spacing:.12em; line-height:1.19; }
.brand-en { font-size:11px; letter-spacing:.07em; color:var(--muted); line-height:1.35; font-weight:600; }
.button,.text-link,.back,.nav-item { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; background:none; font:inherit; }
.button { min-height:41px; padding:8px 16px; border:1px solid #cbd9ce; border-radius:8px; background:white; color:var(--text); font-size:14px; font-weight:600; line-height:1.4; }
.button:hover { border-color:#8fa99a; color:var(--ink); background:#f8faf6; }
.button.primary { color:white; background:var(--teal); border-color:var(--teal); }
.button.primary:hover { background:#0e5143; border-color:#0e5143; }
.button.light { background:#fbfaf0; color:#204c41; border-color:transparent; }
.button.small { min-height:37px; padding:6px 12px; font-size:13px; }
.button.full { width:100%; min-height:46px; justify-content:space-between; }
.text-link,.back,.item-link { font-size:13px; font-weight:650; color:var(--teal); }
.text-link:hover,.back:hover,.item-link:hover,.source[href]:hover { text-decoration:underline; text-underline-offset:3px; }
.back { margin:0 0 14px; min-height:28px; color:var(--muted); }
.inline-links,.actions { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.muted { color:var(--muted); }
.notice,.form-error { margin:12px 0 0; padding:10px 12px; background:#f2f6f2; border-radius:7px; color:#4c6055; font-size:13px; overflow-wrap:anywhere; }
.notice.warn { background:#f8edda; color:#745219; }
.form-error { background:#faeeeb; color:var(--danger); }
.form-error .text-link { display:inline; padding:0; margin-left:4px; }
#notifications:not(:empty) { position:fixed; z-index:10; bottom:24px; left:50%; transform:translateX(-50%); padding:10px 17px; background:var(--deep); color:#fff; box-shadow:0 5px 18px #20443826; border-radius:8px; font-size:14px; width:max-content; max-width:calc(100% - 32px); }

/* 登录与品牌 */
.login-layout { min-height:100vh; display:grid; grid-template-columns:minmax(0,1.03fr) minmax(0,1fr); }
.welcome { position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between; gap:24px; padding:clamp(36px,6vw,88px); background:#e4eee3; border-right:1px solid #d0ded1; }
.welcome .brand { align-self:flex-start; }
.welcome-copy { margin-top:clamp(45px,10vh,110px); max-width:440px; }
.welcome-copy h2 { font-size:clamp(38px,5vw,73px); line-height:1.17; letter-spacing:-.025em; font-weight:670; color:#1b473d; }
.welcome-copy p { max-width:330px; margin-top:23px; font-size:16px; line-height:1.85; color:#48645a; }
.welcome-art { align-self:flex-end; width:min(90%,440px); margin-right:-3%; }
.welcome-art img { width:100%; height:auto; }
.sign-in { display:grid; place-items:center; padding:48px 24px; background:#fbfcf8; }
.sign-in-inner { width:min(100%,380px); }
.sign-in h1 { font-size:32px; letter-spacing:-.025em; line-height:1.25; }
.sign-in p { margin-top:8px; color:var(--muted); }
.sign-in form { display:grid; gap:19px; margin:34px 0 24px; }
.sign-in form .form-error { margin:0; }
.demo-link { border-top:1px solid var(--line); padding-top:17px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.demo-link span { color:var(--muted); font-size:12px; }

/* 工作台框架 */
.frame { display:grid; grid-template-columns:216px minmax(0,1fr); min-height:100vh; }
.sidebar { position:sticky; top:0; height:100vh; background:#fcfdf9; border-right:1px solid var(--line); padding:29px 14px 18px; display:flex; flex-direction:column; gap:25px; overflow-y:auto; }
.brand-home { align-self:start; padding:0 12px; }
.sidebar nav,.sidebar-tail { display:grid; gap:4px; }
.sidebar nav { margin-top:12px; }
.nav-item { justify-content:flex-start; width:100%; min-height:44px; padding:9px 14px; border-radius:8px; color:#596e65; gap:13px; font-size:14px; font-weight:560; text-align:left; }
.nav-item:hover { background:#f0f4ed; color:var(--ink); }
.nav-item.active { background:#e4f0e5; color:#155e47; font-weight:680; }
.sidebar-tail { margin-top:auto; padding-top:15px; border-top:1px solid var(--line); }
.sidebar-tail .nav-item { min-height:36px; font-size:13px; }
.work-area { min-width:0; }
.bar { min-height:60px; border-bottom:1px solid var(--line); background:#fbfcf8; display:flex; justify-content:space-between; align-items:center; gap:15px; padding:12px clamp(18px,3.5vw,57px); }
.bar-context,.account { display:inline-flex; align-items:center; min-width:0; gap:9px; font-size:13px; color:var(--muted); overflow-wrap:anywhere; }
.bar-context strong { font-weight:550; }
.main { max-width:1450px; margin:0 auto; padding:clamp(24px,3vw,46px) clamp(18px,3.5vw,57px) 70px; }
.page-title { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:18px; margin:0 0 24px; }
.page-title h1 { color:#243e36; font-size:clamp(26px,2.8vw,37px); line-height:1.25; letter-spacing:-.035em; font-weight:680; overflow-wrap:anywhere; }
.page-title p { color:var(--muted); margin-top:8px; }
.page-title .actions { align-self:center; }
.next-work { display:flex; position:relative; isolation:isolate; overflow:hidden; background:#234e44; color:#f1f4e9; align-items:center; justify-content:space-between; gap:22px; border-radius:15px; padding:clamp(21px,3.2vw,39px); }
.next-work>div { min-width:0; }
.next-work p,.kicker { display:block; font-size:12px; font-weight:650; letter-spacing:.08em; }
.next-work p { color:#bdd5bc; }
.next-work h2 { font-weight:640; margin:7px 0; color:white; font-size:clamp(23px,2vw,32px); overflow-wrap:anywhere; }
.next-work span:not(.button) { font-size:14px; color:#dce7dd; }
.next-work .button { display:flex; width:max-content; margin-top:20px; }
.next-work img { width:min(27%,210px); height:auto; padding:5px 3px; background:#e4eee3; border-radius:12px; }
.counts,.two-col,.editor-grid { display:grid; gap:16px; }
.counts { grid-template-columns:repeat(3,minmax(0,1fr)); margin:18px 0; }
.business-counts { margin-top:0; }
.count-card { min-width:0; padding:18px 20px; display:flex; justify-content:space-between; align-items:center; gap:12px; background:var(--white); border:1px solid var(--line); border-radius:12px; color:var(--text); }
a.count-card:hover { border-color:#a5bfac; }
.count-card span:not(.stat-icon) { color:var(--muted); font-size:13px; }
.count-card strong { display:block; margin-top:3px; font-size:29px; font-weight:620; line-height:1.2; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.stat-icon,.row-icon,.empty-icon { display:grid; place-items:center; border-radius:9px; }
.stat-icon { background:var(--soft); color:#32694f; width:35px; height:35px; }
.two-col { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.editor-grid { grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); align-items:start; }
.panel,.next-step { min-width:0; margin-bottom:17px; border:1px solid var(--line); border-radius:13px; background:var(--white); box-shadow:0 2px 6px #153c1c05; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:17px 20px; border-bottom:1px solid var(--line); }
.panel-head h2 { font-size:17px; font-weight:650; letter-spacing:-.02em; }
.panel-body,.form-body { padding:20px; }
.panel-note,.calc-foot { margin:0; padding:18px 20px; color:var(--muted); }
.calc-foot { border-top:1px solid var(--line); font-size:12px; }
.next-step { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:20px; background:#eaf2e8; border-color:#cfdfcf; }
.kicker { color:#4c6c53; }
.next-step h2 { margin:3px 0 5px; font-size:23px; line-height:1.4; }
.next-step h2 small { display:inline-block; vertical-align:middle; margin-left:15px; color:#45694f; font-weight:530; }
.next-step p { font-size:14px; overflow-wrap:anywhere; }
.empty { min-height:155px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:22px; gap:6px; }
.empty-icon { height:36px; width:36px; background:#f0f4ec; color:#68836b; margin-bottom:2px; }
.empty strong { font-size:15px; }
.empty p { color:var(--muted); font-size:13px; max-width:37em; }
.empty a,.empty button { margin-top:5px; }
.record-row { padding:13px 20px; display:flex; align-items:center; gap:12px; color:var(--text); border-bottom:1px solid #edf0ea; }
.record-row:last-child { border-bottom:0; }
.record-row:hover { background:#f8faf6; }
.record-row>div { flex:1; min-width:0; }
.record-row strong,.record-row small,td small,.item-link { display:block; }
.record-row strong,.item-link { font-size:14px; overflow-wrap:anywhere; }
.record-row small,td small { color:var(--muted); margin-top:2px; }
.record-row>svg { color:#738b79; }
.row-icon { width:33px; height:33px; background:var(--soft); color:#568564; flex-shrink:0; }
.badge { display:inline-block; padding:3px 8px; border-radius:5px; color:#576b61; background:#edf2ec; font-size:12px; white-space:nowrap; font-weight:550; }
.badge.green { color:#286340; background:#e5f2e4; }
.badge.amber { color:#765715; background:#f8efd9; }
.table-scroll { max-width:100%; overflow-x:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
th,td { padding:12px 14px; border-bottom:1px solid #e9eee7; vertical-align:top; }
th:first-child,td:first-child { padding-left:20px; }
th:last-child,td:last-child { padding-right:20px; }
thead th { font-weight:600; font-size:12px; color:var(--muted); background:#f7f9f5; white-space:nowrap; }
tbody th { font-weight:560; }
tbody tr:last-child td,tbody tr:last-child th { border-bottom:0; }
.changed { background:#f2f7ee; }
td { min-width:74px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
td:first-child { min-width:115px; }
.source { overflow-wrap:anywhere; word-break:break-word; }
.evidence { border-top:1px solid var(--line); margin-top:15px; padding-top:12px; font-size:13px; }
.evidence strong { margin-right:8px; }
.history { padding:15px 20px; border-bottom:1px solid var(--line); }
.history:last-child { border-bottom:0; }
.history-title { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.history-title small { color:var(--muted); }
.history p { margin:9px 0; overflow-wrap:anywhere; }

/* 输入、方案与测算 */
input:not([type=radio]),select,textarea { width:100%; min-width:0; background:#fff; border:1px solid #cbd7ce; border-radius:7px; color:var(--ink); padding:9px 11px; line-height:1.45; }
input:not([type=radio]),select { min-height:41px; }
input::placeholder,textarea::placeholder { color:#758479; opacity:1; }
textarea { resize:vertical; min-height:78px; }
input:focus-visible,textarea:focus-visible,select:focus-visible { border-color:#43876c; outline:2px solid #b7d7c1; outline-offset:0; }
.field { min-width:0; display:grid; align-content:start; gap:6px; }
.field>span,.field legend { color:#374f44; font-size:13px; font-weight:600; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px 18px; }
.wide { grid-column:1/-1; }
.form-panel { max-width:810px; }
.form-footer { display:flex; justify-content:flex-end; align-items:center; gap:10px; margin-top:23px; }
.form-hint,.calculation-note { margin-top:14px; color:var(--muted); font-size:13px; }
.methods { border:none; padding:0; margin:0; }
.methods legend { padding:0; margin-bottom:8px; }
.methods>div { display:flex; flex-wrap:wrap; gap:7px; }
.methods label { position:relative; display:block; }
.methods input { position:absolute; opacity:0; width:100%; height:100%; cursor:pointer; margin:0; inset:0; }
.methods label span { display:block; padding:7px 11px; border:1px solid #ccd8ce; border-radius:7px; color:#4a6254; background:white; font-size:13px; }
.methods input:checked+span { border-color:#6a9b7f; color:#205939; background:#eaf4e9; font-weight:650; }
.methods input:focus-visible+span { outline:3px solid #6b9678; outline-offset:2px; }
.filters,.version-pick { padding:13px 20px; display:flex; flex-wrap:wrap; align-items:center; gap:9px; border-bottom:1px solid var(--line); }
.filters .search { position:relative; display:flex; align-items:center; width:min(100%,305px); }
.search svg { position:absolute; left:11px; color:var(--muted); }
.search input { padding-left:35px; font-size:13px; }
.filters input,.filters select { min-height:37px; }
.filter-select { min-width:100px; }
.version-pick { align-items:flex-end; }
.values { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr)); margin:0; gap:15px 19px; }
.values>div { min-width:0; }
.values dt,.metric-pair span { color:var(--muted); font-size:12px; }
.values dd { margin:3px 0 0; color:var(--ink); font-weight:550; font-size:14px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.metric-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:13px 0 16px; padding-bottom:15px; border-bottom:1px solid var(--line); }
.metric-pair strong { display:block; font-size:clamp(18px,2vw,26px); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.calc-aside { position:sticky; top:14px; }
.snapshot-inputs { margin-top:15px; border-top:1px solid var(--line); }
.snapshot-inputs summary { padding:12px 0; color:var(--teal); cursor:pointer; font-weight:600; font-size:13px; }

@media (max-width:1000px) {
  .frame { grid-template-columns:178px minmax(0,1fr); }
  .sidebar { padding-inline:10px; }
  .main { padding-inline:21px; }
  .bar { padding-inline:21px; }
  .editor-grid { grid-template-columns:minmax(0,1fr); }
  .calc-aside { position:static; }
  .counts,.two-col,.editor-grid { gap:12px; }
  .count-card { padding:15px; }
}
@media (max-width:740px) {
  .login-layout { grid-template-columns:1fr; }
  .welcome { padding:21px max(22px,6vw); display:block; border:0; border-bottom:1px solid #cfddce; }
  .welcome-copy { margin-top:22px; max-width:65%; }
  .welcome-copy h2 { font-size:29px; }
  .welcome-copy p { display:none; }
  .welcome-art { position:absolute; bottom:8px; right:21px; width:min(35%,180px); margin:0; }
  .sign-in { align-items:start; padding:37px 22px; }
  .frame { display:block; }
  .sidebar { display:grid; grid-template-columns:1fr auto; height:auto; position:static; border:0; border-bottom:1px solid var(--line); padding:12px 13px 8px; gap:9px; overflow:visible; }
  .brand-home { padding:0 3px; }
  .brand img { width:31px; height:31px; }
  .brand { gap:8px; }
  .brand strong { font-size:17px; }
  .brand-en { font-size:10px; }
  .sidebar nav { grid-row:2; grid-column:1/-1; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; gap:3px; }
  .nav-item { justify-content:center; min-height:38px; gap:5px; padding:5px 3px; font-size:12px; white-space:nowrap; }
  .nav-item svg { width:15px; }
  .sidebar-tail { display:flex; grid-row:1; grid-column:2; border:0; padding:0; margin:0; gap:5px; }
  .sidebar-tail .nav-item { width:34px; height:34px; min-height:0; }
  .sidebar-tail .nav-item span { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  .sidebar-tail .nav-item svg { width:18px; }
  .bar { min-height:42px; padding:7px 16px; }
  .main { padding:22px 14px 48px; }
  .page-title { margin-bottom:16px; gap:12px; }
  .page-title p { font-size:13px; }
  .two-col { grid-template-columns:minmax(0,1fr); gap:0; }
  .counts { gap:7px; margin:12px 0; }
  .count-card { padding:12px 9px; border-radius:9px; }
  .count-card .stat-icon,.business-counts .count-card>svg { display:none; }
  .count-card strong { font-size:23px; }
  .count-card span:not(.stat-icon) { font-size:11px; }
  .next-work { padding:18px; }
  .next-work img { display:none; }
  .next-work span:not(.button) { font-size:13px; }
  .next-step { display:block; padding:15px; }
  .next-step>.button,.next-step>form { margin-top:13px; }
  .next-step h2 small { display:block; margin:3px 0; }
  .panel-head,.panel-body,.form-body,.record-row,.filters,.version-pick,.history,.panel-note,.calc-foot { padding:13px 14px; }
  th:first-child,td:first-child { padding-left:14px; }
  .filters .search { flex:1 1 180px; }
  .form-grid { gap:14px 11px; }
  .form-hint,.text-link,.back { font-size:12px; }
  .metric-pair strong { font-size:19px; }
}
@media (max-width:410px) {
  .nav-item { flex-direction:column; gap:1px; }
  .form-grid { grid-template-columns:1fr; }
  .sign-in h1 { font-size:27px; }
  .next-work .button,.next-step .button { font-size:13px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; }
}
