:root {
  --paper: #f2f6f8;
  --card: #ffffff;
  --ink: #0c1d2e;
  --muted: #5d6f7c;
  --line: #d5e0e6;
  --accent: #1f6f8b;
  --accent-deep: #15556b;
  --accent-soft: #e4f1f6;
  --warn: #8a4b12;
  --warn-soft: #f8ead8;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(31, 111, 139, 0.08), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

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

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-top: 6px solid var(--accent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  flex: none;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
  min-width: 0;
}

.brand-copy strong {
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.mobile-menu {
  margin-left: auto;
  display: none;
  position: relative;
}

.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(250px, 82vw);
  display: grid;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--accent-soft);
}

.mobile-menu nav a {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.mobile-menu nav a:last-child {
  border-bottom: 0;
}

.hero {
  padding: 72px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: 54px;
  align-items: stretch;
}

.hero-copy {
  padding: 10px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.period {
  margin: 14px 0 0;
  color: var(--accent-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lead {
  margin: 24px 0 0;
  max-width: 760px;
  color: #354653;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.95;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.hero-tags span {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
}

.hero-panel {
  background: var(--ink);
  color: #e9f1f4;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.panel-label {
  margin: 0;
  color: #7fc2d6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel ol {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  counter-reset: panel;
  display: grid;
  gap: 14px;
}

.hero-panel li {
  counter-increment: panel;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  color: #d6e5ea;
  font-size: 13px;
  line-height: 1.65;
}

.hero-panel li::before {
  content: "0" counter(panel);
  color: #7fc2d6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.panel-note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #9fb6c0;
  font-size: 11px;
  line-height: 1.7;
}

.demo-banner {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  background: var(--warn-soft);
  border: 1px solid #e8cba7;
  border-left: 4px solid var(--warn);
  color: #5d3b1a;
  font-size: 12px;
  line-height: 1.7;
}

.demo-banner strong {
  flex: none;
  color: var(--warn);
}

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

.metric-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-value {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
}

.metric-change {
  margin: 8px 0 0;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.metric-bar {
  height: 7px;
  margin-top: 16px;
  background: #e7eef2;
  overflow: hidden;
}

.metric-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.metric-fill-64 {
  width: 64%;
}

.metric-fill-52 {
  width: 52%;
}

.metric-fill-71 {
  width: 71%;
}

.metric-fill-56 {
  width: 56%;
}

.metric-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.content-section {
  padding: 62px 0 0;
  scroll-margin-top: 100px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 24px;
}

.section-index {
  margin: 0;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.overview-grid p {
  margin: 0;
  color: #354653;
  font-size: 15px;
  line-height: 1.9;
}

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

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

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

th {
  background: #eaf2f5;
  color: var(--ink);
  font-size: 12px;
}

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

td {
  color: #354653;
}

.source {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.chart-card {
  margin-top: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 24px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.chart-kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chart-head h3 {
  margin: 0;
  font-size: 17px;
}

.chart-badge {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.bar-chart {
  height: 250px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
  padding: 30px 8px 0;
  border-bottom: 1px solid var(--line);
}

.bar-item {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  gap: 6px;
  min-width: 0;
}

.bar-value {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-align: center;
}

.bar {
  width: min(46px, 70%);
  justify-self: center;
  background: linear-gradient(180deg, #4b9bb5, var(--accent));
  min-height: 10px;
}

.chart-bar-52 {
  height: 52%;
}

.chart-bar-64 {
  height: 64%;
}

.chart-bar-76 {
  height: 76%;
}

.chart-bar-68 {
  height: 68%;
}

.chart-bar-88 {
  height: 88%;
}

.bar-label {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  margin-left: 10px;
}

.timeline article {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  position: relative;
  padding: 0 0 28px 24px;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
}

.timeline-date {
  margin: 0;
  color: var(--accent-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.timeline h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.watch-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px;
}

.watch-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.watch-card ul,
.risk-box ul {
  margin: 0;
  padding-left: 19px;
}

.watch-card li,
.risk-box li {
  margin: 7px 0;
  color: #354653;
  font-size: 14px;
  line-height: 1.7;
}

.risk-box {
  background: var(--warn-soft);
  border: 1px solid #e8cba7;
  border-left: 4px solid var(--warn);
  padding: 24px;
}

.risk-box > p {
  margin: 0 0 12px;
  color: #5d3b1a;
  font-size: 15px;
  font-weight: 700;
}

.risk-box li {
  color: #5d3b1a;
}

.site-footer {
  margin-top: 76px;
  background: var(--ink);
  color: #dce8ed;
  padding: 54px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(130px, 0.5fr) minmax(170px, 0.6fr);
  gap: 42px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-eyebrow {
  margin: 0 0 10px;
  color: #7fc2d6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 24px;
}

.footer-grid p {
  margin: 0;
  color: #aebfc7;
  font-size: 13px;
  line-height: 1.8;
}

.footer-label {
  color: #7fc2d6 !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}

.footer-grid a {
  display: block;
  color: #dce8ed;
  font-size: 13px;
  padding: 4px 0;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #8fa6b1;
  font-size: 11px;
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-panel {
    min-height: auto;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid,
  .watch-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    min-height: 66px;
  }

  .hero {
    padding: 46px 0 38px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric-value {
    font-size: 29px;
  }

  .demo-banner {
    flex-direction: column;
    gap: 4px;
  }

  .bar-chart {
    height: 210px;
    gap: 8px;
  }

  .timeline article {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding-left: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

.error-page {
  min-height: calc(100vh - 190px);
  display: grid;
  align-content: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.error-page h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.15;
}

.error-page > p:not(.eyebrow, .error-code) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.error-code {
  margin: 0;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.error-action {
  width: fit-content;
  margin-top: 28px;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.error-action:hover {
  background: var(--accent);
}

@media (max-width: 640px) {
  .error-page {
    min-height: calc(100vh - 260px);
  }
}
