/* 贝博体育赛事 · 共享站点样式 /assets/site.css */

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

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

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

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

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

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

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

:focus-visible {
  outline: 2px solid #4FF0D0;
  outline-offset: 3px;
}

/* 2. 变量 */
:root {
  --ink-900: #061A15;
  --ink-800: #0B2A22;
  --moss: #3F6B5B;
  --cyan: #4FF0D0;
  --amber: #FFB454;
  --violet: #24152F;
  --stone: #8C968F;
  --bone: #F2EBDD;
  --clay: #C97B5A;
  --steel: #A8B5AD;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Consolas, "Courier New", monospace;

  --radius-panel: 30px 12px 30px 12px;
  --radius-md: 16px;
  --pill: 999px;

  --wrap: 1280px;
  --gutter: clamp(14px, 3.4vw, 44px);
  --header-z: 100;
  --nav-z: 90;
}

/* 3. 基础排版与夜场背景 */
body {
  min-height: 100vh;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  background:
    radial-gradient(1180px 620px at 6% -12%, rgba(63, 107, 91, 0.30), transparent 62%),
    radial-gradient(900px 540px at 98% 2%, rgba(36, 21, 47, 0.92), transparent 66%),
    var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.nav-open,
html.nav-open body { overflow: hidden; }

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

.visually-hidden {
  position: absolute;
  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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 300;
  transform: translate(-50%, -180%);
  padding: 10px 22px;
  border-radius: var(--pill);
  background: var(--cyan);
  color: #04140f;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: transform 0.22s ease;
}

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

/* 5. 头部 */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  padding: 14px var(--gutter) 0;
  background: linear-gradient(180deg, rgba(6, 26, 21, 0.97) 0%, rgba(6, 26, 21, 0.82) 62%, rgba(6, 26, 21, 0) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

body.is-scrolled .site-header { box-shadow: 0 26px 44px -36px rgba(0, 0, 0, 0.95); }

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(63, 107, 91, 0.32);
  overflow: hidden;
}

.header-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 0.12s linear;
}

.header-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-bottom: 14px;
}

/* 品牌浮岛 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 8px 20px 8px 10px;
  border-radius: var(--pill);
  background: linear-gradient(135deg, rgba(11, 42, 34, 0.96), rgba(36, 21, 47, 0.86));
  border: 1px solid rgba(79, 240, 208, 0.16);
  box-shadow: 0 16px 32px -26px #000;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.brand:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 240, 208, 0.48);
  box-shadow: 0 20px 36px -26px rgba(79, 240, 208, 0.5);
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px 4px 11px 4px;
  background: linear-gradient(150deg, var(--cyan), var(--moss) 58%, var(--violet));
  overflow: hidden;
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px solid rgba(6, 26, 21, 0.72);
  border-radius: 7px 2px 7px 2px;
}

.brand__mark-core {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ink-900);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.25;
  color: var(--bone);
}

.brand__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: var(--steel);
  transition: opacity 0.3s ease;
}

body.is-scrolled .brand__tag { opacity: 0.5; }

/* 导航浮岛 */
.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 5px;
  border-radius: var(--pill);
  background: rgba(11, 42, 34, 0.72);
  border: 1px solid rgba(140, 150, 143, 0.16);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__list a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--pill);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--steel);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-nav__list a:hover {
  color: var(--bone);
  background: rgba(79, 240, 208, 0.10);
  box-shadow: inset 0 0 0 1px rgba(79, 240, 208, 0.35);
}

.site-nav__list a[aria-current="page"] {
  color: #04140f;
  font-weight: 700;
  background: linear-gradient(120deg, var(--cyan), #6EF5DD);
}

.site-nav__actions { display: none; }

.site-nav__meta {
  display: none;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(63, 107, 91, 0.42);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.site-nav__meta p { margin-top: 6px; }

/* 行动浮岛 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: var(--pill);
  background: rgba(11, 42, 34, 0.92);
  border: 1px solid rgba(79, 240, 208, 0.32);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(79, 240, 208, 0.7);
  box-shadow: 0 0 0 1px rgba(79, 240, 208, 0.45);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}

.nav-toggle__bars span:nth-child(2) { width: 70%; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) 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(-5px) rotate(-45deg); }

/* 6. 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn--solid {
  background: linear-gradient(120deg, var(--amber), #FFD49B);
  color: #22150A;
  box-shadow: 0 12px 26px -18px rgba(255, 180, 84, 0.95);
}

.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -18px rgba(255, 180, 84, 1);
}

.btn--ghost {
  color: var(--cyan);
  background: rgba(79, 240, 208, 0.07);
  border-color: rgba(79, 240, 208, 0.42);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(79, 240, 208, 0.15);
  box-shadow: 0 0 0 1px rgba(79, 240, 208, 0.6), 0 18px 32px -24px rgba(79, 240, 208, 0.85);
}

.btn--quiet {
  color: var(--steel);
  border-color: rgba(140, 150, 143, 0.3);
}

.btn--quiet:hover {
  color: var(--bone);
  border-color: rgba(79, 240, 208, 0.45);
  transform: translateY(-2px);
}

/* 7. 章节与内容积木 */
.section { padding-block: clamp(38px, 6vw, 84px); }
.section--tight { padding-block: clamp(22px, 3.4vw, 46px); }

.display {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 48px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.16;
  color: var(--bone);
}

.heading {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--bone);
}

.index-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(79, 240, 208, 0.55), rgba(63, 107, 91, 0.18) 44%, transparent);
}

.panel {
  position: relative;
  padding: clamp(20px, 2.8vw, 34px);
  border-radius: var(--radius-panel);
  border: 1px solid rgba(63, 107, 91, 0.42);
  background: linear-gradient(150deg, rgba(11, 42, 34, 0.94), rgba(11, 42, 34, 0.68));
  overflow: hidden;
}

.panel--violet {
  border-color: rgba(201, 123, 90, 0.28);
  background: linear-gradient(150deg, rgba(36, 21, 47, 0.95), rgba(11, 42, 34, 0.72));
}

.panel--shear {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

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

.stat { display: block; }

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--cyan);
}

.stat__unit {
  font-size: 0.4em;
  color: var(--steel);
  margin-left: 4px;
}

.stat__label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(79, 240, 208, 0.1);
  border: 1px solid rgba(79, 240, 208, 0.3);
}

.tag--amber {
  color: var(--amber);
  background: rgba(255, 180, 84, 0.1);
  border-color: rgba(255, 180, 84, 0.34);
}

.tag--clay {
  color: var(--clay);
  background: rgba(201, 123, 90, 0.12);
  border-color: rgba(201, 123, 90, 0.34);
}

.prose {
  max-width: 64ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--steel);
}

.prose p + p { margin-top: 1em; }
.prose strong { color: var(--bone); font-weight: 700; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(79, 240, 208, 0.45); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--stone);
}

.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: var(--moss); }

/* 8. 图片容器基础规则 */
.figure-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(79, 240, 208, 0.14);
  background: linear-gradient(150deg, #0B2A22, #24152F 78%);
}

.figure-frame img,
.figure-frame picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06) brightness(0.94);
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 26, 21, 0) 42%, rgba(6, 26, 21, 0.76) 100%);
}

.figure-frame__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(168, 181, 173, 0.6);
  background: repeating-linear-gradient(135deg, rgba(63, 107, 91, 0.22) 0 12px, transparent 12px 24px);
}

.figure-frame__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--bone);
}

.figure-frame--wide { aspect-ratio: 16 / 9; }
.figure-frame--photo { aspect-ratio: 4 / 3; }
.figure-frame--tall { aspect-ratio: 3 / 4; }
.figure-frame--square { aspect-ratio: 1 / 1; }

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

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

/* 10. 页脚记分牌 */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding: 0 var(--gutter) 24px;
  background: linear-gradient(180deg, rgba(6, 26, 21, 0) 0%, rgba(36, 21, 47, 0.62) 20%, var(--violet) 62%, #170E20 100%);
}

.footer-scoreboard {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(26px, 4vw, 48px) clamp(20px, 3.4vw, 46px) 0;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(79, 240, 208, 0.14);
  background: linear-gradient(150deg, rgba(11, 42, 34, 0.97), rgba(36, 21, 47, 0.97) 62%, rgba(23, 14, 32, 0.99));
  box-shadow: 0 44px 88px -56px #000, inset 0 1px 0 rgba(242, 235, 221, 0.05);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(96px, 0.85fr)) minmax(220px, 1.35fr);
  gap: clamp(22px, 2.6vw, 42px);
  align-items: start;
}

.footer-brand { display: block; }

.brand--footer {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.brand--footer:hover {
  transform: none;
  border: 0;
  box-shadow: none;
}

.footer-statement {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--steel);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.footer-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(79, 240, 208, 0.16);
}

.footer-heading {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}

.footer-link-list { display: grid; gap: 9px; }

.footer-link-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--steel);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link-list a:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer-contact { display: block; }

.footer-address {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--bone);
}

.footer-contact__row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-contact__key {
  flex: 0 0 34px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--stone);
  padding-top: 3px;
}

.footer-contact__value {
  color: var(--bone);
  word-break: break-all;
}

.footer-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--stone);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(24px, 3.4vw, 42px);
  padding: 18px 0 20px;
  border-top: 1px solid rgba(79, 240, 208, 0.14);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--stone);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal__links a { color: var(--steel); }
.footer-legal__links a:hover { color: var(--cyan); }

.footer-icp { color: var(--moss); }

/* 11. 响应式 */
@media (max-width: 1240px) {
  .header-actions__secondary { display: none; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-actions__primary,
  .header-actions__secondary { display: none; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: var(--nav-z);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: clamp(88px, 15vh, 128px) clamp(18px, 6vw, 52px) 44px;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    background:
      radial-gradient(700px 420px at 88% 0%, rgba(79, 240, 208, 0.16), transparent 62%),
      linear-gradient(160deg, rgba(6, 26, 21, 0.99), rgba(36, 21, 47, 0.99));
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list a {
    padding: 16px 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(63, 107, 91, 0.38);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--bone);
  }

  .site-nav__list a[aria-current="page"] {
    padding-left: 16px;
    color: var(--cyan);
    background: linear-gradient(90deg, rgba(79, 240, 208, 0.18), transparent);
    box-shadow: inset 3px 0 0 var(--cyan);
  }

  .site-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
  }

  .site-nav__actions .btn { width: 100%; }

  .site-nav__meta { display: block; }

  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .grid--5-7,
  .grid--4-8,
  .grid--3 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .header-rail { gap: 8px; }
  .brand { padding: 7px 14px 7px 8px; gap: 9px; }
  .brand__mark { width: 30px; height: 30px; flex-basis: 30px; }
  .brand__name { font-size: 14px; letter-spacing: 0.06em; }
  .brand__tag { font-size: 9px; letter-spacing: 0.02em; }
  .nav-toggle { padding: 8px 13px; font-size: 10px; }
  .nav-toggle__label { display: none; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* 12. 降低动效 */
@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;
    transition: none !important;
  }

  .header-progress__bar { transition: none; }
  .footer-link-list a:hover { transform: none; }
}
