/* ========== 变量与重置 ========== */
:root {
  --color-primary: #0A1128;
  --color-primary-alt: #101B33;
  --color-accent: #00E676;
  --color-gold: #FFC400;
  --color-nav: #243447;
  --color-body: #F2F7FA;
  --color-muted: #8A9BA8;
  --color-danger: #FF3D00;
  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --header-h: 76px;
  --header-outer: calc(var(--header-h) + 9px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-outer) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
  background-color: var(--color-primary);
  background-image: radial-gradient(rgba(0, 230, 118, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-accent);
  color: var(--color-primary);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--color-body);
}

a {
  color: var(--color-accent);
  transition: color 0.15s ease;
}

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

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

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

.skip-link {
  position: absolute;
  top: -120px;
  left: 12px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--color-gold);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 3px solid var(--color-primary);
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  transition: top 0.2s ease;
}

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

/* ========== 通用布局 ========== */
.container {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

.main-content {
  min-height: 60vh;
}

#main-content {
  scroll-margin-top: calc(var(--header-outer) + 14px);
}

.section {
  padding-block: 72px;
}

.section-head {
  position: relative;
  border-left: 4px solid var(--color-accent);
  padding-left: 20px;
  margin-bottom: 40px;
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.06;
  text-transform: uppercase;
  color: var(--color-body);
  letter-spacing: 0.02em;
}

.section-sub {
  color: var(--color-muted);
  max-width: 56ch;
  margin-top: 10px;
  font-size: 15px;
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.grid-basic {
  display: grid;
  gap: 24px;
}

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

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

/* ========== 拼贴与图片容器 ========== */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 18px;
}

.mosaic-item {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
  background: var(--color-primary-alt);
  border: 3px solid var(--color-nav);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.mosaic-item--wide {
  grid-column: span 4;
}

.mosaic-item--tall {
  grid-row: span 4;
}

.mosaic-item--full {
  grid-column: 1 / -1;
}

.figure {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--color-primary-alt);
  border: 3px solid var(--color-nav);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
}

.figure img,
.figure .img-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-16x9 {
  aspect-ratio: 16 / 9;
}

.figure-4x3 {
  aspect-ratio: 4 / 3;
}

.figure-square {
  aspect-ratio: 1 / 1;
}

.figure-note {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-muted);
}

.figure-note::before {
  content: "●";
  font-size: 8px;
  color: var(--color-accent);
}

.img-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
  background: repeating-linear-gradient(-45deg, rgba(138, 155, 168, 0.05) 0 8px, transparent 8px 16px);
}

/* ========== 按钮体系 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 3px solid var(--color-primary);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-accent {
  color: var(--color-primary);
  background: var(--color-accent);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
}

.btn-accent:hover {
  color: var(--color-primary);
  background: var(--color-gold);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.btn-accent:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.45);
}

.btn-gold {
  color: var(--color-primary);
  background: var(--color-gold);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
}

.btn-gold:hover {
  background: var(--color-accent);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.btn-ghost {
  color: var(--color-accent);
  background: transparent;
  border-color: var(--color-accent);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4);
}

.btn-ghost:hover {
  color: var(--color-primary);
  background: var(--color-accent);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

/* ========== 头部 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-nav);
  border-top: 5px solid var(--color-gold);
  border-bottom: 4px solid var(--color-accent);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  align-self: center;
  text-decoration: none;
}

.brand-logo {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  border: 3px solid var(--color-body);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  transform: rotate(-4deg);
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo {
  transform: rotate(0deg) scale(1.03);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  color: var(--color-body);
  letter-spacing: 0.06em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-tag {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  background: rgba(255, 196, 0, 0.12);
  padding: 1px 6px;
  margin-top: 3px;
  border: 1px solid rgba(255, 196, 0, 0.5);
  line-height: 1.4;
}

.site-nav {
  align-self: stretch;
  margin-left: auto;
  margin-right: auto;
  border-inline: 1px solid rgba(138, 155, 168, 0.25);
  display: flex;
}

.nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  width: 100%;
}

.nav-item {
  display: flex;
}

.nav-item + .nav-item .nav-link {
  border-left: 1px solid rgba(138, 155, 168, 0.25);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-body);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  align-self: center;
  position: relative;
  z-index: 121;
}

.header-cta {
  font-size: 14px;
  padding: 11px 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 9px;
  background: var(--color-primary);
  border: 3px solid var(--color-accent);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nav-toggle:hover {
  background: var(--color-primary-alt);
}

.nav-toggle-line {
  display: block;
  height: 3px;
  background: var(--color-accent);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-of-type(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-of-type(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-of-type(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========== 移动端导航 ========== */
@media (max-width: 960px) {
  :root {
    --header-h: 60px;
    --header-outer: calc(var(--header-h) + 9px);
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

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

  .header-cta {
    padding: 9px 14px;
    font-size: 13px;
  }

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

  .site-nav {
    position: fixed;
    top: var(--header-outer);
    right: 0;
    width: min(340px, 86vw);
    height: calc(100vh - var(--header-outer));
    height: calc(100dvh - var(--header-outer));
    margin: 0;
    background: var(--color-nav);
    border-inline: 0;
    border-left: 4px solid var(--color-accent);
    box-shadow: -14px 0 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 120;
    transform: translateX(103%);
    transition: transform 0.3s ease;
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-item {
    display: block;
  }

  .nav-item + .nav-item .nav-link {
    border-left: 0;
    border-top: 1px solid rgba(138, 155, 168, 0.12);
  }

  .nav-link {
    justify-content: flex-start;
    padding: 18px 24px;
    font-size: 17px;
  }

  .nav-link::after {
    top: 50%;
    bottom: auto;
    left: 0;
    width: 5px;
    height: 22px;
    transform: scaleY(0);
    transform-origin: center;
  }

  .nav-link:hover::after,
  .nav-link:focus-visible::after,
  .nav-link[aria-current="page"]::after {
    transform: scaleY(1);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .brand-tag {
    display: none;
  }

  .header-inner {
    gap: 8px;
  }

  .header-cta {
    padding-inline: 10px;
    font-size: 12px;
  }
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--color-primary);
  color: var(--color-body);
}

.footer-accent {
  position: relative;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--color-accent) 0 8px, var(--color-primary-alt) 8px 16px);
}

.footer-accent::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 6px;
  background: var(--color-gold);
}

.footer-inner {
  padding-block: 48px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

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

.footer-trust {
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-muted);
  border-left: 3px solid rgba(0, 230, 118, 0.5);
  padding-left: 16px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.footer-links {
  font-size: 15px;
  line-height: 2.1;
}

.footer-links a {
  color: var(--color-body);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.footer-email {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 12px;
}

.footer-email a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-email a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(138, 155, 168, 0.2);
  background: var(--color-primary-alt);
  padding: 16px 0;
  font-size: 13px;
  color: var(--color-muted);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-copy,
.footer-icp,
.footer-email-mini {
  font-size: 13px;
}

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

/* ========== 面包屑与内页标题 ========== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-muted);
}

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

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--color-muted);
  opacity: 0.6;
}

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

.page-hero {
  padding: 64px 0 48px;
}

.page-title {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  color: var(--color-body);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.page-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 6px;
  background: var(--color-accent);
  margin-top: 12px;
}

.page-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 56ch;
}

/* ========== 标签与数据面板 ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
}

.tag-green {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(0, 230, 118, 0.08);
}

.tag-gold {
  color: var(--color-gold);
  border-color: var(--color-gold);
  background: rgba(255, 196, 0, 0.08);
}

.tag-red {
  color: var(--color-danger);
  border-color: rgba(255, 61, 0, 0.55);
  background: rgba(255, 61, 0, 0.08);
}

.data-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-accent);
  padding: 2px 10px;
  transform: rotate(-1deg);
}

.data-panel {
  background: var(--color-primary-alt);
  border: 3px solid var(--color-nav);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
  padding: 24px;
}

.data-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-body);
  margin-bottom: 12px;
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(138, 155, 168, 0.14);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-label {
  font-size: 14px;
  color: var(--color-muted);
}

.data-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
}

/* ========== 时间轴 ========== */
.timeline {
  position: relative;
  border-left: 3px solid var(--color-accent);
  padding-left: 28px;
}

.timeline-item {
  position: relative;
  padding: 20px 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 24px;
  width: 13px;
  height: 13px;
  background: var(--color-nav);
  border: 3px solid var(--color-gold);
  transform: rotate(45deg);
}

.timeline-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--color-body);
  margin: 4px 0 6px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--color-muted);
  max-width: 60ch;
}

/* ========== 装饰辅助 ========== */
.stripes-bg {
  background-image: repeating-linear-gradient(-45deg, rgba(0, 230, 118, 0.06) 0 10px, transparent 10px 20px);
}

/* ========== 滚动进度 ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 999;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
}

/* ========== 显现协议 ========== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ========== 响应式收敛 ========== */
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 900px) {
  .mosaic-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 120px;
  }

  .mosaic-item,
  .mosaic-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .mosaic-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .mosaic-item,
  .mosaic-item--wide,
  .mosaic-item--tall {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .section {
    padding-block: 48px;
  }

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

  .page-hero {
    padding-top: 40px;
  }
}

/* ========== 减少动态偏好 ========== */
@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;
    scroll-behavior: auto !important;
  }

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

  .site-nav {
    transition: none;
  }

  .skip-link {
    transition: none;
  }
}
