:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #151515;

  --text-primary: #f5f5f5;
  --text-secondary: #b3b3b3;
  --text-muted: #777777;

  --accent-blue: #00d4ff;
  --accent-green: #00ff88;
  --accent-yellow: #ffc857;
  --accent-red: #ff6b6b;
  --accent-purple: #c77dff;

  --border-color: #222222;

  --line-sichuan: #00d4ff;
  --line-xinjiang: #ffc857;
  --line-inner-mongolia: #00ff88;
  --line-overseas: #c77dff;
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: Forum, serif;
  background:#000;
  color:white;
  font-size: 16px;
  line-height: 1.75;

}

/* ---------- Layout ---------- */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 60px;
}

section {
  margin-bottom: 96px;
}



h1,h2,h3 {
  font-family: 'Forum', serif;
  line-height: 1.2;
  margin: 0 0 24px;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: #ffffff;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--accent-blue);
}

h3 {
  font-size: 1.25rem;
  color: var(--accent-green);
}

p {
  color: var(--text-secondary);
  margin: 0 0 1.5em;
}

strong {
  color: var(--text-primary);
}

/* ---------- Links ---------- */

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.55);
}

/* ---------- Cards ---------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}



.nav-dropdown button {
  background: none;
  border: none;
  color: #00d4ff;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-button {
  background: none;
  border: none;
  padding: 0;

  color: var(--accent-blue);

  font: inherit;
  cursor: pointer;
}
.button:hover {
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
}

/* ---------- Data Labels ---------- */

.data-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-value {
  color: var(--accent-green);
  font-size: 1.5rem;
  font-weight: 600;
}

/* ---------- Chart Colors ---------- */

.line-sichuan {
  stroke: var(--line-sichuan);
  color: var(--line-sichuan);
}

.line-xinjiang {
  stroke: var(--line-xinjiang);
  color: var(--line-xinjiang);
}

.line-inner-mongolia {
  stroke: var(--line-inner-mongolia);
  color: var(--line-inner-mongolia);
}

.line-overseas {
  stroke: var(--line-overseas);
  color: var(--line-overseas);
}

.chart-line {
  stroke-width: 2.5px;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.chart-line:hover {
  opacity: 1;
  filter: drop-shadow(0 0 6px currentColor);
}

/* ---------- Timeline ---------- */

.timeline {
  border-left: 1px solid var(--border-color);
  padding-left: 24px;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.45);
}

.timeline-item.crackdown::before {
  background: var(--accent-red);
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.45);
}




img {
  max-width: 100%;
  border-radius: 12px;
}

/* ---------- Footer ---------- */

footer {
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.9rem;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.content {
  min-width: 0;
}

.content section {
  margin-bottom: 96px;
  scroll-margin-top: 80px;
}

.toc {
  position: sticky;
  top: 80px;
  align-self: start;
  height: fit-content;
}

.toc-box {
  border: 1px solid #222;
  border-radius: 14px;
  padding: 16px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
}

.toc-title {
  color: #777;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.toc a {
  display: block;
  color: #b3b3b3;
  text-decoration: none;
  padding: 6px 0;
  font-size: 14px;
}

.toc a:hover {
  color: #00d4ff;
}

@media (max-width: 800px) {
  .page-layout {
    display: block;
  }

  .toc {
    position: static;
    margin-bottom: 32px;
  }
}



.alive {
  fill: #00ff88;
}

.dead {
  fill: #ff6b6b;
}

.death-line {
  stroke: #555;
  stroke-width: 2;
}

.current-price-line {
  stroke: #00d4ff;
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.axis text {
  fill: #b3b3b3;
}

.axis path,
.axis line {
  stroke: #444;
}
#navbar {
  position: sticky;
  top: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  padding: 24px 80px;

  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);

  z-index: 1000;
  border-bottom: 1px solid #222;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 320px;
  padding: 12px;
  background: #0a0a0a;
  border: 1px solid #00d4ff;
  border-radius: 12px;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 8px 10px;
  white-space: nowrap;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

#navbar a {

  color: #888;

  text-decoration: none;

  text-transform: lowercase;

  transition: .2s;

}



#navbar a:hover {

  color: #00d4ff;

}



#navbar a.active {

  color: #00ff88;

}

.chapter-navigation {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  padding: 100px 8% 70px;
  box-sizing: border-box;

  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.chapter-link {
  display: flex;
  flex-direction: column;
  gap: 10px;

  text-decoration: none;
  color: white;

  max-width: 350px;

  transition: transform 0.3s ease,
              opacity 0.3s ease;
}

.chapter-prev {
  text-align: left;
  align-items: flex-start;
}

.chapter-next {
  text-align: right;
  align-items: flex-end;
}

.chapter-direction {
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.5;
}

.chapter-title {
  font-family: "Forum", serif;
  font-size: 15px;
  line-height: 1.1;
}

.chapter-link:hover {
  transform: translateY(-5px);
}

.chapter-link:hover .chapter-title {
  color: #00D4FF;
}

.chapter-link:hover .chapter-direction {
  opacity: 1;
}
.page-title{
  text-align: center;
  font-size: 20px;
  margin-top: 30px;
}