/* ============================================================
   宝威体育站 · /assets/site.css
   深蓝调度台 + 奶油灯箱卡 + 橙色信号 + 荧光绿直播态
   ============================================================ */

:root {
  /* 色彩 */
  --c-primary: #0A1F44;
  --c-primary-deep: #061224;
  --c-primary-soft: #12306B;
  --c-accent: #FF6B00;
  --c-accent-deep: #E85F00;
  --c-accent-wash: #FFF0E2;
  --c-highlight: #00FF88;
  --c-cream: #FFF8E7;
  --c-ink: #1A1A1A;
  --c-gray: #7A8A99;
  --c-red: #E53935;
  --c-blue: #2196F3;
  --gradient-navy: linear-gradient(135deg, #0A1F44 0%, #12306B 100%);
  --gradient-live: linear-gradient(90deg, var(--c-highlight), var(--c-accent));

  /* 字体 */
  --font-head: "Noto Sans SC Black", Impact, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Roboto Mono", "Courier New", monospace;

  /* 字号 */
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;

  /* 间距 */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* 形状与阴影 */
  --radius-hud: 6px 24px 24px 6px;
  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-field: 14px;
  --shadow-card: 0 2px 8px rgba(6, 18, 36, .08);
  --shadow-lift: 0 18px 40px rgba(6, 18, 36, .18);
  --shadow-header: 0 12px 32px rgba(6, 18, 36, .35);

  /* 动效 */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --duration-fast: .18s;
  --duration-base: .25s;
  --duration-slow: .45s;
}

/* 基础重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  background: var(--c-cream);
}

body {
  min-height: 100vh;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.25;
  color: var(--c-ink);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

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

a {
  color: var(--c-blue);
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--c-accent);
  color: #fff;
}

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

/* 容器 / 段落 / 主内容 */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

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

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

.section--dark .section-head__title {
  color: var(--c-cream);
}

.section--dark .section-head__desc {
  color: rgba(255, 248, 231, .65);
}

.site-main {
  display: block;
  min-height: 65vh;
}

#main-content {
  scroll-margin-top: 80px;
}

#main-content:focus {
  outline: none;
}

/* 跳过导航 */
.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 300;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-pill);
  background: var(--c-highlight);
  color: var(--c-primary);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 255, 136, .45);
  transform: translate(-50%, -160%);
  transition: transform var(--duration-base) var(--ease-out);
}

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

/* 顶部读取进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 120;
  pointer-events: none;
  background: var(--gradient-live);
  box-shadow: 0 0 14px rgba(255, 107, 0, .55);
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
}

/* ============================================================
   顶部：悬浮胶囊导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin-top: 12px;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem .5rem .5rem .75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(6, 18, 36, .94), rgba(18, 48, 107, .92));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--c-cream);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 6px 16px 16px 6px;
  background: linear-gradient(135deg, var(--c-accent) 0%, #FF8C2E 100%);
  box-shadow: 0 6px 16px rgba(255, 107, 0, .35);
}

.brand-mark::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 13px solid var(--c-cream);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.brand-mark-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-highlight);
  box-shadow: 0 0 10px rgba(0, 255, 136, .8);
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--c-cream);
  white-space: nowrap;
}

.brand-live {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-num);
  font-size: .62rem;
  letter-spacing: .18em;
  color: rgba(255, 248, 231, .62);
  white-space: nowrap;
}

.brand-live .live-dot {
  width: 6px;
  height: 6px;
}

.brand-sub {
  font-family: var(--font-num);
  font-size: .6rem;
  letter-spacing: .16em;
  color: rgba(255, 248, 231, .55);
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: block;
  padding: .75rem;
  border-radius: 20px;
  background: var(--gradient-navy);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-header);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out), visibility var(--duration-fast);
}

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

.nav-list {
  display: grid;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: .7rem .9rem;
  border-radius: 12px;
  color: rgba(255, 248, 231, .8);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.nav-link:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.nav-link[aria-current="page"] {
  background: var(--c-highlight);
  color: var(--c-primary);
  font-weight: 700;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 248, 231, .22);
  border-radius: 16px;
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 248, 231, .4);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--c-cream);
  transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast);
}

.nav-toggle-label {
  font-family: var(--font-num);
  font-size: .6rem;
  letter-spacing: .08em;
  color: rgba(255, 248, 231, .7);
}

.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) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 桌面端导航 */
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

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

  .nav-link {
    padding: .55rem 1rem;
    border-radius: var(--radius-pill);
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, .08);
  }

  .nav-link[aria-current="page"] {
    background: var(--c-highlight);
    color: var(--c-primary);
    font-weight: 700;
  }
}

@media (max-width: 640px) {
  .brand-live {
    display: none;
  }
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary-deep) 0%, var(--c-primary) 52%, var(--c-primary-soft) 100%);
  color: rgba(255, 248, 231, .8);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-live);
  opacity: .85;
}

.site-footer::after {
  content: "BW";
  position: absolute;
  right: -2rem;
  bottom: -5rem;
  font-family: var(--font-num);
  font-size: clamp(7rem, 18vw, 15rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, .035);
  letter-spacing: -.06em;
  pointer-events: none;
  user-select: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-brand {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.brand--footer .brand-mark {
  width: 48px;
  height: 48px;
}

.brand--footer .brand-name {
  font-size: 1.6rem;
}

.footer-trust {
  max-width: 42em;
  color: rgba(255, 248, 231, .6);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.footer-col,
.footer-contact {
  grid-column: 1 / -1;
}

.footer-title {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: 0 0 1.1rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(255, 248, 231, .12);
  font-size: var(--text-sm);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.footer-index {
  font-family: var(--font-num);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-highlight);
}

.footer-links {
  display: grid;
  gap: .65rem;
}

.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: 1.1rem;
  color: rgba(255, 248, 231, .68);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--c-accent);
}

.footer-links a:hover {
  color: var(--c-highlight);
}

.footer-address {
  display: grid;
  gap: .55rem;
  font-style: normal;
  color: rgba(255, 248, 231, .68);
  font-size: var(--text-sm);
}

.footer-meta {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 248, 231, .1);
  padding-block: 1.1rem;
}

.footer-meta-inner {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-num);
  font-size: var(--text-xs);
  color: rgba(255, 248, 231, .45);
}

.footer-copy,
.footer-note {
  margin: 0;
}

@media (min-width: 700px) {
  .footer-grid {
    row-gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col,
  .footer-contact {
    grid-column: span 4;
  }

  .footer-meta-inner {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .footer-brand {
    grid-column: span 5;
    padding-right: 2rem;
  }

  .footer-col {
    grid-column: span 2;
  }

  .footer-contact {
    grid-column: span 3;
  }
}

/* ============================================================
   通用基础组件
   ============================================================ */

/* 面包屑 */
.breadcrumbs {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 1rem;
  font-size: var(--text-sm);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .7rem;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: .7rem;
  color: var(--c-gray);
  font-family: var(--font-num);
}

.breadcrumbs__link {
  color: var(--c-gray);
  font-weight: 500;
}

.breadcrumbs__link:hover {
  color: var(--c-accent);
}

.breadcrumbs__link[aria-current="page"] {
  color: var(--c-accent);
  font-weight: 700;
}

/* 编号章节标题 */
.section-head {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.section-head__index {
  font-family: var(--font-num);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--c-accent);
}

.section-head__title {
  font-size: var(--text-2xl);
  text-transform: uppercase;
  margin: 0;
  color: var(--c-primary);
}

.section-head__desc {
  color: var(--c-gray);
  font-size: var(--text-sm);
  max-width: 42em;
}

@media (min-width: 700px) {
  .section-head {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: .9rem;
  }

  .section-head__desc {
    flex-basis: 100%;
  }
}

/* Bento 网格 */
.grid-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: 1 / -1; }

@media (max-width: 1023px) {
  .span-3,
  .span-4,
  .span-5,
  .span-6 {
    grid-column: span 6;
  }

  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .grid-bento {
    gap: 1rem;
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1 / -1;
  }
}

/* HUD 仪表板卡片 */
.hud-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--c-cream);
  border: 1px solid rgba(10, 31, 68, .1);
  border-radius: var(--radius-hud);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.hud-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.hud-card--dark {
  color: rgba(255, 248, 231, .85);
  background: var(--gradient-navy);
  border-color: transparent;
}

.hud-card--dark .hud-card__title {
  color: var(--c-cream);
}

.hud-card--accent {
  border-top: 4px solid var(--c-accent);
}

.hud-card__title {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  color: var(--c-primary);
}

.hud-card__text {
  color: var(--c-gray);
  font-size: var(--text-sm);
}

/* 标签与状态 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 31, 68, .08);
  color: var(--c-primary);
  font-family: var(--font-num);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.tag--accent {
  background: var(--c-accent);
  color: var(--c-cream);
}

.tag--outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--c-primary);
}

.status-tag--live {
  background: var(--c-highlight);
  color: var(--c-primary);
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-highlight);
  flex-shrink: 0;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--c-highlight);
  opacity: .6;
  animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    transform: scale(.5);
    opacity: .8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border: 0;
  border-radius: var(--radius-field);
  background: transparent;
  color: var(--c-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration-base), color var(--duration-base), transform var(--duration-base), box-shadow var(--duration-base);
}

.btn--accent {
  background: var(--c-accent);
  color: var(--c-cream);
  box-shadow: 0 8px 20px rgba(255, 107, 0, .3);
}

.btn--accent:hover {
  background: var(--c-accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 107, 0, .4);
}

.btn--outline {
  box-shadow: inset 0 0 0 2px var(--c-primary);
  color: var(--c-primary);
}

.btn--outline:hover {
  background: var(--c-primary);
  color: var(--c-cream);
}

.btn--ghost {
  background: rgba(255, 255, 255, .12);
  color: var(--c-cream);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .2);
}

/* 图片容器 */
.img-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-hud);
  background: linear-gradient(135deg, rgba(10, 31, 68, .08), rgba(255, 107, 0, .12));
}

.img-frame--wide {
  aspect-ratio: 21 / 9;
}

.img-frame--tall {
  aspect-ratio: 4 / 5;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform var(--duration-slow) var(--ease-out);
}

.img-frame:hover img {
  transform: scale(1.04);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 48%, rgba(255, 255, 255, .35) 57%, transparent 66%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease-out);
}

.img-frame:hover::after {
  transform: translateX(130%);
}

/* 速度线装饰 */
.speed-lines {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(255, 255, 255, .05) 8px 9px);
}

.speed-lines--accent {
  background-image: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 107, 0, .09) 12px 13px);
}

/* 减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .live-dot::after,
  .img-frame::after {
    display: none;
  }
}
