/* =========================================================
   三亿赛场 · Site Kit 共享样式 / assets/site.css
   夜航战术板：近墨底色 + 荧光青骨架 + 暖橙心跳
   ========================================================= */

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

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

body,
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; }

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

:root {
  --ink: #0B1F1A;
  --panel: #122C25;
  --line: #06120F;
  --cyan: #2BF0C8;
  --mist: #7FD9C6;
  --orange: #FF7A2F;
  --orange-hi: #FFB27A;
  --paper: #F4F7F2;
  --bone: #A8B8B1;
  --halftone: #1E3A32;

  --edge: 2px solid var(--line);
  --edge-soft: 1px solid rgba(168, 184, 177, 0.28);
  --edge-cyan: 2px solid rgba(43, 240, 200, 0.28);
  --shadow: 8px 8px 0 var(--line);
  --shadow-lift: 12px 12px 0 var(--line);

  --max: 1240px;
  --gutter: clamp(18px, 4vw, 48px);

  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Inter, system-ui, sans-serif;
  --font-body: Inter, "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", Georgia, "Songti SC", "Times New Roman", serif;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 84% -8%, rgba(43, 240, 200, 0.13), transparent 46%),
    radial-gradient(circle at 0% 106%, rgba(255, 122, 47, 0.09), transparent 44%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 排版层级：不超过四级 ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.015em;
}

h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: 0.02em;
}

h2 { font-size: clamp(23px, 3.1vw, 34px); }

h3 {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.34;
  letter-spacing: 0.03em;
}

strong { font-weight: 700; }

::selection {
  background: var(--cyan);
  color: var(--line);
}

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

.btn--subscribe:focus-visible { outline-color: var(--paper); }

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

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--line);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  transition: top 0.2s var(--ease);
}

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

/* ---------- 通用容器与基础组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.panel {
  position: relative;
  padding: clamp(22px, 3vw, 40px);
  background: var(--panel);
  border: var(--edge-cyan);
  box-shadow: var(--shadow);
}

.panel--flat { box-shadow: none; }

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: clamp(16px, 2vw, 24px);
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(168, 184, 177, 0.3);
}

.coord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  color: var(--cyan);
  border: 1px solid rgba(43, 240, 200, 0.45);
  white-space: nowrap;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--mist);
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan);
}

.lede {
  max-width: 34em;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.85;
  color: var(--bone);
}

.rule {
  border: 0;
  border-top: 1px dashed rgba(168, 184, 177, 0.32);
  margin-block: clamp(18px, 2.4vw, 28px);
}

.stack > * + * { margin-top: var(--stack-gap, 16px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.num-figure {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.u-serif { font-family: var(--font-serif); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--panel);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--line);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}

.btn--subscribe {
  background: var(--orange);
  color: var(--line);
}

.btn--subscribe:hover { background: var(--orange-hi); }

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 rgba(43, 240, 200, 0.22);
}

.btn--ghost:hover { box-shadow: 6px 6px 0 rgba(43, 240, 200, 0.32); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--bone);
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb li + li::before {
  content: "／";
  color: rgba(168, 184, 177, 0.55);
}

.breadcrumb a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

/* ---------- 图片容器基础（页面阶段放 img） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--halftone);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  transition: box-shadow 0.24s var(--ease), transform 0.24s var(--ease);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.08);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(6, 18, 15, 0.55) 1px, transparent 1.2px);
  background-size: 4px 4px;
  opacity: 0.55;
}

.media:hover { box-shadow: var(--shadow-lift); }

.media--wide { aspect-ratio: 16 / 9; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media--tilt { transform: rotate(-2deg); }
.media--tilt:hover { transform: rotate(-2deg) translate(-2px, -2px); }

.media__caption {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--bone);
}

/* ---------- 页头：框架式导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink);
  border-bottom: 2px solid var(--line);
  transition: box-shadow 0.24s var(--ease);
}

.site-header[data-scrolled] {
  box-shadow: 0 10px 0 -8px rgba(43, 240, 200, 0.55);
}

.progress-rail {
  height: 3px;
  background: #0A1915;
  overflow: hidden;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cyan);
  transition: width 0.12s linear;
}

.header-frame {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--max);
  margin-inline: auto;
  padding: 10px var(--gutter) 8px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 12px;
  border-left: 4px solid var(--cyan);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0.1em;
  color: var(--paper);
  transition: color 0.18s var(--ease);
}

.brand__tag {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.22em;
  color: var(--mist);
}

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

.header-note {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--bone);
  border: 1px solid rgba(168, 184, 177, 0.3);
}

.header-note::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(43, 240, 200, 0.16);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 8px 13px;
  color: var(--cyan);
  background: rgba(43, 240, 200, 0.06);
  border: 2px solid var(--cyan);
  box-shadow: 4px 4px 0 rgba(43, 240, 200, 0.2);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background-color 0.18s var(--ease);
}

.nav-toggle:hover { background: rgba(43, 240, 200, 0.14); }

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

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

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

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

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

.nav-frame {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  background: var(--panel);
  border-top: 1px solid rgba(168, 184, 177, 0.18);
  border-bottom: 2px solid var(--line);
  padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.nav-list li { display: flex; }

.nav-list li + li { border-left: 1px solid rgba(168, 184, 177, 0.2); }

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 15px 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 5px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.nav-list a:hover { color: var(--cyan); }

.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(43, 240, 200, 0.08);
}

.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-idx {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  padding-left: clamp(12px, 2vw, 24px);
  border-left: 2px solid rgba(43, 240, 200, 0.35);
}

.nav-cta__note {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
}

.nav-cta .btn--subscribe {
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(72px, 10vw, 140px);
  background: var(--panel);
  color: var(--paper);
  border-top: 2px solid var(--line);
  box-shadow: inset 0 4px 0 rgba(43, 240, 200, 0.55);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(28px, 5vw, 64px);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(26px, 4vw, 42px);
}

.brand--footer { border-left-color: var(--orange); }

.brand--footer .brand__name { font-size: clamp(22px, 3vw, 28px); }

.footer-note {
  margin-top: 18px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.9;
  color: var(--bone);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--mist);
  border-bottom: 1px dashed rgba(168, 184, 177, 0.3);
}

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

.footer-links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-links a:hover {
  color: var(--cyan);
  border-color: rgba(43, 240, 200, 0.5);
}

.footer-contact,
.footer-legal {
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}

.footer-contact {
  padding-top: clamp(20px, 3vw, 30px);
  padding-bottom: clamp(24px, 3vw, 36px);
  border-top: 1px dashed rgba(168, 184, 177, 0.3);
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--paper);
}

.footer-contact-note {
  margin-top: 10px;
  max-width: 46em;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--bone);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-top: 16px;
  padding-bottom: 18px;
  background: var(--ink);
  border-top: 2px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bone);
}

.footer-legal-copy { margin-right: auto; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal-links a {
  color: var(--bone);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-legal-links a:hover {
  color: var(--cyan);
  border-color: rgba(43, 240, 200, 0.5);
}

/* ---------- 显现动效（JS 开启才有） ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

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

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .nav-cta__note { display: none; }
}

/* ---------- 移动导航 ---------- */
@media (max-width: 900px) {
  body {
    font-size: 16px;
    background-attachment: scroll;
  }

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

  .header-note { display: none; }

  .brand { margin-right: auto; }

  .nav-frame {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter) 18px;
    border-top: 2px solid var(--line);
  }

  .nav-frame[data-open] { display: flex; }

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

  .nav-list li + li {
    border-left: 0;
    border-top: 1px solid rgba(168, 184, 177, 0.18);
  }

  .nav-list a {
    width: 100%;
    padding: 14px 4px;
    font-size: 15px;
  }

  .nav-list a::after {
    left: 4px;
    right: auto;
    width: 28px;
    bottom: 8px;
  }

  .nav-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 2px dashed rgba(43, 240, 200, 0.3);
  }

  .nav-cta .btn--subscribe { width: 100%; padding: 12px 16px; }

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

  .footer-legal-copy { margin-right: 0; width: 100%; }

  :root { --shadow: 4px 4px 0 var(--line); --shadow-lift: 6px 6px 0 var(--line); }

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

/* ---------- 小屏 ---------- */
@media (max-width: 620px) {
  .brand__name { font-size: 19px; }

  .brand__tag { font-size: 9px; letter-spacing: 0.16em; }

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

  .footer-contact-line { font-size: 13px; }

  .panel { padding: 20px 16px; }

  .footer-legal { gap: 8px 18px; }
}

/* ---------- 减少动效 ---------- */
@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;
  }

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

  .btn:hover,
  .media:hover,
  .media--tilt,
  .media--tilt:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  .progress-bar { transition: none; }
}
