/* =========================================================
   金赛药业电气综合监控 · Mobile UI
   ========================================================= */
:root {
  --bg: #f2f5f1;
  --surface: #ffffff;
  --ink: #12241e;
  --ink-2: #354b43;
  --muted: #7a8a82;
  --muted-2: #9aa8a1;
  --line: #e8eee9;
  --line-dark: rgba(10, 60, 48, 0.08);
  --brand: #0b7a61;
  --brand-deep: #063b34;
  --brand-dark: #052f2a;
  --brand-2: #11b58c;
  --mint: #e5f5ee;
  --mint-2: #f2faf6;
  --amber: #d99a3d;
  --amber-soft: #fdf3e2;
  --red: #d9554d;
  --red-soft: #fcebe9;
  --blue: #3f7bf0;
  --blue-soft: #ebf1ff;
  --shadow: 0 10px 34px rgba(16, 54, 42, 0.07);
  --shadow-soft: 0 4px 16px rgba(16, 54, 42, 0.05);
  --radius: 20px;
  --tab-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  overscroll-behavior-y: none;
  -webkit-user-select: none;
  user-select: none;
  font-size: 14px;
}
button, input, textarea, select { font-family: inherit; }
button { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::-webkit-scrollbar { width: 0; height: 0; }

#app {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
}
@media (min-width: 600px) {
  body { background: #e6ece6; }
  #app { box-shadow: 0 0 80px rgba(10, 38, 30, 0.15); }
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon.sm { width: 16px; height: 16px; stroke-width: 1.9; }
.icon.lg { width: 24px; height: 24px; }
.icon.xl { width: 30px; height: 30px; stroke-width: 1.6; }

.boot {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 75% 15%, rgba(33, 190, 146, 0.20), transparent 36%),
    linear-gradient(155deg, #052d28 0%, #073e36 55%, #0a5d4b 100%);
  color: #fff;
}
.boot-mark {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: bootIn 0.7s cubic-bezier(.2,.9,.25,1) both;
}
.boot-mark svg { width: 100%; height: 100%; }
.boot-title {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 2px;
  animation: fadeUp 0.7s 0.12s both;
}
.boot-sub {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  letter-spacing: 2.6px;
  animation: fadeUp 0.7s 0.2s both;
}
.boot-line {
  width: 96px;
  height: 2px;
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.boot-line i {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #5fe0bb, transparent);
  animation: bootLine 1.15s ease-in-out infinite;
}

/* =============== 登录 / 服务器 =============== */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.auth-hero {
  position: relative;
  padding: calc(26px + env(safe-area-inset-top, 0px)) 24px 62px;
  min-height: 38vh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 5%, rgba(53, 224, 174, 0.25), transparent 36%),
    radial-gradient(circle at -10% 90%, rgba(242, 195, 106, 0.12), transparent 38%),
    linear-gradient(152deg, #052d28 0%, #073d35 55%, #0a5d4b 100%);
}
.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 85%);
  pointer-events: none;
}
.auth-hero::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -110px;
  bottom: -120px;
  border: 1px solid rgba(86, 229, 190, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(86, 229, 190, 0.035), 0 0 0 62px rgba(86, 229, 190, 0.025);
  pointer-events: none;
}
.auth-brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.auth-brand .mini-logo {
  width: 34px; height: 34px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.auth-brand .mini-logo svg { width: 100%; height: 100%; }
.auth-brand-text { font-size: 11px; letter-spacing: 1.4px; color: rgba(255,255,255,.74); }
.auth-brand-text b { display: block; font-size: 13px; letter-spacing: .6px; color: #fff; font-weight: 600; margin-bottom: 2px; }
.auth-kicker {
  position: relative; z-index: 1;
  margin-top: 34px;
  font-size: 10px;
  letter-spacing: 2.6px;
  color: #8be4c9;
  font-weight: 600;
}
.auth-title {
  position: relative; z-index: 1;
  margin: 9px 0 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: .3px;
}
.auth-desc {
  position: relative; z-index: 1;
  margin: 11px 0 0;
  max-width: 310px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.75;
}
.auth-panel {
  position: relative;
  z-index: 3;
  margin-top: -40px;
  padding: 0 18px calc(22px + var(--safe-bottom));
  flex: 1;
}
.auth-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 22px 20px 18px;
  box-shadow: 0 22px 60px rgba(8, 46, 37, 0.15);
  border: 1px solid rgba(255,255,255,.7);
  animation: fadeUp .5s both;
}
.auth-card h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: .2px;
}
.auth-card .sub {
  margin: 5px 0 20px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}
.field { margin-bottom: 13px; }
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.field-label span { color: var(--muted-2); font-weight: 400; }
.input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 13px;
  border-radius: 14px;
  background: #f5f8f5;
  border: 1.5px solid transparent;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.input-wrap:focus-within {
  background: #fff;
  border-color: rgba(11, 122, 97, .55);
  box-shadow: 0 0 0 4px rgba(11, 122, 97, .07);
}
.input-wrap .icon { color: #8b9d94; }
.input-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: .1px;
}
.input-wrap input::placeholder { color: #b2beb7; font-size: 13px; }
.input-action {
  width: 28px; height: 32px; display: grid; place-items: center; color: #9bac9f;
}
.hint {
  margin: 7px 2px 0;
  font-size: 10.5px;
  color: var(--muted-2);
  line-height: 1.6;
}
.btn {
  height: 50px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .14s, opacity .14s, box-shadow .18s;
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-primary {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, #0c7d63, #0a6854 60%, #085845);
  box-shadow: 0 10px 24px rgba(10, 108, 85, 0.24);
  letter-spacing: 1px;
}
.btn-primary .icon { width: 17px; height: 17px; }
.btn-secondary {
  width: 100%;
  color: var(--brand);
  background: var(--mint);
  font-weight: 600;
}
.btn-outline {
  width: 100%;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: #fff;
}
.btn-ghost {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfdfb;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-text {
  width: 100%;
  height: 44px;
  color: var(--muted);
  font-size: 12.5px;
}
.check-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: -1px 2px 15px; font-size: 10.5px; color: var(--muted);
}
.check-row label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.check-row input {
  width: 15px; height: 15px; margin: 0; accent-color: var(--brand);
  border-radius: 4px;
}
.check-row button { color: var(--brand); font-size: 10.5px; padding: 4px 0; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.auth-sep {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0 6px; color: var(--muted-2); font-size: 10px;
}
.auth-sep::before, .auth-sep::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.server-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f9f6;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.server-chip .icon { color: var(--brand); }
.server-chip b { color: var(--ink-2); font-weight: 600; }
.server-chip .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #b8c5be; flex: none; }
.server-chip .dot.ok { background: #19b78a; box-shadow: 0 0 0 3px rgba(25,183,138,.12); }
.server-chip .dot.warn { background: var(--amber); }
.auth-footer {
  padding: 18px 8px 0;
  text-align: center;
  color: #a5b2ab;
  font-size: 10px;
  line-height: 1.8;
}
.auth-footer b { color: #7e8f86; font-weight: 500; }
.conn-result {
  display: none;
  margin: 10px 1px 2px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.55;
}
.conn-result.show { display: block; animation: fadeUp .2s both; }
.conn-result.ok { background: var(--mint); color: #0a725b; }
.conn-result.err { background: var(--red-soft); color: #b33f38; }
.auth-links { display: flex; justify-content: center; gap: 18px; margin-top: 12px; }
.auth-links button { color: var(--muted); font-size: 11.5px; padding: 5px; }
.auth-links button b { color: var(--brand); font-weight: 600; }

.network-visual {
  position: absolute;
  right: 18px;
  bottom: 54px;
  width: 120px;
  height: 92px;
  opacity: .9;
  z-index: 1;
}
.network-visual .nv-line { position: absolute; background: rgba(102, 230, 195, .36); height: 1px; }
.network-visual .nv-line.v { width: 1px; height: auto; }
.network-visual .nv-node {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: #6fe2c1; box-shadow: 0 0 0 4px rgba(111,226,193,.13);
}
.network-visual .nv-box {
  position: absolute; width: 34px; height: 24px; border: 1px solid rgba(150,239,215,.4);
  border-radius: 5px; background: rgba(13,98,79,.5);
  font-size: 6px; color: rgba(255,255,255,.68); display: grid; place-items: center;
}

/* =============== 首页 =============== */
.home-hero {
  position: relative;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 19px 32px;
  color: #fff;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 92% 4%, rgba(56, 225, 176, 0.26), transparent 33%),
    radial-gradient(circle at 4% 105%, rgba(241, 193, 103, 0.10), transparent 34%),
    linear-gradient(158deg, #052d28 0%, #073d35 48%, #0a5e4c 100%);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(160deg, rgba(0,0,0,.8), transparent 72%);
  -webkit-mask-image: linear-gradient(160deg, rgba(0,0,0,.8), transparent 72%);
  pointer-events: none;
}
.home-hero::after {
  content: "";
  position: absolute;
  right: -78px;
  top: 88px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(92, 225, 187, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(92, 225, 187, .028), 0 0 0 74px rgba(92, 225, 187, .018);
  pointer-events: none;
}
.home-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.project-lockup .mark {
  width: 35px; height: 35px; border-radius: 10px; overflow: hidden; flex: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.project-lockup .mark svg { width: 100%; height: 100%; }
.project-lockup .txt { min-width: 0; }
.project-lockup .txt b {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.project-lockup .txt span { display: block; margin-top: 3px; font-size: 9px; letter-spacing: 1.1px; color: rgba(255,255,255,.48); }
.icon.fav { fill: #f2c36a; stroke: #f2c36a; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  position: relative;
  flex: none;
}
.icon-btn .badge-dot {
  position: absolute; top: 7px; right: 7px; min-width: 13px; height: 13px; padding: 0 3px;
  border-radius: 7px; background: #ef6a5c; color: #fff; font-size: 8px; line-height: 13px;
  text-align: center; border: 1.5px solid #073d35; font-weight: 700;
}
.hero-headline {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 9px;
  margin-top: 24px;
}
.hero-headline h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: .5px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 21px; padding: 0 8px; border-radius: 20px;
  background: rgba(61, 219, 170, .12);
  border: 1px solid rgba(61, 219, 170, .2);
  color: #8ce6c8; font-size: 9px; letter-spacing: .5px;
}
.live-pill i { width: 5px; height: 5px; border-radius: 50%; background: #52e3b3; animation: livePulse 2s infinite; }
.hero-energy { position: relative; z-index: 2; margin-top: 17px; }
.hero-energy .label { color: rgba(255,255,255,.48); font-size: 10.5px; letter-spacing: .6px; }
.hero-energy .big {
  display: flex; align-items: baseline; gap: 5px; margin-top: 3px;
  font-size: 43px; line-height: 1.08; font-weight: 650;
  letter-spacing: -1.3px; font-variant-numeric: tabular-nums;
}
.hero-energy .big span { font-size: 26px; letter-spacing: -.5px; opacity: .92; }
.hero-energy .big em { font-style: normal; font-size: 11px; font-weight: 400; color: rgba(255,255,255,.48); margin-left: 1px; letter-spacing: .5px; }
.hero-trend { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 10px; color: rgba(255,255,255,.48); }
.trend {
  display: inline-flex; align-items: center; gap: 2px; font-size: 10px;
  color: #77e4be; font-weight: 600; background: rgba(58, 210, 161, .10);
  padding: 3px 7px; border-radius: 6px;
}
.trend.up { color: #ffb1a8; background: rgba(239, 106, 92, .12); }
.trend.flat { color: #bac9c1; background: rgba(255,255,255,.07); }
.hero-spark {
  position: absolute; right: -6px; bottom: 0; width: 148px; height: 66px; opacity: .9; z-index: 1;
  pointer-events: none;
}
.hero-metrics {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.hero-metrics > div { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.10); }
.hero-metrics > div:first-child { padding-left: 0; border-left: 0; }
.hero-metrics span { display: block; color: rgba(255,255,255,.44); font-size: 9.5px; margin-bottom: 5px; }
.hero-metrics b {
  font-size: 18px; font-weight: 600; letter-spacing: -.2px; font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 3px;
}
.hero-metrics b em { font-style: normal; font-size: 9px; font-weight: 400; color: rgba(255,255,255,.38); }
.hero-metrics b.warn { color: #ffc48a; }
.home-body {
  position: relative; z-index: 3;
  margin-top: -17px;
  padding: 0 15px calc(var(--tab-h) + 26px + var(--safe-bottom));
}
.summary-card {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr;
  background: var(--surface); border-radius: 18px;
  padding: 14px 6px; box-shadow: 0 12px 34px rgba(9, 48, 37, .10);
  border: 1px solid rgba(255,255,255,.8);
}
.summary-card > div { text-align: center; position: relative; }
.summary-card > div + div::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 1px; background: var(--line);
}
.summary-card .num { font-size: 19px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.summary-card .num small { font-size: 9px; color: var(--muted-2); font-weight: 400; margin-left: 2px; }
.summary-card .cap { margin-top: 5px; color: var(--muted); font-size: 9.5px; }
.summary-card .num.green { color: var(--brand); }
.summary-card .num.amber { color: var(--amber); }
.summary-card .num.red { color: var(--red); }

.section { margin-top: 19px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3px 10px;
}
.section-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 650; letter-spacing: .2px; }
.section-title::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.section-title small { font-size: 9px; color: var(--muted-2); font-weight: 400; letter-spacing: .5px; }
.section-link { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 10.5px; padding: 4px 0 4px 8px; }
.section-link .icon { width: 13px; height: 13px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 60, 45, .035);
}
.card + .card { margin-top: 11px; }
.card.pad-lg { padding: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 13px; }
.card-title h3 { margin: 0; font-size: 14px; font-weight: 650; }
.card-title span { font-size: 9.5px; color: var(--muted-2); }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.quick-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  min-height: 83px; padding: 12px 11px;
  background: var(--surface); border-radius: 16px;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(15, 60, 45, .035);
  transition: transform .15s, background .15s;
}
.quick-item:active { transform: scale(.97); background: #fbfdfb; }
.quick-icon {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--mint); color: var(--brand);
}
.quick-icon .icon { width: 19px; height: 19px; }
.quick-icon.blue { background: var(--blue-soft); color: var(--blue); }
.quick-icon.amber { background: var(--amber-soft); color: var(--amber); }
.quick-icon.red { background: var(--red-soft); color: var(--red); }
.quick-icon.dark { background: #e9f0ed; color: #385a4d; }
.quick-title { font-size: 12px; font-weight: 600; letter-spacing: .1px; }
.quick-sub { margin-top: -3px; color: var(--muted-2); font-size: 8.5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.load-card { display: flex; align-items: center; gap: 17px; }
.gauge {
  position: relative; width: 104px; height: 104px; flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--brand-2) 0 var(--val, 62%), #edf2ee var(--val, 62%) 100%);
  display: grid; place-items: center;
}
.gauge.hot { background: conic-gradient(#e0a246 0 var(--val, 62%), #f3ece1 var(--val, 62%) 100%); }
.gauge::before {
  content: ""; position: absolute; inset: 9px; background: #fff; border-radius: 50%;
  box-shadow: inset 0 1px 5px rgba(15,60,45,.05);
}
.gauge-inner { position: relative; z-index: 1; text-align: center; }
.gauge-inner b { display: block; font-size: 23px; font-weight: 650; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.gauge-inner b small { font-size: 10px; font-weight: 500; color: var(--muted); }
.gauge-inner span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 8.5px; }
.phase-mini { flex: 1; min-width: 0; }
.phase-mini-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.phase-mini-row + .phase-mini-row { border-top: 1px dashed #edf1ed; }
.phase-mini-row .tag {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: var(--brand); background: var(--mint);
}
.phase-mini-row .tag.b { color: #cc8a2c; background: #fdf4e5; }
.phase-mini-row .tag.c { color: #4a78ce; background: #eef3ff; }
.phase-mini-row .bar { flex: 1; height: 4px; border-radius: 4px; background: #eef3ef; overflow: hidden; }
.phase-mini-row .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #5bd4ae, #0b7a61); }
.phase-mini-row .num { width: 58px; text-align: right; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.phase-mini-row .num small { color: var(--muted-2); font-size: 8px; font-weight: 400; }

.info-strip {
  display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 10px 12px;
  border-radius: 12px; background: #f6f9f6; font-size: 10px; color: var(--muted);
}
.info-strip .icon { color: var(--brand); width: 16px; height: 16px; }
.info-strip b { color: var(--ink-2); font-weight: 600; }
.info-strip .right { margin-left: auto; color: var(--muted-2); font-size: 9px; }

/* 重点回路 */
.focus-list { display: flex; flex-direction: column; }
.focus-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px;
  border-bottom: 1px solid #f1f5f1; background: #fff;
  width: 100%; text-align: left;
}
.focus-item:last-child { border-bottom: 0; }
.focus-item:active { background: #f8fbf8; }
.orb { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #20bb8c; box-shadow: 0 0 0 4px rgba(32,187,140,.11); }
.orb.alarm { background: #e1a044; box-shadow: 0 0 0 4px rgba(225,160,68,.12); }
.orb.offline { background: #acb8b1; box-shadow: 0 0 0 4px rgba(172,184,177,.13); }
.focus-main { flex: 1; min-width: 0; }
.focus-main b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-main span { display: block; margin-top: 3px; font-size: 9px; color: var(--muted-2); }
.focus-val { text-align: right; }
.focus-val b { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.focus-val b small { font-size: 8px; color: var(--muted-2); font-weight: 400; margin-left: 1px; }
.focus-val span { display: block; margin-top: 3px; font-size: 9px; color: var(--muted-2); }

/* 事件行 */
.event-list { display: flex; flex-direction: column; }
.event-row {
  display: flex; gap: 10px; padding: 12px 14px; background: #fff;
  border-bottom: 1px solid #f1f5f1; align-items: flex-start;
  width: 100%; text-align: left;
}
.event-row:last-child { border-bottom: 0; }
.event-row:active { background: #f8fbf8; }
.event-bar { width: 3px; border-radius: 3px; align-self: stretch; min-height: 36px; background: #e0a64b; flex: none; }
.event-bar.critical { background: #dc5a51; }
.event-bar.info { background: #7f9bd1; }
.event-bar.ok { background: #2cb58b; }
.event-ico {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber); flex: none; margin-top: 1px;
}
.event-ico.critical { background: var(--red-soft); color: var(--red); }
.event-ico.info { background: var(--blue-soft); color: var(--blue); }
.event-ico.ok { background: var(--mint); color: var(--brand); }
.event-ico .icon { width: 16px; height: 16px; }
.event-main { flex: 1; min-width: 0; }
.event-title { display: flex; align-items: center; gap: 6px; }
.event-title b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-main p, .event-sub { display: block; margin: 3px 0 0; font-size: 9.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-time { text-align: right; flex: none; }
.event-time b { display: block; font-size: 9px; color: var(--muted); font-weight: 500; }
.event-time span { display: inline-block; margin-top: 5px; font-size: 8px; padding: 2px 6px; border-radius: 5px; background: #f4f7f4; color: #93a39a; }
.event-time span.pending { background: var(--amber-soft); color: #b87a24; }

.badge {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px;
  border-radius: 5px; font-size: 8px; line-height: 1.6; font-weight: 500; white-space: nowrap;
}
.badge.online { color: #0b7a61; background: var(--mint); }
.badge.alarm { color: #b37722; background: var(--amber-soft); }
.badge.critical { color: #bb423a; background: var(--red-soft); }
.badge.offline { color: #7d8f85; background: #f1f4f1; }
.badge.info { color: #466fae; background: var(--blue-soft); }

/* =============== 内页通用 =============== */
.page { min-height: 100vh; padding-bottom: calc(var(--tab-h) + 44px + var(--safe-bottom)); }
.page.no-tab { padding-bottom: calc(24px + var(--safe-bottom)); }
.page-head {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 11px;
  padding: calc(9px + env(safe-area-inset-top, 0px)) 15px 9px;
  background: rgba(242, 245, 241, .93);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(15, 60, 45, .045);
}
.page-head .back, .page-head .act {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; color: var(--ink-2); box-shadow: var(--shadow-soft); flex: none;
}
.head-logo {
  width: 38px; height: 38px; border-radius: 11px; overflow: hidden; flex: none;
  box-shadow: 0 5px 14px rgba(10, 74, 58, .16);
}
.head-logo svg { width: 100%; height: 100%; }
.page-head .back .icon, .page-head .act .icon { width: 19px; height: 19px; }
.page-head .titles { flex: 1; min-width: 0; }
.page-head h1 { margin: 0; font-size: 16.5px; font-weight: 650; letter-spacing: .2px; line-height: 1.3; }
.page-head p { margin: 2px 0 0; font-size: 9px; color: var(--muted-2); letter-spacing: .3px; }
.page-head .head-actions { display: flex; gap: 7px; }
.page-body { padding: 14px 15px calc(24px + var(--safe-bottom)); }
.page-body.flush-top { padding-top: 8px; }

.detail-head {
  display: flex; align-items: center; gap: 11px;
  padding: calc(9px + env(safe-area-inset-top, 0px)) 15px 9px;
}
.detail-head .back { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; }
.detail-head h1 { flex: 1; margin: 0; color: #fff; font-size: 16px; text-align: center; font-weight: 600; }
.detail-head .act { width: 38px; height: 38px; color: #fff; display: grid; place-items: center; }
.detail-top {
  background: linear-gradient(155deg, #052d28, #074137 52%, #0a5e4c);
  color: #fff; padding-bottom: 42px; border-radius: 0 0 26px 26px;
  position: relative; overflow: hidden;
}
.detail-top::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent); -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
}
.detail-hero { position: relative; z-index: 1; padding: 12px 20px 0; }
.detail-loc { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.48); font-size: 9.5px; letter-spacing: .5px; }
.detail-loc .icon { width: 13px; height: 13px; }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 7px; }
.detail-title-row h2 { margin: 0; font-size: 25px; font-weight: 650; letter-spacing: .3px; }
.detail-title-row .sub { margin-top: 5px; font-size: 9.5px; color: rgba(255,255,255,.46); }
.detail-power { margin-top: 22px; display: flex; align-items: flex-end; gap: 6px; }
.detail-power b { font-size: 42px; line-height: 1; font-weight: 650; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.detail-power em { font-style: normal; font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.detail-power .trend { margin-left: 8px; margin-bottom: 4px; }
.detail-submetrics { display: flex; gap: 22px; margin-top: 18px; }
.detail-submetrics div span { display: block; font-size: 9px; color: rgba(255,255,255,.42); }
.detail-submetrics div b { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.detail-body { position: relative; z-index: 2; margin-top: -24px; padding: 0 15px calc(28px + var(--safe-bottom)); }

.tabs {
  display: flex; gap: 3px; padding: 4px; border-radius: 13px;
  background: #e9efea; margin-bottom: 12px; overflow-x: auto;
}
.tabs button {
  flex: 1; min-width: max-content; height: 36px; padding: 0 10px; border-radius: 10px;
  font-size: 11.5px; color: var(--muted); font-weight: 500; transition: all .18s; white-space: nowrap;
}
.tabs button.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 2px 8px rgba(16,54,42,.08); }
.segmented {
  display: flex; padding: 3px; border-radius: 11px; background: #edf2ed;
}
.segmented button { height: 28px; padding: 0 12px; border-radius: 8px; font-size: 10.5px; color: var(--muted); }
.segmented button.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 2px 6px rgba(16,54,42,.08); }

.alert-banner {
  display: flex; gap: 11px; padding: 13px 14px; border-radius: 16px;
  background: linear-gradient(135deg, #fff8ec, #fff3df); border: 1px solid #f5e2bf;
  margin-bottom: 11px;
}
.alert-banner .aico { width: 32px; height: 32px; border-radius: 10px; background: #fbe6c1; color: #b97b24; display: grid; place-items: center; flex: none; }
.alert-banner .aico .icon { width: 17px; height: 17px; }
.alert-banner b { display: block; font-size: 12px; color: #8b5a16; font-weight: 650; }
.alert-banner p { margin: 3px 0 0; font-size: 9.5px; color: #a37c43; line-height: 1.55; }
.alert-banner .link { margin-left: auto; align-self: center; color: #b97b24; font-size: 9px; flex: none; }
.alert-banner.critical { background: linear-gradient(135deg, #fff1ef, #fde8e5); border-color: #f4cdc8; }
.alert-banner.critical .aico { background: #f8d6d2; color: #b9413a; }
.alert-banner.critical b { color: #a23832; }
.alert-banner.critical p { color: #ad625c; }

.phase-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phase-card {
  padding: 12px 10px; border-radius: 15px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.phase-card .ph { display: flex; align-items: center; justify-content: space-between; }
.phase-card .ph b { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 9px; color: var(--brand); background: var(--mint); }
.phase-card.b .ph b { color: #c18425; background: #fdf3e2; }
.phase-card.c .ph b { color: #4a76c8; background: #edf2ff; }
.phase-card .ph span { font-size: 8px; color: var(--muted-2); }
.phase-card .v { margin-top: 9px; font-size: 18px; font-weight: 650; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.phase-card .v small { font-size: 8.5px; font-weight: 400; color: var(--muted-2); margin-left: 1px; }
.phase-card .a { margin-top: 3px; font-size: 9.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.phase-card .microbar { margin-top: 8px; height: 3px; border-radius: 3px; background: #eff4f0; overflow: hidden; }
.phase-card .microbar i { display: block; height: 100%; border-radius: 3px; background: var(--brand-2); }

.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.metric-box {
  padding: 13px 13px; border-radius: 15px; background: #fff; border: 1px solid var(--line);
}
.metric-box .k { font-size: 9px; color: var(--muted-2); display: flex; align-items: center; gap: 4px; }
.metric-box .k .icon { width: 13px; height: 13px; color: var(--muted); }
.metric-box .v { margin-top: 5px; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.metric-box .v small { font-size: 9px; color: var(--muted-2); font-weight: 400; margin-left: 2px; }
.metric-box .d { margin-top: 2px; font-size: 8.5px; color: var(--muted-2); }

.kv-list { background: #fff; border-radius: 16px; padding: 0 14px; border: 1px solid var(--line); }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #f1f5f1; }
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--muted); font-size: 10.5px; }
.kv-row .v { color: var(--ink); font-size: 11px; font-weight: 550; font-variant-numeric: tabular-nums; text-align: right; }
.kv-row .v small { color: var(--muted-2); font-weight: 400; font-size: 8.5px; margin-left: 2px; }

.energy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.energy-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.energy-tile .k { font-size: 9px; color: var(--muted-2); }
.energy-tile .v { margin-top: 4px; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.energy-tile .v small { font-size: 8.5px; color: var(--muted-2); font-weight: 400; margin-left: 1px; }

.temp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.temp-tile {
  padding: 12px 12px 11px; border-radius: 14px; background: #f8fbf8;
  border: 1px solid #e8f0ea;
}
.temp-tile.warm { background: #fffbf3; border-color: #f4e5c9; }
.temp-tile.hot { background: #fff3f1; border-color: #f3cfca; }
.temp-tile .tt { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.temp-tile .tt .icon { width: 14px; height: 14px; color: #9eb0a6; }
.temp-tile.warm .tt .icon { color: #d59a3d; }
.temp-tile.hot .tt .icon { color: #d6574d; }
.temp-tile .tv { margin-top: 8px; font-size: 23px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.temp-tile .tv small { font-size: 9px; font-weight: 400; color: var(--muted-2); margin-left: 2px; }
.temp-tile.hot .tv { color: var(--red); }
.temp-tile.warm .tv { color: #bd7d24; }
.temp-tile .tbar { height: 4px; border-radius: 4px; margin-top: 8px; background: #e9f0ea; overflow: hidden; }
.temp-tile .tbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #69d7b7, #0b7a61); }
.temp-tile.warm .tbar i { background: linear-gradient(90deg, #f1cf91, #d99a3d); }
.temp-tile.hot .tbar i { background: linear-gradient(90deg, #f0a49b, #d9554d); }

.leak-value { display: flex; align-items: baseline; gap: 4px; margin-top: 3px; }
.leak-value b { font-size: 38px; line-height: 1.1; font-weight: 650; letter-spacing: -1px; font-variant-numeric: tabular-nums; color: var(--brand); }
.leak-value span { color: var(--muted-2); font-size: 10px; }
.leak-value.critical b { color: var(--red); }
.leak-bar { height: 7px; border-radius: 7px; margin-top: 10px; background: #eef3ef; overflow: hidden; }
.leak-bar i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #6ed8b9, #0b7a61); }
.leak-bar i.critical { background: linear-gradient(90deg, #f0a59c, #d9554d); }
.leak-scale { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted-2); font-size: 8px; }

/* =============== 回路列表 =============== */
.searchbar {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 13px;
  border-radius: 13px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(16,54,42,.03);
}
.searchbar .icon { color: #96a69d; width: 17px; height: 17px; }
.searchbar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.searchbar input::placeholder { color: #aebbb3; }
.searchbar input::-webkit-search-cancel-button { display: none; }
.searchbar .clear { width: 24px; height: 24px; display: grid; place-items: center; color: #a6b4ac; }
.filter-scroll { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 2px; margin: 10px -15px 0; padding-left: 15px; padding-right: 15px; }
.chip {
  flex: none; height: 29px; padding: 0 11px; border-radius: 9px; background: #fff;
  border: 1px solid var(--line); color: var(--muted); font-size: 10px;
  display: inline-flex; align-items: center; gap: 5px; transition: all .15s;
}
.chip.active { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); box-shadow: 0 4px 10px rgba(6,59,52,.18); }
.chip small { opacity: .6; font-size: 8px; }
.status-chips { display: flex; gap: 7px; margin-top: 8px; }
.status-chips .chip { flex: 1; justify-content: center; height: 30px; }
.circuit-summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px 8px; }
.circuit-summary .total { font-size: 10px; color: var(--muted-2); }
.circuit-summary .total b { color: var(--ink); font-size: 12px; font-weight: 650; }
.group-block { margin-top: 12px; }
.group-title {
  display: flex; align-items: center; gap: 8px; padding: 0 4px 7px;
  color: var(--ink-2); font-size: 11px; font-weight: 600;
}
.group-title .count { color: var(--muted-2); font-size: 9px; font-weight: 400; }
.group-title .gline { flex: 1; height: 1px; background: var(--line); }
.group-title .warn-dot { color: var(--amber); font-size: 8.5px; display: inline-flex; align-items: center; gap: 3px; }
.group-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(15,60,45,.035); }
.circuit-row {
  display: flex; align-items: center; gap: 11px; padding: 12px 13px;
  border-bottom: 1px solid #f1f5f1; background: #fff; transition: background .12s;
  width: 100%; text-align: left;
}
.circuit-row:last-child { border-bottom: 0; }
.circuit-row:active { background: #f8fbf8; }
.c-main { flex: 1; min-width: 0; }
.c-name-line { display: flex; align-items: center; gap: 6px; }
.c-name { font-size: 12.5px; font-weight: 600; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-meta { margin-top: 3px; color: var(--muted-2); font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-metrics { display: flex; gap: 10px; flex: none; text-align: right; }
.c-metric b { display: block; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-metric b small { font-size: 7.5px; color: var(--muted-2); font-weight: 400; margin-left: 1px; }
.c-metric span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.c-arrow { color: #c3cec7; flex: none; }
.c-arrow .icon { width: 14px; height: 14px; }
.empty-state { padding: 48px 20px; text-align: center; }
.empty-state .eico { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 20px; background: var(--mint); color: var(--brand); display: grid; place-items: center; }
.empty-state .eico .icon { width: 28px; height: 28px; }
.empty-state b { font-size: 13px; font-weight: 600; }
.empty-state p { margin: 6px 0 0; font-size: 10px; color: var(--muted-2); line-height: 1.6; }

/* =============== 用能 =============== */
.energy-hero {
  position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 18px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 210, 125, .22), transparent 34%),
    linear-gradient(150deg, #063b34, #0a5d4b 68%, #0c7560);
  box-shadow: 0 14px 32px rgba(7, 58, 49, .18);
}
.energy-hero::after {
  content: ""; position: absolute; right: -34px; bottom: -50px; width: 155px; height: 155px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.025);
}
.energy-hero .cap { position: relative; z-index: 1; color: rgba(255,255,255,.5); font-size: 9.5px; letter-spacing: .5px; }
.energy-hero .big { position: relative; z-index: 1; margin-top: 5px; display: flex; align-items: baseline; gap: 5px; font-size: 37px; font-weight: 650; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.energy-hero .big small { font-size: 10px; font-weight: 400; color: rgba(255,255,255,.45); letter-spacing: .5px; }
.energy-hero .trend { position: relative; z-index: 1; margin-top: 8px; }
.energy-hero .mini-stats { position: relative; z-index: 1; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 20px; }
.energy-hero .mini-stats span { display: block; color: rgba(255,255,255,.42); font-size: 8.5px; }
.energy-hero .mini-stats b { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.energy-hero .mini-stats b small { font-size: 7.5px; color: rgba(255,255,255,.35); font-weight: 400; margin-left: 1px; }

.chart-card { padding: 16px 14px 10px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.chart-head h3 { margin: 0; font-size: 13px; font-weight: 650; }
.chart-head p { margin: 4px 0 0; font-size: 8.5px; color: var(--muted-2); }
.chart-wrap { width: 100%; overflow: hidden; }
.chart-wrap svg { width: 100%; height: auto; overflow: visible; }
.chart-axis { fill: #a3b1a9; font-size: 7.5px; font-family: var(--font); }
.chart-value { fill: #6f8178; font-size: 8px; font-family: var(--font); font-weight: 600; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 9px 13px; margin-top: 9px; padding: 0 2px; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--muted); }
.legend-dot { width: 7px; height: 7px; border-radius: 3px; flex: none; }
.donut-wrap { display: flex; align-items: center; gap: 17px; }
.donut { position: relative; width: 116px; height: 116px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center b { font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.donut-center span { margin-top: 2px; font-size: 8px; color: var(--muted-2); }
.donut-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.donut-legend .row { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--muted); }
.donut-legend .row b { margin-left: auto; color: var(--ink-2); font-size: 9.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tou-bar { display: flex; height: 9px; border-radius: 6px; overflow: hidden; margin: 6px 0 12px; background: #edf2ed; }
.tou-bar i { display: block; height: 100%; }
.tou-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.tou-item { display: flex; align-items: center; gap: 7px; }
.tou-item .t { width: 19px; height: 19px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 8px; font-weight: 600; }
.tou-item .d { flex: 1; min-width: 0; }
.tou-item .d b { display: block; font-size: 9px; color: var(--ink-2); font-weight: 500; }
.tou-item .d span { display: block; margin-top: 2px; font-size: 7.5px; color: var(--muted-2); }
.tou-item .v { font-size: 9.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-row { display: flex; align-items: center; gap: 9px; }
.rank-no { width: 16px; font-size: 9px; color: var(--muted-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-no.top { color: var(--brand); }
.rank-main { flex: 1; min-width: 0; }
.rank-label { display: flex; justify-content: space-between; gap: 10px; font-size: 9.5px; }
.rank-label b { font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-label span { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; flex: none; }
.rank-bar { margin-top: 5px; height: 4px; border-radius: 4px; background: #edf2ed; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #9ae6cc, #0b7a61); }

/* =============== 事件 =============== */
.event-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.event-summary .es-card { flex: 1; padding: 11px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.event-summary .es-card span { display: block; font-size: 8.5px; color: var(--muted-2); }
.event-summary .es-card b { display: block; margin-top: 3px; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.event-summary .es-card b.red { color: var(--red); }
.event-summary .es-card b.amber { color: var(--amber); }
.event-card-list { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(15,60,45,.035); }
.event-detail-hero {
  border-radius: 20px; padding: 18px; color: #fff; margin-bottom: 12px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #6d3d12, #9a6220 70%, #b47627);
}
.event-detail-hero.critical { background: linear-gradient(150deg, #5c211d, #8e352f 70%, #a4413a); }
.event-detail-hero.info { background: linear-gradient(150deg, #173a62, #265483 70%, #2f6297); }
.event-detail-hero .lvl { font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,.54); }
.event-detail-hero h2 { margin: 7px 0 0; font-size: 21px; font-weight: 650; }
.event-detail-hero .meta { display: flex; gap: 13px; margin-top: 14px; font-size: 9.5px; color: rgba(255,255,255,.6); }
.event-detail-hero .stamp { position: absolute; right: -10px; bottom: -18px; font-size: 86px; font-weight: 700; color: rgba(255,255,255,.06); line-height: 1; }
.event-actions { margin-top: 14px; }
.event-desc { font-size: 11px; line-height: 1.8; color: var(--ink-2); }
.event-measure { display: flex; align-items: flex-end; gap: 9px; margin-top: 10px; }
.event-measure b { font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }
.event-measure b small { font-size: 10px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.event-measure span { font-size: 9px; color: var(--muted-2); margin-bottom: 4px; }
.event-ms { font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; color: var(--muted); }

/* =============== 一次系统图 =============== */
.diagram-card { padding: 13px 10px 8px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-soft); border: 1px solid var(--line); overflow: hidden; }
.diagram-wrap { background: linear-gradient(180deg, #f8fbf8, #f3f8f4); border-radius: 14px; padding: 6px 4px; }
.diagram-wrap svg { width: 100%; height: auto; }
.diagram-node { cursor: pointer; }
.diagram-node:active { opacity: .75; }
.dg-line { stroke: #b8ccc1; stroke-width: 1.2; fill: none; }
.dg-line-live { stroke: #0f9f7c; stroke-width: 1.4; fill: none; stroke-dasharray: 4 4; animation: dash 2.4s linear infinite; }
.dg-box { fill: #fff; stroke: #d8e5dd; stroke-width: 1; }
.dg-box.alarm { stroke: #e4b56e; fill: #fffaf0; }
.dg-box.offline { stroke: #d9e1dc; fill: #f7f9f8; }
.dg-title { fill: #213b31; font-size: 8px; font-family: var(--font); font-weight: 600; }
.dg-sub { fill: #8b9c93; font-size: 6.7px; font-family: var(--font); }
.dg-val { fill: #0b7a61; font-size: 7.4px; font-family: var(--font); font-weight: 600; }
.dg-val.alarm { fill: #c0832d; }
.dg-dot { fill: #15b98b; }
.dg-dot.alarm { fill: #e0a246; }
.dg-dot.offline { fill: #b8c5be; }
.diagram-legend { display: flex; align-items: center; gap: 13px; padding: 10px 5px 4px; font-size: 8.5px; color: var(--muted); }
.diagram-legend span { display: flex; align-items: center; gap: 4px; }
.diagram-legend i { width: 6px; height: 6px; border-radius: 50%; background: #15b98b; }
.diagram-legend i.amber { background: #e0a246; }
.diagram-legend i.gray { background: #b8c5be; }
.diagram-legend .live { margin-left: auto; color: var(--brand); display: flex; align-items: center; gap: 4px; }
.diagram-legend .live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); animation: livePulse 2s infinite; }
.feeder-table { margin-top: 11px; }
.feeder-row { display: flex; align-items: center; gap: 9px; padding: 10px 4px; border-bottom: 1px solid #f1f5f1; width: 100%; text-align: left; }
.feeder-row:last-child { border-bottom: 0; }
.feeder-row .fno { width: 30px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--mint); color: var(--brand); font-size: 8px; font-weight: 600; }
.feeder-row .fname { flex: 1; font-size: 10px; color: var(--ink-2); }
.feeder-row .fval { text-align: right; }
.feeder-row .fval b { display: block; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.feeder-row .fval span { display: block; font-size: 7.5px; color: var(--muted-2); margin-top: 1px; }

/* =============== 实际配电系统图 =============== */
.diagram-station-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 4px; border-radius: 14px; background: #e7eee8; margin-bottom: 9px;
}
.diagram-station-tabs button {
  height: 39px; border-radius: 10px; color: var(--muted);
  font-size: 10px; font-weight: 500; line-height: 1.25; padding: 0 3px;
  transition: all .16s;
}
.diagram-station-tabs button.active {
  background: #fff; color: var(--brand); font-weight: 650;
  box-shadow: 0 3px 10px rgba(16, 54, 42, .08);
}
.diagram-page-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 1px 0 11px;
}
.diagram-page-tabs button {
  flex: none; height: 30px; padding: 0 13px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  font-size: 10px; transition: all .15s;
}
.diagram-page-tabs button.active {
  background: var(--brand-deep); color: #fff; border-color: var(--brand-deep);
  box-shadow: 0 4px 12px rgba(6, 59, 52, .18);
}
.diagram-image-card {
  border-radius: 19px; overflow: hidden; background: #07110d;
  border: 1px solid #15271f; box-shadow: 0 12px 30px rgba(6, 25, 18, .16);
}
.diagram-image-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px 10px; color: #fff;
}
.diagram-image-head b { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .1px; }
.diagram-update-line { display: block; margin-top: 3px; font-size: 8.5px; color: rgba(255,255,255,.42); white-space: nowrap; }
.diagram-update-line em { font-style: normal; }
.diagram-live {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px;
  border-radius: 5px; background: rgba(54, 210, 164, .1); color: #83e0c1;
  font-size: 8px; flex: none;
}
.diagram-live i { width: 5px; height: 5px; border-radius: 50%; background: #4fe0b0; animation: livePulse 2s infinite; }
.diagram-image-btn {
  position: relative; display: block; width: 100%; padding: 0; background: #000;
  line-height: 0; overflow: hidden;
}
.diagram-image-btn img {
  width: 100%; height: auto; min-height: 174px; object-fit: contain; background: #000;
  display: block;
}
.diagram-open-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px;
  border-radius: 20px; background: rgba(4, 18, 13, .78);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.9); font-size: 9px; line-height: 1.2; white-space: nowrap;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.diagram-open-hint .icon { width: 13px; height: 13px; }
.diagram-image-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 10px; color: rgba(255,255,255,.4); font-size: 8.5px;
}
.diagram-summary-card .card-title { margin-bottom: 10px; }
.diagram-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.diagram-kpi {
  padding: 11px 12px; border-radius: 12px; background: #f7faf7;
  border: 1px solid #e8f0ea;
}
.diagram-kpi > span { display: block; color: var(--muted-2); font-size: 8.5px; }
.diagram-kpi b {
  display: flex; align-items: baseline; gap: 3px; margin-top: 4px;
  font-size: 17px; line-height: 1.15; font-weight: 650; letter-spacing: -.3px;
  font-variant-numeric: tabular-nums;
}
.diagram-kpi b small { font-size: 8px; font-weight: 400; color: var(--muted-2); letter-spacing: 0; }

/* 全屏系统图查看器 */
body.viewer-open { overflow: hidden; background: #000; }
.diagram-viewer {
  position: fixed; inset: 0; z-index: 800; display: flex; flex-direction: column;
  background: #030706; color: #fff; animation: fadeIn .16s both;
}
.viewer-head {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
  background: rgba(5, 13, 10, .97);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.viewer-close, .viewer-page-nav button {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08);
}
.viewer-close .icon, .viewer-page-nav .icon { width: 19px; height: 19px; }
.viewer-title { flex: 1; min-width: 0; }
.viewer-title b {
  display: block; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.viewer-title span { display: block; margin-top: 3px; color: rgba(255,255,255,.43); font-size: 8.5px; }
.viewer-page-nav { display: flex; gap: 5px; }
.viewer-page-nav button:disabled { opacity: .28; }
.viewer-stage {
  flex: 1; position: relative; overflow: hidden; background: #000;
  touch-action: none; cursor: grab;
}
.viewer-img {
  position: absolute; left: 0; top: 0; max-width: none; height: auto;
  transform-origin: 0 0; will-change: transform;
  user-select: none; -webkit-user-drag: none; pointer-events: none; opacity: 0;
}
.viewer-tools {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 13, 10, .97);
  border-top: 1px solid rgba(255,255,255,.08);
}
.viewer-tools button {
  height: 34px; min-width: 44px; padding: 0 13px; border-radius: 9px;
  color: #fff; background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.08); font-size: 12px;
}
.viewer-tip { margin-left: auto; color: rgba(255,255,255,.42); font-size: 8.5px; white-space: nowrap; }
@media (orientation: landscape) {
  .viewer-head { padding-top: 7px; }
  .viewer-tools { padding-bottom: 7px; }
}

/* =============== 我的 / 设置 =============== */
.profile-card {
  position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 19px;
  background:
    radial-gradient(circle at 88% 0%, rgba(52, 218, 169, .22), transparent 35%),
    linear-gradient(150deg, #063b34, #0a5d4b 70%, #0b705b);
  box-shadow: 0 14px 36px rgba(7, 58, 49, .18);
}
.profile-card::after { content: ""; position: absolute; right: -28px; bottom: -46px; width: 145px; height: 145px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.profile-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.avatar {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16); color: #fff;
  font-size: 19px; font-weight: 600;
}
.profile-top .pi { flex: 1; min-width: 0; }
.profile-top .pi b { display: block; font-size: 17px; font-weight: 650; }
.profile-top .pi span { display: block; margin-top: 4px; font-size: 9.5px; color: rgba(255,255,255,.5); }
.profile-top .pi .role { display: inline-flex; margin-top: 7px; padding: 2px 7px; border-radius: 5px; background: rgba(86, 228, 187, .14); color: #8de8c9; font-size: 8px; }
.profile-project { position: relative; z-index: 1; margin-top: 17px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: rgba(255,255,255,.6); }
.profile-project .icon { width: 13px; height: 13px; color: #6fe2c1; }
.profile-project .pmo { margin-left: auto; color: rgba(255,255,255,.32); font-size: 8px; }
.menu-group { margin-top: 15px; }
.menu-label { padding: 0 4px 7px; color: var(--muted-2); font-size: 9px; letter-spacing: .6px; }
.menu-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid rgba(15,60,45,.035); box-shadow: var(--shadow-soft); }
.menu-row { display: flex; align-items: center; gap: 11px; padding: 14px 14px; border-bottom: 1px solid #f1f5f1; width: 100%; text-align: left; }
.menu-row:last-child { border-bottom: 0; }
.menu-row:active { background: #f8fbf8; }
.menu-row .mico { width: 32px; height: 32px; border-radius: 10px; background: var(--mint); color: var(--brand); display: grid; place-items: center; flex: none; }
.menu-row .mico .icon { width: 17px; height: 17px; }
.menu-row .mico.blue { background: var(--blue-soft); color: var(--blue); }
.menu-row .mico.amber { background: var(--amber-soft); color: var(--amber); }
.menu-row .mico.gray { background: #f0f4f0; color: #61776b; }
.menu-main { flex: 1; min-width: 0; }
.menu-main b { display: block; font-size: 12px; font-weight: 550; }
.menu-main span { display: block; margin-top: 2px; font-size: 8.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-value { max-width: 145px; font-size: 9.5px; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-value.ok { color: var(--brand); }
.menu-value.warn { color: var(--amber); }
.menu-row .icon.chev { width: 14px; height: 14px; color: #c1cdc6; }
.menu-row.danger .mico { background: var(--red-soft); color: var(--red); }
.menu-row.danger b { color: #b74740; }
.about-foot { padding: 25px 10px 10px; text-align: center; color: #a8b5ae; font-size: 9px; line-height: 1.8; }
.about-foot b { color: #7e8e85; font-weight: 500; }

/* 设备信息 */
.device-hero { border-radius: 22px; padding: 19px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(145deg, #162b25, #0b4438 60%, #0b6c57); }
.device-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 30px 30px;
}
.device-hero .dt { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }
.device-hero .dmark { width: 58px; height: 58px; border-radius: 15px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; color: #78e6c6; }
.device-hero .dmark .icon { width: 30px; height: 30px; }
.device-hero .dt b { display: block; font-size: 21px; font-weight: 650; letter-spacing: .5px; }
.device-hero .dt span { display: block; margin-top: 4px; font-size: 9px; color: rgba(255,255,255,.48); }
.device-hero .chip-row { position: relative; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.device-hero .chip-row span { padding: 3px 8px; border-radius: 5px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.62); font-size: 8px; }
.spec-table { background: #fff; border-radius: 18px; padding: 0 14px; border: 1px solid var(--line); }
.func-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.func-grid span { padding: 6px 10px; border-radius: 8px; background: var(--mint-2); border: 1px solid #dcefe6; color: #2c6b57; font-size: 9.5px; }
.notice-card { display: flex; gap: 10px; padding: 13px 14px; border-radius: 14px; background: #f7faf7; border: 1px solid var(--line); }
.notice-card .icon { color: var(--brand); width: 16px; height: 16px; margin-top: 1px; }
.notice-card p { margin: 0; color: var(--muted); font-size: 9.5px; line-height: 1.7; }

/* =============== 底部导航 =============== */
.tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  z-index: 60; width: 100%; max-width: 560px;
  display: flex; align-items: center; justify-content: space-around;
  padding: 7px 8px calc(7px + var(--safe-bottom));
  background: rgba(255, 255, 255, .95);
  border-top: 1px solid rgba(15, 60, 45, .07);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 -8px 30px rgba(16, 54, 42, .04);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 48px; padding: 1px 4px; color: #93a29a; }
.tab .tab-icon { width: 38px; height: 27px; border-radius: 10px; display: grid; place-items: center; transition: background .18s, color .18s; }
.tab .tab-icon .icon { width: 20px; height: 20px; stroke-width: 1.85; }
.tab span { font-size: 8.5px; letter-spacing: .2px; }
.tab.active { color: var(--brand); font-weight: 600; }
.tab.active .tab-icon { background: var(--mint); }
.tab .tab-icon .nav-dot { display: none; }
.tab.has-alert .tab-icon { position: relative; }
.tab.has-alert .tab-icon::after { content: ""; position: absolute; top: 4px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); border: 1px solid #fff; }

/* =============== 弹层 / 提示 =============== */
.mask {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(3, 20, 16, .48);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  animation: fadeIn .2s both;
}
.sheet {
  width: 100%; max-width: 560px;
  background: #fff; border-radius: 26px 26px 0 0;
  padding: 9px 19px calc(19px + var(--safe-bottom));
  box-shadow: 0 -20px 60px rgba(0,0,0,.18);
  animation: sheetUp .28s cubic-bezier(.2,.9,.3,1) both;
  max-height: 92vh; overflow-y: auto;
}
.sheet-grab { width: 38px; height: 4px; border-radius: 4px; background: #dce5df; margin: 0 auto 15px; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.sheet-head .si { width: 38px; height: 38px; border-radius: 12px; background: var(--mint); color: var(--brand); display: grid; place-items: center; flex: none; }
.sheet-head .si .icon { width: 19px; height: 19px; }
.sheet-head h2 { margin: 1px 0 0; font-size: 17px; font-weight: 650; }
.sheet-head p { margin: 4px 0 0; font-size: 9.5px; color: var(--muted-2); line-height: 1.55; }
.sheet-head .x { margin-left: auto; width: 32px; height: 32px; border-radius: 10px; background: #f3f7f3; color: var(--muted); display: grid; place-items: center; }
.sheet-head .x .icon { width: 16px; height: 16px; }
.sheet .btn { margin-top: 10px; }
.sheet-note { margin: 11px 2px 0; padding: 10px 11px; border-radius: 10px; background: #f7faf7; color: var(--muted); font-size: 9px; line-height: 1.65; }
.sheet-note b { color: var(--ink-2); font-weight: 600; }
.quick-server { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
.quick-server .chip-mini { font-size: 8.5px; padding: 3px 7px; border-radius: 5px; background: #f2f6f2; color: var(--muted); }

#toast-root { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 22px + var(--safe-bottom)); transform: translateX(-50%); z-index: 300; width: max-content; max-width: 85vw; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 10px 14px; border-radius: 11px;
  background: rgba(12, 38, 31, .92); color: #fff; font-size: 11.5px; line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  animation: toastIn .22s both;
  backdrop-filter: blur(10px);
}
.toast .icon { width: 15px; height: 15px; color: #63dfb8; }
.toast.err .icon { color: #ff9e93; }

.skeleton { background: linear-gradient(90deg, #eef3ee 25%, #f7faf7 37%, #eef3ee 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 9px; }
.skel-hero { height: 270px; border-radius: 0 0 28px 28px; background: #0b4a3e; position: relative; overflow: hidden; }
.skel-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); animation: shimmer 1.5s infinite; }
.skel-body { padding: 0 15px; margin-top: -16px; position: relative; z-index: 2; }
.skel-card { height: 92px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); margin-bottom: 12px; padding: 15px; }
.skel-line { height: 10px; border-radius: 6px; }
.skel-line.w40 { width: 40%; } .skel-line.w60 { width: 60%; } .skel-line.w80 { width: 80%; }
.skel-line + .skel-line { margin-top: 10px; }

/* =============== 动画 =============== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bootIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes bootLine { 0% { transform: translateX(-110%); } 100% { transform: translateX(250%); } }
@keyframes livePulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(82,227,179,.45); } 50% { opacity: .65; box-shadow: 0 0 0 4px rgba(82,227,179,0); } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes dash { to { stroke-dashoffset: -16; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .8s linear infinite; }
.fade-up { animation: fadeUp .38s both; }
.delay-1 { animation-delay: .04s; } .delay-2 { animation-delay: .08s; } .delay-3 { animation-delay: .12s; } .delay-4 { animation-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 小屏 */
@media (max-width: 360px) {
  .hero-energy .big { font-size: 38px; }
  .home-hero { padding-left: 16px; padding-right: 16px; }
  .home-body { padding-left: 12px; padding-right: 12px; }
  .quick-grid { gap: 7px; }
  .quick-item { padding: 11px 9px; }
  .phase-card { padding: 10px 8px; }
  .c-metrics { gap: 7px; }
  .project-lockup .txt b { max-width: 185px; }
}
