/* ============================================================
   开元体育移动版 · 共享样式 /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(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

a { color: var(--link); text-decoration: none; }

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

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

::selection {
  background: var(--neon);
  color: var(--ink);
}

/* ---------- 2. Design tokens ---------- */
:root {
  --ink: #061A14;
  --ink-deep: #04120E;
  --panel: #0B241D;
  --panel-2: #0E2C23;
  --line: #123A2E;
  --line-soft: rgba(18, 58, 46, 0.62);

  --neon: #45F0B2;
  --mist: #D8FFF1;
  --amber: #FFB13B;
  --amber-soft: #FFC870;
  --crimson: #B84A4A;
  --paper: #E9F2EE;
  --link-color: #1FA97A;

  --muted: rgba(233, 242, 238, 0.62);
  --muted-strong: rgba(233, 242, 238, 0.78);

  --font-display: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;

  --max: 1180px;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 中文排版基线 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--mist);
}

p { line-height: 1.7; }

/* ---------- 4. 布局容器与栅格 ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose {
  max-width: 720px;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.section--flush {
  border-top: 0;
  padding-top: 24px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 26px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(21px, 3.2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--mist);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
}

.rule {
  height: 1px;
  border: 0;
  margin: 32px 0;
  background: var(--line);
}

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

@media (min-width: 900px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--7-5 { grid-template-columns: 7fr 5fr; }
  .grid--8-4 { grid-template-columns: 8fr 4fr; }
  .grid--4-8 { grid-template-columns: 4fr 8fr; }
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
}
.btn--primary:hover {
  background: var(--mist);
  border-color: var(--mist);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.btn--sm {
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
}

/* ---------- 6. 卡片 ---------- */
.card {
  position: relative;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-soft);
}

.card--accent { border-left: 3px solid var(--neon); }
.card--amber { border-left: 3px solid var(--amber); }
.card--crimson { border-left: 3px solid var(--crimson); }

.card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--mist);
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 7. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--muted-strong);
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--neon {
  background: rgba(69, 240, 178, 0.12);
  border-color: var(--neon);
  color: var(--neon);
}

.tag--amber {
  background: rgba(255, 177, 59, 0.1);
  border-color: rgba(255, 177, 59, 0.5);
  color: var(--amber-soft);
}

.tag--crimson {
  background: rgba(184, 74, 74, 0.35);
  border-color: var(--crimson);
  color: var(--paper);
}

/* ---------- 8. 数据 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--neon);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- 9. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  aspect-ratio: 16 / 9;
  background-color: var(--panel);
  background-image:
    linear-gradient(135deg, rgba(69, 240, 178, 0.10), rgba(11, 36, 29, 0) 46%),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 40px);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--wide { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--square { aspect-ratio: 1 / 1; }

.figure-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 12px;
  background: rgba(6, 26, 20, 0.84);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-strong);
}

@media (min-width: 900px) {
  .figure--tall { aspect-ratio: 3 / 4; }
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  padding: 18px 0 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb-link {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.breadcrumb-link:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

/* ---------- 11. 辅助 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   12. 头部
   ============================================================ */
.skip-link {
  position: absolute;
  top: -72px;
  left: 12px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.16s var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* --- 上层工具条 --- */
.header-utility {
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line);
}

.header-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 32px;
}

.header-utility-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.header-utility-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(69, 240, 178, 0.16);
  animation: headerPulse 2.4s ease-in-out infinite;
}

@keyframes headerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.header-utility-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--neon);
  border-bottom: 1px solid rgba(69, 240, 178, 0.35);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.header-utility-cta:hover {
  color: var(--mist);
  border-bottom-color: var(--mist);
}

/* --- 品牌条 --- */
.header-brandbar {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mist);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: var(--neon);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--ink);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 50%;
  width: 1px;
  background: var(--ink);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--mist);
  line-height: 1.2;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--neon);
  border: 1px solid var(--line);
  padding: 0 5px;
  line-height: 1.6;
}

.brand-tagline {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted-strong);
  border-left: 1px solid var(--line);
  padding-left: 16px;
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.nav-toggle-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--neon);
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- 导航标签带 --- */
.nav-shell {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--ink));
  border-top: 1px solid var(--line);
}

.nav-shell::before,
.nav-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.nav-shell::before {
  left: 0;
  background: linear-gradient(90deg, var(--panel), rgba(11, 36, 29, 0));
}

.nav-shell::after {
  right: 0;
  background: linear-gradient(270deg, var(--panel), rgba(11, 36, 29, 0));
}

.nav-shell[data-edge-start="true"]::before { opacity: 1; }
.nav-shell[data-edge-end="true"]::after { opacity: 1; }

.site-nav {
  max-width: var(--max);
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav-list {
  display: flex;
  align-items: stretch;
  min-height: 52px;
  margin: 0;
  padding: 0 8px;
  list-style: none;
}

.site-nav-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.site-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--paper);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.site-nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}

.site-nav-link:hover { color: var(--neon); }
.site-nav-link:hover::after,
.site-nav-link:focus-visible::after { transform: scaleX(1); }

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

.site-nav-link[aria-current="page"]::after {
  height: 3px;
  transform: scaleX(1);
}

/* --- 滚动进度条 --- */
.scroll-meter {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 3;
  width: 0;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(69, 240, 178, 0.55);
}

/* ============================================================
   13. 页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: 64px;
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 120px;
  height: 2px;
  background: var(--neon);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px var(--gutter) 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--mist);
}

.footer-brand-line {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--neon);
}

.footer-brand-note {
  margin-top: 6px;
  max-width: 26em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-heading {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-nav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav-link {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

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

.footer-contact-line {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-contact-note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer-address {
  color: var(--muted);
}

.footer-legal {
  color: var(--muted);
}

.footer-legal [data-year] {
  color: var(--muted-strong);
}

/* ============================================================
   14. 响应式
   ============================================================ */
@media (max-width: 880px) {
  .brand-tagline {
    display: none;
  }

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

  .nav-shell {
    position: static;
    background: transparent;
    border-top: 0;
  }

  .nav-shell::before,
  .nav-shell::after {
    display: none;
  }

  .site-nav {
    display: none;
    max-width: none;
    margin: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .site-nav[data-open="true"] {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 70;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.62);
  }

  .site-nav[data-open="true"] .site-nav-list {
    flex-direction: column;
    min-height: 0;
    padding: 6px 0;
  }

  .site-nav[data-open="true"] .site-nav-item {
    flex: 0 0 auto;
  }

  .site-nav[data-open="true"] .site-nav-link {
    min-height: 50px;
    padding: 0 20px;
    border-left: 2px solid transparent;
  }

  .site-nav[data-open="true"] .site-nav-link::after {
    display: none;
  }

  .site-nav[data-open="true"] .site-nav-link:hover {
    background: rgba(69, 240, 178, 0.06);
  }

  .site-nav[data-open="true"] .site-nav-link[aria-current="page"] {
    border-left-color: var(--neon);
    background: rgba(69, 240, 178, 0.09);
  }
}

@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1.2fr 1fr;
    gap: 40px;
  }

  .footer-nav-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 960px) {
  :root { --gutter: 28px; }

  .section { padding: 72px 0; }

  .header-brandbar { padding: 14px var(--gutter); }

  .site-nav-link {
    padding: 0 20px;
    min-height: 56px;
    font-size: 15px;
  }

  .site-nav-list { min-height: 56px; padding: 0 12px; }
}

@media (max-width: 400px) {
  .header-utility-text { letter-spacing: 0.08em; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 10px; }
}

/* ---------- 15. 动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .card:hover { transform: none; }

  .header-utility-dot { animation: none; }
}
