:root {
  --bg: #080706;
  --panel: #18120ee8;
  --border: #b9895b49;
  --text: #f3e9df;
  --muted: #b6a89b;
  --accent: #ffc696;
  --warning: #e9bf79;
  --danger: #ff9390;
  --title-font: "Songti SC", "SimSun", "Noto Serif CJK SC", Georgia, serif;
}
body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 90% 0%, #57301825, transparent 60%),
    repeating-linear-gradient(0deg, #ffffff02 0 1px, transparent 1px 5px), var(--bg);
}
body::before {
  content: "";
  position: fixed;
  width: 760px;
  height: 1250px;
  left: -559px;
  top: -265px;
  border: 1px solid #ffd0a68c;
  border-radius: 50%;
  box-shadow: 0 0 9px #ffa4777a, 0 0 33px #ed815130, inset 0 0 17px #ffab6814;
  outline: 1px solid #ae835337;
  outline-offset: 15px;
  pointer-events: none;
  z-index: 0;
}
header, main, footer { position: relative; max-width: 1560px; padding-left: 274px; padding-right: 30px; }
header { padding-top: 40px; padding-bottom: 32px; border-bottom: 1px solid #d7a37732; }
header::after { content: ""; position: absolute; bottom: -2px; left: 274px; width: 100px; height: 3px; background: var(--accent); box-shadow: 0 0 16px #ff965e9c; }
h1, h2 { font-family: var(--title-font); font-weight: 400; }
h1 { font-size: 34px; letter-spacing: .12em; text-shadow: 0 0 17px #ffc99b35; }
h2 { letter-spacing: .07em; font-size: 20px; }
.eyebrow { font-family: Georgia, serif; font-size: 11px; letter-spacing: .19em; color: #dbac85; }
header p { font-size: 12px; letter-spacing: .09em; }
.connection { font-size: 12px; }
#connection { color: #ffd1ae; }
.page-nav {
  position: fixed;
  left: max(22px, calc((100vw - 1560px) / 2 + 22px));
  top: 222px;
  width: 222px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 0;
  padding: 0;
  z-index: 2;
}
.page-nav::before { content: "CONTROL / 管理目录"; font: 11px Georgia, serif; letter-spacing: .14em; color: #bd946f; padding: 0 12px 15px; border-bottom: 1px solid #b9895b40; }
.page-nav a {
  position: relative;
  padding: 10px 22px;
  color: #c9baad;
  font-family: var(--title-font);
  font-size: 16px;
  letter-spacing: .06em;
  border: 1px solid #c5a07b35;
  border-radius: 2px;
  background: linear-gradient(90deg, #35261970, #1b151080);
  transition: border-color .18s, background .18s, color .18s;
}
.page-nav a:hover { color: #fff2e5; border-color: #ffc69691; background: #51321e90; }
.page-nav a[aria-current] { color: #fff3e8; border-color: #ffcda4; background: linear-gradient(90deg, #8c4c298c, #4d302370); box-shadow: 0 0 13px #ff975b37, inset 0 0 9px #ffd3ac22; text-shadow: 0 0 8px #ffb4778c; }
.page-nav a[aria-current]::after { content: ""; position: absolute; right: 10px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: #fff4e3; box-shadow: 0 0 5px #fff, 0 0 12px #ff9e62; }
.metrics { gap: 12px; margin: 4px 0 24px; }
.metrics article { position: relative; padding: 16px 18px; border: 1px solid var(--border); border-top-color: #ebbb906e; border-radius: 2px; background: linear-gradient(135deg, #33231770, #100e0cb0); }
.metrics article::after { content: ""; position: absolute; top: -2px; left: 18px; width: 4px; height: 4px; border-radius: 50%; background: #ffd6b8; box-shadow: 0 0 9px #ffa76e; }
.metrics small { font-family: var(--title-font); font-size: 13px; color: #c9b5a3; }
.metrics strong { font-family: Georgia, var(--title-font); font-size: 30px; font-weight: 400; color: #fff0df; text-shadow: 0 0 12px #df9b5c20; }
.panel { border-radius: 2px; padding: 24px; border-color: #be956957; background: linear-gradient(110deg, #261a1280, #0e0d0ae6); box-shadow: inset 0 1px #ffdcc51a; }
.section-title { padding-bottom: 15px; border-bottom: 1px solid #be956947; }
.section-title h2::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 10px; vertical-align: middle; border: 1px solid #ffe0bb; border-radius: 50%; box-shadow: 0 0 7px #ffa16c; }
.hint { line-height: 1.8; color: #b6a89b; }
.filters { gap: 9px; }
input, select, button { background: #15110ee0; border-color: #a5815e70; border-radius: 2px; }
input::placeholder { color: #998574; }
input:hover, select:hover { border-color: #e8b9929c; }
input:focus, select:focus { border-color: #ffd2a9; }
button { color: #ead1b8; padding: 7px 13px; background: linear-gradient(90deg, #4c33245e, #21170f); transition: background .18s, box-shadow .18s; }
button:hover { background: #8853316b; border-color: #ffcda4; box-shadow: 0 0 9px #ffb1762b; }
#connect { color: #fff4e7; background: linear-gradient(90deg, #955d39, #553523); border: 1px solid #ffd1ac; box-shadow: 0 0 10px #ffaf6733; }
th { font-family: var(--title-font); font-size: 13px; color: #d0b596; background: #9c6b3420; border-bottom-color: #c7996775; padding: 12px; }
td { padding: 15px 12px; border-bottom-color: #aa835736; }
td small { color: #ab9a88; }
tbody tr:hover { background: linear-gradient(90deg, #ab69372d, #5d3b1d17); box-shadow: inset 2px 0 #ffd0a1b3; }
.badge { border-radius: 2px; border: 1px solid #c79b6649; background: #a0713530; padding: 2px 8px; }
.good { color: #ffe0b3; }
.warning { color: #e7bd77; }
.danger { color: #ffaaa0; }
.node-link { color: #ffcea4; }
.back-link { color: #d8b391; }
.service-summary { background: #6e492a13; border-left: 1px solid #cf9d685e; padding: 14px 16px; }
dt { color: #b6a38f; }
dd { color: #f0dbc7; }
dialog { border-radius: 3px; background: linear-gradient(135deg, #2f2016, #100d0a 80%); border: 1px solid #e9b88aad; box-shadow: 0 0 25px #ffae6520, inset 0 0 20px #ffc38e09; padding: 28px; }
dialog::backdrop { background: #050302d4; }
#error { border-left-color: #e69172; color: #ffbca2; background: #4b251c70; }
footer { color: #8f7a65; font-size: 11px; letter-spacing: .08em; }
@media (max-width: 1100px) {
  header, main, footer { padding-left: 32px; padding-right: 32px; }
  header::after { left: 32px; }
  body::before { left: -705px; opacity: .5; }
  .page-nav { position: static; width: auto; flex-direction: row; margin: 0 0 24px; gap: 8px; }
  .page-nav::before { display: none; }
  .page-nav a { flex: 1; text-align: center; padding: 9px 18px 9px 12px; font-size: 14px; }
}
@media (max-width: 700px) {
  header, main, footer { padding-left: 16px; padding-right: 16px; }
  header { padding-top: 25px; gap: 12px; }
  header::after { left: 16px; }
  h1 { font-size: 25px; letter-spacing: .06em; }
  .eyebrow { font-size: 9px; letter-spacing: .09em; }
  .page-nav a { flex-basis: 40%; font-size: 14px; }
  .panel { padding: 16px; }
  .metrics article { padding: 13px; }
  .metrics { gap: 9px; }
  .metrics article:last-child { grid-column: 1 / -1; }
  .connection small { max-width: 130px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width:700px) { :root .traffic-metrics article:last-child { grid-column:auto; } }
.traffic-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.traffic-metrics strong{font-size:24px}.traffic-chart{padding:16px 0;border-bottom:1px solid var(--border);margin-bottom:16px}.traffic-chart svg{width:100%;height:170px;margin-top:16px}.chart-grid{stroke:#b9895b35;stroke-width:1}.chart-label{fill:#b6a89b;font-size:10px}.chart-trace{stroke:#ffc696;stroke-width:2;fill:none}.chart-stale{stroke:#998574}.traffic-chart small{color:var(--muted)}@media(max-width:700px){.traffic-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.traffic-metrics article:last-child{grid-column:auto}}
