:root {
  --bg-void: #0D1117;
  --bg-carbon: #161B22;
  --yellow: #F5C518;
  --yellow-soft: rgba(245,197,24,0.12);
  --cyan: #00D4FF;
  --cyan-soft: rgba(0,212,255,0.12);
  --text-hi: #E6EDF3;
  --text-mid: #8B949E;
  --line: #30363D;
  --green: #3FB950;
  --orange: #D29922;
  --red: #F85149;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-w: 288px;
  --header-h: 64px;
  --content-max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-hi);
  background-color: var(--bg-void);
  background-image:
    radial-gradient(circle at 75% 10%, rgba(0,212,255,0.05), transparent 32%),
    radial-gradient(circle at 25% 80%, rgba(245,197,24,0.04), transparent 28%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-hi);
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(25px, 3.4vw, 38px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-size: 18px; }

p { margin: 0 0 14px; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--yellow); }

ul, ol { padding-left: 1.4em; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: none; cursor: pointer; }

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

::selection {
  background: rgba(245,197,24,0.3);
}

@media (min-width: 1024px) {
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: var(--bg-void); }
  ::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--text-mid); }
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  background: var(--yellow);
  color: var(--bg-void);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  pointer-events: none;
}
.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--cyan) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-h);
  background: rgba(22, 27, 34, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 1;
}

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

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-cn {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--text-hi);
  white-space: nowrap;
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--yellow);
  text-transform: uppercase;
}

.brand-tagline { display: none; }

.nav-rail-label { display: none; }

.site-nav { order: 3; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item { margin: 0; }

.nav-link {
  display: block;
  padding: 12px 14px;
  color: var(--text-mid);
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mid);
  opacity: 0.7;
  letter-spacing: 0.05em;
  margin-right: 10px;
  vertical-align: 2px;
}

.header-status { display: none; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(63,185,80,0.6);
  animation: statusPulse 2.4s ease-out infinite;
  flex-shrink: 0;
}

.status-text { line-height: 1.4; }

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(63,185,80,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(63,185,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,185,80,0); }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  position: relative;
  z-index: 130;
  flex-shrink: 0;
}

.toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-hi);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: auto;
    width: min(320px, 86vw);
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: rgba(22, 27, 34, 0.98);
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 48px rgba(0,0,0,0.5);
    padding: 12px 8px 24px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s var(--ease), visibility 0.32s;
  }
  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-link {
    padding: 13px 14px;
    color: var(--text-hi);
    font-size: 16px;
    border-bottom: 1px solid rgba(48,54,61,0.6);
    border-radius: 0;
  }
  .nav-link::before { color: var(--yellow); opacity: 0.6; }
  .nav-link:hover { color: var(--yellow); background: rgba(255,255,255,0.03); }
  .nav-link[aria-current="page"] { color: var(--yellow); }
  .nav-link.is-active:not([aria-current="page"]) { color: var(--cyan); }
}

@media (min-width: 1024px) {
  .site-header {
    width: var(--header-w);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.025) 25%, transparent 25%) 0 0 / 18px 18px,
      linear-gradient(315deg, rgba(255,255,255,0.025) 25%, transparent 25%) 0 0 / 18px 18px,
      linear-gradient(180deg, rgba(255,255,255,0.04), transparent 180px),
      var(--bg-carbon);
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 32px 24px 24px;
    overflow: hidden;
  }
  .header-brand {
    display: block;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
    flex-shrink: 0;
  }
  .brand-logo { width: 42px; height: 42px; }
  .brand-cn { font-size: 21px; }
  .brand-tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    letter-spacing: 0.42em;
    color: var(--text-mid);
  }
  .brand-tagline::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--yellow);
  }
  .nav-rail-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--text-mid);
    flex-shrink: 0;
  }
  .nav-rail-label::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--cyan);
  }
  .site-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 16px;
    order: 0;
  }
  .nav-link {
    padding: 11px 14px 11px 16px;
    font-size: 15px;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
  }
  .nav-link:hover { color: var(--text-hi); background: var(--glass); }
  .nav-link[aria-current="page"] {
    color: var(--yellow);
    border-left-color: var(--yellow);
    background: linear-gradient(90deg, rgba(245,197,24,0.1), transparent 80%);
  }
  .nav-link.is-active:not([aria-current="page"]) {
    color: var(--cyan);
    border-left-color: var(--cyan);
    background: linear-gradient(90deg, rgba(0,212,255,0.08), transparent 80%);
  }
  .header-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-mid);
    letter-spacing: 0.02em;
    margin-top: auto;
    flex-shrink: 0;
  }
  .nav-toggle { display: none; }
}

#main-content {
  display: block;
  min-height: 100vh;
  padding-top: var(--header-h);
}

.site-footer {
  position: relative;
  background: var(--bg-carbon);
  border-top: 1px solid var(--line);
}

.footer-accent {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--cyan) 55%, transparent 100%);
}

.footer-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 20px 28px;
}

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

.footer-brand-mark { margin-bottom: 18px; }

.footer-tagline {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-hi);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.footer-statement {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-mid);
  border-left: 2px solid var(--yellow);
  padding-left: 14px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--text-hi);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-heading::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--cyan);
}

.footer-link-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-link-list a {
  color: var(--text-mid);
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-link-list a:hover {
  color: var(--yellow);
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
}

.footer-contact-list .contact-label {
  color: var(--text-hi);
  font-weight: 500;
}

.footer-note {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-mid);
  opacity: 0.75;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-mid);
}

@media (min-width: 640px) {
  .footer-shell { padding: 64px 32px 28px; }
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 1024px) {
  #main-content {
    margin-left: var(--header-w);
    padding-top: 0;
  }
  .site-footer { margin-left: var(--header-w); }
  .footer-shell { padding: 72px 48px 32px; }
  .footer-top {
    grid-template-columns: 1.6fr 0.8fr 1.2fr;
    gap: 56px;
    padding-bottom: 56px;
  }
}

.content-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px 20px 64px;
}

@media (min-width: 640px) {
  .content-shell { padding: 56px 32px 80px; }
}

@media (min-width: 1024px) {
  .content-shell { padding: 72px 48px 96px; }
}

.page-head {
  margin-bottom: 48px;
}

.page-head .breadcrumb { margin-bottom: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-hi);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--bg-void);
  box-shadow: 0 8px 24px -8px rgba(245,197,24,0.5);
}

.btn-yellow:hover {
  background: #FFD93B;
  border-color: #FFD93B;
  color: var(--bg-void);
  box-shadow: 0 10px 28px -8px rgba(245,197,24,0.6);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-mid);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: '/';
  color: var(--line);
}

.breadcrumb a { color: var(--text-mid); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .breadcrumb-current { color: var(--text-hi); }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--yellow);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--yellow);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  color: var(--text-hi);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.section-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 640px;
  margin-bottom: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  white-space: nowrap;
}

.tag-yellow {
  color: var(--yellow);
  background: rgba(245,197,24,0.08);
  border-color: rgba(245,197,24,0.28);
}

.tag-cyan {
  color: var(--cyan);
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.28);
}

.tag-green {
  color: var(--green);
  background: rgba(63,185,80,0.08);
  border-color: rgba(63,185,80,0.28);
}

.glass-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.data-number {
  font-family: var(--font-mono);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--yellow);
  letter-spacing: -0.02em;
}

.data-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-mid);
  text-transform: uppercase;
}

.grid-2, .grid-3, .grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.img-frame {
  position: relative;
  display: block;
  width: 100%;
  min-height: 180px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(245,197,24,0.05), rgba(0,212,255,0.05)),
    var(--bg-carbon);
  background-size: 22px 22px, 22px 22px, 100% 100%, 100% 100%;
}

.img-frame::after {
  content: 'IMAGE';
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--text-mid);
  opacity: 0.5;
}

.img-frame[data-ratio="wide"] { aspect-ratio: 16 / 9; min-height: auto; }
.img-frame[data-ratio="tall"] { aspect-ratio: 3 / 4; min-height: auto; }
.img-frame[data-ratio="square"] { aspect-ratio: 1 / 1; min-height: auto; }

@media (max-width: 639px) {
  .img-frame[data-ratio="tall"] { aspect-ratio: 4 / 3; }
}

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

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-hi);
}

.data-table tbody tr { transition: background 0.15s ease; }
.data-table tbody tr:hover { background: var(--glass); }

.data-table .num {
  font-family: var(--font-mono);
  color: var(--yellow);
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line) 0%, transparent 100%);
  margin: 48px 0;
}

.cut-corner {
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.tilt-block,
.tilt-block-alt {
  transform: rotate(-1.2deg);
}

.tilt-block-alt { transform: rotate(1.2deg); }

@media (max-width: 639px) {
  .tilt-block,
  .tilt-block-alt { transform: none; }
}

.text-muted { color: var(--text-mid); }
.text-yellow { color: var(--yellow); }
.text-cyan { color: var(--cyan); }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@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;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .status-dot { animation: none; }
}
