/* ==========================================================================
   三亿赛场 · 共享站点样式 /assets/site.css
   赛场雷达 · 技术蓝图网格 · 冰城冷蓝 + 极光青 + 信号橙
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(to right, rgba(23, 58, 82, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 58, 82, 0.34) 1px, transparent 1px);
  background-size: 72px 72px;
  background-attachment: fixed;
  color: var(--frost);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button { font: inherit; color: inherit; }

ul,
ol { margin: 0; padding: 0; }

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #071426;
  --ink-800: #0D2138;
  --blue-600: #1B5E8C;
  --cyan-400: #45F2D6;
  --cyan-200: #7DFFE8;
  --orange-500: #FF7A2F;
  --frost: #EAF8FF;
  --mist: #8BA6B8;
  --line: #173A52;
  --ice: #C9F5FF;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 1240px;
  --gutter: 18px;

  --shadow-hard: 6px 6px 0 rgba(6, 18, 33, 0.92);
  --shadow-glow: 0 0 0 1px rgba(69, 242, 214, 0.22), 0 22px 48px rgba(2, 8, 16, 0.62);
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 40px; }
}

/* ---------- 3. 基础排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--frost);
}

h1 { font-size: clamp(2.1rem, 6vw, 4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1em; }

strong { font-weight: 700; color: var(--frost); }

small { font-size: 0.82em; }

::selection {
  background: var(--cyan-400);
  color: #04101d;
}

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

/* ---------- 4. 布局容器与通用工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.grid-blueprint {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.grid-blueprint > * { min-width: 0; }

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

/* ---------- 5. 索引小注 / 标签 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan-400);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange-500);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  background: rgba(27, 94, 140, 0.2);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--live {
  color: var(--orange-500);
  border-color: rgba(255, 122, 47, 0.55);
  background: rgba(255, 122, 47, 0.1);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #10151b;
  box-shadow: 4px 4px 0 rgba(255, 122, 47, 0.22);
}
.btn--primary:hover {
  background: #ff9257;
  border-color: #ff9257;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(255, 122, 47, 0.3);
}

.btn--ghost {
  background: transparent;
  border-color: var(--cyan-400);
  color: var(--cyan-200);
}
.btn--ghost:hover {
  background: rgba(69, 242, 214, 0.12);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(69, 242, 214, 0.2);
}

.btn--sm {
  padding: 8px 13px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ---------- 7. 页头 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--cyan-400);
  color: #04101d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--cyan-200);
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink-900);
  border-bottom: 2px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header[data-scrolled="true"] {
  background: #06101e;
  box-shadow: 0 16px 36px rgba(2, 8, 16, 0.72);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-400) 0%, var(--cyan-200) 45%, var(--orange-500) 100%);
  pointer-events: none;
  will-change: transform;
}

.header-utility {
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
}
.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 6px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.utility-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--cyan-400);
  white-space: nowrap;
}
.utility-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.18);
  animation: radar-pulse 2.8s ease-in-out infinite;
}
.utility-meta {
  margin: 0;
  color: rgba(139, 166, 184, 0.72);
  white-space: nowrap;
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 12px var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--frost);
  text-decoration: none;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 2px solid var(--cyan-400);
  border-radius: 50%;
  box-shadow: inset 0 0 14px rgba(69, 242, 214, 0.28);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(125, 255, 232, 0.42);
  border-radius: 50%;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid transparent;
  border-top-color: var(--cyan-200);
  border-radius: 50%;
  animation: radar-spin 7s linear infinite;
}
.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 10px var(--cyan-400);
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--frost);
  transition: color 0.2s ease;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan-400);
}
.brand:hover .brand-name { color: var(--cyan-200); }

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: transparent;
  border: 2px solid var(--line);
  color: var(--cyan-200);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover {
  border-color: var(--cyan-400);
  background: rgba(69, 242, 214, 0.08);
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}
.nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.site-header[data-open="true"] .nav-toggle {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid transparent;
  color: var(--frost);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--mist);
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--cyan-200);
  border-color: var(--line);
  background: rgba(27, 94, 140, 0.28);
}
.nav-link:hover .nav-link__idx { color: var(--cyan-400); }
.nav-link[aria-current="page"] {
  color: #04101d;
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  box-shadow: 3px 3px 0 rgba(69, 242, 214, 0.22);
}
.nav-link[aria-current="page"] .nav-link__idx { color: rgba(4, 16, 29, 0.62); }

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

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-800);
  border-top: 2px solid var(--line);
  color: var(--frost);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(23, 58, 82, 0.55) 0 1px,
    transparent 1px 88px
  );
  opacity: 0.55;
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 2px solid rgba(69, 242, 214, 0.12);
  box-shadow: inset 0 0 0 70px rgba(69, 242, 214, 0.035);
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 56px var(--gutter) 40px;
}

.footer-brand { min-width: 0; }
.brand--footer { margin-bottom: 20px; }
.footer-slogan {
  margin: 0 0 16px;
  max-width: 16ch;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--frost);
}
.footer-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  min-width: 0;
}
.footer-col { min-width: 0; }
.footer-col__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan-400);
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  color: var(--mist);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-link::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--line);
  transition: width 0.2s ease, background 0.2s ease;
}
.footer-link:hover {
  color: var(--cyan-200);
  transform: translateX(2px);
}
.footer-link:hover::before {
  width: 18px;
  background: var(--cyan-400);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--frost);
  overflow-wrap: anywhere;
}
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid var(--line);
}
.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.footer-mini-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-mini-link {
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-mini-link:hover {
  color: var(--cyan-200);
  border-bottom-color: var(--cyan-400);
}

/* ---------- 9. 内页共享组件 ---------- */
.breadcrumb {
  padding-top: 20px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--cyan-200); }
.breadcrumb li[aria-current="page"] { color: var(--cyan-400); }
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: rgba(139, 166, 184, 0.5);
}

.page-head {
  padding: clamp(28px, 5vw, 56px) 0 clamp(18px, 3vw, 32px);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--ink-800);
  box-shadow: var(--shadow-hard);
}
.media-frame img,
.media-frame svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(23, 58, 82, 0.28) 0 1px,
    transparent 1px 4px
  );
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__caption {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 10px 14px;
  border-top: 2px solid var(--line);
  background: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- 10. 入场动画协议 ---------- */
[data-reveal] {
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-reveal="out"] {
  opacity: 0;
  transform: translateY(16px);
}
[data-reveal="in"] {
  opacity: 1;
  transform: none;
}

@keyframes radar-spin {
  to { transform: rotate(360deg); }
}
@keyframes radar-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 10px var(--gutter) 20px;
    background: var(--ink-800);
    border-top: 2px solid var(--cyan-400);
    border-bottom: 2px solid var(--line);
    box-shadow: 0 28px 52px rgba(2, 8, 16, 0.78);
  }
  .site-header[data-open="true"] .site-nav { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-link {
    width: 100%;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav-link[aria-current="page"] { box-shadow: none; }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .nav-actions .btn { width: 100%; }
}

@media (max-width: 899px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 44px;
  }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-slogan { max-width: 22ch; }

  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9 { grid-column: span 12; }
}

@media (max-width: 599px) {
  .utility-meta { display: none; }
  .header-utility__inner { justify-content: flex-start; }
  .brand-name { font-size: 17px; }
  .brand-sub { letter-spacing: 0.2em; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .grid-blueprint { gap: 14px; }
}

/* ---------- 12. 动效降级 ---------- */
@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;
  }

  [data-reveal],
  [data-reveal="out"] {
    opacity: 1 !important;
    transform: none !important;
  }
}
