:root {
  --bg: #f4efe5;
  --bg-deep: #18312b;
  --surface: rgba(255, 250, 241, 0.9);
  --surface-strong: #fffdf8;
  --line: rgba(23, 44, 38, 0.12);
  --text: #14231f;
  --muted: #5d6d68;
  --accent: #c56b2d;
  --accent-soft: rgba(197, 107, 45, 0.14);
  --accent-deep: #7b3d10;
  --shadow: 0 24px 60px rgba(32, 37, 28, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(197, 107, 45, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(45, 122, 89, 0.14), transparent 28%),
    linear-gradient(180deg, #f5efe3 0%, #f0ecdf 48%, #ece8dc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 35, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 35, 31, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 88%);
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.hero,
.overview,
.leaderboard-block,
.timeline-block,
.notes-block {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-copy,
.hero-panel,
.overview,
.leaderboard-block,
.timeline-block,
.notes-block {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.eyebrow,
.section-tag {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent-deep);
}

.hero h1,
.section-head h2 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.hero-text,
.muted,
.method-subline {
  color: var(--muted);
}

.data-status {
  margin: 18px 0 0;
  color: var(--accent-deep);
  font-weight: 600;
}

.hero-text {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-panel {
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(24, 49, 43, 0.95), rgba(39, 80, 66, 0.92)),
    var(--bg-deep);
  color: #eef7f1;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 107, 45, 0.55), transparent 68%);
}

.hero-panel h2,
.hero-panel p,
.hero-panel ul {
  position: relative;
  z-index: 1;
}

.hero-panel h2 {
  margin: 0;
  font-size: 1.1rem;
}

.hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.hero-panel li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel strong {
  font-size: 1.2rem;
}

.hero-panel em {
  color: rgba(238, 247, 241, 0.72);
  font-style: normal;
}

.overview,
.leaderboard-block,
.timeline-block,
.notes-block {
  padding: 28px;
  margin-bottom: 22px;
}

.overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.stat-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.stat-card p {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.control {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.control span {
  color: var(--muted);
  font-size: 0.92rem;
}

.control select,
.control input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
}

.table-wrap {
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

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

.leaderboard-table thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.rank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.method-name {
  font-weight: 700;
  font-size: 1.04rem;
}

.method-subline {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.time-label {
  font-weight: 600;
}

.score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-pill,
.link-pill-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  text-decoration: none;
}

.link-pill {
  background: var(--surface-strong);
  color: var(--text);
}

.link-pill:hover {
  border-color: rgba(197, 107, 45, 0.55);
  transform: translateY(-1px);
}

.link-pill-disabled {
  color: var(--muted);
  background: rgba(20, 35, 31, 0.04);
}

.timeline-meta {
  margin: -6px 0 18px;
  color: var(--muted);
}

.timeline-surface {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  overflow-x: auto;
}

.timeline-chart {
  display: block;
  width: 100%;
  min-width: 1040px;
  height: auto;
}

.chart-grid {
  stroke: rgba(20, 35, 31, 0.1);
  stroke-width: 1;
}

.chart-year-line {
  stroke: rgba(20, 35, 31, 0.08);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.chart-axis {
  fill: var(--muted);
  font-size: 12px;
}

.chart-trend {
  fill: none;
  stroke: url(#trend-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.chart-point {
  fill: var(--accent);
  stroke: #fffdf8;
  stroke-width: 2;
}

.chart-connector {
  stroke: rgba(20, 35, 31, 0.24);
  stroke-width: 1.25;
}

.chart-label-box {
  fill: rgba(255, 253, 248, 0.96);
  stroke: rgba(20, 35, 31, 0.14);
  stroke-width: 1;
}

.chart-label {
  fill: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.note-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.note-card h3 {
  margin: 0 0 8px;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.empty-state {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(20, 35, 31, 0.04);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1200px) {
  .overview,
  .notes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .hero,
  .overview,
  .notes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 14px 48px;
  }

  .hero-copy,
  .hero-panel,
  .overview,
  .leaderboard-block,
  .timeline-block,
  .notes-block {
    padding: 20px;
    border-radius: 22px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .control {
    width: 100%;
  }
}
