:root {
  color-scheme: light;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --sky: #0ea5e9;
  --green: #059669;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --paper: #ffffff;
  --danger: #dc2626;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; color: var(--ink); font: 15px/1.6 "Lato", system-ui, sans-serif; }
button, input, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }

.site-page {
  min-height: 100vh;
  padding-bottom: 52px;
  background: url("/static/DJI_0039.JPG") center/cover fixed no-repeat;
}
.site-page::before,
.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, .48);
  pointer-events: none;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1100;
  height: 70px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--sky));
  box-shadow: 0 4px 16px rgba(15, 23, 42, .22);
}
.nav-container {
  width: min(1400px, 100%);
  height: 70px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  color: #fff;
  text-decoration: none;
}
.brand-icon,
.login-brand-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
}
.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.app-title { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.nav-link {
  padding: 9px 18px;
  border-radius: 7px;
  color: rgba(255,255,255,.9);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-link:hover,
.nav-link.active { color: #fff; background: rgba(255,255,255,.18); }
.lang-toggle,
.login-lang {
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.13);
  font-weight: 700;
}
.lang-toggle:hover { background: rgba(255,255,255,.24); }

.main-content {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 40px));
  min-height: calc(100vh - 122px);
  margin: 0 auto;
  padding: 102px 0 36px;
}
.site-footer {
  position: fixed;
  inset: auto 0 0;
  z-index: 1000;
  padding: 10px 16px;
  color: #64748b;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 13px;
}

.page-intro,
.page-header {
  margin-bottom: 26px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,23,42,.15);
}
.page-intro h1,
.page-header h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.25; }
.page-intro p,
.page-header p { margin: 7px 0 0; color: var(--muted); }
.eyebrow {
  margin: 0 0 5px !important;
  color: var(--blue) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.method-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 10px 14px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-weight: 700;
}
.accounting-form { display: grid; gap: 26px; }

.card,
.content-card {
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,23,42,.14);
}
.card { overflow: hidden; }
.card-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 28px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border-bottom: 1px solid var(--line);
}
.card-header h2 { margin: 0; font-size: 19px; }
.card-header p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(37,99,235,.25);
}
.card-body { padding: 28px; }

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 700;
}
label small,
.climate-status small { color: #8491a3; font-size: 12px; font-weight: 400; }
input,
select {
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  transition: border .2s, box-shadow .2s;
}
input:hover,
select:hover { border-color: #94a3b8; }
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.16);
}

.map-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, .8fr);
  gap: 24px;
}
.map-panel { position: relative; min-width: 0; }
#map {
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #eef2f7;
  border: 2px solid var(--line);
  border-radius: 9px;
}
.map-hint {
  position: absolute;
  z-index: 500;
  top: 12px;
  left: 52px;
  margin: 0;
  padding: 7px 11px;
  color: #334155;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 6px;
  box-shadow: 0 2px 7px rgba(15,23,42,.12);
  font-size: 13px;
  pointer-events: none;
}
.map-hint i { margin-right: 6px; color: var(--blue); }
.map-notice { min-height: 20px; margin: 6px 0 0; color: #9a5b00; font-size: 12px; }
.coordinate-panel {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}
.panel-title i { color: var(--blue); }
.climate-status {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
}
.climate-status > span { color: #64748b; font-size: 12px; }
.climate-status strong { color: #1d4ed8; font-size: 17px; }
.climate-status strong[data-state="ready"] { color: #047857; }
.climate-status strong[data-state="error"] { color: var(--danger); }
.map-error { height: 100%; display: grid; place-content: center; justify-items: center; padding: 30px; color: var(--muted); text-align: center; }
.map-error button { padding: 8px 14px; color: var(--blue); background: #fff; border: 1px solid var(--blue); border-radius: 7px; }

.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px 24px; }
.model-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.analysis-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.analysis-card {
  position: relative;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--soft);
  border: 2px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: border .2s, box-shadow .2s, transform .2s;
}
.analysis-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 7px 18px rgba(37,99,235,.10);
  transform: translateY(-1px);
}
.analysis-card > span:nth-child(2) { display: grid; gap: 3px; }
.analysis-card strong { font-size: 16px; }
.analysis-card input { width: 18px; min-height: 18px; }
.analysis-icon,
.section-icon {
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #dbeafe;
  border-radius: 9px;
}
.analysis-icon { width: 44px; height: 44px; }
.iteration-field { width: min(360px, 100%); margin-top: 22px; }
.action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 4px 0 8px;
}
.form-feedback { text-align: center; }
button.primary,
.button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}
button.primary,
.button {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 1px solid #1d4ed8;
  box-shadow: 0 6px 15px rgba(37,99,235,.26);
}
button.primary:hover,
.button:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(37,99,235,.32); }
button:disabled { opacity: .6; cursor: wait; transform: none; }
.calculate-button { min-width: 235px; }
.secondary-button {
  color: #334155;
  background: #fff;
  border: 1px solid #cbd5e1;
}
.secondary-button:hover { color: var(--blue); border-color: #93c5fd; }
.error { min-height: 20px; margin: 0; color: var(--danger); }

.content-card { padding: 30px; }
.loading-state { min-height: 240px; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.loading-state i { color: var(--blue); font-size: 28px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.metric-grid > div {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: linear-gradient(145deg, #f8fafc, #eff6ff);
  border: 1px solid #dbeafe;
  border-radius: 10px;
}
.metric-grid > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}
.metric-grid span,
.metric-grid strong,
.metric-grid small { display: block; }
.metric-grid span { color: var(--muted); font-weight: 700; }
.metric-grid strong { margin: 8px 0 2px; color: #0f3f96; font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.metric-grid small { color: var(--muted); }
.result-content > h2,
.result-block h2 { margin: 28px 0 12px; font-size: 18px; }
.data-table { margin: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.data-table > div { display: grid; grid-template-columns: 220px minmax(0,1fr); border-bottom: 1px solid var(--line); }
.data-table > div:last-child { border-bottom: 0; }
.data-table dt,
.data-table dd { margin: 0; padding: 13px 17px; }
.data-table dt { color: var(--muted); background: var(--soft); }
.data-table dd { font-weight: 700; }
.result-block {
  margin-top: 25px;
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.result-block h2 { margin-top: 0; }
.result-block ol { margin: 0; padding: 0; list-style: none; }
.result-block li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.result-block li:last-child { border-bottom: 0; }
.result-actions { margin: 26px 0 0; }

.methodology-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.method-section {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.section-icon { flex: 0 0 46px; width: 46px; height: 46px; }
.method-section h2 { margin: 0 0 7px; font-size: 18px; }
.method-section p { margin: 0; color: var(--muted); }
.help-steps { display: grid; gap: 14px; }
.help-steps section { display: flex; gap: 17px; padding: 18px 20px; background: var(--soft); border: 1px solid var(--line); border-radius: 9px; }
.help-steps section > span { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #fff; background: var(--blue); border-radius: 50%; font-weight: 800; }
.help-steps h2 { margin: 1px 0 4px; font-size: 17px; }
.help-steps p { margin: 0; color: var(--muted); }
.help-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px 18px; color: #1e40af; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 9px; }
.help-note p { margin: 0; }

.login-page {
  min-height: 100vh;
  background: #f3f5f8;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
.login-page::before { display: none; }
.login-main {
  min-height: 100vh;
}
.login-container {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 42%) minmax(0, 1fr);
  overflow: hidden;
}
.login-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: clamp(42px, 7vw, 96px);
  color: #fff;
  background: url("/static/DJI_0039.JPG") center/cover no-repeat;
}
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11,35,70,.72);
}
.login-brand-content { max-width: 430px; }
.login-brand-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 4px;
  background: #1677ff;
  font-size: 23px;
  box-shadow: none;
}
.login-product {
  max-width: 420px;
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.35;
}
.login-method { margin: 14px 0 0; color: #cbd8ea; font-size: 14px; }
.login-entry {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(430px, calc(100% - 48px));
  padding: 34px;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(14,35,66,.08);
}
.login-lang {
  position: absolute;
  top: 22px;
  right: 24px;
  min-height: 30px;
  padding: 3px 10px;
  color: #126fe6;
  background: #fff;
  border-color: #b9c9dc;
  border-radius: 4px;
  font-size: 12px;
}
.login-heading { margin-bottom: 24px; padding-right: 60px; }
.login-kicker { margin: 0 0 5px; color: #1677ff; font-size: 12px; font-weight: 700; }
.login-heading h1 { margin: 0; color: #17263b; font-size: 26px; line-height: 1.35; }
.login-heading > p:last-child { margin: 7px 0 0; color: #718096; font-size: 13px; }
.login-form { display: grid; gap: 14px; }
.login-form label { color: #34445a; font-size: 13px; }
.input-wrap { position: relative; display: block; }
.input-wrap i { position: absolute; top: 50%; left: 13px; z-index: 1; color: #94a3b8; transform: translateY(-50%); }
.input-wrap input { padding-left: 40px; }
.login-submit { width: 100%; margin-top: 2px; }
.privacy-note { margin: 16px 0 0; color: #8491a3; text-align: center; font-size: 12px; }

@media (max-width: 980px) {
  .logo-section { min-width: 0; }
  .app-title { font-size: 17px; }
  .nav-container { gap: 14px; padding: 0 18px; }
  .nav-links { gap: 2px; }
  .nav-link { padding: 8px 11px; }
  .map-workspace { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .header { height: auto; }
  .nav-container { height: auto; min-height: 70px; flex-wrap: wrap; padding: 12px 16px; }
  .logo-section { flex: 1; }
  .app-title { font-size: 16px; }
  .nav-links { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
  .nav-link { padding: 7px 10px; font-size: 13px; }
  .main-content { width: min(100% - 24px, 1400px); padding-top: 132px; }
  .page-intro, .page-header { align-items: flex-start; flex-direction: column; padding: 22px; }
  .card-body, .content-card { padding: 20px; }
  .card-header { padding: 17px 20px; }
  .field-grid, .model-grid, .analysis-cards, .methodology-grid, .metric-grid { grid-template-columns: 1fr; }
  #map { height: 320px; }
  .map-hint { left: 48px; right: 10px; text-align: center; }
  .action-buttons { align-items: stretch; flex-direction: column; }
  .calculate-button { width: 100%; }
  .data-table > div { grid-template-columns: 1fr; }
  .data-table dd { padding-top: 0; }
  .login-container { grid-template-columns: 1fr; grid-template-rows: 180px auto; }
  .login-brand { min-height: 180px; align-items: center; padding: 24px; text-align: center; }
  .login-brand-content { width: 100%; max-width: none; }
  .login-brand-icon { width: 44px; height: 44px; margin: 0 auto 10px; font-size: 19px; }
  .login-product { margin: auto; font-size: 19px; }
  .login-method { margin-top: 6px; font-size: 12px; }
  .login-entry { align-self: start; width: min(430px, calc(100% - 24px)); margin: -24px auto 24px; padding: 28px 22px 24px; z-index: 1; }
  .login-lang { top: 18px; right: 18px; }
  .login-heading { padding-right: 54px; }
}

.gres-form { display: grid; gap: 18px; }
.gres-fields { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.gres-option-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gres-option { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border: 1px solid #d8e0ea; border-radius: 6px; background: #fff; cursor: pointer; }
.gres-option:hover { border-color: #8eb9f4; background: #f8fbff; }
.gres-option:has(input:checked) { border-color: #1677ff; background: #eef5ff; box-shadow: inset 3px 0 #1677ff; }
.gres-option input { width: 17px; min-height: 17px; margin: 0; flex: 0 0 auto; }
.gres-option span { display: grid; min-width: 0; gap: 1px; }
.gres-option strong { color: #26384e; font-size: 13px; }
.gres-option small { color: #7b899b; font-size: 10px; line-height: 1.25; }
.gres-details { margin-top: 18px; padding: 14px; border: 1px solid #dfe5ed; background: #fafbfd; }
.gres-conditional:not([open]) { display: none; }
.gres-inline-options { margin-top: 12px; }
.gres-inline-options label { width: min(280px, 100%); }
.gres-details summary { cursor: pointer; color: #263c56; font-weight: 700; }
.gres-details summary strong { float: right; color: #1677ff; }
.gres-details textarea { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #ccd5e0; font: 12px/1.5 monospace; }
#gres-result { display: grid; gap: 14px; }
#gres-result details { padding: 12px 16px; border-bottom: 1px solid #e5eaf1; }
#gres-result .gres-result-details { padding: 0; overflow: hidden; }
#gres-result .gres-result-details summary { display: flex; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; }
#gres-result .gres-result-details summary::-webkit-details-marker { display: none; }
#gres-result .gres-result-details summary::before { content: "\f054"; color: #1677ff; font: 900 12px/1 "Font Awesome 6 Free"; transition: transform .2s ease; }
#gres-result .gres-result-details[open] summary::before { transform: rotate(90deg); }
#gres-result .gres-result-details summary span { display: grid; gap: 4px; }
#gres-result .gres-result-details summary strong { color: #24364b; font-size: 16px; }
#gres-result .gres-result-details summary small { color: #78879a; font-size: 12px; font-weight: 400; }
#gres-result .gres-result-details .table-scroll { border-top: 1px solid #e5eaf1; }

@media (max-width: 900px) { .gres-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gres-option-grid { grid-template-columns: 1fr; } }

/* Enterprise calculation console */
.site-page {
  padding-bottom: 0;
  background: #f3f5f8;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
.site-page::before { display: none; }
.header {
  height: 56px;
  background: #0b2346;
  box-shadow: none;
}
.nav-container {
  width: 100%;
  height: 56px;
  padding: 0 22px;
  gap: 24px;
}
.logo-section { min-width: 280px; gap: 10px; }
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: #fff;
  background: #1677ff;
  box-shadow: none;
  font-size: 16px;
}
.app-title { font-size: 17px; font-weight: 700; }
.nav-links { justify-content: flex-start; height: 100%; gap: 2px; }
.nav-link {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 0;
  color: #cbd8ea;
  font-size: 14px;
  font-weight: 500;
}
.nav-link:hover,
.nav-link.active { color: #fff; background: #102f5c; }
.nav-link.active::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  background: #2f8cff;
}
.header-version { margin-left: auto; color: #9fb2cc; font-size: 12px; white-space: nowrap; }
.lang-toggle {
  min-height: 30px;
  padding: 3px 10px;
  border-radius: 4px;
  border-color: #496381;
  background: transparent;
  font-size: 12px;
}
.console-shell { min-height: 100vh; display: grid; grid-template-columns: 208px minmax(0, 1fr); padding-top: 56px; }
.console-nav {
  position: fixed;
  inset: 56px auto 0 0;
  z-index: 900;
  width: 208px;
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  background: #fff;
  border-right: 1px solid #dfe5ed;
}
.console-nav-title,
.console-nav-item,
.console-nav-meta,
.console-nav-foot { display: flex; align-items: center; gap: 11px; }
.console-nav-title { padding: 8px 10px 14px; color: #1b2b42; font-weight: 700; }
.console-nav-title i { color: #1677ff; }
.console-nav-item {
  min-height: 40px;
  margin-bottom: 3px;
  padding: 0 12px;
  border-radius: 4px;
  color: #44546a;
  text-decoration: none;
  font-size: 14px;
}
.console-nav-item i { width: 17px; color: #738298; text-align: center; }
.console-nav-item:hover { color: #1677ff; background: #f2f6fc; }
.console-nav-item.active { color: #0969da; background: #eaf3ff; font-weight: 600; }
.console-nav-item.active i { color: #1677ff; }
.console-nav-divider { margin: 14px 8px; border-top: 1px solid #e6eaf0; }
.console-nav-label { margin: 0; padding: 0 10px 9px; color: #98a4b3; font-size: 12px; }
.console-nav-meta { padding: 8px 10px; color: #44546a; font-size: 13px; line-height: 1.3; }
.console-nav-meta i { color: #1677ff; }
.console-nav-meta small { color: #8a97a7; }
.console-nav-foot { margin-top: auto; padding: 12px 10px; color: #728095; border-top: 1px solid #e6eaf0; font-size: 12px; }
.console-nav-foot i { color: #14a06f; }
.main-content {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 56px);
  margin: 0;
  padding: 20px 22px 34px;
}
.site-footer { display: none; }
.page-intro,
.page-header {
  margin-bottom: 14px;
  padding: 0 0 15px;
  border: 0;
  border-bottom: 1px solid #dfe5ed;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.page-intro h1,
.page-header h1 { font-size: 24px; font-weight: 700; }
.page-intro p,
.page-header p { margin-top: 5px; font-size: 13px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0 0 7px !important; color: #8a97a7 !important; font-size: 12px !important; }
.breadcrumb strong { color: #536277; font-weight: 500; }
.intro-meta { display: flex; align-items: center; gap: 22px; color: #66758a; font-size: 12px; white-space: nowrap; }
.intro-meta i { margin-right: 5px; color: #12a16c; }
.method-badge { border-radius: 4px; }
.workflow-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid #dfe5ed;
}
.workflow-progress a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #66758a;
  text-decoration: none;
  font-size: 13px;
}
.workflow-progress a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: min(70px, 28%);
  border-top: 1px solid #d7dee8;
}
.workflow-progress span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid #cdd6e2;
  border-radius: 50%;
  color: #526176;
  background: #fff;
  font-weight: 700;
}
.workflow-progress .active { color: #126fe6; }
.workflow-progress .active span { color: #fff; border-color: #1677ff; background: #1677ff; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: 14px; }
.accounting-form { gap: 14px; min-width: 0; }
.card,
.content-card {
  border-color: #dfe5ed;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(14, 35, 66, .04);
}
.card-header {
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #f8fafc;
  border-bottom-color: #e4e9f0;
}
.card-header h2 { font-size: 15px; }
.card-header p { margin-top: 1px; font-size: 12px; }
.step-number {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  border-radius: 4px;
  background: #1677ff;
  box-shadow: none;
  font-size: 13px;
}
.card-body { padding: 14px; }
.map-workspace { grid-template-columns: minmax(0, 1.75fr) minmax(220px, .65fr); gap: 14px; }
#map { height: 360px; border-width: 1px; border-radius: 3px; }
.map-hint { border-radius: 3px; box-shadow: 0 2px 6px rgba(14,35,66,.12); }
.coordinate-panel { gap: 12px; padding: 14px; border-radius: 3px; background: #f8fafc; }
.panel-title { padding-bottom: 10px; }
.climate-status { padding: 11px; border-radius: 3px; }
.climate-status strong { font-size: 15px; }
.field-grid { gap: 12px; }
label { gap: 5px; font-size: 12px; }
input,
select { min-height: 36px; padding: 6px 9px; border-radius: 3px; font-size: 13px; }
.form-lower-grid { display: grid; grid-template-columns: 1.35fr .9fr 1fr; align-items: stretch; gap: 14px; }
.form-lower-grid .card { min-width: 0; }
.form-lower-grid .card-body { height: calc(100% - 58px); }
.water-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.model-grid { grid-template-columns: 1fr; }
.analysis-cards { grid-template-columns: 1fr; gap: 9px; }
.analysis-card { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 9px; padding: 10px; border-width: 1px; border-radius: 3px; }
.analysis-card:hover { transform: none; box-shadow: none; }
.analysis-icon { width: 32px; height: 32px; border-radius: 3px; }
.analysis-card strong { font-size: 13px; }
.analysis-card small { line-height: 1.35; }
.iteration-field { width: 100%; margin-top: 12px; }
.action-buttons {
  min-height: 58px;
  padding: 10px;
  background: #fff;
  border: 1px solid #dfe5ed;
}
button.primary,
.button { border-radius: 3px; background: #1677ff; box-shadow: none; }
button.primary:hover,
.button:hover { background: #0969da; transform: none; box-shadow: none; }
.calculate-button { min-width: 300px; }
.form-feedback { min-height: 0; }
.calculation-summary { position: sticky; top: 70px; display: grid; gap: 14px; }
.calculation-summary section { padding: 15px; background: #fff; border: 1px solid #dfe5ed; }
.calculation-summary h2 { margin: 0 0 13px; padding-left: 9px; border-left: 3px solid #1677ff; font-size: 14px; }
.completion-status { display: flex; align-items: baseline; gap: 7px; margin-bottom: 13px; padding: 12px; background: #f5f8fc; }
.completion-status strong { color: #1677ff; font-size: 28px; line-height: 1; }
.completion-status span { color: #758398; font-size: 12px; }
.summary-steps,
.output-list { margin: 0; padding: 0; list-style: none; }
.summary-steps { display: grid; gap: 10px; }
.summary-steps li { display: flex; justify-content: space-between; gap: 8px; color: #4f5e72; font-size: 12px; }
.summary-steps em { color: #8b98a9; font-style: normal; white-space: nowrap; }
.summary-steps em[data-state="complete"] { color: #138a61; }
.summary-steps em[data-state="editing"] { color: #1677ff; }
.output-list { display: grid; gap: 11px; }
.output-list li { display: flex; align-items: center; gap: 9px; color: #536277; font-size: 12px; }
.output-list i { width: 17px; color: #1677ff; text-align: center; }
.summary-note p { margin: 0; color: #718096; font-size: 12px; line-height: 1.7; }
.content-card { padding: 22px; }
.page-header { padding-top: 4px; }
.secondary-button { border-radius: 3px; }

@media (max-width: 1180px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .calculation-summary { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-lower-grid { grid-template-columns: 1fr 1fr; }
  .step-card-water { grid-row: span 2; }
  .workflow-progress a:not(:last-child)::after { display: none; }
}
@media (max-width: 880px) {
  .console-shell { grid-template-columns: 64px minmax(0, 1fr); }
  .console-nav { width: 64px; padding-inline: 7px; }
  .console-nav span, .console-nav-label, .console-nav-divider { display: none; }
  .console-nav-title, .console-nav-item, .console-nav-meta, .console-nav-foot { justify-content: center; padding-inline: 0; }
  .main-content { grid-column: 2; padding-inline: 14px; }
  .logo-section { min-width: 220px; }
  .header-version { display: none; }
  .form-lower-grid { grid-template-columns: 1fr; }
  .step-card-water { grid-row: auto; }
}
@media (max-width: 720px) {
  .header { height: 56px; }
  .nav-container { min-height: 56px; height: 56px; flex-wrap: nowrap; padding: 0 12px; }
  .logo-section { min-width: 0; }
  .nav-links, .header-version { display: none; }
  .console-shell { grid-template-columns: 1fr; padding-top: 56px; }
  .console-nav { display: none; }
  .main-content { grid-column: 1; padding: 14px 10px 24px; }
  .page-intro { align-items: flex-start; padding: 0 0 13px; }
  .intro-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .workflow-progress { grid-template-columns: repeat(4, 1fr); padding: 10px 8px; }
  .workflow-progress a { justify-content: center; }
  .workflow-progress strong { display: none; }
  .map-workspace { grid-template-columns: 1fr; }
  .calculation-summary { grid-template-columns: 1fr; }
  .card-body, .content-card { padding: 12px; }
  .calculate-button { width: 100%; min-width: 0; }
}

/* Rich analysis results */
#result-page-header .result-header-actions { display: flex; align-items: center; gap: 12px; }
.record-status { color: #138a61; font-size: 12px; white-space: nowrap; }
.record-status i { margin-right: 5px; }
#result-console-card { padding: 0; overflow: hidden; }
.result-tabs {
  display: flex;
  min-height: 52px;
  padding: 0 16px;
  background: #f8fafc;
  border-bottom: 1px solid #dfe5ed;
}
.result-tab {
  position: relative;
  min-width: 160px;
  padding: 0 20px;
  color: #617086;
  background: transparent;
  border: 0;
  font-size: 13px;
}
.result-tab i { margin-right: 7px; }
.result-tab:hover { color: #1677ff; }
.result-tab.active { color: #126fe6; background: #fff; font-weight: 700; }
.result-tab.active::after { content: ""; position: absolute; inset: auto 18px 0; height: 3px; background: #1677ff; }
.result-pane { display: none; padding: 18px; }
.result-pane.active { display: grid; gap: 14px; }
.result-summary-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.result-total-card,
.result-kpi-card { min-width: 0; min-height: 132px; padding: 20px; border: 1px solid #dfe5ed; }
.result-total-card { color: #fff; background: #123460; border-color: #123460; }
.result-total-card span,
.result-total-card strong,
.result-total-card small,
.result-kpi-card span,
.result-kpi-card strong,
.result-kpi-card small { display: block; }
.result-total-card span { color: #cfdbeb; font-size: 13px; }
.result-total-card strong { margin: 8px 0 3px; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.result-total-card small { color: #adc0d9; }
.result-kpi-card { position: relative; background: #fff; }
.result-kpi-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #1677ff; }
.result-kpi-card.ch4::before { background: #f0a020; }
.result-kpi-card span { color: #64748b; font-size: 13px; }
.result-kpi-card span i { width: 18px; color: #1677ff; }
.result-kpi-card.ch4 span i { color: #d9870d; }
.result-kpi-card strong { margin: 15px 0 3px; color: #17263a; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.result-kpi-card small { color: #8a97a7; }
.result-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: stretch; gap: 14px; }
.result-panel { min-width: 0; background: #fff; border: 1px solid #dfe5ed; }
.result-panel > header { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; background: #fafbfd; border-bottom: 1px solid #e5eaf1; }
.result-panel h2 { margin: 0; color: #24364d; font-size: 14px; }
.result-panel header p { margin: 2px 0 0; color: #8491a3; font-size: 11px; }
.panel-unit,
.method-tag { color: #758399; font-size: 11px; white-space: nowrap; }
.method-tag { padding: 4px 8px; color: #126fe6; background: #eef5ff; border: 1px solid #cfe1fb; }
.chart-frame { position: relative; height: 260px; padding: 15px; }
.chart-frame.wide { height: 320px; }
.chart-frame.chart-unavailable::after { content: attr(data-unavailable); position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: #7b8899; background: #fff; text-align: center; font-size: 12px; }
.result-definition-list { margin: 0; }
.result-definition-list > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); border-bottom: 1px solid #edf0f4; }
.result-definition-list > div:last-child { border-bottom: 0; }
.result-definition-list dt,
.result-definition-list dd { margin: 0; padding: 10px 13px; font-size: 12px; }
.result-definition-list dt { color: #758399; background: #fbfcfd; }
.result-definition-list dd { color: #2f4158; font-weight: 600; overflow-wrap: anywhere; }
.result-table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.result-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.result-table th { padding: 10px 13px; color: #536277; background: #f5f7fa; border-bottom: 1px solid #dfe5ed; text-align: left; white-space: nowrap; font-weight: 600; }
.result-table td { padding: 11px 13px; color: #405168; border-bottom: 1px solid #ebeff4; font-variant-numeric: tabular-nums; }
.result-table tbody tr:last-child td { border-bottom: 0; }
.result-table tbody tr:hover { background: #f8fbff; }
.result-table td strong { color: #22364e; }
.result-table td small { display: block; margin-top: 2px; color: #8a97a7; }
.result-table .total-row { background: #eef5ff; }
.result-table .total-row td { color: #126fe6; font-weight: 700; }
.result-table.compact th,
.result-table.compact td { padding-block: 10px; }
.factor-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.factor-grid > div { min-width: 0; padding: 13px; border-right: 1px solid #e8ecf1; }
.factor-grid > div:last-child { border-right: 0; }
.factor-grid span,
.factor-grid strong,
.factor-grid small { display: block; }
.factor-grid span { color: #758399; font-size: 11px; }
.factor-grid strong { margin: 6px 0 2px; color: #20344d; font-size: 18px; font-variant-numeric: tabular-nums; }
.factor-grid small { color: #96a1af; font-size: 10px; overflow-wrap: anywhere; }
.analysis-highlight { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 17px 20px; color: #fff; background: #123460; }
.analysis-highlight div { display: flex; align-items: baseline; gap: 12px; }
.analysis-highlight span { color: #cbd9e9; font-size: 13px; }
.analysis-highlight strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.analysis-highlight small,
.analysis-highlight p { color: #b7c8dc; font-size: 11px; }
.analysis-highlight p { margin: 0; }
.uncertainty-grid { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.sensitivity-grid { grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); }
.analysis-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; color: #35557a; background: #f0f6fd; border: 1px solid #cfdef0; font-size: 12px; }
.analysis-note i { margin-top: 3px; color: #1677ff; }
.analysis-note p { margin: 0; }
.result-empty { min-height: 330px; display: grid; place-content: center; justify-items: center; padding: 30px; color: #77869a; text-align: center; }
.result-empty i { margin-bottom: 15px; color: #9cadc1; font-size: 34px; }
.result-empty h2 { margin: 0 0 7px; color: #34475e; font-size: 17px; }
.result-empty p { width: min(520px, 100%); margin: 0; font-size: 12px; }

@media (max-width: 1100px) {
  .result-dashboard-grid,
  .uncertainty-grid,
  .sensitivity-grid { grid-template-columns: 1fr; }
  .factor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .factor-grid > div:nth-child(3) { border-right: 0; }
  .factor-grid > div:nth-child(-n+3) { border-bottom: 1px solid #e8ecf1; }
}
@media (max-width: 720px) {
  #result-page-header,
  #result-page-header .result-header-actions { align-items: stretch; }
  #result-page-header .result-header-actions { width: 100%; justify-content: space-between; }
  .result-tabs { padding: 0; overflow-x: auto; }
  .result-tab { min-width: 145px; padding-inline: 12px; }
  .result-pane { padding: 10px; }
  .result-summary-grid { grid-template-columns: 1fr; }
  .result-total-card,
  .result-kpi-card { min-height: 112px; }
  .factor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factor-grid > div:nth-child(3) { border-right: 1px solid #e8ecf1; }
  .factor-grid > div:nth-child(even) { border-right: 0; }
  .analysis-highlight,
  .analysis-highlight div { align-items: flex-start; flex-direction: column; gap: 5px; }
}
