:root {
  --bg: #10151d;
  --panel: #171e29;
  --panel-2: #1c2532;
  --text: #e8edf4;
  --muted: #95a0ad;
  --line: #2b3645;
  --soft: #222c3a;
  --gold: #d7b46a;
  --blue: #5b97cc;
  --red: #ca5c52;
  --green: #56b28e;
  --paper: #f6f4ee;
  --paper-panel: #fffdfa;
  --paper-text: #22262d;
  --paper-muted: #74716b;
  --paper-line: #e5ded0;
}

:root[data-theme="light"] {
  --bg: var(--paper);
  --panel: var(--paper-panel);
  --panel-2: #f1ede4;
  --text: var(--paper-text);
  --muted: var(--paper-muted);
  --line: var(--paper-line);
  --soft: #ece6da;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
}

.topbar .wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.mark {
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 18%, transparent);
}

.topic {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-clock {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a,
.theme-btn,
.menu-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1;
  font-weight: 700;
  font-size: 13px;
}

.nav a.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #16130c;
}

.theme-btn,
.menu-btn {
  width: 39px;
  height: 39px;
  padding: 0;
  cursor: pointer;
}

.menu-btn {
  display: none;
}

.drawer {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.drawer.open {
  display: block;
}

.drawer a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 17, .08), rgba(10, 12, 17, .86)),
    linear-gradient(90deg, rgba(10, 12, 17, .38), rgba(10, 12, 17, .04));
}

.hero-in {
  position: relative;
  z-index: 1;
  padding: 64px 0 42px;
}

.eyebrow {
  display: inline-block;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
  color: #fff;
  background: rgba(215, 180, 106, .18);
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

.hero h1 {
  margin: 18px 0 12px;
  max-width: 900px;
  color: #fff;
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
}

.lede {
  max-width: 780px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(16px, 1.7vw, 19px);
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--panel);
}

.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #17130b;
}

.section {
  padding: 44px 0;
}

.section.tight {
  padding-top: 24px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi .label {
  color: var(--muted);
  font-size: 13px;
}

.kpi .value {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.blue {
  color: var(--blue);
}

.gold {
  color: var(--gold);
}

.red {
  color: var(--red);
}

.green {
  color: var(--green);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 22px;
  align-items: stretch;
}

.thesis-box {
  border-left: 5px solid var(--gold);
  background: var(--panel);
  border-radius: 8px;
  padding: 24px 26px;
}

.thesis-box b {
  color: var(--gold);
}

.thesis-box p {
  margin: 0 0 12px;
}

.thesis-box p:last-child {
  margin-bottom: 0;
}

.flow {
  display: grid;
  gap: 10px;
}

.flow-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.flow-item .step {
  color: var(--gold);
  font-weight: 900;
  font-size: 13px;
}

.flow-item b {
  display: block;
  margin-bottom: 4px;
}

.flow-item span {
  color: var(--muted);
  font-size: 14px;
}

.report-list {
  display: grid;
  gap: 12px;
}

.report {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.report h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.report p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: var(--panel);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--panel-2);
}

td {
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.chart-img {
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: zoom-in;
}

.note {
  color: var(--muted);
  font-size: 13px;
}

.article {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.article h1 {
  margin: 0 0 12px;
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(30px, 4vw, 46px);
}

.byline {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article h2 {
  margin: 36px 0 12px;
  padding-left: 13px;
  border-left: 5px solid var(--gold);
}

.article blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--blue);
  background: var(--panel);
  color: var(--muted);
  border-radius: 0 8px 8px 0;
}

.markdown-body h1 {
  margin-top: 34px;
  font-size: clamp(24px, 3vw, 34px);
}

.markdown-body h2 {
  margin-top: 32px;
}

.markdown-body p,
.markdown-body li {
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
}

.markdown-body blockquote p {
  margin: 0 0 8px;
}

.markdown-body blockquote p:last-child {
  margin-bottom: 0;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 10, .88);
  padding: 28px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 92vh;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 880px) {
  .topic,
  .site-clock,
  .nav a {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .split,
  .report {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 520px;
  }
}

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