/* ============================================================
   欧宝主站 · 共享样式 /assets/site.css
   数字观赛舱：深空黑基底 + 品牌蓝分区 + 荧光绿速度信号
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

a { color: inherit; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; }

table { border-collapse: collapse; width: 100%; }

::selection {
  background: var(--lime);
  color: var(--void);
}

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

/* ---------- 2. 变量 ---------- */
:root {
  --void: #05080F;
  --night: #071A33;
  --blue: #0057B8;
  --blue-ink: #00418A;
  --lime: #C8FF00;
  --orange: #FF6A1A;
  --cyan: #00D5FF;
  --paper: #EFE8DA;
  --white: #F2F6FA;
  --steel: #8A97A8;
  --red: #FF3B30;

  --line: rgba(242, 246, 250, 0.12);
  --line-soft: rgba(242, 246, 250, 0.07);

  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --shell: 1560px;
  --gutter: clamp(16px, 3.4vw, 56px);
  --header-h: 82px;
  --skew: -6deg;
  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);
  --shadow-plate: 0 24px 48px rgba(0, 0, 0, 0.45);
}

/* ---------- 3. 无障碍 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  transform: translateY(-130%);
  background: var(--lime);
  color: var(--void);
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

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

/* ---------- 4. 头部框架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(5, 8, 15, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--blue) 0 34%,
    var(--lime) 34% 46%,
    var(--orange) 46% 50%,
    transparent 50%
  );
  pointer-events: none;
}

.header-frame {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}

/* 左边缘竖排展签 */
.header-rail {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  height: 54px;
  padding-left: 7px;
  border-left: 1px solid rgba(200, 255, 0, 0.5);
}

.rail-caption {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  max-height: 54px;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .header-rail { display: flex; }
}

/* 品牌 */
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--blue);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
  transition: background 0.2s var(--ease);
}

.header-brand:hover .brand-mark { background: var(--blue-ink); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--steel);
}

/* 导航 */
.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(242, 246, 250, 0.78);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--steel);
  transition: color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(0, 87, 184, 0.3);
  border-bottom-color: var(--lime);
}

.nav-link:hover .nav-index { color: var(--lime); }

.nav-link[aria-current="page"] {
  color: var(--white);
  background: rgba(0, 87, 184, 0.6);
  border-bottom-color: var(--lime);
}

.nav-link[aria-current="page"] .nav-index { color: var(--lime); }

/* 右侧工具 */
.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  flex: 0 0 auto;
}

.util-list {
  display: flex;
  gap: 16px;
}

.util-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--steel);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.util-link:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.header-cta {
  padding: 11px 20px;
  font-size: 13px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.nav-toggle:hover { border-color: rgba(200, 255, 0, 0.55); }

.toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease), background 0.22s var(--ease);
}

.site-header[data-open] .nav-toggle { border-color: var(--lime); }

.site-header[data-open] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--lime);
}

.site-header[data-open] .toggle-bar:nth-child(2) { opacity: 0; }

.site-header[data-open] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--lime);
}

/* 阅读进度 */
.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(242, 246, 250, 0.07);
  pointer-events: none;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 55%, var(--lime));
}

/* ---------- 5. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.12s var(--ease);
}

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

.btn-sprint {
  background: var(--lime);
  color: var(--void);
  padding-right: 28px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
}

.btn-sprint:hover {
  background: var(--orange);
  color: var(--void);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--void);
  color: var(--white);
  border-top: 1px solid var(--line);
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 110px);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -46%;
  width: 54vw;
  height: 54vw;
  background: radial-gradient(circle, rgba(0, 87, 184, 0.3), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.footer-glow {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--blue) 0 30%,
    var(--lime) 30% 40%,
    var(--orange) 40% 44%,
    var(--night) 44% 100%
  );
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 56px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 74px) var(--gutter) clamp(32px, 4vw, 54px);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--blue);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}

.footer-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-intro {
  max-width: 26em;
  margin: 20px 0 22px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--steel);
}

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--lime);
  border: 1px solid rgba(200, 255, 0, 0.3);
  background: rgba(200, 255, 0, 0.05);
  padding: 4px 9px;
}

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

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}

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

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(242, 246, 250, 0.8);
  text-decoration: none;
  padding-left: 0;
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--lime);
  transform: translateY(-50%);
  transition: width 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--lime);
  padding-left: 16px;
}

.footer-link:hover::before { width: 10px; }

.contact-plate {
  background: var(--paper);
  color: var(--void);
  padding: clamp(18px, 2vw, 26px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  box-shadow: var(--shadow-plate);
}

.contact-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-ink);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(5, 8, 15, 0.55);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  word-break: break-word;
}

.contact-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(5, 8, 15, 0.14);
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(5, 8, 15, 0.64);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.footer-copy { margin: 0; }

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

.footer-legal-link {
  color: var(--steel);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-legal-link:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-icp { margin: 0; }

.footer-sig {
  margin-left: auto;
  color: rgba(242, 246, 250, 0.55);
}

/* ---------- 7. 布局与排版基础组件 ---------- */
.page-container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--lime);
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--white);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--white);
}

.sprint {
  display: inline-block;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
  transform: skew(var(--skew));
}

.lede {
  max-width: 32em;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.8;
  color: rgba(242, 246, 250, 0.82);
}

.tag-plate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(200, 255, 0, 0.35);
  background: rgba(200, 255, 0, 0.06);
}

.tag-plate::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--lime);
  flex: 0 0 auto;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.2em;
  color: var(--lime);
}

.edge-line {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--blue), rgba(0, 87, 184, 0));
}

/* 面包屑 */
.breadcrumb { padding-block: 14px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.breadcrumb-item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 10px;
  color: rgba(138, 151, 168, 0.5);
}

.breadcrumb-link {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.breadcrumb-link:hover { color: var(--lime); }

/* 图片容器 */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--night);
  border: 1px solid var(--line);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0) 42%, rgba(5, 8, 15, 0.78));
  pointer-events: none;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame--bevel {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

/* 纸张叠层卡 */
.paper-card {
  position: relative;
  background: var(--paper);
  color: var(--void);
  padding: clamp(18px, 2.4vw, 30px);
  box-shadow: 10px 10px 0 -1px rgba(239, 232, 218, 0.14), var(--shadow-plate);
}

/* 滚动显现 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 8. 响应式：头部 ---------- */
@media (max-width: 1180px) {
  .util-list { display: none; }
}

@media (max-width: 1100px) {
  .nav-link {
    font-size: 13px;
    padding: 8px 9px;
    gap: 5px;
  }
}

@media (max-width: 1023px) {
  .site-header {
    background: var(--void);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header-frame { min-height: 68px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    margin: 0;
    padding: 18px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(7, 26, 51, 0.98), var(--void) 58%);
    border-top: 2px solid var(--lime);
    box-shadow: 0 -30px 70px rgba(0, 0, 0, 0.68);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.34s var(--ease), visibility 0.34s var(--ease);
  }

  .site-header[data-open] .site-nav {
    transform: translateY(0);
    visibility: visible;
  }

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

  .nav-link {
    display: flex;
    width: 100%;
    padding: 15px 8px;
    font-size: 17px;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
  }

  .nav-index {
    width: 26px;
    font-size: 10px;
  }

  .nav-link:hover { border-bottom-color: var(--line-soft); }

  .nav-link[aria-current="page"] {
    background: rgba(0, 87, 184, 0.35);
    border-left-color: var(--lime);
    border-bottom-color: var(--line-soft);
  }
}

@media (max-width: 560px) {
  .brand-mark { width: 38px; height: 38px; font-size: 13px; }
  .brand-name { font-size: 15px; }
  .brand-tag { font-size: 9px; letter-spacing: 0.16em; }
  .header-frame { gap: 10px; }
}

@media (max-width: 460px) {
  .header-cta { display: none; }
}

/* ---------- 9. 响应式：页脚 ---------- */
@media (max-width: 1023px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

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

  .footer-intro { max-width: 34em; }
}

@media (max-width: 720px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { gap: 24px; }
  .footer-sig { margin-left: 0; }
  .footer-base { font-size: 10px; gap: 10px 20px; }
}

/* ---------- 10. 响应式：通用网格 ---------- */
@media (max-width: 900px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 11. 降低动效偏好 ---------- */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .site-nav { transition: none; }
}
