:root {
  --bg: #0b0f14;
  --bg-elev: #121821;
  --bg-card: #161e28;
  --line: #2a3644;
  --text: #e7edf4;
  --muted: #93a4b8;
  --dim: #6d7e91;
  --accent: #d4a24a;
  --accent-2: #4ecdc4;
  --ok: #3dd68c;
  --warn: #e8b84a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 500px at 8% -10%, rgba(212, 162, 74, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(78, 205, 196, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px 80px; }

header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 20, 0.78);
  border-bottom: 1px solid var(--line);
}
nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
nav .brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-right: auto;
}
nav .brand span { color: var(--accent); }
nav a { color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--text); text-decoration: none; }

.hero {
  padding: 56px 0 28px;
}
.kicker {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin: 10px 0 14px;
  font-weight: 750;
}
.lead { color: var(--muted); max-width: 720px; font-size: 17px; }

.status-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.status {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.status b { display: block; font-size: 13px; color: var(--dim); font-weight: 600; }
.status em {
  font-style: normal;
  font-size: 18px;
  color: var(--ok);
  font-weight: 700;
}

h2 {
  margin: 56px 0 16px;
  font-size: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
h3 { margin: 0 0 8px; font-size: 18px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

pre, code {
  font-family: "Cascadia Code", "Consolas", "Sarasa Mono SC", monospace;
}
pre {
  background: #0a1017;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  overflow: auto;
  color: #d7e4f0;
  font-size: 13px;
  line-height: 1.5;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 18px;
}
.chip {
  background: #1c2733;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.chip.accent { border-color: rgba(212, 162, 74, 0.55); color: var(--accent); }
.chip.ok { border-color: rgba(61, 214, 140, 0.45); color: var(--ok); }
.arrow { color: var(--dim); font-size: 14px; }

.layers { display: grid; gap: 12px; }
.layer {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.n {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #243041;
  color: var(--accent);
}
.layer ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.layer li { margin: 4px 0; }

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 800px) {
  .two, .layer { grid-template-columns: 1fr; }
}

.note {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 14px;
  color: var(--muted);
  margin: 12px 0;
}

footer {
  margin-top: 64px;
  color: var(--dim);
  font-size: 13px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  vertical-align: middle;
}
.badge.hard { color: var(--ok); border-color: rgba(61, 214, 140, 0.45); background: rgba(61, 214, 140, 0.08); }
.badge.goal { color: var(--accent); border-color: rgba(212, 162, 74, 0.5); background: rgba(212, 162, 74, 0.08); }
.badge.tax { color: var(--warn); border-color: rgba(232, 184, 74, 0.45); background: rgba(232, 184, 74, 0.08); }
.badge.ops { color: var(--accent-2); border-color: rgba(78, 205, 196, 0.45); background: rgba(78, 205, 196, 0.08); }

.qa {
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.qa-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(42, 54, 68, 0.7);
  font-size: 14px;
}
.qa-row b { color: var(--dim); font-weight: 600; }
.qa-row span { color: var(--muted); }
@media (max-width: 640px) {
  .qa-row { grid-template-columns: 1fr; gap: 2px; }
}

table.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.matrix th,
table.matrix td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
table.matrix th {
  background: #1a2430;
  color: var(--text);
  font-weight: 650;
}
table.matrix td { color: var(--muted); }
table.matrix td:first-child { color: var(--text); font-weight: 600; }

.topic-card {
  display: block;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 162, 74, 0.35);
  background: linear-gradient(135deg, rgba(212, 162, 74, 0.1), rgba(18, 24, 33, 0.9));
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.topic-card:hover { text-decoration: none; border-color: rgba(212, 162, 74, 0.7); }
.topic-card .t { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.topic-card h2 { margin: 6px 0 8px; border: 0; padding: 0; font-size: 22px; }
.topic-card p { margin: 0; color: var(--muted); }
