
:root {
  --bg: #f4f7ff;
  --bg2: #eef3ff;
  --card: rgba(255,255,255,.88);
  --card-strong: rgba(255,255,255,.98);
  --line: rgba(91, 116, 179, .14);
  --text: #132238;
  --muted: #6b7a92;
  --shadow: 0 22px 60px rgba(39, 74, 146, .10);
  --blue: #356dff;
  --violet: #7c3aed;
  --amber: #e49b10;
  --emerald: #12a874;
  --rose: #e85d8c;
  --cyan: #0ea5c6;
  --gold: #c78717;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, var(--bg2) 100%);
}
a { color: #2054d6; text-decoration: none; }
a:hover { text-decoration: underline; }
.card {
  background: linear-gradient(180deg, var(--card-strong), var(--card));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.page-shell {
  width: min(1460px, 100%);
  margin: 0 auto;
  padding: 18px 14px 28px;
}
.top-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #fff6d9 0%, #fff9ef 100%);
}
.notice-chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(228, 155, 16, .12);
  color: #8a5a06;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.top-notice-text {
  min-width: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.65;
}
.notice-item { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-copy { font-weight: 700; }
.notice-time { color: var(--muted); font-size: 12px; }
.hero-shell {
  position: relative;
  padding: 24px 24px 22px;
  margin-bottom: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(53,109,255,.15), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(124,58,237,.10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.96));
}
.hero-mark {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(53,109,255,.10);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 { margin: 12px 0 8px; font-size: clamp(30px, 4vw, 42px); line-height: 1.08; }
.site-title-gradient {
  display: inline-block;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 20%, #ec4899 45%, #f59e0b 72%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.top-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,248,255,.92));
}
.nav-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #5d6f95;
  background: linear-gradient(180deg, #f6f9ff 0%, #edf3ff 100%);
  border: 1px solid rgba(103, 128, 190, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.nav-pill:hover {
  text-decoration: none;
  transform: translateY(-1px);
  color: #35508d;
  box-shadow: 0 10px 24px rgba(54, 90, 180, .10);
}
.nav-pill.active {
  color: white;
  background: linear-gradient(135deg, #346cff 0%, #6e4cff 55%, #8b5cf6 100%);
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(62, 97, 238, .26);
}
.spa-stage { display: grid; }
.view-panel { display: grid; gap: 14px; }
.panel-band {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: white;
}
.accent-blue .panel-band { background: linear-gradient(135deg, #2f6aff, #4b8cff); }
.accent-violet .panel-band { background: linear-gradient(135deg, #7346ff, #965cff); }
.accent-amber .panel-band { background: linear-gradient(135deg, #d58a08, #f1ae2f); }
.accent-emerald .panel-band { background: linear-gradient(135deg, #129a6d, #1bc58a); }
.accent-rose .panel-band { background: linear-gradient(135deg, #dd4f84, #f36d9f); }
.accent-cyan .panel-band { background: linear-gradient(135deg, #0f9bbc, #3cc7e8); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.metric-card { padding: 16px; }
.metric-label { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.metric-value { font-size: 30px; font-weight: 800; line-height: 1.06; }
.metric-small { font-size: 23px; }
.metric-status { font-size: 18px; color: var(--emerald); }
.status-bad { color: #d94e4b; }
.status-ok { color: var(--emerald); }
.content-stack, .graph-grid, .links-grid { display: grid; gap: 14px; }
.section-card::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, rgba(53,109,255,.95), rgba(53,109,255,0));
}
.section-blue::before { background: linear-gradient(90deg, rgba(53,109,255,.95), rgba(53,109,255,0)); }
.section-emerald::before { background: linear-gradient(90deg, rgba(18,168,116,.95), rgba(18,168,116,0)); }
.section-gold::before { background: linear-gradient(90deg, rgba(199,135,23,.95), rgba(199,135,23,0)); }
.section-violet::before { background: linear-gradient(90deg, rgba(124,58,237,.95), rgba(124,58,237,0)); }
.section-cyan::before { background: linear-gradient(90deg, rgba(14,165,198,.95), rgba(14,165,198,0)); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 0;
}
.section-head h2 { margin: 0; font-size: 21px; }
.hint { color: var(--muted); font-size: 12px; }
.table-wrap, .placeholder-body, .page-copy { padding: 0 16px 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  vertical-align: top;
  word-break: break-word;
}
th { color: #4e6286; background: #f5f8ff; font-weight: 800; }
tr:last-child td { border-bottom: none; }
.addr { word-break: break-all; }
.graph-grid { grid-template-columns: 1fr 1fr; }
.tree-panel { grid-column: 1 / -1; }
.block-card { padding: 0 0 16px; }
.compact-panel { min-height: 132px; }
.search-row { display: grid; gap: 12px; padding: 0 16px; }
.search-row input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(91, 116, 179, .18);
  background: #fbfcff;
  color: var(--text);
  font-size: 14px;
}
.search-actions { display: flex; gap: 10px; }
button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, #356dff 0%, #6b57ff 100%);
  cursor: pointer;
}
.button-ghost { background: linear-gradient(135deg, #93a6d6 0%, #768abf 100%); }
.node-detail { padding: 0 16px; line-height: 1.7; }
.muted { color: var(--muted); }
.tree-root { padding: 0 16px 16px; overflow-x: auto; }
.tree { list-style: none; margin: 0; padding-left: 0; }
.tree ul { list-style: none; margin: 10px 0 0 20px; padding-left: 18px; border-left: 1px dashed rgba(124,58,237,.26); }
.tree li { margin: 10px 0; }
.node-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(91, 116, 179, .14);
  background: #fbfcff;
}
.node-row.active { outline: 2px solid rgba(53,109,255,.22); box-shadow: 0 10px 28px rgba(53,109,255,.10); }
.node-row.level-0 { background: #eef4ff; }
.node-row.level-1 { background: #f4efff; }
.node-row.level-2 { background: #eefbf6; }
.node-row.level-3 { background: #fff8ea; }
.node-row.level-4, .node-row.level-deep { background: #f8f9fd; }
.node-row.placeholder-node { background: #f5f1ff; }
.node-row.root-node { background: #eef5ff; }
.node-row.guardian-node { box-shadow: inset 0 0 0 1px rgba(124,58,237,.10); }
.toggle {
  width: 30px; height: 30px; border-radius: 999px; padding: 0; border: 0;
  background: linear-gradient(135deg, #7c3aed, #4f46e5); color: white; font-weight: 900;
}
.toggle.placeholder { background: #d5ddef; color: #51607e; cursor: default; }
.node-title { font-weight: 800; }
.node-sub { margin-top: 3px; color: var(--muted); font-size: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px;
  background: rgba(53,109,255,.10); color: #2d58b3; font-size: 12px; font-weight: 800;
}
.rank-placeholder { background: rgba(124,58,237,.12); color: #6d34d6; }
.rank-root { background: rgba(14,165,198,.12); color: #0d7d97; }
.rank-guardian { background: rgba(18,168,116,.12); color: #0e8b60; }
.placeholder-grid, .links-grid { display: grid; gap: 14px; }
.placeholder-hero, .notice-archive-item { padding: 18px; }
.placeholder-hero h2 { margin: 0 0 8px; font-size: 24px; }
.placeholder-hero p { margin: 0; color: var(--muted); line-height: 1.7; }
.placeholder-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.placeholder-stat { padding: 16px; }
.placeholder-label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.placeholder-value { font-size: 22px; font-weight: 800; }
.notice-list { display: grid; gap: 12px; }
.notice-archive-item { display: grid; gap: 8px; }
.notice-archive-item time { color: var(--muted); font-size: 12px; }
.link-list { margin: 0; padding: 0 18px 18px 34px; }
.link-list li { margin: 8px 0; line-height: 1.65; word-break: break-all; }
@media (max-width: 980px) {
  .stats-grid, .placeholder-stats, .graph-grid, .links-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-shell { padding: 12px 10px 22px; }
  .top-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .metric-value { font-size: 24px; }
  h1 { font-size: 28px; }
  .search-actions { display: grid; grid-template-columns: 1fr 1fr; }
}
