:root {
  --ink: #080c0b;
  --panel: #0f2a23;
  --panel-2: #173d33;
  --indigo: #241b36;
  --wine: #351820;
  --paper: #e9f2ed;
  --muted: #a9bdb5;
  --lime: #c8ff4d;
  --orange: #ff9d3f;
  --red: #c63c2f;
  --line: #2c4a41;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1320px;
  --header-h: 98px;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--paper);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--paper);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--lime);
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

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

#main-content {
  scroll-margin-top: 112px;
}

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

.is-hidden {
  display: none !important;
}

/* ---------- 通用布局 ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

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

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

.grid--7-5 {
  grid-template-columns: 7fr 5fr;
}

.grid--sidebar {
  grid-template-columns: 240px minmax(0, 1fr);
}

/* ---------- 排版组件 ---------- */
.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.7;
}

.prose h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-top: 1.8em;
}

.prose h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  margin-top: 1.6em;
  color: var(--paper);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose a {
  color: var(--lime);
}

.prose strong {
  color: var(--paper);
  font-weight: 700;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(18px, 3vw, 32px);
}

.section-head__kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 8px;
}

.section-head__title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 0;
}

/* ---------- 标签与按钮 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.tag--red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.tag--lime {
  background: transparent;
  border-color: var(--lime);
  color: var(--lime);
}

.tag--orange {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  background: var(--panel);
  color: var(--lime);
  border-color: var(--lime);
}

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.btn--lime:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
}

.btn--ghost:hover {
  background: var(--panel-2);
  color: var(--lime);
  border-color: var(--lime);
}

.btn--sm {
  font-size: 12.5px;
  padding: 9px 14px;
}

/* ---------- 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--lime);
}

.crumb__sep {
  color: var(--line);
}

.crumb [aria-current="page"] {
  color: var(--paper);
}

/* ---------- 面板与图像容器 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.6vw, 32px);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.panel--indigo {
  background: var(--indigo);
}

.panel--wine {
  background: var(--wine);
}

.panel--raised {
  background: var(--panel-2);
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background-color: var(--panel-2);
  background-image:
    repeating-linear-gradient(90deg, rgba(44, 74, 65, 0.55) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(44, 74, 65, 0.55) 0 1px, transparent 1px 56px),
    linear-gradient(135deg, var(--panel) 0%, var(--indigo) 100%);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--free {
  aspect-ratio: auto;
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 11, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.16s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--ink);
}

/* 公告滚动条 */
.ticker {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
  will-change: transform;
}

.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  flex: none;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-right: 1px solid rgba(44, 74, 65, 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.ticker__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: var(--lime);
  color: var(--ink);
}

.ticker__tag--red {
  background: var(--red);
  color: #fff;
}

.ticker__tag--orange {
  background: var(--orange);
  color: var(--ink);
}

.ticker__text {
  color: var(--muted);
}

.ticker__meta {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

@keyframes ticker-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* 主栏 */
.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 11px var(--gutter);
  max-width: none;
}

.brand-rail {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--paper);
}

.brand:hover {
  color: var(--paper);
}

.brand__mark {
  display: inline-block;
  padding: 4px 10px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.brand__name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--paper);
}

.brand-rail__line {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.rail-status__dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(200, 255, 77, 0.65);
  animation: rail-pulse 2.6s ease-in-out infinite;
}

@keyframes rail-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(200, 255, 77, 0.55);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(200, 255, 77, 0);
  }
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.9vw, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item {
  display: flex;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.18s var(--ease);
}

.site-nav__link:hover {
  color: var(--paper);
}

.site-nav__link:hover::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--lime);
}

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.5;
  transition: opacity 0.16s ease, color 0.16s ease;
}

.site-nav__link:hover .site-nav__idx,
.site-nav__link[aria-current="page"] .site-nav__idx {
  opacity: 1;
  color: var(--lime);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-cta:hover {
  background: var(--paper);
  color: var(--ink);
}

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.nav-toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--lime);
  transition: transform 0.18s var(--ease), opacity 0.16s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle__text {
  white-space: nowrap;
}

/* 滚动进度 */
.scroll-meter {
  height: 2px;
  background: rgba(44, 74, 65, 0.5);
}

.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.08s linear;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--panel);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(420px, 55%);
  height: 3px;
  background: linear-gradient(90deg, var(--lime), rgba(200, 255, 77, 0));
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 96px 100%;
  opacity: 0.28;
}

.site-footer__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 56px);
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 46px);
  border-bottom: 1px solid rgba(44, 74, 65, 0.8);
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand__note {
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 18px;
}

.footer-brand__icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 16px;
  line-height: 1.4;
}

.footer-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-col__list--inline {
  grid-auto-flow: column;
  justify-content: start;
  gap: 18px;
  margin-top: 14px;
}

.footer-col__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-col__list a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width 0.18s var(--ease);
}

.footer-col__list a:hover {
  color: var(--paper);
}

.footer-col__list a:hover::before {
  width: 12px;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.footer-contact li {
  display: grid;
  gap: 2px;
}

.footer-contact__k {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(169, 189, 181, 0.62);
}

.footer-contact__v {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-col__note {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
  padding: 18px 0 22px;
}

.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal__links a {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
}

.footer-legal__links a:hover {
  color: var(--lime);
}

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  .site-footer__top {
    grid-template-columns: 1.4fr 1fr 1.4fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand__note {
    max-width: 46ch;
  }
}

/* ---------- 折叠导航 ---------- */
@media (max-width: 980px) {
  :root {
    --header-h: 92px;
  }

  .rail-status,
  .brand-rail__line {
    display: none;
  }

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

  .site-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 220;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 14px;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.6);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.24s var(--ease), opacity 0.18s ease, visibility 0.24s;
  }

  .site-nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .site-nav__item {
    border-bottom: 1px solid rgba(44, 74, 65, 0.55);
  }

  .site-nav__item:last-child {
    border-bottom: 0;
  }

  .site-nav__link {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 6px;
    font-size: 15px;
  }

  .site-nav__link::after {
    display: none;
  }

  .nav-cta {
    margin-top: 14px;
    width: 100%;
    padding: 13px 16px;
    font-size: 14px;
  }

  html.nav-locked,
  body.nav-locked {
    overflow: hidden;
  }

  .grid--7-5,
  .grid--sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 手机 ---------- */
@media (max-width: 760px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticker {
    height: 30px;
  }

  .ticker__item {
    font-size: 11px;
    padding: 0 14px;
    gap: 8px;
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .footer-col__list--inline {
    grid-auto-flow: row;
    gap: 9px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-bar {
    padding: 9px var(--gutter);
  }

  .brand__mark {
    font-size: 18px;
    padding: 4px 9px;
  }

  .brand__name {
    font-size: 11px;
    letter-spacing: 0.16em;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .ticker__track {
    animation: none;
    transform: none;
  }

  .ticker {
    overflow-x: auto;
  }

  .rail-status__dot {
    animation: none;
    box-shadow: none;
  }

  .site-nav {
    transition: none;
  }
}
