/* ========================================
   百博体育OIS Site Kit 共享样式
   文件：/assets/site.css
   设计语汇：夜场赛事数据台 · 非对称编辑部版式
   ======================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 色彩体系 */
  --navy: #0B1E3A;
  --navy-light: #1A2D5A;
  --navy-glass: rgba(11, 30, 58, 0.78);
  --gold: #FFD700;
  --gold-deep: #FFC700;
  --orange: #FF6B35;
  --orange-deep: #F25A24;
  --bg-mist: #F4F6FA;
  --white: #FFFFFF;
  --ink: #1E293B;
  --muted: #64748B;
  --line-light: rgba(11, 30, 58, 0.10);
  --line-dark: rgba(255, 255, 255, 0.10);

  /* 字体体系 */
  --font-disp: "Oswald", "DIN Condensed", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SF Mono", "Menlo", "Consolas", monospace;

  /* 布局 */
  --header-h: 84px;
  --header-h-scroll: 64px;
  --container-w: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 16px;

  /* 动效 */
  --t-fast: 200ms;
  --t-base: 300ms;
  --t-slow: 400ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset 与基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-mist);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-disp);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

p {
  max-width: 70ch;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--t-fast) var(--ease);
}

a:hover {
  color: var(--orange);
}

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

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

hr {
  border: 0;
  height: 1px;
  background: var(--line-light);
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. 可访问性与工具 ---------- */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  transform: translateY(-250%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease);
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  z-index: 1500;
  pointer-events: none;
  will-change: width;
}

/* ---------- 4. 内容容器 ---------- */
.site-header__inner,
.site-footer__inner,
.site-footer__bottom-inner,
.container {
  width: min(100% - 2 * var(--gutter), var(--container-w));
  margin-inline: auto;
}

/* ---------- 5. 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(11, 30, 58, 0.72) 0%, rgba(11, 30, 58, 0.28) 60%, rgba(11, 30, 58, 0) 100%);
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 30, 58, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 6px 24px rgba(8, 22, 44, 0.22);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: height var(--t-base) var(--ease);
}

.site-header.is-scrolled .site-header__inner {
  height: var(--header-h-scroll);
}

/* 品牌标识 */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand:hover {
  color: var(--white);
}

.site-brand__mark {
  width: 38px;
  height: 38px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 10px 10px 3px;
  transform: skewX(-6deg);
  line-height: 1;
  flex-shrink: 0;
}

.site-brand__text {
  font-family: var(--font-disp);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  line-height: 1.2;
}

.site-brand__ver {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-s);
  padding: 0.125rem 0.375rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  align-self: flex-start;
  margin-top: 0.25rem;
  white-space: nowrap;
}

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

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  position: relative;
  transition: color var(--t-fast) var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.125rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-fast) var(--ease);
}

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

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

/* 页头 CTA */
.site-header__cta {
  flex-shrink: 0;
  font-size: 0.8125rem;
  padding: 0.5rem 0.9375rem;
  white-space: nowrap;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 30, 58, 0.35);
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

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

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

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

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(900px 360px at 88% -10%, rgba(255, 215, 0, 0.07), transparent 60%),
    radial-gradient(700px 300px at 10% 110%, rgba(255, 107, 53, 0.05), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, #081528 100%);
  color: rgba(255, 255, 255, 0.82);
  margin-top: auto;
}

.site-footer__topline {
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--orange) 32%, transparent 72%);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 0.9fr 1.5fr;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 2.75rem;
}

.site-footer__brand .site-brand {
  color: var(--white);
  margin-bottom: 1rem;
}

.site-brand--footer {
  color: var(--white);
}

.site-brand--footer:hover {
  color: var(--white);
}

.site-footer__slogan {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
  max-width: 34ch;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.site-footer__heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.site-footer__list li + li {
  margin-top: 0.5rem;
}

.site-footer__list a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.site-footer__list a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.site-footer__contact {
  color: rgba(255, 255, 255, 0.82);
}

.spec-sheet {
  display: grid;
  gap: 0.625rem;
}

.spec-row {
  display: grid;
  grid-template-columns: 3.5em 1fr;
  gap: 0.625rem;
  font-size: 0.8125rem;
}

.spec-row__key {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 0.1875rem;
}

.spec-row__val {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  border-top: 1px solid var(--line-dark);
  background: rgba(4, 12, 26, 0.35);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem 1.25rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 7. 按钮系统 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.btn--gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--navy);
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.35);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

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

.btn--orange:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(255, 107, 53, 0.3);
  transform: translateY(-1px);
}

/* ---------- 8. 面包屑 ---------- */
.crumb {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.875rem 0;
}

.crumb__list {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.crumb__item + .crumb__item::before {
  content: "▶";
  font-size: 0.625rem;
  color: var(--gold);
  margin-right: 0.375rem;
}

.crumb__sep {
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0 0.125rem;
}

.crumb__item a {
  color: var(--muted);
  text-decoration: none;
}

.crumb__item a:hover {
  color: var(--navy);
}

.crumb__item[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- 9. 区块标题 ---------- */
.section-title {
  margin-bottom: 1.5rem;
}

.section-title__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 0.25rem;
}

.section-title__main {
  font-family: var(--font-disp);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  text-transform: uppercase;
}

.section-title--light .section-title__main {
  color: var(--white);
}

.section-title--light .section-title__label {
  color: var(--gold);
}

/* ---------- 10. 标签与数据组件 ---------- */
.tag-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 0.1875rem 0.5625rem;
  line-height: 1.5;
}

.tag-pill--gold {
  border-color: var(--gold);
  color: var(--gold);
}

.tag-pill--navy {
  border-color: rgba(11, 30, 58, 0.15);
  color: var(--navy);
}

.tag-pill--orange {
  border-color: var(--orange);
  color: var(--orange);
}

.data-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-m);
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 10px rgba(11, 30, 58, 0.05);
}

.data-chip__label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.data-chip__value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.card-plate {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-m);
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(11, 30, 58, 0.10);
}

.skew-accent {
  display: inline-block;
  background: linear-gradient(100deg, var(--gold), #FFE65C);
  color: var(--navy);
  font-family: var(--font-disp);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3125rem 0.8125rem;
  border-radius: 2px;
  transform: skewX(-10deg);
}

.skew-accent > span {
  display: inline-block;
  transform: skewX(10deg);
}

/* ---------- 11. 首屏与拼贴布局 ---------- */
.hero-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #284076 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-stack::before {
  content: "";
  position: absolute;
  top: 12%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.hero-stack::after {
  content: "";
  position: absolute;
  left: -6%;
  bottom: -12%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.14) 0%, transparent 62%);
  pointer-events: none;
}

.collage-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  grid-auto-rows: minmax(170px, auto);
  gap: 1.125rem;
  align-items: stretch;
}

/* ---------- 12. 图片占位容器 ---------- */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  background: linear-gradient(135deg, rgba(11, 30, 58, 0.06), rgba(100, 116, 139, 0.16));
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid rgba(11, 30, 58, 0.06);
}

.img-frame::after {
  content: "视觉占位 · IMG";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(11, 30, 58, 0.02) 8px, rgba(11, 30, 58, 0.02) 16px);
}

.img-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame:has(> img)::after {
  display: none;
}

.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--3x4 { aspect-ratio: 3 / 4; }
.img-frame--card { aspect-ratio: 4 / 5; }
.img-frame--full { aspect-ratio: 21 / 9; }

/* ---------- 13. 筛选组件 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 30, 58, 0.15);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.4;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.filter-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
  font-weight: 600;
}

/* ---------- 14. 滚动显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: 0.06s;
}

.js [data-reveal="left"] {
  transform: translateX(-24px);
}

.js [data-reveal="right"] {
  transform: translateX(24px);
}

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

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1199px) {
  .site-header__cta {
    display: none;
  }
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: rgba(11, 30, 58, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 215, 0, 0.16);
    border-bottom: 1px solid rgba(255, 215, 0, 0.12);
    box-shadow: 0 16px 40px rgba(8, 22, 44, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast);
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1rem;
  }

  .site-nav__link {
    padding: 0.875rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .site-nav__link::after {
    left: 0.5rem;
    right: 0.5rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__contact {
    grid-column: 1 / -1;
  }

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

@media (max-width: 767px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 2.5rem;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }

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

  .hero-stack {
    padding-top: calc(var(--header-h) + 1.5rem);
    min-height: auto;
  }

  .spec-row {
    grid-template-columns: 3em 1fr;
  }
}

/* ---------- 16. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal],
  .js [data-reveal="left"],
  .js [data-reveal="right"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
