*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; }
input, textarea, select { font: inherit; }

:root {
  --ink: #061320;
  --panel: #0B1F2E;
  --line: #123043;
  --cyan: #22E0D6;
  --cyan-lift: #7FF3EC;
  --amber: #F2B233;
  --amber-lift: #FFD074;
  --paper: #F4EDE1;
  --paper-ink: #1C1A17;
  --rust: #B4432B;
  --mist: #8FA3B0;
  --text: #E6F1F4;
  --maxw: 1280px;
  --gutter: 24px;
  --header-h: 76px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-panel: 0 1px 0 rgba(18, 48, 67, .9), 0 18px 40px -32px #000;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(to right, rgba(18, 48, 67, .45) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, rgba(18, 48, 67, .30) 0 1px, transparent 1px 64px),
    radial-gradient(1100px 620px at 78% -8%, rgba(34, 224, 214, .10), transparent 60%),
    radial-gradient(760px 520px at 4% 12%, rgba(242, 178, 51, .07), transparent 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#main-content { display: block; scroll-margin-top: 96px; }

::selection { background: rgba(34, 224, 214, .28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}
.paper-band :focus-visible { outline-color: #0E7A74; }

/* ---------- 通用容器 / 栅格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 920px; }
.section { padding-block: 72px; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.c-3 { grid-column: span 3; }
.c-4 { grid-column: span 4; }
.c-5 { grid-column: span 5; }
.c-6 { grid-column: span 6; }
.c-7 { grid-column: span 7; }
.c-8 { grid-column: span 8; }
.c-9 { grid-column: span 9; }
.c-12 { grid-column: span 12; }

/* ---------- 排版 ---------- */
.h-xl { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.02em; font-weight: 800; }
.h-lg { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.14; letter-spacing: -.02em; font-weight: 800; }
.h-md { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.28; letter-spacing: -.02em; font-weight: 800; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mist);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
}

.annotation {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--mist);
}
.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .32em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 分隔线 / 显现 ---------- */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}
.rule--grow[data-reveal] {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .72s var(--ease);
}
.rule--grow[data-reveal].is-visible { transform: scaleX(1); }

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease);
}
.btn--cyan { background: var(--cyan); color: #04161C; }
.btn--cyan:hover { background: var(--cyan-lift); }
.btn--amber { background: var(--amber); color: #1C1A17; }
.btn--amber:hover { background: var(--amber-lift); }
.btn--ghost {
  background: rgba(11, 31, 46, .6);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: rgba(34, 224, 214, .6); color: var(--cyan-lift); }

/* ---------- 卡面 / media ---------- */
.card {
  background: linear-gradient(180deg, rgba(11, 31, 46, .94), rgba(6, 19, 32, .94));
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-panel);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
  white-space: nowrap;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.dot--amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(242, 178, 51, .16); }
.dot--cyan { background: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 224, 214, .16); }
.dot--rust { background: var(--rust); box-shadow: 0 0 0 3px rgba(180, 67, 43, .16); }
.dot--live { animation: dotBreath 2.4s ease-in-out infinite; }

@keyframes dotBreath {
  0%, 100% { opacity: 1; }
  50% { opacity: .38; }
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(158deg, #0D2433 0%, #061320 78%);
}
.media-frame > img,
.media-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(34, 224, 214, .14),
    inset 0 -70px 90px -70px rgba(34, 224, 214, .30);
}
.media-frame--21x9 { aspect-ratio: 21 / 9; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3  { aspect-ratio: 4 / 3; }
.media-frame--1x1  { aspect-ratio: 1 / 1; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mist);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(143, 163, 176, .55);
}
.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .12s var(--ease), border-color .12s var(--ease);
}
.breadcrumb a:hover { color: var(--cyan-lift); border-bottom-color: rgba(34, 224, 214, .6); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- 纸面长文带 ---------- */
.paper-band {
  position: relative;
  padding-block: 72px;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(28, 26, 23, .055) 1px, transparent 1px);
  background-size: 4px 4px;
  color: var(--paper-ink);
  border-block: 1px solid rgba(28, 26, 23, .16);
}
.paper-band .eyebrow { color: #6B5F52; }
.paper-band .eyebrow::before { background: var(--rust); }
.paper-band .annotation { color: #6B5F52; }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.05em; }
.prose p { font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: 28px; line-height: 1.3; letter-spacing: -.02em; font-weight: 800; }
.prose h3 { font-size: 20px; line-height: 1.4; font-weight: 700; }
.paper-band .prose p,
.paper-band .prose li,
.paper-band .prose h2,
.paper-band .prose h3 { color: var(--paper-ink); }
.prose ul { padding-left: 1.15em; }
.prose ul li { position: relative; font-size: 16px; line-height: 1.75; }
.prose ul li + li { margin-top: .35em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.05em;
  top: .78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
}
.prose a {
  color: #9A3A22;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 19, 32, .93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color .2s var(--ease);
}
.site-header[data-condensed="true"] { background: rgba(6, 19, 32, .985); }

.header-shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: min-height .2s var(--ease);
}
.site-header[data-condensed="true"] .header-shell { min-height: 58px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--amber);
  color: #1C1A17;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: top .16s var(--ease);
}
.skip-link:focus { top: 12px; }

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
  min-width: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
}
.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-ver {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--cyan);
  border: 1px solid rgba(34, 224, 214, .42);
  border-radius: 2px;
  padding: 1px 5px;
  line-height: 1.5;
}
.brand-sub {
  font-size: 12px;
  line-height: 1.4;
  color: var(--mist);
  white-space: nowrap;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(242, 178, 51, .42);
  border-radius: 999px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .12s var(--ease), background-color .12s var(--ease), color .12s var(--ease);
}
.header-cta:hover {
  border-color: var(--amber);
  background: rgba(242, 178, 51, .10);
  color: var(--amber-lift);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .12s var(--ease), color .12s var(--ease);
}
.nav-toggle:hover { border-color: rgba(34, 224, 214, .55); color: var(--cyan-lift); }
.nav-toggle-text { line-height: 1; }

.nav-toggle-lines {
  position: relative;
  display: block;
  width: 14px;
  height: 10px;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform .16s var(--ease);
}
.nav-toggle-lines::before { top: 1px; }
.nav-toggle-lines::after { bottom: 1px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { transform: translateY(-3.5px) rotate(-45deg); }

.primary-nav { display: block; }

.nav-caps {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-cap {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s var(--ease), border-color .12s var(--ease), background-color .12s var(--ease);
}
.nav-cap:hover {
  color: var(--cyan-lift);
  background: rgba(34, 224, 214, .07);
}
.nav-cap[aria-current="page"] {
  color: var(--text);
  border-color: rgba(34, 224, 214, .62);
  background: rgba(34, 224, 214, .10);
  box-shadow: inset 0 -1px 0 var(--cyan);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: block;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  pointer-events: none;
}

@media (min-width: 981px) {
  .primary-nav { order: 2; }
  .header-cta { order: 3; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 31, 46, .98), rgba(6, 19, 32, 1));
  color: var(--text);
}

.footer-shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 64px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 1.9fr) minmax(210px, 1.05fr);
  gap: 48px 40px;
  align-items: start;
}

.footer-mark {
  display: inline-block;
  padding-bottom: 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--text);
  border-bottom: 2px solid var(--cyan);
  transition: color .12s var(--ease);
}
.footer-mark:hover { color: var(--cyan-lift); }
.footer-tagline {
  margin-top: 16px;
  max-width: 24ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}
.footer-icp {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--mist);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}
.footer-col-title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cyan);
}
.footer-list li + li { margin-top: 10px; }
.footer-list a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(230, 241, 244, .82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .12s var(--ease), border-color .12s var(--ease);
}
.footer-list a:hover {
  color: var(--cyan-lift);
  border-bottom-color: rgba(34, 224, 214, .6);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact .footer-col-title { margin-bottom: 2px; }
.footer-contact-line {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}
.footer-contact-val {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  overflow-wrap: anywhere;
}

.footer-base {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.footer-status {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--gutter) 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--mist);
}
.footer-legal { margin-right: auto; }
.footer-stamp { color: rgba(143, 163, 176, .9); }
.footer-stamp .mono { color: var(--cyan); }

.to-top {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
  cursor: pointer;
  transition: color .12s var(--ease), border-color .12s var(--ease), background-color .12s var(--ease);
}
.to-top:hover {
  color: var(--cyan-lift);
  border-color: rgba(34, 224, 214, .55);
  background: rgba(34, 224, 214, .07);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .c-3, .c-4, .c-5 { grid-column: span 6; }
  .c-7, .c-8, .c-9 { grid-column: span 12; }
}

@media (max-width: 980px) {
  .header-shell {
    min-height: 0;
    padding-block: 12px 10px;
    flex-wrap: wrap;
    row-gap: 0;
  }
  .site-header[data-condensed="true"] .header-shell { min-height: 0; padding-block: 10px 8px; }
  .brand-block { margin-right: auto; }
  .brand-sub { display: none; }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    order: 5;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height .24s var(--ease), opacity .18s var(--ease), margin-top .24s var(--ease);
  }
  .primary-nav[data-open="true"] {
    max-height: 70vh;
    overflow-y: auto;
    opacity: 1;
    margin-top: 10px;
  }
  .nav-caps {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    padding-bottom: 4px;
  }
  .nav-cap {
    height: 44px;
    padding: 0 12px;
    border-radius: 2px;
    justify-content: flex-start;
    font-size: 15px;
  }
  .nav-cap[aria-current="page"] {
    box-shadow: inset 2px 0 0 var(--cyan);
    background: rgba(34, 224, 214, .08);
  }

  .footer-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 48px;
  }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .section { padding-block: 52px; }
  .paper-band { padding-block: 52px; }
  .grid-12 > * { grid-column: 1 / -1; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-status { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-legal { margin-right: 0; }
}

@media (max-width: 520px) {
  .brand-name { font-size: 16px; }
  .brand-ver { font-size: 10px; padding: 1px 4px; }
  .header-cta { width: 32px; padding: 0; justify-content: center; }
  .header-cta-text { display: none; }
  .nav-toggle { padding: 0 10px; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .rule--grow[data-reveal] { opacity: 1; transform: scaleX(1); }
  .dot--live { animation: none; }
}
