/* ============================================================
   完美平台赛事 · 全站共享样式 /assets/site.css
   色彩：深空蓝底 + 夜蓝面板 + 霓虹橙脉冲 + 裁判红/警示黄语义
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: #0A1A2F;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 540px at 82% -8%, rgba(255, 122, 26, .10), transparent 62%),
    radial-gradient(900px 640px at 4% 106%, rgba(19, 42, 74, .85), transparent 66%);
}

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

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色板 */
  --ink: #0A1A2F;
  --ink-2: #0E2138;
  --panel: #132A4A;
  --neon: #FF7A1A;
  --neon-soft: #FFB067;
  --red: #E4472B;
  --yellow: #F2C53D;
  --stone: #6E747A;
  --moss: #4E6B52;
  --clay: #B4705A;
  --cream: #F2EDE4;
  --mist: #9AA5B1;

  /* 字体 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas,
               "Liberation Mono", ui-monospace, monospace;

  /* 尺寸 */
  --rail: 264px;
  --gutter: clamp(20px, 4vw, 64px);
  --unit: 8px;
  --r-pill: 999px;
  --r-soft: 18px;
  --cut: 10px;

  /* 节奏 */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 200ms;

  /* 线条 */
  --line: rgba(110, 116, 122, .28);
  --line-strong: rgba(110, 116, 122, .5);

  /* 阅读进度 */
  --read: 0;
}

/* ---------- 3. 焦点与无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 22px;
  background: var(--neon);
  color: #08131F;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transform: translateY(-220%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 4. 主内容锚点 ---------- */
#main-content {
  position: relative;
  z-index: 1;
  display: block;
}

/* ---------- 5. 容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

/* ---------- 6. 排版工具 ---------- */
.t-display {
  font-weight: 200;
  font-size: clamp(2.6rem, 7vw, 8rem);
  line-height: .95;
  letter-spacing: .04em;
  color: var(--cream);
}

.t-lead {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.7;
  color: var(--mist);
  max-width: 42ch;
}

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}

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

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn--primary {
  background: var(--neon);
  color: #08131F;
}
.btn--primary:hover { background: var(--neon-soft); }
.btn--primary:active { background: #E86A0F; }

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

.btn--block { width: 100%; }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
}
.breadcrumb__link {
  color: var(--mist);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.breadcrumb__link:hover { color: var(--neon); }
.breadcrumb__sep { color: var(--stone); }
.breadcrumb__current { color: var(--cream); }

/* ---------- 9. 图片容器 ---------- */
.figure {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-soft);
  background: linear-gradient(135deg, #17305A, #0C1E36);
  isolation: isolate;
}

.figure__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(110, 116, 122, .16) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(110, 116, 122, .16) 0 1px, transparent 1px 56px);
}

.figure--ratio-16x9 { aspect-ratio: 16 / 9; }
.figure--ratio-4x3  { aspect-ratio: 4 / 3; }
.figure--ratio-1x1  { aspect-ratio: 1 / 1; }
.figure--ratio-3x4  { aspect-ratio: 3 / 4; }
.figure--ratio-21x9 { aspect-ratio: 21 / 9; }

.figure--cut {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

.figure__caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stone);
}

/* ============================================================
   10. 头部：框架式导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 26, 47, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--cream);
}

.sh-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon);
  transform-origin: left center;
  transform: scaleX(var(--read, 0));
  pointer-events: none;
  z-index: 2;
}

.sh-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 18px;
  width: 100%;
}

.sh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.sh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 4px 0;
  text-decoration: none;
  color: inherit;
}

.sh-brand__mark {
  flex: none;
  width: 30px;
  height: 30px;
  background: linear-gradient(150deg, var(--neon), var(--red));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.sh-brand__text { display: block; }

.sh-brand__name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  color: var(--cream);
}

.sh-brand__sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mist);
}

/* 移动端导航按钮 */
.sh-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  background: rgba(19, 42, 74, .85);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.sh-toggle:hover { border-color: var(--neon); color: var(--neon); }

.sh-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.sh-toggle__icon i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.sh-toggle__icon i:nth-child(1) { width: 100%; }
.sh-toggle__icon i:nth-child(2) { width: 68%; }
.sh-toggle__icon i:nth-child(3) { width: 100%; }

.site-header[data-nav-open] .sh-toggle__icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-nav-open] .sh-toggle__icon i:nth-child(2) { opacity: 0; }
.site-header[data-nav-open] .sh-toggle__icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 导航（移动端默认收起） */
.sh-nav { display: none; }

.sh-nav[data-open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 20px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.sh-nav__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sh-nav__item { display: block; }

.sh-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--mist);
  text-decoration: none;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.sh-nav__link:hover {
  color: var(--cream);
  border-color: var(--stone);
  background: rgba(19, 42, 74, .7);
}

.sh-nav__link[aria-current="page"] {
  background: var(--neon);
  border-color: var(--neon);
  color: #08131F;
  font-weight: 800;
}
.sh-nav__link[aria-current="page"]:hover {
  color: #08131F;
  border-color: var(--neon);
  background: var(--neon);
}

.sh-nav__foot { margin-top: 4px; }
.sh-cta { width: 100%; }

/* ============================================================
   11. 页脚
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 8vw, 112px);
  background: linear-gradient(180deg, rgba(19, 42, 74, .55), #0A1A2F 58%);
  border-top: 1px solid var(--line);
  color: var(--cream);
}

.sf-gauge {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 16px var(--gutter);
}

.sf-gauge__seg {
  height: 8px;
  border-radius: 1px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.sf-gauge__seg--neon   { width: 72px; background: var(--neon); }
.sf-gauge__seg--yellow { width: 22px; background: var(--yellow); }
.sf-gauge__seg--red    { width: 14px; background: var(--red); }
.sf-gauge__seg--moss   { width: 38px; background: var(--moss); }

.sf-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 40px);
}

.sf-brand__mark {
  display: block;
  width: 28px;
  height: 28px;
  background: linear-gradient(150deg, var(--neon), var(--red));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.sf-brand__name {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--cream);
}

.sf-brand__sub {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
}

.sf-brand__note {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.sf-col__title {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}

.sf-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sf-link {
  position: relative;
  display: inline-block;
  min-height: 32px;
  font-size: 14px;
  color: var(--cream);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.sf-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 1px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.sf-link:hover { color: var(--neon-soft); }
.sf-link:hover::after { transform: scaleX(1); }

.sf-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sf-contact__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--mist);
}

.sf-contact__k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stone);
}

.sf-contact__v { color: var(--cream); word-break: break-all; }

.sf-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: .02em;
}

.sf-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px 0 34px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mist);
}

.sf-base__copy,
.sf-base__meta { margin: 0; }

/* ============================================================
   12. 平板
   ============================================================ */
@media (min-width: 640px) {
  .sh-inner { padding: 14px 24px; }
  .sf-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   13. 桌面：框架式左侧竖栏
   ============================================================ */
@media (min-width: 1024px) {
  html { scroll-padding-top: 32px; }

  body { padding-left: var(--rail); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    width: var(--rail);
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(19, 42, 74, .58), rgba(10, 26, 47, .97) 46%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .sh-progress {
    left: auto;
    right: -1px;
    top: 0;
    width: 2px;
    height: 100%;
    transform-origin: top center;
    transform: scaleY(var(--read, 0));
  }

  .sh-inner {
    height: 100%;
    overflow-y: auto;
    padding: 36px 26px 30px;
    scrollbar-width: thin;
    scrollbar-color: rgba(110, 116, 122, .5) transparent;
  }

  .sh-top { display: block; }

  .sh-brand { min-height: 0; padding: 0; }
  .sh-brand__mark { width: 34px; height: 34px; }
  .sh-brand__name { font-size: 17px; letter-spacing: .1em; }
  .sh-brand__sub { font-size: 10px; letter-spacing: .28em; }

  .sh-toggle { display: none; }

  .sh-nav,
  .sh-nav[data-open] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 18px;
    margin-top: 34px;
    padding: 0;
    border-top: 0;
  }

  .sh-nav__list { gap: 6px; }

  .sh-nav__foot {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .sf-main {
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 3.5vw, 56px);
  }
}

/* ============================================================
   14. 动效退化
   ============================================================ */
@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;
  }

  .sh-progress { transition: none; }
}
