/* =========================================================
   华体会体育 · 共享样式表 /assets/site.css
   夜间球场战术板视觉系统
   ========================================================= */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body { margin: 0; }

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

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

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

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

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B1A15;
  --pitch: #123027;
  --turf: #1D4B3C;
  --cyan: #3BF0C4;
  --cyan-dim: #1E8C77;
  --flame: #FF5A2B;
  --amber: #FFB27A;
  --paper: #F2EDE3;
  --paper-dim: #D9D2C4;
  --mist: #7E9590;
  --white: #F7FBF9;

  --line-soft: rgba(30, 140, 119, 0.30);
  --line-mid: rgba(30, 140, 119, 0.22);
  --line-strong: rgba(30, 140, 119, 0.55);
  --line-cyan: rgba(59, 240, 196, 0.45);

  --wrap: 1240px;
  --gutter: clamp(16px, 4.2vw, 44px);

  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-num: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ---------- 3. Base ---------- */
body {
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(118deg, rgba(59, 240, 196, 0.05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(118deg, rgba(59, 240, 196, 0.028) 0 1px, transparent 1px 18px);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-cn);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

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

/* ---------- 4. 排版 ---------- */
.t-display {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.028em;
}

.t-title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.t-sub {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.t-body {
  margin: 0;
  color: #C7D6D1;
  font-size: 17px;
  line-height: 1.75;
}

.t-note {
  margin: 0;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.01em;
}

.num--big {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
}

.num--flame { color: var(--flame); }
.num--cyan { color: var(--cyan); }

.accent { color: var(--cyan); }
.accent-flame { color: var(--flame); }

.vlabel {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--mist);
}

.vlabel--cyan { color: var(--cyan); }

.figure-caption {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

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

.section { padding-block: clamp(44px, 6vw, 88px); }
.section--tight { padding-block: clamp(26px, 3.6vw, 52px); }

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

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--3-7,
  .grid--4-6 { grid-template-columns: minmax(0, 1fr); }
}

.rail-sticky {
  position: sticky;
  top: 138px;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn--primary {
  background: transparent;
  border-color: var(--flame);
  color: var(--flame);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--flame);
  border-color: var(--flame);
  color: #170701;
}

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

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cyan);
  background: rgba(59, 240, 196, 0.1);
  color: var(--cyan);
}

.btn--sm {
  padding: 7px 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* ---------- 7. 面板 / 标签 / 分隔 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.3vw, 26px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(29, 75, 60, 0.34), rgba(18, 48, 39, 0.92));
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, 0.95);
  transition: border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.panel:hover {
  border-color: var(--line-cyan);
  transform: translateY(-2px);
}

.panel--paper {
  background: var(--paper);
  border-color: var(--paper-dim);
  color: #1B2A24;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 26px 44px -36px rgba(0, 0, 0, 0.8);
}

.panel--paper .t-body,
.panel--paper p { color: #3C4F48; }

.panel--paper .t-note,
.panel--paper .figure-caption { color: #6B7D76; }

.panel--plain {
  background: transparent;
  box-shadow: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--mist);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.tag--live {
  border-color: rgba(255, 90, 43, 0.5);
  color: var(--flame);
}

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

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(59, 240, 196, 0.5), rgba(30, 140, 119, 0.15) 46%, transparent);
}

/* ---------- 8. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(59, 240, 196, 0.07), transparent 62%), var(--pitch);
}

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

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 240, 196, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 240, 196, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(11, 26, 21, 0.16) 0 1px,
    transparent 1px 3px
  );
}

.media-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

/* ---------- 9. 面包屑 / 页面目录 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.crumb { display: inline-flex; align-items: center; gap: 8px; }

.crumb + .crumb::before {
  content: "/";
  color: rgba(126, 149, 144, 0.55);
}

.crumb a {
  text-decoration: none;
  color: var(--mist);
  transition: color 0.22s var(--ease);
}

.crumb a:hover { color: var(--cyan); }

.crumb--current { color: var(--white); }

.toc-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

.toc-link::before {
  content: "";
  width: 14px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: 0.6;
  transition: width 0.28s var(--ease), background-color 0.22s var(--ease);
}

.toc-link:hover { color: var(--cyan); }

.toc-link[aria-current="true"] {
  color: var(--flame);
}

.toc-link[aria-current="true"]::before {
  width: 26px;
  background: var(--flame);
  opacity: 1;
}

/* ---------- 10. 顶部跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0;
  background: var(--flame);
  color: #170701;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

/* ---------- 11. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(11, 26, 21, 0.98), rgba(11, 26, 21, 0.92));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header-brandrow {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  border-bottom: 1px solid var(--line-mid);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(59, 240, 196, 0.08);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--flame);
  transition: transform 0.3s var(--ease);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  border-color: var(--flame);
  box-shadow: 0 0 0 4px rgba(255, 90, 43, 0.12);
}

.brand:hover .brand-mark::before {
  transform: scale(1.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--white);
}

.brand-tagline {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.season-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 11px;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.header-utility {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.icp-chip {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
  white-space: nowrap;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

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

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.28s var(--ease), top 0.28s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.nav-list--right { margin-left: auto; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 11px;
  color: #CFDCD8;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.22s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease), background-color 0.22s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--cyan); }

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

.nav-link[aria-current="page"] { color: var(--flame); }

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--flame);
}

/* 比分带 */
.score-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--line-mid);
  overflow: hidden;
}

.rail-tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid var(--line-cyan);
  border-radius: 2px;
  color: var(--cyan);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
}

.rail-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 24px), transparent 100%);
}

.rail-viewport::-webkit-scrollbar { display: none; }

.rail-viewport.is-dragging { cursor: grabbing; }

.rail-track {
  display: flex;
  gap: 26px;
  padding: 0 26px 0 4px;
  white-space: nowrap;
}

.rail-item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12.5px;
  color: var(--mist);
}

.rail-team { letter-spacing: 0.04em; }

.rail-score {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--flame);
}

/* 滚动进度条 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: 2px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 12. 页头响应式 ---------- */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 18px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-nav[data-open="true"] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
  }

  .nav-link {
    padding: 13px 2px 13px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(30, 140, 119, 0.18);
  }

  .nav-link::after { display: none; }

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

  .score-rail {
    display: flex;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-mid);
  }
}

@media (max-width: 1023px) {
  .season-chip { display: none; }
}

@media (max-width: 640px) {
  .icp-chip { display: none; }
  .brand-tagline { letter-spacing: 0.12em; }
  .header-brandrow { min-height: 60px; }
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background: var(--pitch);
  color: var(--white);
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter) 26px;
}

.footer-rule {
  height: 7px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid rgba(30, 140, 119, 0.45);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(59, 240, 196, 0.55) 0 1px,
    transparent 1px 20px
  );
  opacity: 0.75;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) minmax(0, 2fr);
  gap: clamp(28px, 3.6vw, 52px);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-note {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.footer-title::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 1px;
  background: var(--flame);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  position: relative;
  display: inline-block;
  width: fit-content;
  font-size: 14.5px;
  color: #BFCFCA;
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible { color: var(--cyan); }

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

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(30, 140, 119, 0.28);
  font-size: 13.5px;
  color: var(--mist);
}

.footer-contact strong {
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(126, 149, 144, 0.85);
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}

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

/* ---------- 14. 显现动效 ---------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

/* ---------- 15. 降级 ---------- */
@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;
  }

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

  .panel:hover,
  .brand:hover .brand-mark::before {
    transform: none;
  }
}
