/* ============================================================
   开云赛事 · 共享样式表  /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, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
table { width: 100%; border-collapse: collapse; }
[hidden] { display: none !important; }

/* ---------- 2. tokens ---------- */
:root {
  --c-blue: #0E3A5C;
  --c-ink: #0B1620;
  --c-gravel: #E4E1DA;
  --c-fog: #F7F7F4;
  --c-volt: #1FC7B6;
  --c-red: #D93A2B;
  --c-yellow: #EFC02C;
  --c-steel: #5C7684;
  --c-deep: #072033;
  --c-line: #BFD3DC;

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

  --fs-1: 17px;
  --fs-2: 20px;
  --fs-3: 26px;
  --fs-4: 38px;
  --fs-5: 56px;

  --shell: 1180px;
  --gutter: clamp(18px, 4.2vw, 44px);
  --header-h: 76px;

  --edge: 2px solid var(--c-deep);
  --hard: 6px 6px 0 var(--c-deep);
  --hard-sm: 3px 3px 0 var(--c-deep);
}

/* ---------- 3. 中文排版底座 ---------- */
body {
  background: var(--c-gravel);
  color: var(--c-deep);
  font-family: var(--font-sans);
  font-size: var(--fs-1);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-stretch: semi-condensed;
}

h1 { font-size: var(--fs-5); }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-2); }

p { max-width: 38em; }

strong { font-weight: 800; }

::selection { background: var(--c-volt); color: var(--c-deep); }

[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

:focus-visible {
  outline: 3px solid var(--c-volt);
  outline-offset: 3px;
  border-radius: 0;
}

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

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }

.rule { height: 2px; background: var(--c-deep); border: 0; }
.rule--line { background: var(--c-line); }

.grid { display: grid; gap: clamp(18px, 2.6vw, 34px); }
.grid--7-3 { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
.grid--6-4 { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
.grid--split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.prose { display: grid; gap: 14px; max-width: 38em; }
.prose > p { max-width: none; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.muted { color: var(--c-steel); }

/* ---------- 5. 基础组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 4px;
  background: var(--c-volt);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 2px solid var(--c-deep);
}
.section-head__title { font-size: var(--fs-3); }
.section-head__note { font-size: 15px; line-height: 1.7; color: var(--c-steel); max-width: 32em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 2px solid var(--c-deep);
  background: var(--c-fog);
  color: var(--c-deep);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: var(--hard-sm);
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease,
              color .14s ease, border-color .14s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--c-deep); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--c-deep); }
.btn--primary { background: var(--c-volt); }
.btn--ghost { background: transparent; border-color: var(--c-line); box-shadow: none; }
.btn--ghost:hover { background: var(--c-fog); border-color: var(--c-deep); box-shadow: var(--hard-sm); }
.btn--signal { background: var(--c-red); color: #fff; }

.panel {
  background: var(--c-fog);
  border: var(--edge);
  padding: clamp(18px, 2.6vw, 30px);
  box-shadow: var(--hard);
}
.panel--blue { background: var(--c-blue); color: var(--c-fog); }
.panel--ink { background: var(--c-ink); color: var(--c-gravel); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--c-steel);
}
.breadcrumb a { text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--c-deep); border-bottom-color: var(--c-volt); }
.breadcrumb__item[aria-current="page"] { color: var(--c-deep); }
.breadcrumb__sep { color: var(--c-line); }

.figure { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.figure__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: var(--edge);
  overflow: hidden;
  background-color: var(--c-blue);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(31, 199, 182, .16) 0 2px,
    transparent 2px 15px
  );
}
.figure__media > img,
.figure__media > svg,
.figure__media > video { width: 100%; height: 100%; object-fit: cover; }
.figure__media--wide { aspect-ratio: 21 / 9; }
.figure__media--tall { aspect-ratio: 3 / 4; }
.figure__cap {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--c-steel);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 4px solid var(--c-volt);
}
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-steel);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 2px solid var(--c-deep);
  background: var(--c-fog);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
}
.tag--volt { background: var(--c-volt); }
.tag--yellow { background: var(--c-yellow); }
.tag--red { background: var(--c-red); color: #fff; }

.sig {
  display: inline-block;
  width: 11px;
  height: 15px;
  border: 2px solid var(--c-deep);
  vertical-align: -2px;
}
.sig--red { background: var(--c-red); }
.sig--yellow { background: var(--c-yellow); }
.sig--volt { background: var(--c-volt); }

.ledger { border-top: 2px solid var(--c-deep); }
.ledger__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: clamp(12px, 2vw, 26px);
  align-items: baseline;
  padding: 16px 6px;
  border-bottom: 2px solid var(--c-line);
  transition: background-color .14s ease, box-shadow .14s ease;
}
.ledger__row:hover { background: var(--c-fog); box-shadow: inset 4px 0 0 var(--c-volt); }
.ledger__num {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--c-steel);
}
.ledger__body { min-width: 0; }
.ledger__title { font-size: var(--fs-2); font-weight: 700; line-height: 1.35; }
.ledger__meta { font-size: 14px; color: var(--c-steel); }
.ledger__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-steel);
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--c-deep);
}
.tabs__btn {
  padding: 11px 18px;
  margin-bottom: -2px;
  border: 2px solid transparent;
  border-bottom: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-steel);
  transition: color .14s ease, background-color .14s ease, box-shadow .14s ease;
}
.tabs__btn:hover { color: var(--c-deep); }
.tabs__btn[aria-selected="true"] {
  background: var(--c-fog);
  border-color: var(--c-deep);
  color: var(--c-deep);
  box-shadow: inset 0 4px 0 var(--c-volt);
}
.tabs__panel { padding-top: clamp(18px, 3vw, 30px); }

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--c-blue);
  color: var(--c-fog);
  border-bottom: 2px solid var(--c-deep);
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.site-header[data-header-state="solid"] { box-shadow: 0 4px 0 rgba(7, 32, 51, .16); }
.site-header[data-header-state="overlay"] {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  min-height: var(--header-h);
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 90;
  padding: 10px 16px;
  background: var(--c-volt);
  color: var(--c-deep);
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--c-deep);
  transition: top .16s ease;
}
.skip-link:focus { top: 12px; }

.brand,
.footer__brandmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 26px;
}
.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  transform: skewX(-18deg);
}
.brand__mark::before { left: 0; background: var(--c-volt); }
.brand__mark::after { left: 13px; background: var(--c-line); }

.brand__type { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: inherit;
}
.brand__line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-line);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
}
.nav__item { display: flex; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-fog);
  border-bottom: 2px solid transparent;
  transition: color .14s ease, border-color .14s ease;
}
.nav__link:hover { color: var(--c-volt); }
.nav__link[aria-current="page"] { color: #fff; border-bottom-color: var(--c-volt); }

.nav__utility {
  padding: 8px 14px;
  border: 2px solid var(--c-volt);
  color: var(--c-volt);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}
.nav__utility:hover { background: var(--c-volt); color: var(--c-deep); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  border: 2px solid var(--c-line);
  color: var(--c-fog);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
}
.nav-toggle__bar { position: relative; display: block; width: 20px; height: 2px; background: currentColor; }
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .18s ease, top .18s ease;
}
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

.header__progress {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--c-volt);
  transition: width .12s linear;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  background: var(--c-ink);
  color: var(--c-gravel);
  border-top: 4px solid var(--c-volt);
}
.footer__inner { padding-block: clamp(34px, 5vw, 66px) clamp(20px, 3vw, 30px); }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(26px, 4vw, 48px);
  border-bottom: 1px solid rgba(191, 211, 220, .24);
}

.footer__brand { min-width: 0; }
.footer__brandmark .brand__line { color: var(--c-steel); }

.footer__coda {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-gravel);
  max-width: 30em;
}

.contact-list { display: grid; gap: 8px; margin-top: 18px; }
.contact-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
}
.contact-list__key {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-volt);
}
.contact-list__val { color: var(--c-gravel); word-break: break-word; }

.footer__note {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--c-steel);
  max-width: 34em;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer__col { min-width: 0; }
.footer__coltitle {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid rgba(31, 199, 182, .5);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-line);
}
.footer__list { display: grid; gap: 9px; }
.footer__link {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-gravel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .14s ease, border-color .14s ease;
}
a.footer__link:hover { color: var(--c-volt); border-bottom-color: var(--c-volt); }
.footer__link--static { color: var(--c-steel); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 26px;
  padding-top: clamp(16px, 2.4vw, 26px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--c-steel);
}
.footer__copy { max-width: none; }
.footer__icp { max-width: none; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__legal .footer__link { font-size: 12.5px; font-family: var(--font-mono); color: var(--c-steel); }
.footer__legal a.footer__link:hover { color: var(--c-volt); }

/* ---------- 8. 动效 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .28s ease, transform .28s ease;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 9. 响应式 ---------- */
@media (max-width: 940px) {
  .grid--7-3,
  .grid--6-4,
  .grid--split,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; --fs-5: 40px; --fs-4: 30px; --fs-3: 23px; }

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

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 6px var(--gutter) 22px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--c-blue);
    border-bottom: 3px solid var(--c-volt);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .site-header [data-nav][data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid rgba(191, 211, 220, .28); }
  .nav__link {
    display: block;
    padding: 14px 12px;
    font-size: 18px;
    border-bottom: none;
    border-left: 3px solid transparent;
    color: var(--c-fog);
  }
  .nav__link[aria-current="page"] { border-bottom: none; border-left-color: var(--c-volt); }
  .nav__utility { margin-top: 16px; text-align: center; }

  .site-header[data-header-state="overlay"] {
    background: var(--c-blue);
    border-bottom-color: var(--c-deep);
  }
}

@media (max-width: 860px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
}

@media (max-width: 640px) {
  .ledger__row { grid-template-columns: 62px minmax(0, 1fr); gap: 10px 14px; }
  .ledger__side { grid-column: 2; }
  .section-head { align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 10. 可访问性 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
