/* =========================================================
   BSPORT看台 · 共享样式 /assets/site.css
   1 重置 2 变量 3 排版 4 通用组件 5 头部 6 页脚 7 响应式
   ========================================================= */

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

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

body {
  margin: 0;
  min-height: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

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

h1, h2, h3, h4, h5, h6, p, figure, blockquote {
  margin: 0;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.01em;
}

::selection {
  background: #D7FF3F;
  color: #0B2B26;
}

/* ---------- 2. 变量 ---------- */
:root {
  --night: #0B2B26;
  --turf: #123F35;
  --turf-line: #1D5C4A;
  --char: #101514;
  --volt: #D7FF3F;
  --blue: #3DD6F5;
  --red: #8E2A2A;
  --white: #F4FFF8;
  --amber: #F5B942;
  --glass: rgba(21, 56, 48, 0.72);
  --line: rgba(244, 255, 248, 0.14);
  --line-strong: rgba(244, 255, 248, 0.3);
  --muted: rgba(244, 255, 248, 0.68);
  --ink: #0B2B26;

  --font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-score: "DIN Condensed", "Roboto Condensed", "Oswald", "Noto Sans SC", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 14px;
  --r-s: 10px;
  --t: 200ms;
  --header-h: 118px;
}

/* ---------- 3. 基础排版 ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--white);
  background-color: var(--night);
  background-image:
    radial-gradient(900px 520px at 6% -8%, rgba(61, 214, 245, 0.13), transparent 62%),
    radial-gradient(780px 460px at 96% 0%, rgba(215, 255, 63, 0.09), transparent 64%),
    repeating-linear-gradient(90deg, rgba(29, 92, 74, 0.22) 0 40px, rgba(29, 92, 74, 0) 40px 80px);
  background-repeat: no-repeat, no-repeat, repeat;
  background-attachment: fixed, fixed, scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#main-content {
  display: block;
  position: relative;
  z-index: 1;
  scroll-margin-top: var(--header-h);
}

[data-section] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

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

/* ---------- 4. 通用组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--volt);
}

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

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.78;
  color: rgba(244, 255, 248, 0.84);
  max-width: 68ch;
}

.muted { color: var(--muted); }

.prose {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(244, 255, 248, 0.88);
}

.prose h2 {
  margin: 1.9em 0 0.6em;
  font-size: clamp(22px, 3vw, 30px);
}

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: clamp(18px, 2.2vw, 22px);
}

.prose p { margin: 0 0 1.1em; }

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.45em; }

.prose strong { color: var(--volt); font-weight: 700; }

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

.section--turf {
  background: linear-gradient(180deg, rgba(18, 63, 53, 0.62), rgba(18, 63, 53, 0.14));
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section-head__title {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.01em;
}

.section-head__desc {
  color: var(--muted);
  max-width: 62ch;
  font-size: 15.5px;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-10 { grid-column: span 10; }
.col-12 { grid-column: span 12; }

.glass {
  background: var(--glass);
  border: 1px solid rgba(215, 255, 63, 0.16);
  border-radius: var(--r);
  padding: clamp(16px, 2.4vw, 24px);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.card {
  background: var(--turf);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(16px, 2.4vw, 24px);
}

.card--solid { background: #0F352D; }

.card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card__meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.tag--volt { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.tag--blue { background: rgba(61, 214, 245, 0.12); color: var(--blue); border-color: rgba(61, 214, 245, 0.42); }
.tag--red { background: rgba(142, 42, 42, 0.55); color: var(--white); border-color: rgba(142, 42, 42, 0.95); }
.tag--ghost { color: var(--muted); border-color: var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  transition: transform var(--t) ease, background-color var(--t) ease, color var(--t) ease, border-color var(--t) ease, box-shadow var(--t) ease;
}

.btn--volt {
  background: var(--volt);
  color: var(--ink);
}

.btn--volt:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(215, 255, 63, 0.22);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--volt);
  color: var(--volt);
}

.btn--red {
  background: var(--red);
  color: var(--white);
}

.btn--red:hover { transform: translateY(-2px); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs__item::after {
  content: "/";
  margin-left: 8px;
  color: rgba(244, 255, 248, 0.28);
}

.breadcrumbs__item:last-child::after { display: none; }

.breadcrumbs a:hover { color: var(--volt); }

/* 图片容器基础规则：页面阶段放入 <img class="media__img"> */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #1D5C4A 0%, #123F35 46%, #0B2B26 100%);
  isolation: isolate;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg, rgba(29, 92, 74, 0.24) 0 12px, rgba(29, 92, 74, 0) 12px 28px),
    linear-gradient(180deg, rgba(11, 43, 38, 0) 45%, rgba(11, 43, 38, 0.55) 100%);
}

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

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

.media__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(11, 43, 38, 0.82);
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--white);
}

/* 显隐与滚动高亮协议 */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 420ms ease, transform 420ms ease;
  }

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

[data-spy] a {
  color: var(--muted);
  transition: color var(--t) ease;
}

[data-spy] a:hover { color: var(--white); }

[data-spy] a[aria-current="true"] { color: var(--volt); }

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 34, 30, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--volt);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: top var(--t) ease;
}

.skip-link:focus {
  top: 0;
}

.read-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--volt), var(--blue));
  box-shadow: 0 0 12px rgba(215, 255, 63, 0.45);
}

.site-header__top {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 21, 20, 0.5), rgba(11, 43, 38, 0));
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
}

.masthead__issue {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 255, 248, 0.5);
  white-space: nowrap;
}

.masthead__cta {
  justify-self: end;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--volt);
  color: var(--ink);
  font-family: var(--font-score);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 1px rgba(215, 255, 63, 0.45), 0 8px 22px rgba(0, 0, 0, 0.38);
  transition: transform var(--t) ease;
}

.brand:hover .brand__mark { transform: rotate(-4deg); }

.brand__text { display: block; }

.brand__name {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.brand__tag {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  line-height: 1.5;
}

.site-header__navrow {
  background: rgba(7, 27, 24, 0.5);
}

.site-header__navinner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(244, 255, 248, 0.78);
  transition: color var(--t) ease;
}

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

.site-nav__link:hover { color: var(--white); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--volt); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  transition: border-color var(--t) ease, color var(--t) ease;
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--volt);
  transition: transform var(--t) ease, opacity var(--t) ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, #0C2A25 0%, #071A17 100%);
  border-top: 1px solid rgba(215, 255, 63, 0.18);
}

.scarf-band {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--volt) 0 48px,
    #0B2B26 48px 56px,
    var(--blue) 56px 104px,
    #0B2B26 104px 112px,
    var(--red) 112px 160px,
    #0B2B26 160px 168px
  );
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3.5vw, 52px);
  padding-block: clamp(32px, 5vw, 64px);
}

.site-footer__brand .brand {
  justify-self: start;
  margin-bottom: 16px;
}

.site-footer__note {
  max-width: 34ch;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

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

.footer-col__list li { margin-bottom: 2px; }

.footer-col__list a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--muted);
  transition: color var(--t) ease, transform var(--t) ease;
}

.footer-col__list a:hover {
  color: var(--volt);
  transform: translateX(3px);
}

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.footer-contact__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 255, 248, 0.45);
}

.footer-contact__value {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 255, 248, 0.05);
  font-size: 13px;
  color: var(--white);
  transition: border-color var(--t) ease, color var(--t) ease, background-color var(--t) ease;
}

.copy-chip:hover { border-color: var(--volt); color: var(--volt); }

.copy-chip__value { letter-spacing: 0.02em; }

.copy-chip__hint {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.copy-chip[data-state="done"] {
  border-color: var(--volt);
  background: rgba(215, 255, 63, 0.14);
}

.copy-chip[data-state="done"] .copy-chip__hint { color: var(--volt); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 18px 28px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: rgba(244, 255, 248, 0.55);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__links a { transition: color var(--t) ease; }
.site-footer__links a:hover { color: var(--volt); }

.site-footer__hint {
  margin-left: auto;
  max-width: 52ch;
  line-height: 1.7;
}

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1024px) {
  :root { --header-h: 106px; }

  .col-3, .col-4, .col-5, .col-7 { grid-column: span 6; }

  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--contact { grid-column: span 3; }
}

@media (max-width: 980px) {
  .masthead {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-block: 12px;
  }

  .masthead__issue { display: none; }
  .brand { justify-self: start; }

  .site-header__navinner {
    justify-content: flex-start;
    min-height: 56px;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    top: 100%;
    background: rgba(8, 30, 27, 0.98);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45);
    padding-block: 14px 18px;
  }

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

  .site-nav__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-inline: var(--gutter);
  }

  .site-nav__link {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-s);
    text-align: center;
    font-size: 14.5px;
  }

  .site-nav__link::after { display: none; }

  .site-nav__link:hover,
  .site-nav__link[aria-current="page"] {
    border-color: var(--volt);
    background: rgba(215, 255, 63, 0.08);
  }
}

@media (max-width: 720px) {
  :root { --header-h: 104px; }

  .masthead__cta { display: none; }
  .brand__name { font-size: 18px; }
  .brand__tag { font-size: 10.5px; letter-spacing: 0.12em; }
  .brand__mark { width: 38px; height: 38px; border-radius: 10px; font-size: 16px; }

  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-10 { grid-column: span 12; }

  .site-footer__inner { grid-template-columns: 1fr; }
  .footer-col--contact { grid-column: span 1; }

  .site-footer__legal { flex-direction: column; align-items: flex-start; }
  .site-footer__hint { margin-left: 0; max-width: none; }
}

@media (max-width: 420px) {
  .site-nav__list { grid-template-columns: 1fr; }
}

/* ---------- 动效收敛 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
