/* ==========================================================
   博万体育CN官网 · 共享外壳样式 /assets/site.css
   场边数据终端：深绿侧栏 + 米白草坪 + 金色行动点
   ========================================================== */

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

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

body { margin: 0; }

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

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

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

img { border-style: none; }

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

a { color: inherit; }

/* ---------- Design tokens ---------- */
:root {
  --header-w: 280px;
  --content-max: 1440px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --angle: 25deg;
  --ease: cubic-bezier(.2, .9, .4, 1);
  --dur: .3s;
  --color-pitch: #0B3D2E;
  --color-pitch-deep: #082E23;
  --color-pitch-light: #0D4634;
  --color-gold: #F2B705;
  --color-red: #8B0000;
  --color-red-deep: #4A0E0E;
  --color-cream: #F5F5F0;
  --color-gray: #5C6B5C;
  --color-cyan: #00D1FF;
  --color-up: #00E676;
  --color-warn: #FFC107;
  --color-mono-gold: #D4A017;
  --font-display: "Oswald", "DIN Condensed", "Arial Narrow", Impact, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Roboto Mono", "SF Mono", Menlo, Consolas, monospace;
  --shadow-card: 0 12px 32px rgba(8, 46, 35, .12);
  --shadow-float: 0 16px 40px rgba(11, 61, 46, .18);
}

/* ---------- Base typography ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-pitch);
  background-color: var(--color-cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--color-pitch);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
p { text-wrap: pretty; }

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

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

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 3000;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-pitch);
  background: var(--color-gold);
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: var(--shadow-float);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

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

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2500;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-cyan));
  box-shadow: 0 0 10px rgba(242, 183, 5, .45);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Header / sidebar ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  width: var(--header-w);
  color: var(--color-cream);
  background:
    radial-gradient(130% 70% at 95% -5%, rgba(242, 183, 5, .10) 0%, transparent 55%),
    linear-gradient(180deg, var(--color-pitch-light), var(--color-pitch) 45%, var(--color-pitch-deep));
  border-right: 1px solid rgba(242, 183, 5, .3);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  top: -46px;
  right: -36px;
  width: 132px;
  height: 132px;
  border: 2px solid rgba(242, 183, 5, .18);
  border-radius: 30px;
  transform: rotate(var(--angle));
  pointer-events: none;
}

.site-header::after {
  content: "2025";
  position: absolute;
  right: -6px;
  bottom: 84px;
  font-family: var(--font-mono);
  font-size: 84px;
  font-weight: 700;
  line-height: 1;
  color: rgba(242, 183, 5, .055);
  letter-spacing: -4px;
  transform: rotate(-25deg);
  pointer-events: none;
  user-select: none;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 26px 20px 22px;
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

/* ---------- Brand ---------- */
.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 8px;
  row-gap: 3px;
  color: var(--color-cream);
  text-decoration: none;
}

.brand__name {
  grid-row: 1;
  grid-column: 1;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .03em;
  color: var(--color-gold);
  white-space: nowrap;
}

.brand__year {
  grid-row: 1;
  grid-column: 2;
  display: inline-block;
  margin-bottom: 1px;
  padding: 3px 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-pitch);
  background: var(--color-gold);
  border-radius: 4px;
  transform: rotate(2deg);
}

.brand__sub {
  grid-row: 2;
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .28em;
  color: rgba(245, 245, 240, .55);
  text-transform: uppercase;
}

/* ---------- Toggle buttons ---------- */
.search-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(242, 183, 5, .55);
  border-radius: 14px;
  background: rgba(11, 61, 46, .4);
  color: var(--color-gold);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.search-toggle:hover,
.nav-toggle:hover {
  background: rgba(242, 183, 5, .15);
  border-color: var(--color-gold);
}

.search-toggle[aria-expanded="true"],
.nav-toggle[aria-expanded="true"] {
  background: rgba(242, 183, 5, .22);
  color: var(--color-cream);
}

.search-toggle svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }

.nav-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--color-gold);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Site nav ---------- */
.site-nav { margin-top: 32px; }

.site-nav__list {
  display: grid;
  gap: 4px;
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(245, 245, 240, .75);
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.site-nav__link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--color-mono-gold);
  letter-spacing: 0;
}

.site-nav__link:hover {
  background: rgba(242, 183, 5, .10);
  color: var(--color-gold);
  transform: translateX(4px);
}

.site-nav__link[aria-current="page"] {
  background: rgba(242, 183, 5, .14);
  color: var(--color-gold);
  box-shadow: inset 4px 0 0 var(--color-gold);
  transform: translateX(2px);
}

/* ---------- Quick guide ---------- */
.quick-guide {
  display: none;
  margin-top: 22px;
  padding: 14px;
  background: rgba(245, 245, 240, .05);
  border: 1px solid rgba(242, 183, 5, .24);
  border-radius: 18px;
}

.quick-guide[data-open] {
  display: grid;
  gap: 4px;
}

.quick-guide__label {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
}

.quick-guide a {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: rgba(245, 245, 240, .75);
  text-decoration: none;
  transition: background .2s, color .2s;
}

.quick-guide a:hover {
  background: rgba(242, 183, 5, .12);
  color: var(--color-gold);
}

/* ---------- Header foot ---------- */
.site-header__foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 245, 240, .14);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--color-up);
  background: rgba(0, 230, 118, .08);
  border: 1px solid rgba(0, 230, 118, .28);
}

.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-up);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, .45); }
  50% { box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
}

.site-header__meta {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(245, 245, 240, .45);
  letter-spacing: .03em;
}

.site-header__contact {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245, 245, 240, .65);
}

/* ---------- Desktop body offset ---------- */
@media (min-width: 901px) {
  body { margin-left: var(--header-w); }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(245, 245, 240, .72);
  background:
    linear-gradient(150deg, rgba(242, 183, 5, .05) 0%, transparent 34%),
    linear-gradient(180deg, var(--color-red-deep) 0%, #3A0B0B 100%);
  border-top: 4px solid var(--color-gold);
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border: 3px solid rgba(242, 183, 5, .10);
  border-radius: 44px;
  transform: rotate(var(--angle));
  pointer-events: none;
}

.site-footer::after {
  content: "BOWAN";
  position: absolute;
  top: 40px;
  right: 20px;
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  color: rgba(242, 183, 5, .035);
  pointer-events: none;
  user-select: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 56px) 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px clamp(28px, 5vw, 80px);
}

.site-footer__logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-gold);
  text-decoration: none;
  letter-spacing: 1px;
}

.site-footer__logo span {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 245, 240, .7);
  letter-spacing: 2px;
}

.site-footer__tagline {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-mono-gold);
  letter-spacing: 1px;
}

.site-footer__trust {
  margin-top: 18px;
  max-width: 38em;
  padding-left: 14px;
  border-left: 3px solid var(--color-gold);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(245, 245, 240, .55);
}

.site-footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
}

.site-footer__list {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.site-footer__nav .site-footer__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer__list a {
  display: inline-block;
  padding: 2px 0;
  color: rgba(245, 245, 240, .72);
  text-decoration: none;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.site-footer__list a:hover {
  color: var(--color-gold);
  transform: translateX(3px);
}

.site-footer__list li {
  color: rgba(245, 245, 240, .72);
}

.site-footer__email,
.site-footer__phone {
  font-family: var(--font-mono);
  font-size: 13px;
}

.site-footer__address {
  line-height: 1.7;
  max-width: 28em;
}

.site-footer__legal {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 245, 240, .12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(245, 245, 240, .45);
}

.site-footer__bottom {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.site-footer__copyright {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer__icp {
  padding: 2px 8px;
  border: 1px solid rgba(245, 245, 240, .18);
  border-radius: var(--radius-pill);
  color: rgba(245, 245, 240, .55);
}

.site-footer__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-footer__links a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(242, 183, 5, .3);
  font-size: 12px;
  color: rgba(245, 245, 240, .62);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

.site-footer__links a:hover {
  background: rgba(242, 183, 5, .14);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ---------- Page shell & type rhythm ---------- */
.page-shell {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(11, 61, 46, .06);
  border: 1px solid rgba(242, 183, 5, .4);
  border-radius: var(--radius-pill);
}

.section-title {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.6vw, 42px);
}

.section-lead {
  max-width: 60ch;
  font-size: 16px;
  color: var(--color-gray);
  line-height: 1.75;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--color-gray);
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "›";
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-gold);
}

.breadcrumb a {
  color: var(--color-gray);
  text-decoration: none;
  transition: color .2s;
}

.breadcrumb a:hover { color: var(--color-pitch); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
}

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

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(242, 183, 5, .35);
}

.btn--outline {
  background: transparent;
  color: var(--color-pitch);
  border-color: var(--color-pitch);
}

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

.btn--light {
  background: var(--color-cream);
  color: var(--color-pitch);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.tag--gold {
  background: rgba(242, 183, 5, .16);
  color: var(--color-pitch);
  border: 1px solid rgba(242, 183, 5, .55);
}

.tag--red {
  background: rgba(139, 0, 0, .10);
  color: var(--color-red);
  border: 1px solid rgba(139, 0, 0, .35);
}

.tag--green {
  background: rgba(0, 230, 118, .12);
  color: var(--color-pitch);
  border: 1px solid rgba(0, 230, 118, .45);
}

/* ---------- Data number ---------- */
.data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* ---------- Data table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
  color: var(--color-gray);
  border-bottom: 2px solid var(--color-gold);
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(92, 107, 92, .2);
  color: var(--color-pitch);
}

.data-table tbody tr { transition: background .2s; }

.data-table tbody tr:hover { background: rgba(242, 183, 5, .07); }

/* ---------- Grid ---------- */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

/* ---------- Card ---------- */
.card {
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(92, 107, 92, .22);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
}

/* ---------- Media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background-color: #E9E6DD;
  background-image:
    linear-gradient(135deg, rgba(11, 61, 46, .06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(242, 183, 5, .08) 25%, transparent 25%);
  background-size: 22px 22px;
  background-position: 0 0, 0 0;
}

.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--video { aspect-ratio: 16 / 10; }

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

.media-frame:empty::before {
  content: "BOWAN · 赛场视觉";
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(11, 61, 46, .4);
}

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 1; }

.js-shell [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* ---------- Mobile & tablet ---------- */
@media (max-width: 900px) {
  body { margin-left: 0; }

  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(242, 183, 5, .28);
  }

  .site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    padding: 12px 16px;
  }

  .site-header__top {
    flex: 1 1 auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
    display: none;
    margin-top: 12px;
    padding: 6px 0 10px;
    border-top: 1px solid rgba(242, 183, 5, .22);
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .site-nav__link {
    padding: 12px;
    font-size: 14px;
  }

  .site-nav__link:hover {
    transform: none;
  }

  .quick-guide {
    flex: 1 1 100%;
    order: 4;
    margin-top: 0;
    margin-bottom: 4px;
  }

  .site-header__foot {
    display: none;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 20px 20px;
  }

  .site-footer__legal {
    margin-top: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .site-header__inner { padding: 10px 14px; }

  .brand__name { font-size: 21px; }

  .site-nav__list { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
