/* ==========================================================================
   博万体育 · 共享站点样式 /assets/site.css
   ========================================================================== */

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

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

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

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

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

button {
  font: inherit;
  color: inherit;
}

a { color: inherit; }

/* ---------- tokens ---------- */
:root {
  --ink: #061611;
  --panel: #0B211A;
  --panel-2: #102C22;
  --line: #2A4A3E;
  --line-soft: rgba(42, 74, 62, 0.62);

  --lime: #C8FF3D;
  --orange: #FF6B2C;
  --mint: #3DF2C0;
  --cream: #F6F1E6;
  --gray-l: #B9C6BF;
  --gray-m: #7F9188;
  --deep-orange: #B84116;
  --blue: #5AB0FF;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell-w: 1280px;
  --edge: clamp(16px, 4vw, 44px);
  --head-h: 56px;
  --r: 2px;
  --t: 160ms cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(42, 74, 62, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 74, 62, 0.2) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p { text-wrap: pretty; }

a { text-decoration: none; }

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

#main-content {
  display: block;
  scroll-margin-top: calc(var(--head-h) + 14px);
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: -72px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--lime);
  color: #071B10;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--r);
  transition: top var(--t);
}

.skip-link:focus {
  top: 10px;
}

/* ---------- shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--edge);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(11, 33, 26, 0.97), rgba(6, 22, 17, 0.95));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  min-height: var(--head-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color var(--t);
}

.brand-mark::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  transition: background var(--t);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 107, 44, 0.5);
  transition: border-color var(--t);
}

.brand:hover .brand-mark { border-color: var(--lime); }
.brand:hover .brand-mark::before { background: var(--mint); }
.brand:hover .brand-mark::after { border-color: var(--orange); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-m);
}

/* 状态胶囊 */
.head-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(16, 44, 34, 0.66);
  color: var(--gray-l);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(61, 242, 192, 0.16);
}

/* 导航 */
.primary-nav {
  display: block;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--gray-l);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color var(--t), background var(--t), border-color var(--t);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--gray-m);
  transition: color var(--t);
}

.nav-text { display: inline; }

.nav-link:hover {
  color: var(--cream);
  background: var(--panel-2);
  border-color: var(--line);
}

.nav-link:hover .nav-index { color: var(--mint); }

.nav-link[aria-current="page"] {
  color: var(--lime);
  background: var(--panel-2);
  border-color: var(--line);
}

.nav-link[aria-current="page"] .nav-index { color: var(--orange); }

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--orange);
}

/* 头部右侧 */
.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.head-cta { flex: 0 0 auto; }

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--cream);
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}

.nav-toggle:hover {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(200, 255, 61, 0.06);
}

.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 12px;
}

.nav-toggle-box span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t), opacity var(--t);
}

.nav-toggle-text {
  font-size: 12px;
  letter-spacing: 0.08em;
}

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

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

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

/* 阅读进度光带 */
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--lime) 55%, var(--orange));
  transition: width 90ms linear;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-foot {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, var(--panel), #08190F 78%);
  border-top: 1px solid var(--line);
  color: var(--gray-l);
  font-size: 14px;
  line-height: 1.65;
}

.site-foot::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent,
    rgba(200, 255, 61, 0.85) 16%,
    rgba(255, 107, 44, 0.75) 52%,
    transparent 92%);
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr) minmax(0, 0.95fr) minmax(0, 1.6fr);
  gap: clamp(26px, 3.4vw, 48px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 68px) clamp(26px, 3.5vw, 46px);
}

.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.brand--foot {
  padding: 0;
  gap: 10px;
}

.foot-desc {
  max-width: 34ch;
  color: var(--gray-l);
  font-size: 13.5px;
  line-height: 1.75;
}

.foot-return {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(200, 255, 61, 0.28);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color var(--t), border-color var(--t);
}

.foot-return:hover {
  color: var(--mint);
  border-color: var(--mint);
}

.foot-return-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.foot-col--contact { gap: 16px; }

.foot-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-m);
}

.foot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-list a {
  display: inline-block;
  padding-block: 3px;
  border-bottom: 1px solid transparent;
  color: var(--gray-l);
  font-size: 14px;
  transition: color var(--t), border-color var(--t);
}

.foot-list a:hover {
  color: var(--lime);
  border-color: rgba(200, 255, 61, 0.5);
}

/* 联系信息 */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(42, 74, 62, 0.85);
}

.contact-row--block {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.contact-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gray-m);
}

.contact-value {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.contact-row--block .contact-value {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-l);
}

.copy-btn {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--gray-l);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}

.copy-btn:hover {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(200, 255, 61, 0.07);
}

.copy-btn[data-copied="true"] {
  color: #071B10;
  background: var(--lime);
  border-color: var(--lime);
}

.copy-btn-label {
  display: inline-block;
  min-width: 2.4em;
  text-align: center;
}

.contact-note {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--gray-m);
  font-size: 12px;
  line-height: 1.7;
}

/* 底栏 */
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--gray-m);
  font-size: 12.5px;
}

.foot-copy { margin: 0; }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.foot-legal a {
  color: var(--gray-l);
  transition: color var(--t);
}

.foot-legal a:hover { color: var(--lime); }

.foot-icp {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   SHARED COMPONENTS
   ========================================================================== */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #071B10;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: #04231A;
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.14);
}

.btn-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #1B0A02;
  font-weight: 700;
}

.btn-orange:hover {
  background: var(--deep-orange);
  border-color: var(--deep-orange);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(200, 255, 61, 0.06);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
}

/* 排版件 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
  color: var(--gray-l);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(16, 44, 34, 0.7);
  color: var(--gray-l);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge--live {
  color: var(--lime);
  border-color: rgba(200, 255, 61, 0.45);
}

.badge--live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.15);
}

.badge--hot {
  color: var(--orange);
  border-color: rgba(255, 107, 44, 0.45);
}

/* 面板卡 */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}

.card:hover {
  border-color: var(--mint);
  background: var(--panel-2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray-m);
}

.breadcrumbs a {
  color: var(--gray-l);
  transition: color var(--t);
}

.breadcrumbs a:hover { color: var(--lime); }

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

/* 分割线与工具 */
.rule {
  height: 1px;
  margin-block: clamp(28px, 4vw, 48px);
  border: 0;
  background: var(--line);
}

.vh {
  position: absolute !important;
  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;
}

/* 区块 */
.section { padding-block: clamp(48px, 6vw, 80px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

/* 网格 */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* 图片容器（页面阶段放置 img / picture / video） */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(135deg, rgba(16, 44, 34, 0.9), rgba(6, 22, 17, 0.96)),
    repeating-linear-gradient(45deg, rgba(42, 74, 62, 0.35) 0 1px, transparent 1px 12px);
  background-blend-mode: normal;
}

.media :is(img, picture, video) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 22, 17, 0.72));
}

.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }

.media-cap {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--gray-l);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .head-status { display: none; }
}

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 70;
    display: none;
    max-height: calc(100vh - var(--head-h));
    max-height: calc(100dvh - var(--head-h));
    overflow-y: auto;
    padding: 10px var(--edge) 18px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
  }

  .nav-link {
    padding: 13px 12px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 15px;
  }

  .nav-link:hover,
  .nav-link[aria-current="page"] {
    background: var(--panel-2);
  }

  .nav-link[aria-current="page"]::after {
    left: auto;
    right: 14px;
    bottom: 50%;
    margin-left: 0;
    transform: translateY(50%);
  }

  .nav-index {
    flex: 0 0 auto;
    width: 26px;
  }

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

  .foot-brand { grid-column: 1 / -1; }
  .foot-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-4, .col-6, .col-8 { grid-column: span 3; }
  .col-12 { grid-column: span 6; }
}

@media (max-width: 640px) {
  :root { --edge: clamp(14px, 5vw, 24px); }

  .brand-sub { display: none; }

  .head-inner { gap: 10px; }

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

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-4, .col-6, .col-8, .col-12 { grid-column: span 2; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 15px; }
  .nav-toggle-text { display: none; }
  .btn-sm { padding: 7px 10px; font-size: 12px; }
}

/* ---------- reduced motion ---------- */
@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;
    scroll-behavior: auto !important;
  }
}
