/* =========================================================
   博万体育 · Site Kit 共享样式
   设计体系：竞技档案 / Sportscape Archive
   ========================================================= */

/* ---------- 1. 变量与基础 ---------- */

:root {
  --color-orange: #FF6B35;
  --color-blue: #00A8E8;
  --color-dark: #2D2D2D;
  --color-light: #F5F5F5;
  --color-white: #FFFFFF;
  --color-navy: #1E293B;
  --color-orange-light: #FFA07A;
  --color-blue-dark: #0077B6;

  --font-heading: "PingFang SC", "Microsoft YaHei", "Arial Black", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(30, 41, 59, .06);
  --shadow-md: 0 8px 24px rgba(30, 41, 59, .09);
  --shadow-lg: 0 18px 40px rgba(30, 41, 59, .12);

  --container: 1200px;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-dark);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 107, 53, .05), transparent 20%),
    radial-gradient(circle at 90% 65%, rgba(0, 168, 232, .05), transparent 24%),
    var(--color-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

a {
  color: var(--color-blue-dark);
  text-decoration: none;
  transition: color .2s ease;
}

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

button {
  font-family: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

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

/* ---------- 2. 字体层级 ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-dark);
  font-weight: 800;
}

h1 {
  font-size: clamp(32px, 4.5vw, 48px);
}

h2 {
  font-size: clamp(24px, 3.2vw, 32px);
}

h3 {
  font-size: 20px;
}

.display {
  font-family: var(--font-heading);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

.text-muted {
  color: rgba(45, 45, 45, .6);
}

.text-center {
  text-align: center;
}

/* ---------- 3. 布局 ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- 4. 面板章节 ---------- */

.panel {
  position: relative;
  padding: 72px 0;
}

.panel--alt {
  background: var(--color-white);
}

.panel--compact {
  padding: 44px 0;
}

.panel__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.panel-card {
  background: var(--color-white);
  border: 1px solid rgba(30, 41, 59, .06);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

/* ---------- 5. 章节编号 ---------- */

.chapter {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}

.chapter__num {
  display: block;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: rgba(255, 107, 53, .18);
  -webkit-text-stroke: 2px rgba(255, 107, 53, .65);
}

.chapter__title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.2;
}

.chapter__annot {
  align-self: stretch;
  margin-left: auto;
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(45, 45, 45, .35);
  white-space: nowrap;
}

/* ---------- 6. 页面头与标题 ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
}

.page-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-orange);
}

.page-hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--color-orange);
  border-radius: 3px;
}

.page-hero__title {
  margin-top: 12px;
}

.page-hero__desc {
  margin-top: 12px;
  max-width: 640px;
  font-size: 17px;
  color: rgba(45, 45, 45, .7);
}

.section-head {
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--color-dark);
}

.section-subtitle {
  margin-top: 8px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(45, 45, 45, .62);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--color-orange);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--color-blue-dark);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

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

/* ---------- 7. 头部 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.site-header__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-skip {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 2000;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--color-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

.site-skip:focus {
  left: 16px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-brand__mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--color-orange);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(255, 107, 53, .32);
}

.site-brand__mark::after {
  content: "";
  position: absolute;
  top: -9px;
  right: -9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-blue);
  opacity: .6;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand__text strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}

.site-brand__text small {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.6px;
  color: rgba(255, 255, 255, .5);
}

.site-brand--footer .site-brand__mark {
  box-shadow: none;
}

.site-nav {
  margin-left: auto;
}

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

.site-nav__item {
  margin: 0;
}

.site-nav__link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.site-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.site-nav__link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 107, 53, .22);
  box-shadow: inset 0 -3px 0 var(--color-orange);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-header__entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(0, 168, 232, .35);
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.site-header__entry:hover {
  background: var(--color-blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 168, 232, .4);
}

.site-header__entry i {
  display: block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: entry-pulse 2.2s ease-out infinite;
}

@keyframes entry-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.site-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: background-color .2s ease;
}

.site-header__toggle:hover {
  background: rgba(255, 255, 255, .16);
}

.site-header__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease;
}

.site-header__toggle span + span {
  margin-top: 4px;
}

.site-nav[data-open] ~ .site-header__actions .site-header__toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav[data-open] ~ .site-header__actions .site-header__toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav[data-open] ~ .site-header__actions .site-header__toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-orange), var(--color-blue));
  z-index: 3;
}

/* ---------- 7a. 头部响应式 ---------- */

@media (max-width: 1024px) and (min-width: 901px) {
  .site-nav__link {
    padding: 8px 10px;
    font-size: 14px;
  }

  .site-header__entry {
    padding: 8px 16px;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    height: 64px;
    gap: 10px;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .site-header__toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    margin-left: 0;
    padding: 16px 20px 20px;
    background: var(--color-navy);
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 32px rgba(0, 0, 0, .22);
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .site-nav__link {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 10px;
  }
}

/* ---------- 8. 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: 88px;
  background:
    linear-gradient(90deg, var(--color-orange), var(--color-blue)) top / 100% 4px no-repeat,
    var(--color-navy);
  color: rgba(255, 255, 255, .72);
  overflow: hidden;
}

.site-footer::before {
  content: "BOWAN";
  position: absolute;
  right: -20px;
  bottom: 28px;
  font-family: var(--font-heading);
  font-size: clamp(70px, 10vw, 132px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, .03);
  -webkit-text-stroke: 1px rgba(255, 255, 255, .05);
  pointer-events: none;
  user-select: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 53, .07);
  pointer-events: none;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 28px;
  position: relative;
}

.site-footer__head {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.site-footer__brand,
.site-footer__nav,
.site-footer__contact {
  min-width: 0;
}

.site-footer__desc {
  margin-top: 20px;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .58);
}

.site-footer__title {
  position: relative;
  margin-bottom: 16px;
  padding-left: 14px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.site-footer__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--color-orange), var(--color-blue));
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__list a {
  display: inline-block;
  padding: 4px 0;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  line-height: 1.6;
  transition: color .2s ease, padding-left .2s ease;
}

.site-footer__list a:hover,
.site-footer__list a[aria-current="page"] {
  color: var(--color-orange);
  padding-left: 6px;
}

.site-footer__contact {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .6);
  word-break: break-word;
}

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

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.site-footer__trust {
  font-size: 12px;
  color: rgba(255, 255, 255, .32);
}

/* ---------- 8a. 页脚响应式 ---------- */

@media (max-width: 900px) {
  .site-footer__head {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

@media (max-width: 560px) {
  .site-footer__head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel {
    padding: 48px 0;
  }
}

/* ---------- 9. 按钮 ---------- */

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

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(.97);
}

.btn--primary {
  background: var(--color-orange);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 107, 53, .28);
}

.btn--primary:hover {
  background: var(--color-orange-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 53, .32);
}

.btn--blue {
  background: var(--color-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 168, 232, .28);
}

.btn--blue:hover {
  background: var(--color-blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 168, 232, .32);
}

.btn--ghost {
  border-color: rgba(255, 107, 53, .45);
  color: var(--color-orange);
}

.btn--ghost:hover {
  background: rgba(255, 107, 53, .08);
  color: var(--color-orange);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 42px;
  font-size: 16px;
}

.btn--sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ---------- 10. 卡片、标签与统计 ---------- */

.card {
  background: var(--color-white);
  border: 1px solid rgba(30, 41, 59, .06);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease;
}

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

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 168, 232, .3);
  background: rgba(0, 168, 232, .07);
  color: var(--color-blue-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.tag-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blue);
  flex-shrink: 0;
}

.tag-chip--orange {
  border-color: rgba(255, 107, 53, .3);
  background: rgba(255, 107, 53, .07);
  color: var(--color-orange);
}

.tag-chip--orange::before {
  background: var(--color-orange);
}

.tag-chip--blue {
  border-color: rgba(0, 168, 232, .3);
  background: rgba(0, 168, 232, .07);
  color: var(--color-blue-dark);
}

.tag-chip--blue::before {
  background: var(--color-blue);
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--color-orange);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--color-blue);
  opacity: .07;
}

.stat-card__num {
  position: relative;
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--color-dark);
}

.stat-card__label {
  position: relative;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(45, 45, 45, .6);
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-filter__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(45, 45, 45, .14);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-dark);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

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

.tag-filter__btn[data-active] {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 53, .28);
}

/* ---------- 11. 图片容器 ---------- */

.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 18%, rgba(0, 168, 232, .28), transparent 42%),
    radial-gradient(circle at 18% 82%, rgba(255, 107, 53, .22), transparent 42%),
    var(--color-navy);
  aspect-ratio: 16 / 9;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

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

.image-frame--square {
  aspect-ratio: 1 / 1;
}

.image-frame--tall {
  aspect-ratio: 3 / 4;
}

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

.image-frame--placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(255, 255, 255, .02) 12px, rgba(255, 255, 255, .02) 24px);
  color: rgba(255, 255, 255, .45);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
}

/* ---------- 11a. 网格响应式 ---------- */

@media (max-width: 991px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 12. 焦点状态与减弱动效 ---------- */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--color-orange);
}

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

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

  .site-header__entry i {
    animation: none;
  }
}
