/* ============================================================
   火马电竞局 · 共享站点样式 /assets/site.css
   炭黑跑道 + 熔岩橙火焰 + 电光青数据反射 + 马毛暖棕档案标签
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, picture, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:root {
  --ink: #0B0D0F;
  --panel: #15181C;
  --bone: #F3EFE6;
  --smoke: #9AA3A8;
  --lava: #FF5A1F;
  --flame: #FF8A4C;
  --cyan: #19E3D1;
  --teal: #00A7B8;
  --mane: #8A5A3B;
  --deep: #062B2F;
  --wine: #3A0F18;

  --body-ink: #D9D4CA;
  --line: rgba(243, 239, 230, 0.14);
  --line-strong: rgba(243, 239, 230, 0.30);
  --line-cyan: rgba(25, 227, 209, 0.42);
  --line-lava: rgba(255, 90, 31, 0.45);

  --font-cn: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --wrap: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: 160ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

html { background: var(--ink); scroll-padding-top: 128px; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-weight: 900; line-height: 1.1; letter-spacing: -0.015em; }

::selection { background: var(--lava); color: #0B0D0F; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0B0D0F; }
::-webkit-scrollbar-thumb { background: #23272C; }
::-webkit-scrollbar-thumb:hover { background: var(--mane); }

/* ---------- 焦点与动效偏好 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@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;
  }
}

/* ---------- 工具类 ---------- */
.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

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

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

.tilt { display: inline-block; transform: skewX(-7deg); }

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

/* ---------- 排版 ---------- */
.display {
  font-size: clamp(56px, 10vw, 180px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.035em;
}

.h1 {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lava);
  flex: none;
}

.prose {
  max-width: 62ch;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.82;
  color: var(--body-ink);
}

.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--bone); font-weight: 700; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--bone); }

/* ---------- 跳至主内容 ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 200;
  display: inline-block;
  padding: 12px 20px;
  background: var(--lava);
  color: #0B0D0F;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: top var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { top: 10px; outline-offset: 3px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn--ember {
  background: var(--lava);
  color: #0B0D0F;
}
.btn--ember:hover,
.btn--ember:focus-visible { background: var(--flame); color: #0B0D0F; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--bone);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: var(--lava); color: var(--lava); }

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(15px, 3vw, 40px);
  padding-block: clamp(12px, 1.4vw, 18px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: none;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--bone);
  transition: color var(--ease);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 3px;
  background: linear-gradient(90deg, var(--lava) 0 62%, var(--flame) 62% 100%);
  transform: skewX(-24deg);
}

.brand:hover .brand__mark { color: var(--flame); }

.brand__latin {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ---------- 导航 ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  margin: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--smoke);
  text-decoration: none;
  transition: color var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--lava);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible { color: var(--bone); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: var(--bone);
  box-shadow: inset 0 -2px 0 0 var(--lava);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta {
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--bone);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 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 { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 焕新榜数据带 ---------- */
.speed-strip {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.speed-strip::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(46%, 520px);
  background-image: repeating-linear-gradient(
    118deg,
    rgba(255, 90, 31, 0.16) 0 2px,
    transparent 2px 15px
  );
  pointer-events: none;
}

.speed-strip__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding-block: 6px;
}

.speed-strip__label {
  flex: none;
  padding: 4px 14px;
  background: var(--lava);
  color: #0B0D0F;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.speed-strip__ticker {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--smoke);
}

.speed-strip__link {
  flex: none;
  margin-left: auto;
  padding-right: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.speed-strip__link:hover,
.speed-strip__link:focus-visible {
  color: var(--bone);
  border-bottom-color: var(--cyan);
}

.race-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(243, 239, 230, 0.09);
}

.race-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lava), var(--flame));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 120px);
  background: #08090B;
  border-top: 1px solid var(--line-strong);
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--lava) 0 34%,
    var(--mane) 34% 52%,
    var(--teal) 52% 74%,
    var(--cyan) 74% 100%
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(26px, 3vw, 52px);
  padding-block: clamp(40px, 5vw, 76px);
}

.footer-col { min-width: 0; }

.footer-brand {
  display: inline-block;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--bone);
  text-decoration: none;
  transition: color var(--ease);
}

.footer-brand:hover { color: var(--flame); }

.footer-latin {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mane);
}

.footer-note {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--smoke);
}

.footer-addr {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--mane);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--smoke);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone);
}

.footer-col__title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--lava);
  flex: none;
}

.footer-list {
  display: grid;
  gap: 11px;
  margin: 0;
}

.footer-list a {
  position: relative;
  display: inline-block;
  font-size: 14.5px;
  color: #C8C3B8;
  text-decoration: none;
  transition: color var(--ease);
}

.footer-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--lava);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease);
}

.footer-list a:hover,
.footer-list a:focus-visible { color: var(--flame); }
.footer-list a:hover::after,
.footer-list a:focus-visible::after { transform: scaleX(1); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 20px 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--smoke);
}

.footer-meta__legal { color: var(--smoke); }
.footer-meta__contact { color: var(--smoke); }

.footer-meta__policies {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--mane);
}

.footer-meta__policies a {
  color: var(--smoke);
  text-decoration: none;
  transition: color var(--ease);
}
.footer-meta__policies a:hover,
.footer-meta__policies a:focus-visible { color: var(--cyan); }

/* ============================================================
   通用页面结构
   ============================================================ */
.page-body { padding-block: clamp(40px, 6vw, 88px); }

.section { padding-block: clamp(44px, 6vw, 92px); }

.section--panel {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--deep {
  background: var(--deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 32px;
  padding-bottom: 16px;
  margin-bottom: clamp(24px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
}

.section-head__hint {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
}

.breadcrumb a {
  color: var(--smoke);
  text-decoration: none;
  transition: color var(--ease);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--cyan); }

.breadcrumb__sep { color: var(--mane); }

.breadcrumb [aria-current="page"] { color: var(--bone); }

/* ---------- 档案卡 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color var(--ease), background var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 46px;
  height: 2px;
  background: var(--lava);
}

.card::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  background: var(--lava);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.card:hover { border-color: var(--line-strong); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
  white-space: nowrap;
}

.tag--cyan { color: var(--cyan); border-color: var(--line-cyan); }
.tag--lava { color: var(--lava); border-color: var(--line-lava); }

/* ---------- 可复用图片容器 ---------- */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(255, 90, 31, 0.22), transparent 58%),
    linear-gradient(135deg, #15181C 0%, #062B2F 100%);
  aspect-ratio: 16 / 9;
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(243, 239, 230, 0.05) 0 1px,
    transparent 1px 4px
  );
  pointer-events: none;
}

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

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 8px 14px;
  background: rgba(11, 13, 15, 0.84);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1000px) {
  html { scroll-padding-top: 104px; }

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

  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 6px var(--gutter) 26px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.68);
  }

  .nav[data-open] { display: flex; }

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

  .nav__list li + li { border-top: 1px solid var(--line); }

  .nav__link {
    display: block;
    padding: 15px 10px 15px 0;
    font-size: 16px;
    color: var(--bone);
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] {
    box-shadow: inset 3px 0 0 0 var(--lava);
    padding-left: 14px;
    color: var(--flame);
  }

  .nav__cta {
    width: 100%;
    margin-top: 20px;
    padding: 14px 16px;
    font-size: 14px;
  }

  .speed-strip__ticker { font-size: 11px; letter-spacing: 0.06em; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

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

  .header-inner { gap: 12px; }

  .brand { gap: 9px; }
  .brand__latin { display: none; }

  .speed-strip__ticker { display: none; }

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

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 10px; }

  .eyebrow { letter-spacing: 0.2em; font-size: 11px; }
}
