﻿:root {
  --ink: #17211b;
  --muted: #667169;
  --line: #dce5dd;
  --line-strong: #b9c9bc;
  --paper: #ffffff;
  --canvas: #f4f8f4;
  --green: #167746;
  --green-dark: #0f5934;
  --green-soft: #e9f6ee;
  --lime: #9ccf64;
  --amber: #b86b16;
  --amber-soft: #fff4df;
  --red: #b9433f;
  --shadow: 0 16px 45px rgba(38, 68, 49, 0.08);
  --radius: 18px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--canvas); }
button, a { font: inherit; }
button { color: inherit; }
svg { display: block; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 119, 70, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 119, 70, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.site-header {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 10px; }
.brand-mark svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.live-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(156, 207, 100, 0.18); }
.live-state.is-offline .live-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(185, 67, 63, 0.12); }

.page-shell { position: relative; z-index: 1; width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 42px; }
.intro { text-align: center; }
.eyebrow, .step-label { margin: 0 0 10px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
h1 { max-width: 700px; margin: 0 auto; font-size: clamp(34px, 6vw, 58px); line-height: 1.08; letter-spacing: -0.055em; }
.intro-copy { max-width: 520px; margin: 18px auto 0; color: var(--muted); font-size: 16px; line-height: 1.8; }

.summary { max-width: 590px; margin: 34px auto 48px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.7); overflow: hidden; }
.summary div { padding: 17px 20px; }
.summary div + div { border-left: 1px solid var(--line); }
.summary dt { color: var(--muted); font-size: 12px; }
.summary dd { margin: 5px 0 0; font-variant-numeric: tabular-nums; }
.summary dd strong { font-size: 20px; }
.summary dd span { color: var(--muted); font-size: 13px; }

.node-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 25px 28px 22px; border-bottom: 1px solid var(--line); }
.panel-heading .step-label { margin-bottom: 5px; }
h2 { margin: 0; font-size: 21px; letter-spacing: -0.03em; }
.refresh-all { border: 0; background: transparent; cursor: pointer; }
.refresh-all { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; color: var(--muted); border-radius: 9px; font-size: 13px; }
.refresh-all:hover { color: var(--green); background: var(--green-soft); }
.refresh-all svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.is-spinning svg { animation: spin .7s linear infinite; }

.node-list { padding: 10px; }
.node-option { position: relative; display: grid; grid-template-columns: 28px minmax(180px, 1fr) minmax(210px, 260px); align-items: center; gap: 16px; min-height: 92px; padding: 15px 16px; border: 1px solid transparent; border-radius: 13px; cursor: pointer; outline: none; transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.node-option + .node-option { margin-top: 3px; }
.node-option:hover { background: #f8faf8; }
.node-option.is-selected { z-index: 1; border-color: var(--green); background: linear-gradient(90deg, #e4f5ea 0%, #f4fbf6 72%); box-shadow: 0 0 0 2px rgba(22, 119, 70, .14), 0 8px 22px rgba(22, 119, 70, .08), inset 4px 0 0 var(--green); transform: translateX(2px); }
.node-option:focus-visible { box-shadow: 0 0 0 3px rgba(22, 119, 70, .2); border-color: var(--green); }
.node-radio { width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 7px; background: #fff; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.node-radio span { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 15px; font-weight: 900; line-height: 1; transform: scale(.55); opacity: 0; transition: transform .16s ease, opacity .16s ease; }
.node-radio span::before { content: "✓"; }
.is-selected .node-radio { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px rgba(22, 119, 70, .12); }
.is-selected .node-radio span { transform: scale(1); opacity: 1; }
.node-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.node-main h3 { margin: 0; font-size: 16px; letter-spacing: -0.01em; transition: color .16s ease; }
.is-selected .node-main h3 { color: var(--green-dark); }
.node-option.is-selected .node-title-row::after { content: "已选择"; display: inline-flex; align-items: center; min-height: 21px; padding: 3px 8px; border-radius: 5px; color: #fff; background: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.node-main p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.node-note, .recommend-badge { display: inline-flex; align-items: center; min-height: 21px; padding: 3px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.node-note--warning { color: var(--amber); background: var(--amber-soft); }
.recommend-badge { color: var(--green-dark); background: #d5efdf; }
.node-load { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.node-status { min-width: 58px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #aeb8b0; }
.status-dot.is-loading { animation: breathe 1.2s ease-in-out infinite; }
.status-dot.is-idle { background: #2e9b59; }
.status-dot.is-busy { background: #d08a27; }
.status-dot.is-full, .status-dot.is-offline { background: var(--red); }
.load-track { height: 6px; border-radius: 99px; overflow: hidden; background: #e4e9e5; }
.load-bar { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .35s ease; }
.load-bar.is-busy { background: #d08a27; }
.load-bar.is-full { background: var(--red); }
.node-count { min-width: 58px; color: var(--muted); text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }

.selection-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px; background: linear-gradient(90deg, #edf8f0, #f8fbf8); border-top: 1px solid #cfe3d5; }
.selected-summary { display: flex; align-items: center; gap: 13px; }
.selected-check { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(22, 119, 70, .1); font-size: 18px; font-weight: 900; }
.selected-summary .step-label { margin-bottom: 4px; }
.selected-summary p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.selected-summary strong { color: var(--ink); font-size: 16px; }

#selected-hint { color: var(--amber); }
.enter-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 32px; padding: 0 20px 0 23px; border: 0; border-radius: 11px; color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(22, 119, 70, .2); font-weight: 750; text-decoration: none; cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
.enter-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.enter-button:active { transform: translateY(0); }
.enter-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.help-note { display: flex; align-items: flex-start; gap: 12px; margin: 18px 3px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.help-note > span { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; margin-top: 2px; border: 1px solid var(--line-strong); border-radius: 50%; font-family: Georgia, serif; font-weight: 700; }
.help-note p { margin: 0; }
.help-note strong { color: var(--ink); }
footer { position: relative; z-index: 1; padding: 24px 20px 34px; color: #89928b; text-align: center; font-size: 12px; }

button:focus-visible, a:focus-visible { outline: 3px solid rgba(22, 119, 70, .25); outline-offset: 2px; }
[hidden] { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .35; } }

@media (max-width: 760px) {
  .page-shell { padding-top: 52px; }
  .node-option { grid-template-columns: 25px 1fr; gap: 12px; min-height: 116px; }
  .node-load { grid-column: 2 / 3; width: 100%; }
  .node-main { grid-column: 2; }
  .node-radio { grid-column: 1; grid-row: 1; }
}

@media (max-width: 560px) {
  .site-header, .page-shell { width: min(100% - 24px, 920px); }
  .site-header { height: 66px; }
  .live-state { font-size: 0; }
  .live-state .live-dot { display: block; }
  .page-shell { padding-top: 40px; }
  h1 { font-size: 38px; }
  .intro-copy { font-size: 14px; }
  .summary { margin-top: 28px; margin-bottom: 30px; }
  .summary div { padding: 14px 7px; }
  .summary dd strong { font-size: 17px; }
  .node-panel { border-radius: 18px; }
  .panel-heading { padding: 20px 18px 17px; }
  .refresh-all { padding-right: 4px; }
  .node-list { padding: 7px; }
  .node-option { padding: 14px 11px; }
  .node-note { flex-basis: max-content; }
  .selection-action { flex-direction: column; align-items: stretch; gap: 14px; padding: 17px 18px; }
  .enter-button { width: 100%; justify-content: space-between; }
  .selected-summary { text-align: left; }
}

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