/* ============================================================
   完美体育看台 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

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

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

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

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

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

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

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

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

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩 */
  --navy: #081826;
  --navy-2: #0F2A3D;
  --steel: #173B52;
  --green: #1E7A4A;
  --acid: #42F58A;
  --orange: #FF6A2A;
  --cool: #A9B8C6;
  --cream: #F3EFE4;
  --ink: #03080D;
  --amber: #FFC24B;

  --line-soft: rgba(169, 184, 198, 0.18);
  --line-strong: rgba(169, 184, 198, 0.42);

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 尺寸 */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --cut: 14px;
  --cut-lg: 20px;
  --cut-sm: 8px;
}

@media (max-width: 1023px) {
  :root { --header-h: 64px; }
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.h1 { font-size: clamp(2.4rem, 6.2vw, 5.2rem); }
.h2 { font-size: clamp(1.55rem, 3.4vw, 2.6rem); }
.h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -0.02em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
}

.prose {
  max-width: 70ch;
  font-size: 1.02rem;
  line-height: 1.8;
}

.prose p + p { margin-top: 1em; }

.prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover { text-decoration-color: var(--orange); }

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

/* ---------- 4. 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  background-color: var(--acid);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transform: translateY(-220%);
  transition: transform 0.16s ease;
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--cream);
  background-color: var(--navy);
  background-image:
    repeating-linear-gradient(115deg, rgba(66, 245, 138, 0.035) 0 1px, transparent 1px 16px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}

/* 品牌块 */
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.brand__mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background-color: var(--green);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.brand__mark::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid var(--acid);
  border-radius: 50%;
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background-color: var(--acid);
  transform: translateX(-50%);
}

.brand__text { display: block; }

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

.brand__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--cool);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: var(--acid);
  box-shadow: 0 0 0 0 rgba(66, 245, 138, 0.55);
  animation: status-pulse 2.6s ease-out infinite;
}

@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(66, 245, 138, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(66, 245, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(66, 245, 138, 0); }
}

/* 栏目导航 */
.site-nav { margin-left: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.3vw, 20px);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 3px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cool);
  transition: color 0.18s ease;
  white-space: nowrap;
}

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

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--cream); }

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

.site-nav__link[aria-current="page"] { color: var(--cream); }

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

/* 头部快捷动作 */
.site-header__tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  background-color: transparent;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

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

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-color: var(--acid);
  border-color: var(--acid);
  color: var(--navy);
}

.btn--solid {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background-color: var(--acid);
  border-color: var(--acid);
  color: var(--navy);
}

/* ---------- 8. 移动导航开关 ---------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-toggle:hover {
  background-color: rgba(66, 245, 138, 0.12);
  border-color: var(--acid);
}

.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--acid);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 5px; }
.nav-toggle__bars i:nth-child(3) { top: 10px; }

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

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

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

.nav-toggle__text { line-height: 1; }

/* ---------- 9. 滚动进度轨 ---------- */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: rgba(169, 184, 198, 0.14);
  overflow: hidden;
}

.scroll-rail__fill {
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(90deg, var(--green) 0%, var(--acid) 68%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- 10. 移动抽屉 ---------- */
@media (max-width: 1023px) {
  .site-header__tools { display: none; }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 6px var(--gutter) 22px;
    background-color: var(--navy);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid rgba(169, 184, 198, 0.24);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list { display: block; }

  .site-nav__item { border-bottom: 1px solid rgba(169, 184, 198, 0.12); }
  .site-nav__item:last-child { border-bottom: 0; }

  .site-nav__link {
    position: relative;
    display: block;
    padding: 15px 4px 15px 14px;
    font-size: 16px;
    letter-spacing: 0.02em;
  }

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

  .site-nav__link[aria-current="page"] { color: var(--orange); }

  .site-nav__link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 18px;
    margin-top: -9px;
    background-color: var(--orange);
  }

  body.has-nav-open { overflow: hidden; }
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  color: var(--cool);
  background-color: var(--navy-2);
  border-top: 2px solid var(--green);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, rgba(66, 245, 138, 0.5) 0 22px, transparent 22px 46px);
  opacity: 0.4;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(24px, 3vw, 40px);
}

.site-footer__brand { max-width: 34ch; }

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--cream);
}

.site-footer__tagline {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--cool);
}

.site-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--acid);
  border: 1px solid rgba(66, 245, 138, 0.32);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

.footer-col__title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--cream);
}

.footer-col__list {
  display: grid;
  gap: 10px;
}

.footer-col__link {
  position: relative;
  display: inline-block;
  padding-left: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cool);
  transition: color 0.16s ease, padding-left 0.16s ease;
}

.footer-col__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background-color: var(--acid);
  transition: width 0.16s ease;
}

.footer-col__link:hover,
.footer-col__link:focus-visible {
  color: var(--acid);
  padding-left: 14px;
}

.footer-col__link:hover::before,
.footer-col__link:focus-visible::before { width: 9px; }

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 40px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(20px, 3vw, 28px) var(--gutter) clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  font-size: 13px;
}

.footer-contact__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(169, 184, 198, 0.7);
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.footer-contact__value--text {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.footer-legal {
  text-align: right;
  max-width: 46ch;
}

.footer-legal__line {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(169, 184, 198, 0.85);
}

.footer-note {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(169, 184, 198, 0.6);
}

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

@media (max-width: 620px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__meta { flex-direction: column; }
  .footer-legal { text-align: left; }
}

/* ---------- 12. 容器与分区 ---------- */
#main-content { display: block; scroll-margin-top: calc(var(--header-h) + 16px); }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 880px; }

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

.section[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.section--dark {
  background-color: var(--navy);
  color: var(--cream);
}

.section--steel {
  background-color: var(--steel);
  color: var(--cream);
}

.section--cream {
  background-color: var(--cream);
  color: var(--navy);
}

.section--alt {
  background-color: #E7E2D4;
  color: var(--navy);
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.62;
  color: inherit;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  opacity: 0.55;
}

.breadcrumb__item:last-child { opacity: 1; }

.breadcrumb__link {
  color: inherit;
  transition: color 0.16s ease, opacity 0.16s ease;
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--orange);
  opacity: 1;
}

/* ---------- 14. 筛选标签 ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid currentColor;
  background-color: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  opacity: 0.62;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  transition: opacity 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chip:hover,
.chip:focus-visible { opacity: 1; }

.chip[aria-pressed="true"],
.chip.is-active {
  opacity: 1;
  background-color: var(--acid);
  border-color: var(--acid);
  color: var(--navy);
}

/* ---------- 15. 面板 ---------- */
.panel {
  padding: clamp(18px, 2.6vw, 28px);
  background-color: var(--steel);
  color: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.panel--cream {
  background-color: var(--cream);
  color: var(--navy);
}

.panel--outline {
  background-color: transparent;
  border: 1px solid rgba(169, 184, 198, 0.35);
}

/* ---------- 16. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--steel);
  background-image:
    repeating-linear-gradient(90deg, rgba(66, 245, 138, 0.14) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(66, 245, 138, 0.1) 0 1px, transparent 1px 56px),
    linear-gradient(160deg, #0F2A3D 0%, #173B52 58%, #081826 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

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

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

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--cream);
  background-image: linear-gradient(to top, rgba(3, 8, 13, 0.88), rgba(3, 8, 13, 0));
}

/* ---------- 17. 显现动效 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.has-js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 18. 减少动效 ---------- */
@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;
  }

  .status-dot { animation: none; }

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

  .site-nav,
  .skip-link { transition: none; }
}
