/* ==========================================================================
   杏彩体育 · 夜场数据指挥台 —— 共享站点样式 /assets/site.css
   ========================================================================== */

:root {
  --ink: #07131A;
  --field: #0E2B26;
  --indigo: #1B2450;
  --orange: #FF6B1A;
  --orange-deep: #C94A0A;
  --cyan: #32E6D6;
  --cream: #F4EEDF;
  --sand: #A9B6B4;
  --wine: #7A1F2B;
  --steel: #26434A;

  --font-display: "Noto Sans SC", "HarmonyOS Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1320px;
  --radius: 3px;
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.55);
  --edge: 2px solid var(--steel);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: var(--orange);
  color: #07131A;
}

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

/* ---------- 中文排版与标题层级 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin-bottom: 0.6em;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.3; }
h4 { font-size: 1.02rem; letter-spacing: 0.02em; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- 容器与分区底色 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(3rem, 6vw, 6rem); }

.zone-ink { background: var(--ink); }
.zone-field { background: var(--field); }
.zone-indigo { background: var(--indigo); }

.rule-band {
  height: 10px;
  background: linear-gradient(90deg, var(--orange) 0 38%, var(--orange-deep) 38% 58%, var(--steel) 58% 100%);
}

/* ---------- 通用小元素 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--cyan);
  flex: none;
}

.coord {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sand);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 2px solid var(--steel);
  border-radius: 2px;
  background: rgba(7, 19, 26, 0.55);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cream);
  white-space: nowrap;
}
.tag--orange { border-color: var(--orange); color: var(--orange); }
.tag--cyan { border-color: var(--cyan); color: var(--cyan); }
.tag--wine { border-color: #A6323F; color: #EDB3B9; background: rgba(122, 31, 43, 0.4); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.16s ease, color 0.16s ease,
              border-color 0.16s ease, box-shadow 0.16s ease;
}
.btn--primary {
  background: var(--orange);
  color: #08131A;
  border-color: var(--orange-deep);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}
.btn--primary:hover {
  background: var(--orange-deep);
  color: var(--cream);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--steel);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 999;
  padding: 0.7rem 1.1rem;
  background: var(--cyan);
  color: #07131A;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transition: top 0.16s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(7, 19, 26, 0.99), rgba(9, 24, 32, 0.96));
  border-bottom: 2px solid var(--steel);
  backdrop-filter: blur(8px);
}

.site-header__scan {
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0 46%, var(--cyan) 46% 100%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.72rem;
}

.site-header__rail {
  height: 6px;
  border-top: 1px solid rgba(38, 67, 74, 0.85);
  background-image: repeating-linear-gradient(90deg, var(--steel) 0 2px, transparent 2px 24px);
  background-position: left center;
}

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  display: block;
  width: 0;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(50, 230, 214, 0.65);
  transition: width 0.12s linear;
}

/* ---------- 品牌块 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: var(--cream);
  flex: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  background: var(--orange);
  color: #07131A;
  font-weight: 900;
  font-size: 1.28rem;
  line-height: 1;
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 80% 100%, 0 100%);
  box-shadow: 4px 4px 0 rgba(38, 67, 74, 0.9);
}
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--sand);
  line-height: 1.4;
  white-space: nowrap;
}
.brand:hover .brand__mark {
  background: var(--cyan);
}

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: transparent;
  border: 2px solid var(--steel);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.nav-toggle:hover { border-color: var(--orange); color: var(--orange); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 导航 ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
  padding: 0.5rem 0.62rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  color: var(--cream);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sand);
  transition: color 0.15s ease;
}
.site-nav__label { white-space: nowrap; }
.site-nav__link:hover {
  background: var(--field);
  border-color: var(--steel);
}
.site-nav__link:hover .site-nav__idx { color: var(--orange); }
.site-nav__link[aria-current="page"] {
  background: var(--orange);
  border-color: var(--orange-deep);
  color: #08131A;
}
.site-nav__link[aria-current="page"] .site-nav__idx {
  color: #08131A;
  opacity: 0.68;
}
.site-nav__cta { flex: none; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  background: var(--field);
  color: var(--cream);
  border-top: 2px solid var(--steel);
}
.site-footer__band {
  height: 12px;
  background: linear-gradient(
    90deg,
    var(--orange) 0 24%,
    var(--wine) 24% 36%,
    var(--indigo) 36% 64%,
    var(--field) 64% 76%,
    var(--cyan) 76% 100%
  );
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: 3.2rem 2.6rem;
}

.footer-brand__line {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding-left: 0.75rem;
  border-left: 4px solid var(--orange);
  margin-bottom: 0.8rem;
}
.footer-brand__desc {
  max-width: 34ch;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--sand);
  margin-bottom: 1.3rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 0.85rem;
}
.footer-col__list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.footer-col__list a {
  display: inline-block;
  color: var(--cream);
  font-size: 0.94rem;
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-col__list a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.footer-contact {
  padding-left: 1.1rem;
  border-left: 2px solid var(--steel);
}
.footer-contact__list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.footer-contact__list li { display: grid; gap: 1px; }
.footer-contact__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--sand);
}
.footer-contact__v {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--cream);
  word-break: break-word;
}
.footer-contact__note {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--sand);
  padding-left: 0.7rem;
  border-left: 2px solid var(--steel);
}

.site-footer__base {
  background: var(--ink);
  border-top: 2px solid var(--steel);
}
.site-footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  padding-block: 1.15rem;
  font-size: 0.82rem;
  color: var(--sand);
}
.site-footer__base-inner p { margin: 0; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  list-style: none;
}
.site-footer__legal a {
  color: var(--cream);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--steel);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-footer__legal a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.site-footer__icp {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   页面通用内容组件
   ========================================================================== */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 1.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--sand);
}
.crumb__link {
  color: var(--sand);
  text-decoration: none;
  transition: color 0.15s ease;
}
.crumb__link:hover { color: var(--cyan); }
.crumb__sep { color: var(--steel); }
.crumb__current { color: var(--cream); }

.prose {
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #DED9CB;
}
.prose h2, .prose h3 {
  color: var(--cream);
  margin-top: 1.9em;
  margin-bottom: 0.55em;
}
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.42em; }
.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(50, 230, 214, 0.5);
}
.prose a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.prose strong { color: var(--cream); }

.data-table {
  width: 100%;
  font-size: 0.92rem;
  border-top: 2px solid var(--steel);
}
.data-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--sand);
}
.data-table th,
.data-table td {
  padding: 0.62rem 0.72rem;
  text-align: left;
  border-bottom: 1px solid var(--steel);
}
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border-bottom: 2px solid var(--steel);
  white-space: nowrap;
}
.data-table tbody tr:hover { background: rgba(38, 67, 74, 0.35); }
.data-table td.num,
.data-table th.num {
  font-family: var(--font-mono);
  text-align: right;
  color: var(--cream);
}

/* ---------- 可复用图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: var(--edge);
  border-radius: 4px;
  background: var(--field);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-hard);
}
.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.05);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(50, 230, 214, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 230, 214, 0.1) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.75;
}
.media-frame__label {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.34rem 0.62rem;
  background: var(--orange);
  color: #08131A;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* ---------- 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .site-nav { gap: 0.7rem; }
  .site-nav__link { padding: 0.46rem 0.5rem; font-size: 0.9rem; }
  .site-nav__idx { font-size: 9px; }
}

@media (max-width: 1080px) {
  .site-header { position: sticky; }
  .site-header[data-enhanced="true"] .nav-toggle { display: inline-flex; }

  .site-header[data-enhanced="true"] .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 4;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-height: 78vh;
    overflow-y: auto;
    padding: 1rem 24px 1.5rem;
    background: var(--ink);
    border-bottom: 2px solid var(--orange);
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.6);
  }
  .site-header[data-enhanced="true"][data-open="true"] .site-nav { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .site-nav__link {
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    background: var(--field);
    border-color: var(--steel);
    font-size: 0.95rem;
  }
  .site-nav__link[aria-current="page"] { border-color: var(--orange-deep); }
  .site-nav__cta { align-self: stretch; }

  .brand__tag { display: none; }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__desc { max-width: 52ch; }
  .footer-contact { border-left: 0; padding-left: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }

  .site-header__inner { padding-block: 0.6rem; gap: 0.8rem; }
  .brand__mark { width: 40px; height: 40px; font-size: 1.1rem; }
  .brand__name { font-size: 1rem; }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.9rem;
    padding-block: 2.4rem 2rem;
  }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
  .site-footer__base-inner { justify-content: flex-start; }
  .site-footer__icp { width: 100%; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle__label { display: none; }
}

/* ---------- 减弱动效 ---------- */
@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;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn--primary:hover { transform: none; }
}
