
:root {
  --bg: #0b1020;
  --panel: #121a31;
  --panel-2: #0f1730;
  --text: #eaf0ff;
  --muted: #9fb0d8;
  --primary: #6ea8fe;
  --border: rgba(255,255,255,0.12);
  --chip: rgba(110,168,254,0.12);
  --table-stripe: rgba(255,255,255,0.03);
  --shadow: 0 12px 36px rgba(0,0,0,0.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'SF Pro SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(110,168,254,0.14), transparent 28%), radial-gradient(circle at top right, rgba(139,92,246,0.15), transparent 24%), var(--bg);
}
a { color: #9ec5fe; text-decoration: none; }
a:hover { text-decoration: underline; }
.page {
  max-width: 1640px;
  margin: 0 auto;
  padding: 20px;
}
.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.sidebar, .hero, .side-panel, .card, .report, .toolbar {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.sidebar {
  position: sticky;
  top: 18px;
  padding: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
}
.sidebar h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.sidebar p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.sidebar-group { margin-bottom: 18px; }
.sidebar-group h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #c9d8ff;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.sidebar-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-tree a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.sidebar-tree a:hover {
  background: rgba(110,168,254,0.12);
  border-color: rgba(110,168,254,0.28);
  text-decoration: none;
}
.main { min-width: 0; }
.header {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.hero { padding: 30px; }
.hero h1 { margin: 0 0 10px; font-size: 38px; line-height: 1.18; }
.hero p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.side-panel { padding: 22px; }
.meta-list { margin: 0; padding-left: 18px; color: var(--muted); }
.meta-list li { margin: 8px 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 22px;
}
.card { padding: 18px; }
.card .label { color: var(--muted); font-size: 13px; }
.card .value { font-size: 30px; font-weight: 800; margin-top: 8px; }
.card .hint { color: var(--muted); font-size: 12px; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid rgba(110,168,254,0.28);
  color: #d9e7ff;
  font-size: 13px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  margin-bottom: 20px;
  position: sticky;
  top: 12px;
  z-index: 8;
  backdrop-filter: blur(10px);
}
.toolbar-title {
  font-size: 14px;
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-input {
  min-width: 320px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
.button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(110,168,254,0.35);
  background: linear-gradient(180deg, rgba(110,168,254,0.2), rgba(110,168,254,0.08));
  color: white;
  font-weight: 600;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 20px;
  margin-bottom: 20px;
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.knowledge-card {
  display: block;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(110,168,254,0.10), rgba(255,255,255,0.02));
  border: 1px solid rgba(110,168,254,0.18);
}
.knowledge-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--text); }
.knowledge-card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.knowledge-card ul { margin: 0; padding-left: 18px; color: #dde7ff; }
.section-title { margin: 0 0 12px; font-size: 24px; }
.table-wrap { overflow: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: top;
}
tr:nth-child(even) td { background: var(--table-stripe); }
.report {
  padding: 28px;
  margin-bottom: 20px;
}
.report h1:first-child, .report h2:first-child { margin-top: 0; }
.report h1, .report h2, .report h3, .report h4 { scroll-margin-top: 90px; }
.report p, .report li { line-height: 1.72; color: #dde7ff; }
.report ul, .report ol { padding-left: 22px; }
.report code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.report pre {
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  background: #0a1124;
  border: 1px solid rgba(255,255,255,0.08);
}
.report blockquote {
  margin: 16px 0;
  padding: 4px 16px;
  border-left: 4px solid var(--primary);
  background: rgba(110,168,254,0.08);
  border-radius: 0 12px 12px 0;
}
.report hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 24px 0;
}
.footer {
  color: var(--muted);
  text-align: center;
  padding: 30px 0 10px;
  font-size: 13px;
}
@media (max-width: 1180px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    max-height: none;
  }
  .header, .grid-2, .knowledge-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .page { padding: 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { position: static; }
  .actions { width: 100%; }
  .search-input { min-width: 0; width: 100%; }
}
@media print {
  body { background: white; color: #111; }
  .page { max-width: none; padding: 0; }
  .sidebar, .toolbar, .footer { display: none !important; }
  .layout { display: block; }
  .hero, .side-panel, .card, .report { box-shadow: none; background: white; border-color: #ddd; color: #111; }
  .hero p, .side-panel, .label, .hint, .meta-list, .footer { color: #444; }
  .report p, .report li, .report a, .hero h1, .section-title { color: #111; }
  a { color: #111; text-decoration: none; }
}
