:root {
  --blue: #0A5FFF;
  --dark: #0B0D12;
  --light: #F7F9FC;
  --carbon: #111827;
  --white: #FFFFFF;
  --orange: #FF6B00;
  --green: #39FF88;
  --line: #E2E8F0;
  --pale: #D6E4FF;
  --header-w: 280px;
  --content-max: 1240px;
  --font-sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, monospace;
  --shadow: 0 8px 24px rgba(11, 13, 18, 0.08);
  --shadow-blue: 0 8px 30px rgba(10, 95, 255, 0.25);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--carbon);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

address {
  font-style: normal;
}

button {
  font: inherit;
  cursor: pointer;
}

img, svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--blue);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  padding: 12px 20px;
  background: var(--green);
  color: var(--dark);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

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

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2500;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 0 12px rgba(10, 95, 255, 0.55);
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1500;
  width: var(--header-w);
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: #fff;
  border-right: 1px solid rgba(10, 95, 255, 0.45);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--green) 70%, transparent);
  opacity: 0.5;
  pointer-events: none;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: #fff;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.brand-mark::before {
  content: "";
  width: 22px;
  height: 4px;
  background: var(--blue);
  clip-path: polygon(0 100%, 100% 0, 100% 30%, 0 70%);
}

.brand-text {
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.64);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.8);
}

.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-toggle-box {
  position: relative;
  width: 18px;
  height: 14px;
}

.nav-toggle-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s, top 0.25s, opacity 0.2s;
}

.nav-toggle-box span:nth-child(1) {
  top: 0;
}

.nav-toggle-box span:nth-child(2) {
  top: 6px;
}

.nav-toggle-box span:nth-child(3) {
  top: 12px;
}

.site-header[data-open] .nav-toggle-box span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle-box span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.nav-toggle-label {
  font-size: 12px;
}

.header-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 16px;
  overflow-y: auto;
}

.site-nav {
  margin: 0;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px 11px 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.nav-link[aria-current="page"],
.nav-link[aria-current="page"]:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
  transform: none;
}

.nav-index {
  width: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.nav-link[aria-current="page"] .nav-index {
  color: rgba(255, 255, 255, 0.85);
}

.nav-label {
  display: block;
  line-height: 1.25;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.header-search-icon {
  font-size: 14px;
  line-height: 1;
  color: var(--blue);
}

.header-search-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search-hint {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.main-content {
  margin-left: var(--header-w);
  min-height: calc(100vh - 64px);
  scroll-margin-top: 88px;
}

.content-shell {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

.section {
  padding-block: clamp(64px, 10vw, 120px);
}

.section--dark {
  background: var(--dark);
  color: #fff;
}

.section--pale {
  background: var(--pale);
}

.section--line {
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head--split {
  justify-content: space-between;
  align-items: flex-end;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--blue);
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-note {
  max-width: 56ch;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(17, 24, 37, 0.65);
}

.section--dark .section-title {
  color: #fff;
}

.section--dark .section-note {
  color: rgba(255, 255, 255, 0.64);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 32px 0 0;
  font-size: 12px;
  color: rgba(17, 24, 37, 0.55);
}

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

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--carbon);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn--primary:hover {
  background: #0047E0;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--carbon);
  border-color: var(--blue);
}

.btn--ghost:hover {
  background: var(--pale);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--dark);
  color: #fff;
}

.btn--dark:hover {
  background: #1a202c;
  transform: translateY(-2px);
}

.section--dark .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.section--dark .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--carbon);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.filter-btn[aria-pressed="true"],
.filter-btn.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

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

.data-card {
  position: relative;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.data-card::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(10, 95, 255, 0.25);
  transform: rotate(45deg);
}

.data-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(17, 24, 37, 0.6);
}

.data-value {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.data-value strong {
  color: var(--orange);
  font-weight: 700;
}

.data-card--score .data-value {
  color: var(--dark);
}

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

.topic-band__item {
  min-height: 180px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  box-shadow: var(--shadow);
}

.topic-band__item--dark {
  background: var(--dark);
  color: #fff;
  border-top-color: var(--green);
}

.topic-band__item--accent {
  background: var(--blue);
  color: #fff;
  border-top-color: var(--blue);
  box-shadow: var(--shadow-blue);
}

.topic-band__item--score {
  border-top-color: var(--orange);
}

.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--orange));
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--light);
  box-shadow: 0 0 0 1px var(--orange);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.timeline-title {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
}

.timeline-content {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(17, 24, 37, 0.7);
}

.section--dark .timeline-item::before {
  border-color: var(--dark);
}

.section--dark .timeline-content {
  color: rgba(255, 255, 255, 0.7);
}

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

.acc-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.acc-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--carbon);
}

.acc-toggle::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--blue);
}

.acc-toggle[aria-expanded="true"]::after,
.acc-panel[data-open] .acc-toggle::after {
  content: "−";
}

.acc-content {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: rgba(17, 24, 37, 0.75);
}

.acc-panel[data-open] .acc-content {
  display: block;
}

.note-block {
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  border-radius: 0 4px 4px 0;
  background: var(--pale);
  font-size: 14px;
}

.table-data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

.table-data th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--blue);
  text-transform: uppercase;
}

.table-data tr:hover td {
  background: var(--pale);
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  min-height: 560px;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}

.page-hero__main {
  align-self: center;
  padding: clamp(40px, 7vw, 80px);
}

.page-hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 9ch;
}

.page-hero__lede {
  max-width: 48ch;
  margin-top: 18px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.66);
}

.page-hero__meta {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--green);
}

.page-hero__side {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.03);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero__side::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -20%;
  width: 70%;
  height: 80%;
  background: var(--blue);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.8;
}

.page-hero__side > * {
  position: relative;
  z-index: 1;
}

.hero-metric {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.06em;
}

.hero-metric strong {
  color: var(--orange);
  font-weight: 700;
}

.hero-metric small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--green);
}

.site-footer {
  margin-left: var(--header-w);
  padding: 72px 0 32px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-inner {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(24px, 5vw, 72px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: grid;
  gap: 16px;
  align-content: start;
}

.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
  color: #fff;
}

.footer-logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-logo-sub {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.footer-trust {
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue);
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.footer-link {
  padding: 2px 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--green);
}

.footer-contact-list {
  display: grid;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}

.footer-contact-item strong {
  min-width: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
}

.footer-contact-address strong {
  align-self: flex-start;
}

.footer-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-policy-links a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-policy-links a:hover {
  color: var(--green);
}

.footer-copy {
  font-family: var(--font-mono);
}

.footer-icp {
  font-family: var(--font-mono);
}

@media (max-width: 1280px) {
  :root {
    --header-w: 240px;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-w: 220px;
  }

  .nav-link {
    gap: 10px;
    padding: 10px;
    font-size: 13px;
  }

  .header-search-text {
    display: none;
  }

  .header-search {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  :root {
    --header-w: 0px;
  }

  body {
    overflow-x: hidden;
  }

  .site-header {
    right: 0;
    bottom: auto;
    height: 64px;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(10, 95, 255, 0.5);
  }

  .site-header::before {
    top: auto;
    right: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--green));
  }

  .header-brand {
    height: 64px;
    padding: 10px 16px;
    border-bottom: 0;
  }

  .brand-mark {
    font-size: 18px;
  }

  .brand-text {
    max-width: 22ch;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-panel {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    bottom: auto;
    height: calc(100vh - 64px);
    padding: 16px;
    background: var(--dark);
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .site-header[data-open] .header-panel {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header-search {
    margin-top: auto;
  }

  .nav-list {
    gap: 4px;
  }

  .nav-link {
    padding: 12px 14px;
    font-size: 14px;
  }

  .nav-link:hover {
    transform: translateX(2px);
  }

  .main-content {
    margin-left: 0;
    padding-top: 64px;
  }

  .site-footer {
    margin-left: 0;
    padding-top: 56px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .page-hero__side {
    min-height: 260px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-policy {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-policy-links {
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
