/* ============ 全局基础 ============ */
:root {
  --color-bg: #0A192F;
  --color-bg-deep: #0F141E;
  --color-accent: #FF7A00;
  --color-alert: #FFE600;
  --color-muted: #4A5568;
  --color-success: #5A7846;
  --color-warn: #B46A46;
  --color-paper: #F5F0E6;
  --color-ink: #0F141E;
  --color-line: rgba(245, 240, 230, 0.14);
  --font-display: "Inter", "Roboto", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-w: 280px;
  --header-h: 68px;
  --max-w: 1280px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-paper);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-lock {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

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

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

.main-content {
  display: block;
  min-height: 70vh;
}

.main-content:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 4000;
  background: var(--color-alert);
  color: var(--color-bg);
  font-weight: 900;
  padding: 12px 20px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ============ 头部 ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--header-w);
  z-index: 1000;
  background: linear-gradient(180deg, #0A192F 0%, #0F141E 100%);
  border-right: 1px solid var(--color-line);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image:
    linear-gradient(rgba(245, 240, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 230, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0 58%, var(--color-alert) 58% 100%);
  z-index: 2;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 20px 20px;
}

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

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.03em;
  box-shadow: 5px 5px 0 rgba(255, 230, 0, 0.22);
}

.brand__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}

.brand__name {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand__desc {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.site-nav {
  margin-top: 32px;
  flex: 1;
  min-height: 0;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: nav;
}

.site-nav__item {
  counter-increment: nav;
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-left: 2px solid transparent;
  color: rgba(245, 240, 230, 0.82);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-nav__link::before {
  content: "0" counter(nav);
  min-width: 22px;
  font-size: 11px;
  font-weight: 900;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.site-nav__link:hover {
  color: var(--color-alert);
  background: rgba(255, 122, 0, 0.06);
  border-left-color: var(--color-alert);
}

.site-nav__link[aria-current="page"] {
  color: var(--color-accent);
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.18), transparent 85%);
  border-left-color: var(--color-accent);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--color-alert);
  transform: translateY(-50%) rotate(45deg);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 14px;
  padding: 11px 12px;
  background: rgba(255, 230, 0, 0.07);
  border: 1px solid rgba(255, 230, 0, 0.22);
  color: var(--color-alert);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.header-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgba(90, 120, 70, 0.6);
  animation: status-pulse 1.8s infinite;
}

.header-status__code {
  margin-left: auto;
  color: var(--color-muted);
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(90, 120, 70, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(90, 120, 70, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(90, 120, 70, 0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  background: var(--color-paper);
  color: var(--color-bg);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn--primary:hover {
  background: var(--color-alert);
  box-shadow: 7px 7px 0 rgba(255, 230, 0, 0.3);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  background: transparent;
  color: var(--color-paper);
  border: 1px solid var(--color-line);
}

.btn--ghost:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(255, 122, 0, 0.06);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-paper);
  padding: 10px 12px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.nav-toggle__icon {
  width: 18px;
  height: 14px;
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle__icon::before {
  top: 0;
  box-shadow: 0 6px 0 currentColor;
}

.nav-toggle__icon::after {
  top: 12px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 6px;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 6px;
  transform: rotate(-45deg);
}

.nav-toggle__label {
  font-size: 12px;
  font-weight: 800;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-alert));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 3000;
  pointer-events: none;
}

/* ============ 页脚 ============ */
.site-footer {
  position: relative;
  background: #0F141E;
  border-top: 1px solid var(--color-line);
  margin-top: 80px;
  color: var(--color-paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0 42%, var(--color-alert) 42% 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 240, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 230, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 2fr 3fr 2fr;
  gap: 36px;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-content: start;
}

.footer-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 900;
  font-size: 16px;
  transform: skewX(-8deg);
}

.footer-brand__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand__name {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.footer-brand__desc {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}

.footer-trust {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(245, 240, 230, 0.55);
  line-height: 1.7;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  align-content: start;
}

.footer-nav__link {
  position: relative;
  display: inline-block;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 122, 0, 0.35);
  color: rgba(245, 240, 230, 0.78);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-nav__link:hover {
  color: var(--color-alert);
  border-left-color: var(--color-alert);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-content: start;
  gap: 7px;
}

.footer-contact__title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.footer-contact__line {
  font-size: 13px;
  color: rgba(245, 240, 230, 0.7);
  line-height: 1.6;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  font-size: 12px;
  color: var(--color-muted);
}

.footer-legal a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--color-alert);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: var(--color-bg);
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 6px 6px 0 rgba(255, 230, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-top:hover {
  background: var(--color-alert);
}

.mobile-dock {
  display: none;
}

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

.container--narrow {
  max-width: 860px;
}

.container--wide {
  max-width: 1440px;
}

.section {
  padding: 80px 0;
}

.section--tight {
  padding: 44px 0;
}

.section--line {
  border-bottom: 1px solid var(--color-line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--color-alert);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: var(--color-paper);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--color-paper);
}

.lead {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.68);
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--color-muted);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: var(--color-muted);
}

.breadcrumb__link {
  color: var(--color-paper);
  text-decoration: none;
}

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

.breadcrumb__item[aria-current="page"] {
  color: var(--color-alert);
  font-weight: 800;
}

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

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

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

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

.card {
  position: relative;
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-accent);
  background: rgba(245, 240, 230, 0.04);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 0, 0.55);
  background: rgba(245, 240, 230, 0.06);
}

.card__title {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 8px;
  color: var(--color-paper);
}

.card__text {
  font-size: 14px;
  color: rgba(245, 240, 230, 0.62);
  line-height: 1.7;
  margin: 0;
}

.data-stat {
  padding: 18px 20px;
  border-left: 3px solid var(--color-accent);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.1), transparent);
}

.data-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.data-stat__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(245, 240, 230, 0.6);
  letter-spacing: 0.08em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--color-line);
  color: var(--color-paper);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.tag--hot {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.tag--live {
  background: rgba(255, 230, 0, 0.12);
  color: var(--color-alert);
  border-color: rgba(255, 230, 0, 0.4);
}

.tag--moss {
  background: rgba(90, 120, 70, 0.18);
  color: #A3C080;
  border-color: rgba(90, 120, 70, 0.5);
}

.tag--warn {
  background: rgba(180, 106, 70, 0.18);
  color: #D79B7A;
  border-color: rgba(180, 106, 70, 0.5);
}

.text-link {
  color: var(--color-accent);
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 122, 0, 0.4);
}

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

.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #101A2B, var(--color-bg));
  border: 1px solid var(--color-line);
  aspect-ratio: 16 / 9;
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 240, 230, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 230, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 122, 0, 0.16) 50%, transparent 56%);
}

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

.media--ratio-portrait {
  aspect-ratio: 4 / 5;
}

.media__placeholder {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: rgba(245, 240, 230, 0.45);
  font-size: 12px;
  letter-spacing: 0.18em;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* ============ 响应式 ============ */
@media (min-width: 901px) {
  .site-header__inner {
    overflow-y: auto;
  }
}

@media (max-width: 900px) {
  .site-header {
    width: 100%;
    height: var(--header-h);
    bottom: auto;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .site-header__inner {
    flex-direction: row;
    align-items: center;
    padding: 0 14px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    margin: 0;
    padding: 26px 20px;
    background: rgba(10, 25, 47, 0.98);
    border-left: 1px solid var(--color-line);
    transform: translateX(102%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    box-shadow: -12px 0 36px rgba(0, 0, 0, 0.3);
  }

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

  .site-nav__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .site-nav__link {
    padding: 14px 10px;
    font-size: 16px;
  }

  .brand__desc {
    display: none;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .header-status {
    display: none;
  }

  .site-header .btn {
    width: auto;
    margin-left: auto;
    padding: 9px 12px;
    font-size: 13px;
    box-shadow: 3px 3px 0 rgba(255, 230, 0, 0.2);
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: 8px;
    padding: 8px 10px;
  }

  body {
    padding-left: 0;
    padding-top: var(--header-h);
  }

  .section {
    padding: 48px 0;
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 36px 20px 40px;
  }

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

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

@media (max-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    padding: 32px 18px 72px;
  }

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

  .footer-contact {
    grid-column: auto;
  }

  .footer-legal {
    grid-column: auto;
    align-items: flex-start;
    gap: 8px 14px;
  }

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

  .mobile-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    height: 62px;
    background: rgba(10, 25, 47, 0.97);
    border-top: 1px solid var(--color-line);
    backdrop-filter: blur(10px);
  }

  .mobile-dock__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: rgba(245, 240, 230, 0.85);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    border-right: 1px solid var(--color-line);
  }

  .mobile-dock__link:last-child {
    border-right: 0;
  }

  .mobile-dock__link::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--color-muted);
    transform: rotate(45deg);
    transition: background 0.2s ease;
  }

  .mobile-dock__link:hover,
  .mobile-dock__link[aria-current="page"] {
    color: var(--color-alert);
  }

  .mobile-dock__link:hover::before,
  .mobile-dock__link[aria-current="page"]::before {
    background: var(--color-accent);
  }

  body {
    padding-bottom: 62px;
  }

  .back-top {
    right: 16px;
    bottom: 76px;
    width: 44px;
    height: 44px;
  }
}

/* ============ 动效偏好 ============ */
@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;
  }

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

  .site-nav {
    transition: none;
  }

  .back-top,
  .btn,
  .card {
    transition: none;
  }
}
