/* =========================================================
   FH 赛事数据 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 头部 / 页脚 / 基础组件
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

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

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }

:root {
  --ink-900: #0B0E11;
  --ink-800: #14181D;
  --red-600: #C8283C;
  --red-400: #E8556A;
  --emerald-500: #12A87A;
  --emerald-300: #5FD8B0;
  --amber-500: #E9A93B;
  --amber-200: #F6D79A;
  --paper-050: #F4F1EA;
  --slate-400: #98A2AE;
  --teal-900: #08312E;
  --indigo-900: #161B3A;

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

  --radius-pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --line: rgba(244, 241, 234, .13);
  --glass: rgba(20, 24, 29, .72);
  --glass-strong: rgba(20, 24, 29, .9);
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper-050);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.14rem, 1.8vw, 1.42rem); letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-size: 1.02rem; letter-spacing: 0; }

p { margin: 0 0 1em; }

::selection { background: var(--red-600); color: var(--paper-050); }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(233, 169, 59, .26);
}

/* ---------- 布局工具 ---------- */

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.section { padding-block: clamp(56px, 8vw, 112px); }

#main-content { padding-top: clamp(96px, 11vw, 132px); }

.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 32px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 文字组件 ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7em;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--emerald-300);
  margin-bottom: 1.1em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--red-600);
  flex: none;
}

.annotation {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber-200);
  transform: rotate(-6deg);
  transform-origin: left center;
}
.annotation--vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: .3em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .28em .7em;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-500);
  background: rgba(233, 169, 59, .09);
  border: 1px solid rgba(233, 169, 59, .45);
  border-radius: 4px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--emerald-300);
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  color: rgba(244, 241, 234, .86);
  max-width: 32em;
}

.prose {
  max-width: 34em;
  color: rgba(244, 241, 234, .84);
}
.prose > p { margin-bottom: 1.15em; }
.prose strong { color: var(--paper-050); font-weight: 700; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .68em 1.15em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}

.btn--primary {
  background: var(--red-600);
  color: var(--paper-050);
}
.btn--primary:hover {
  background: var(--red-400);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -16px var(--red-600);
}

.btn--ghost {
  background: transparent;
  color: var(--paper-050);
  border-color: rgba(244, 241, 234, .32);
}
.btn--ghost:hover {
  background: rgba(244, 241, 234, .08);
  border-color: var(--amber-200);
  transform: translateY(-2px);
}

.btn--amber {
  background: var(--amber-500);
  color: #12100B;
}
.btn--amber:hover {
  background: var(--amber-200);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -16px var(--amber-500);
}

.btn--sm {
  font-size: .82rem;
  padding: .52em .92em;
}

.btn:active { transform: translateY(0); }

/* ---------- 卡片与影像容器 ---------- */

.card {
  position: relative;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 2.4vw, 28px);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              border-color .2s var(--ease), background .2s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 241, 234, .22);
  box-shadow: 0 26px 48px -30px #000;
}
.card--glass {
  background: var(--glass);
  border-color: rgba(244, 241, 234, .16);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.card--glass:hover { background: rgba(20, 24, 29, .88); }

.media {
  position: relative;
  display: block;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(155deg, var(--ink-800) 0%, var(--teal-900) 62%, #0A1512 100%);
  isolation: isolate;
}
.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(244, 241, 234, .07) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(244, 241, 234, .07) 0 1px, transparent 1px 34px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 88%);
}
.media__caption {
  position: absolute;
  left: 14px; bottom: 12px; right: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: rgba(244, 241, 234, .82);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
}

/* ---------- 面包屑 ---------- */

.breadcrumbs {
  font-size: .8rem;
  color: var(--slate-400);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45em;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: .45em; }
.breadcrumbs li + li::before {
  content: "/";
  color: rgba(152, 162, 174, .55);
}
.breadcrumbs a {
  color: var(--slate-400);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.breadcrumbs a:hover {
  color: var(--paper-050);
  border-bottom-color: var(--red-400);
}
.breadcrumbs [aria-current="page"] { color: rgba(244, 241, 234, .9); }

/* ---------- 跳过导航 ---------- */

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: .72em 1.1em;
  background: var(--amber-500);
  color: #12100B;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 滚动进度 ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red-600) 0%, var(--amber-500) 55%, var(--emerald-500) 100%);
  pointer-events: none;
}

/* =========================================================
   头部
   ========================================================= */

.site-header {
  position: fixed;
  inset: 20px 0 auto 0;
  z-index: 90;
  padding-inline: clamp(14px, 3vw, 40px);
  pointer-events: none;
}

.header-pill {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding: 9px 12px 9px 12px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid rgba(244, 241, 234, .14);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 18px 42px -26px #000;
  transition: background .24s var(--ease), padding .24s var(--ease),
              border-color .24s var(--ease), box-shadow .24s var(--ease);
}

.site-header[data-compact="true"] .header-pill {
  background: var(--glass-strong);
  border-color: rgba(244, 241, 234, .2);
  padding-top: 5px;
  padding-bottom: 5px;
  box-shadow: 0 22px 48px -26px #000;
}

/* 品牌 */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper-050);
  flex: none;
  padding: 2px;
  border-radius: 8px;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--red-600);
  color: var(--paper-050);
  font-family: var(--font-mono);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .04em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.brand:hover .brand__mark {
  background: var(--red-400);
  transform: translateX(2px);
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--slate-400);
  white-space: nowrap;
}

/* 导航 */

.site-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: .5em .82em;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: rgba(244, 241, 234, .8);
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.site-nav__link:hover {
  background: rgba(244, 241, 234, .1);
  color: var(--paper-050);
}
.site-nav__link[aria-current="page"] {
  background: var(--red-600);
  color: var(--paper-050);
}
.site-nav__link[aria-current="page"]:hover { background: var(--red-400); }

.site-nav__cta {
  display: none;
  margin-top: 10px;
}

/* 头部右侧 */

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

.header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 241, 234, .18);
  color: rgba(244, 241, 234, .9);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.header-search:hover {
  background: rgba(244, 241, 234, .1);
  border-color: var(--amber-200);
  color: var(--paper-050);
}
.header-search__text { letter-spacing: .04em; }

.header-cta { display: inline-flex; }

/* 汉堡 */

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55em;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 241, 234, .18);
  color: var(--paper-050);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.nav-toggle:hover { background: rgba(244, 241, 234, .1); border-color: var(--amber-200); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background .18s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--amber-500);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--amber-500);
}

.nav-toggle__label { white-space: nowrap; }

/* =========================================================
   页脚
   ========================================================= */

.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 128px);
  background: var(--ink-900);
  border-top: 1px solid rgba(244, 241, 234, .14);
  padding-bottom: clamp(20px, 3vw, 32px);
  overflow: hidden;
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: clamp(6px, .8vw, 10px);
  height: 100%;
  background: var(--red-600);
  pointer-events: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(44px, 6vw, 76px) clamp(28px, 4vw, 56px) clamp(30px, 4vw, 44px);
}

.footer__brand { min-width: 0; }

.brand--footer { padding: 0; }
.brand--footer .brand__mark { width: 42px; height: 42px; font-size: .92rem; }

.footer__tagline {
  margin-top: 16px;
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(244, 241, 234, .74);
  max-width: 20em;
}

.footer__col { min-width: 0; }

.footer__heading {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin: 0 0 1em;
}

.footer__list { display: flex; flex-direction: column; gap: .6em; }
.footer__list a {
  display: inline-block;
  font-size: .9rem;
  color: rgba(244, 241, 234, .78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer__list a:hover {
  color: var(--paper-050);
  border-bottom-color: var(--red-400);
}

.footer__contact,
.footer__legal {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(28px, 4vw, 56px);
}

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid rgba(244, 241, 234, .1);
  font-size: .84rem;
  color: rgba(244, 241, 234, .74);
}
.footer__contact p { margin: 0; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-top: 14px;
  font-size: .76rem;
  line-height: 1.7;
  color: var(--slate-400);
}
.footer__legal p { margin: 0; }

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1120px) {
  .site-nav__link { padding: .5em .66em; font-size: .84rem; }
  .header-search__text { display: none; }
  .header-search { padding: 0; width: 40px; }
}

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  body { padding-bottom: 92px; }
  #main-content { padding-top: 16px; }

  .site-header {
    inset: auto 0 0 0;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .header-pill {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 20px;
    background: rgba(20, 24, 29, .88);
    box-shadow: 0 -18px 42px -26px #000;
  }
  .site-header[data-compact="true"] .header-pill {
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 20px;
  }

  .brand__note { display: none; }
  .brand__name { font-size: .92rem; }
  .brand__mark { width: 34px; height: 34px; font-size: .78rem; }

  .header-cta { display: none; }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 12px);
    display: block;
    flex: none;
    padding: 10px;
    background: rgba(11, 14, 17, .95);
    border: 1px solid rgba(244, 241, 234, .16);
    border-radius: 22px;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 -22px 50px -30px #000;
    max-height: min(68vh, 520px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
  }
  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-nav__link {
    justify-content: flex-start;
    width: 100%;
    padding: .74em 1em;
    border-radius: 12px;
    font-size: .95rem;
  }
  .site-nav__cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

@media (min-width: 901px) {
  .site-nav {
    position: static;
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-nav[data-open="true"] { transform: none; }
}

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__contact { flex-direction: column; gap: 6px; }
  .footer__legal { flex-direction: column; gap: 4px; }
}

@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;
  }
  .card:hover,
  .btn:hover,
  .brand:hover .brand__mark { transform: none; }
  .annotation { transform: rotate(-6deg); }
  .annotation--vertical { transform: rotate(180deg); }
}
