:root {
  --color-bg: #0B1A2A;
  --color-surface: #10243A;
  --color-surface-high: #1A2D42;
  --color-text: #E8ECF0;
  --color-text-dim: #A8B2BD;
  --color-gold: #D4AF37;
  --color-gold-soft: #F0E68C;
  --color-red: #E8493B;
  --color-divider: #2A3D52;
  --font-head: "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", serif;
  --font-mono: "Roboto Mono", "Consolas", monospace;
  --header-width: 286px;
  --container: 1200px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(212, 175, 55, 0.07), transparent 62%),
    linear-gradient(165deg, #0B1A2A 0%, #0E2033 46%, #0B1A2A 100%);
  color: var(--color-text);
  min-height: 100vh;
  min-width: 320px;
  overflow-x: hidden;
}

main {
  display: block;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, padding 0.2s ease;
}

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

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.25;
  color: var(--color-text);
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: #fff;
}

[hidden] {
  display: none !important;
}

body {
  display: block;
}

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

/* ===== 全局跳转链接 ===== */
.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  background: var(--color-gold);
  color: var(--color-bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 4px;
  transform: translateY(-240%);
  transition: transform 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

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

/* ===== 头部：移动优先 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  padding: 10px 16px;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 132px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-soft));
  z-index: 2;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(212, 175, 55, 0.10), transparent 34%),
    repeating-linear-gradient(-32deg, transparent, transparent 18px, rgba(42, 61, 82, 0.18) 18px, rgba(42, 61, 82, 0.18) 19px);
  pointer-events: none;
}

.brand-rail {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  min-width: 0;
}

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

.brand__badge {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--color-gold-soft), var(--color-gold) 58%, #8a6a1f);
  color: var(--color-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: -0.02em;
  border: 2px solid rgba(11, 26, 42, 0.35);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

.brand__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 16px;
  white-space: nowrap;
  color: var(--color-text);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-text-dim);
}

.brand-tagline {
  display: none;
  margin: 0;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--color-divider);
  border-radius: 6px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex: 0 0 auto;
}

.nav-toggle:hover {
  border-color: var(--color-gold);
  background: var(--color-surface-high);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle__bar {
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.site-nav {
  display: none;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-divider);
  margin-top: 12px;
  padding-top: 14px;
}

.site-nav[data-open] {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid transparent;
  color: var(--color-text-dim);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-link__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-gold);
}

.nav-link__arrow {
  margin-left: auto;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  background: var(--color-surface-high);
  color: var(--color-text);
}

.nav-link:hover .nav-link__arrow {
  opacity: 1;
  transform: translateX(0);
}

.nav-link[aria-current="page"] {
  background: var(--color-surface-high);
  color: var(--color-text);
  border-left-color: var(--color-gold);
}

.nav-link[aria-current="page"] .nav-link__arrow {
  opacity: 1;
  transform: translateX(0);
}

.header-fact {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-divider);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-dim);
  position: relative;
  z-index: 1;
}

.header-fact__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 10px rgba(232, 73, 59, 0.8);
  animation: headerPulse 2.4s ease-in-out infinite;
}

@keyframes headerPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(232, 73, 59, 0.5); }
  50% { opacity: 0.45; box-shadow: 0 0 16px rgba(232, 73, 59, 0.9); }
}

/* ===== 页脚：移动优先 ===== */
.site-footer {
  position: relative;
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(340px, 38%);
  height: 5px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-soft));
  clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.site-footer__top,
.site-footer__bottom {
  position: relative;
  z-index: 1;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 28px;
}

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

.brand--footer .brand__badge {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  font-size: 10px;
}

.brand--footer .brand__name {
  font-size: 15px;
}

.brand--footer .brand__sub {
  font-size: 10px;
}

.footer-about {
  margin-top: 14px;
  color: var(--color-text-dim);
  font-size: 14px;
  line-height: 1.8;
  max-width: 340px;
}

.footer-links,
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link-list a,
.footer-meta-list a {
  color: var(--color-text-dim);
  font-size: 14px;
}

.footer-link-list a:hover,
.footer-meta-list a:hover {
  color: var(--color-gold);
  padding-left: 6px;
}

.footer-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 24px;
}

.footer-meta-list a {
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px dashed var(--color-divider);
  padding-bottom: 2px;
}

.footer-meta-list a:hover {
  border-bottom-color: var(--color-gold);
}

.footer-contact {
  color: var(--color-text-dim);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-divider);
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px;
}

.footer-trust {
  color: var(--color-text-dim);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-dim);
}

.footer-icp {
  color: var(--color-text-dim);
}

/* ===== 通用组件 ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.page-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.section {
  padding: 56px 0;
  position: relative;
}

.section__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--color-gold);
  display: block;
  margin-bottom: 8px;
}

.section__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section__lead {
  color: var(--color-text-dim);
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-dim);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--color-gold);
  background: transparent;
  color: var(--color-gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

.btn:active {
  transform: translateY(1px);
}

.btn--solid {
  background: var(--color-gold);
  color: var(--color-bg);
}

.btn--solid:hover {
  background: var(--color-gold-soft);
  border-color: var(--color-gold-soft);
  color: var(--color-bg);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  font-size: 14px;
}

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

.data-table thead th {
  background: var(--color-surface-high);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(16, 36, 58, 0.5);
}

.data-table tbody tr:hover td {
  background: rgba(26, 45, 66, 0.6);
}

.figure {
  position: relative;
  display: block;
  min-height: 160px;
  background:
    radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.08), transparent 42%),
    var(--color-surface-high);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  overflow: hidden;
}

.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 90px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 90px);
  background-size: 90px 90px;
  pointer-events: none;
}

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

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

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

/* ===== 标签页 ===== */
.tabs {}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: 24px;
}

.tab {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-dim);
  background: transparent;
  border: 1px solid var(--color-divider);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 10px 18px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  color: var(--color-text);
}

.tab[aria-selected="true"] {
  background: var(--color-surface-high);
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.tabpanel {
  padding-top: 8px;
}

/* ===== 滚动显现 ===== */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* ===== 平板：768px 及以上 ===== */
@media (min-width: 768px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 48px 32px 32px;
  }

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

  .footer-links {
    grid-column: 2;
  }

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

  .site-footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    padding: 22px 32px;
  }

  .footer-trust {
    margin-bottom: 0;
    max-width: 720px;
  }

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

/* ===== 桌面：1024px 及以上 ===== */
@media (min-width: 1024px) {
  body {
    display: grid;
    grid-template-columns: var(--header-width) minmax(0, 1fr);
    grid-template-rows: auto minmax(60vh, 1fr) auto;
    min-height: 100vh;
  }

  .site-header {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: 0;
    height: 100vh;
    border-bottom: none;
    border-right: 1px solid var(--color-divider);
    padding: 26px 20px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
  }

  .brand-rail {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
  }

  .brand__badge {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    font-size: 12px;
  }

  .brand__name {
    font-size: 17px;
  }

  .brand__sub {
    font-size: 11px;
  }

  .brand-tagline {
    display: block;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-divider);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--color-gold);
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    margin-top: 24px;
    border-top: none;
    padding-top: 0;
    flex: 1;
    min-height: 0;
  }

  .site-nav[data-open] {
    display: block;
  }

  .nav-list {
    gap: 6px;
  }

  .header-fact {
    display: flex;
  }

  main#main-content {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }

  .site-footer {
    grid-column: 2;
    grid-row: 3;
    border-top: 1px solid var(--color-divider);
  }

  .site-footer__top {
    grid-template-columns: 1.2fr 0.9fr 1.1fr;
    gap: 48px;
  }

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

  .footer-links {
    grid-column: 2;
  }

  .footer-meta {
    grid-column: 3;
  }

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

  .page-shell {
    padding: 56px 32px 96px;
  }
}

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

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

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