/* =========================================================
   华体会赛事 · 共享站点样式 /assets/site.css
   夜间赛场指挥中心 · 展览画册式信息节奏
   ========================================================= */

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

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

body, h1, h2, h3, h4, h5, p, ul, ol, li, dl, dt, dd, figure, figcaption, blockquote {
  margin: 0;
}

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

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

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

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.22; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #07121F;
  --ink-2: #11161D;
  --ink-3: #0A1522;
  --rock: #2A323C;
  --paper: #E8E1D3;
  --silver: #9AA7B5;
  --orange: #FF6B1A;
  --cyan: #21E6C1;
  --amber: #FFB347;
  --moss: #3F5B4E;
  --clay: #8A4B32;

  --line: rgba(42, 50, 60, .9);
  --line-soft: rgba(42, 50, 60, .55);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Oswald", "DIN Condensed", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --rail: 200px;
  --container: 1180px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 10px;
  --radius-lg: 14px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .94;
  letter-spacing: -.03em;
  color: var(--paper);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--paper);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--paper);
}

.lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: rgba(232, 225, 211, .82);
  max-width: 46ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

#main-content:focus,
#main-content:focus-visible { outline: none; }

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

.section {
  padding-block: clamp(48px, 7vw, 104px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 26px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  inset-inline-start: 14px;
  top: 14px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 6px;
  background: linear-gradient(100deg, var(--orange), var(--amber));
  color: #07121F;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  transform: translateY(-200%);
  transition: transform .25s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 6. 头部 / 纵向轨道 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(7, 18, 31, .94), rgba(7, 18, 31, .74));
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(42, 50, 60, .7);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.site-header[data-scrolled="true"] {
  background: rgba(9, 18, 29, .985);
  border-bottom-color: rgba(255, 107, 26, .38);
  box-shadow: 0 10px 30px -22px rgba(255, 107, 26, .95);
}

.rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
  padding: 10px clamp(16px, 4vw, 30px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
  border-radius: 8px;
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  padding: 7px 6px;
  border: 1px solid rgba(232, 225, 211, .18);
  border-radius: 7px;
  background: linear-gradient(150deg, rgba(255, 107, 26, .26), rgba(33, 230, 193, .16));
  overflow: hidden;
}

.brand__mark span {
  display: block;
  border-radius: 1px;
  background: var(--paper);
}

.brand__mark span:nth-child(1) { height: 38%; background: var(--orange); }
.brand__mark span:nth-child(2) { height: 100%; background: var(--cyan); }
.brand__mark span:nth-child(3) { height: 62%; background: rgba(232, 225, 211, .8); }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--paper);
  white-space: nowrap;
}

.brand__sub {
  display: none;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(154, 167, 181, .8);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brand__sub { display: block; }
}

/* 移动导航按钮 */
.nav-toggle {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(154, 167, 181, .28);
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}

.nav-toggle:hover {
  border-color: rgba(33, 230, 193, .6);
  color: var(--cyan);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s ease, opacity .2s ease;
}

.site-header[data-open="true"] .nav-toggle {
  border-color: rgba(255, 107, 26, .72);
  color: var(--orange);
}

.site-header[data-open="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 导航（移动端抽屉） */
.nav {
  order: 5;
  flex: 1 0 100%;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  border-top: 1px solid transparent;
  transition: max-height .42s cubic-bezier(.4, 0, .2, 1), visibility .42s;
}

.site-header[data-open="true"] .nav {
  max-height: 74vh;
  overflow-y: auto;
  visibility: visible;
  border-top-color: rgba(42, 50, 60, .85);
}

.nav__list {
  display: grid;
  gap: 2px;
  padding: 10px 0 4px;
}

.nav__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 8px;
  color: var(--silver);
  font-size: 14px;
  transition: color .2s ease, background .2s ease;
}

.nav__link:hover {
  color: var(--paper);
  background: rgba(232, 225, 211, .055);
}

.nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(154, 167, 181, .5);
  transition: color .2s ease;
}

.nav__link[aria-current="page"] {
  color: var(--paper);
  background: linear-gradient(90deg, rgba(255, 107, 26, .18), rgba(255, 107, 26, 0) 78%);
  box-shadow: inset 2px 0 0 0 var(--orange);
}

.nav__link[aria-current="page"] .nav__index { color: var(--orange); }

.nav__cta {
  display: grid;
  gap: 8px;
  padding: 12px 0 18px;
}

/* 进度条（仅桌面） */
.rail__progress { display: none; }

/* ---------- 7. 桌面端：轨道固定在左侧 ---------- */
@media (min-width: 1024px) {
  body { padding-inline-start: var(--rail); }

  .site-header {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--rail);
    border-bottom: 0;
    border-inline-end: 1px solid rgba(42, 50, 60, .85);
    background: linear-gradient(180deg, rgba(9, 18, 29, .95), rgba(7, 18, 31, .995));
  }

  .site-header[data-scrolled="true"] {
    background: linear-gradient(180deg, #0A1522, #07121F);
    border-inline-end-color: rgba(255, 107, 26, .3);
    border-bottom-color: transparent;
    box-shadow: 22px 0 48px -40px rgba(0, 0, 0, .95);
  }

  .rail {
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    height: 100%;
    padding: 22px 18px 22px;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .nav-toggle { display: none; }

  .nav {
    order: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-height: none;
    overflow: visible;
    visibility: visible;
    border-top: 0;
  }

  .nav__list {
    padding: 0;
    gap: 3px;
  }

  .nav__link {
    padding: 9px 10px;
    font-size: 13.5px;
  }

  .nav__cta {
    margin-top: auto;
    padding: 0;
  }

  .rail__progress {
    display: block;
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 2px;
    background: rgba(42, 50, 60, .6);
    pointer-events: none;
  }

  .rail__bar {
    display: block;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--orange) 0%, var(--amber) 38%, var(--cyan) 100%);
    box-shadow: 0 0 12px rgba(33, 230, 193, .55);
    transition: height .1s linear;
  }

  .site-footer {
    margin-inline-start: calc(var(--rail) * -1);
    width: calc(100% + var(--rail));
    padding-inline-start: var(--rail);
  }
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease, background .25s ease;
}

.btn--primary {
  background: linear-gradient(100deg, var(--orange) 0%, #FF9147 48%, var(--cyan) 100%);
  color: #07121F;
  box-shadow: 0 12px 26px -18px rgba(255, 107, 26, .95);
}

.btn--primary:hover {
  box-shadow: 0 16px 30px -16px rgba(33, 230, 193, .8);
}

.btn--ghost {
  border-color: rgba(154, 167, 181, .34);
  background: rgba(232, 225, 211, .04);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: rgba(33, 230, 193, .62);
  color: var(--cyan);
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  padding-block: 14px;
  border-bottom: 1px solid rgba(42, 50, 60, .7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--silver);
}

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

.breadcrumb__link {
  color: var(--silver);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.breadcrumb__link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(33, 230, 193, .5);
}

.breadcrumb__sep {
  color: rgba(154, 167, 181, .4);
}

.breadcrumb__current {
  color: var(--paper);
}

/* ---------- 10. 正文 ---------- */
.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(232, 225, 211, .86);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  margin-top: 1.9em;
  letter-spacing: -.01em;
  color: var(--paper);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-top: 1.6em;
  color: var(--paper);
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(33, 230, 193, .42);
}

.prose strong { color: var(--paper); font-weight: 700; }

.prose li {
  position: relative;
  padding-inline-start: 18px;
}

.prose li + li { margin-top: .45em; }

.prose li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .78em;
  width: 7px;
  height: 1px;
  background: var(--orange);
}

/* ---------- 11. 面板与卡片 ---------- */
.glass {
  background: rgba(17, 22, 29, .55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(232, 225, 211, .1);
  border-radius: var(--radius-lg);
}

.solid {
  background: var(--ink-2);
  border: 1px solid rgba(42, 50, 60, .95);
  border-radius: var(--radius-lg);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(42, 50, 60, .9);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.card:hover {
  border-color: rgba(255, 107, 26, .42);
  box-shadow: 0 20px 44px -34px rgba(255, 107, 26, .9);
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-3px); }
}

.card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--paper);
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--silver);
}

.card__body {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(154, 167, 181, .95);
}

/* ---------- 12. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--orange { color: var(--orange); background: rgba(255, 107, 26, .1); }
.tag--cyan { color: var(--cyan); background: rgba(33, 230, 193, .1); }
.tag--amber { color: var(--amber); background: rgba(255, 179, 71, .1); }
.tag--moss { color: #9DBFAB; background: rgba(63, 91, 78, .3); border-color: rgba(157, 191, 171, .55); }

/* ---------- 13. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(42, 50, 60, .9);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(33, 230, 193, .14), rgba(7, 18, 31, 0) 58%),
    linear-gradient(315deg, rgba(255, 107, 26, .18), rgba(7, 18, 31, 0) 62%),
    #0C1622;
}

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

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

.media__caption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(7, 18, 31, 0), rgba(7, 18, 31, .92));
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(120% 100% at 10% 0%, rgba(33, 230, 193, .08), transparent 58%),
    radial-gradient(90% 90% at 88% 4%, rgba(255, 107, 26, .1), transparent 62%),
    var(--ink-2);
  border-top: 1px solid rgba(42, 50, 60, .95);
  color: var(--paper);
}

.footer__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(40px, 5.5vw, 78px) var(--gutter) clamp(26px, 3vw, 42px);
  display: grid;
  gap: clamp(26px, 3.4vw, 46px);
  grid-template-columns: minmax(0, 1fr);
}

.footer__brand { min-width: 0; }

.brand--footer .brand__name { font-size: 17px; }

.brand--footer .brand__mark {
  width: 36px;
  height: 36px;
}

.footer__summary {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(154, 167, 181, .95);
}

.footer__meta {
  margin-top: 20px;
  display: grid;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
}

.footer__meta li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer__label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(154, 167, 181, .62);
}

.footer__label::after {
  content: "／";
  margin-inline-start: 2px;
  color: rgba(154, 167, 181, .32);
}

.footer__value {
  color: var(--paper);
  font-size: 12px;
  line-height: 1.7;
  word-break: break-word;
}

.footer__nav {
  display: grid;
  gap: 24px 16px;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
}

.footer__group { min-width: 0; }

.footer__grouptitle {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(42, 50, 60, .9);
}

.footer__list { display: grid; gap: 9px; }

.footer__link {
  display: inline-block;
  font-size: 13.5px;
  color: var(--silver);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.footer__link:hover {
  color: var(--paper);
  border-bottom-color: rgba(33, 230, 193, .62);
}

.footer__link--sm {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
}

.footer__contact {
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(42, 50, 60, .9);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(255, 107, 26, .14), transparent 62%),
    rgba(7, 18, 31, .62);
}

.footer__contact-list { display: grid; gap: 12px; }

.footer__contact-row { display: grid; gap: 2px; }

.footer__note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 179, 71, .32);
  font-size: 11.5px;
  line-height: 1.8;
  color: rgba(255, 179, 71, .82);
}

.footer__base {
  border-top: 1px solid rgba(42, 50, 60, .85);
  background: rgba(7, 18, 31, .55);
}

.footer__base-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px var(--gutter) 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: rgba(154, 167, 181, .78);
}

.footer__legal { line-height: 1.7; }

.footer__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

@media (min-width: 760px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.75fr) minmax(0, .95fr);
    align-items: start;
  }
  .footer__brand { grid-column: auto; }
  .footer__contact { grid-column: auto; }
}

/* ---------- 15. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

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