/* ============================================================
   非凡体育主站 · 共享样式 /assets/site.css
   深墨绿基底 · 荧光青数据 · 电光橙高亮
   ============================================================ */

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

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

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

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

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

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

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 色彩 */
  --ink: #06231C;
  --ink-2: #0B3227;
  --glass: rgba(20, 69, 58, 0.42);
  --cyan: #4FE3C1;
  --orange: #FF7A2F;
  --warm: #F4F1E9;
  --cool: #9FB3AD;
  --line: rgba(79, 227, 193, 0.18);
  --mask: #02120E;
  --orange-soft: #FFC49B;

  /* 字体 */
  --font-display: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'SFMono-Regular', 'Consolas', monospace;

  /* 尺寸 */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-gap: clamp(56px, 8vw, 112px);
  --stack-gap: 18px;
  --radius: 3px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(11, 50, 39, 0.55) 0%, rgba(6, 35, 28, 0) 320px),
    linear-gradient(rgba(79, 227, 193, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 227, 193, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  color: var(--warm);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: rgba(79, 227, 193, 0.32); color: var(--warm); }

/* ---------- 4. 排版工具 ---------- */
.display-1 {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.display-2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display-3 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.heading-4 {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.heading-5 { font-size: 22px; font-weight: 700; line-height: 1.35; }
.heading-6 { font-size: 17px; font-weight: 700; line-height: 1.5; }

.lead {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--warm);
}

.measure { max-width: 68ch; }

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

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.annotation {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: var(--cool);
}

.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.3em;
}

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

.text-cool { color: var(--cool); }
.text-cyan { color: var(--cyan); }
.text-orange { color: var(--orange); }

/* ---------- 5. 布局容器 ---------- */
.container {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.container--narrow {
  width: min(760px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section { padding-block: var(--section-gap); }
.section--tight { padding-block: clamp(32px, 5vw, 60px); }

.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 32px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--wide { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.stack > * + * { margin-top: var(--stack-gap); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

.band { background: var(--ink-2); }

.band--skew {
  clip-path: polygon(0 2.6%, 100% 0, 100% 97.4%, 0 100%);
}

/* ---------- 6. 面板 / 玻璃层 ---------- */
.glass,
.panel {
  position: relative;
  border: 1px solid rgba(79, 227, 193, 0.18);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
}

.glass {
  background:
    linear-gradient(rgba(2, 18, 14, 0.55), rgba(2, 18, 14, 0.55)),
    var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.panel { background: var(--glass); }

.panel--solid {
  background: var(--ink-2);
  border-color: rgba(159, 179, 173, 0.2);
}

.panel--accent {
  border-color: rgba(255, 122, 47, 0.5);
  background:
    linear-gradient(rgba(2, 18, 14, 0.5), rgba(2, 18, 14, 0.5)),
    rgba(255, 122, 47, 0.08);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--primary { background: var(--cyan); color: #04211A; border-color: var(--cyan); }
.btn--primary:hover { background: #7CEED4; border-color: #7CEED4; }

.btn--accent { background: var(--orange); color: #26100A; border-color: var(--orange); }
.btn--accent:hover { background: var(--orange-soft); border-color: var(--orange-soft); }

.btn--ghost {
  background: transparent;
  color: var(--warm);
  border-color: rgba(159, 179, 173, 0.45);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(79, 227, 193, 0.08);
}

.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ---------- 8. 数据块 / 标签 ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}

.stat__label {
  font-size: 13px;
  color: var(--cool);
  letter-spacing: 0.06em;
}

.stat--price .stat__value { color: var(--orange); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(79, 227, 193, 0.3);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.tag--orange {
  border-color: rgba(255, 122, 47, 0.45);
  color: var(--orange-soft);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cool);
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }

.breadcrumbs li::after {
  content: "/";
  margin-left: 8px;
  color: rgba(159, 179, 173, 0.45);
}

.breadcrumbs li:last-child::after { display: none; }

.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--warm); }

/* ---------- 10. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
  isolation: isolate;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 35, 28, 0.12) 0%, rgba(2, 18, 14, 0.78) 100%);
}

.media--plain::after { display: none; }

.media--tactic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(79, 227, 193, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 227, 193, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--warm);
}

/* ---------- 11. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 12. 页头 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 200;
  transform: translate(-50%, -200%);
  padding: 10px 18px;
  background: var(--cyan);
  color: #04211A;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 35, 28, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  pointer-events: none;
}

.masthead {
  padding: clamp(14px, 2.2vw, 24px) var(--gutter) 0;
  transition: padding 0.28s var(--ease);
}

.masthead__inner {
  position: relative;
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  text-align: center;
}

.masthead__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.masthead__brand-name {
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--warm);
  transition: font-size 0.28s var(--ease);
}

.masthead__brand-sub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--cool);
  transition: opacity 0.2s var(--ease);
}

.masthead__meta {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.round-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(79, 227, 193, 0.35);
  border-radius: var(--radius);
  background: rgba(79, 227, 193, 0.07);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.round-badge__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cool);
}

.mainnav {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
}

.mainnav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(4px, 1.6vw, 22px);
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.mainnav__link {
  display: inline-block;
  padding: 13px 4px 12px;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--cool);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.mainnav__link:hover { color: var(--warm); }

.mainnav__link[aria-current="page"] {
  color: var(--cyan);
  font-weight: 700;
  border-bottom-color: var(--cyan);
}

.nav-toggle { display: none; }

.nav-toggle__bars {
  display: block;
  width: 16px;
  height: 10px;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 0, 0 4px, 0 8px;
  box-shadow: 0 4px 0 var(--cyan), 0 8px 0 var(--cyan);
}

/* 收缩态 */
.site-header.is-condensed .masthead { padding-top: 8px; }

.site-header.is-condensed .masthead__brand-sub {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.site-header.is-condensed .masthead__brand-name {
  font-size: clamp(19px, 2.4vw, 24px);
}

.site-header.is-condensed .mainnav__link { padding-block: 10px 9px; }

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: var(--section-gap);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(79, 227, 193, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 227, 193, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.site-footer__masthead {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 68px) 0 22px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--warm);
}

.footer-brand__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cool);
}

.site-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(32px, 4.5vw, 52px) 0 clamp(28px, 4vw, 44px);
}

.footer-col__title {
  position: relative;
  margin-bottom: 18px;
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cool);
}

.footer-col__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
}

.footer-list li + li { margin-top: 10px; }

.footer-list a {
  font-size: 15px;
  color: var(--cool);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-list a:hover {
  color: var(--warm);
  border-bottom-color: var(--cyan);
}

.contact-list li + li { margin-top: 14px; }

.contact-item { display: flex; flex-direction: column; gap: 3px; }

.contact-item__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(159, 179, 173, 0.75);
}

.contact-item__value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--warm);
  word-break: break-word;
}

.footer-col__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cool);
}

.footer-col__note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(159, 179, 173, 0.85);
}

.site-footer__base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cool);
  font-variant-numeric: tabular-nums;
}

/* ---------- 14. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 70;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(79, 227, 193, 0.4);
  border-radius: var(--radius);
  background: rgba(2, 18, 14, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s linear, background-color 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { background: rgba(79, 227, 193, 0.16); }

.to-top__arrow { font-size: 14px; line-height: 1; }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 900px) {
  .grid--3,
  .grid--split,
  .grid--wide { grid-template-columns: minmax(0, 1fr); }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --section-gap: clamp(48px, 9vw, 72px); }

  html { scroll-padding-top: 110px; }

  .masthead { padding-top: 14px; }

  .masthead__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .masthead__meta {
    position: static;
    transform: none;
    margin-top: 12px;
  }

  .masthead__brand-sub {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .mainnav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 16px;
    border: 1px solid rgba(79, 227, 193, 0.28);
    border-radius: var(--radius);
    background: var(--glass);
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
  }

  .nav-toggle__bars {
    background-image: none;
    box-shadow: 0 4px 0 var(--cyan), 0 8px 0 var(--cyan);
    background-color: var(--cyan);
    background-size: 100% 2px;
    height: 2px;
  }

  .mainnav__list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 12px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
  }

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

  .mainnav__link {
    display: block;
    padding: 13px 12px;
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid rgba(79, 227, 193, 0.1);
  }

  .mainnav__link[aria-current="page"] {
    background: rgba(79, 227, 193, 0.1);
    border-bottom-color: rgba(79, 227, 193, 0.1);
    border-left: 2px solid var(--cyan);
  }
}

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

  .site-footer__grid { grid-template-columns: 1fr; }

  .site-footer__base { flex-direction: column; }

  .btn { width: 100%; }
  .btn--sm { width: auto; }
}

/* ---------- 16. 减少动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover { transform: none; }
}
