/* ===== 八大胜体育 · 共享样式 /assets/site.css ===== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h, 72px) + 20px);
}

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

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

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

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

a { color: inherit; }

:root {
  --ink-900: #06110F;
  --ink-800: #12181A;
  --ink-700: #0E2A24;
  --cyan-400: #35F2D6;
  --cyan-300: #9BFBEC;
  --orange-500: #FF6A2B;
  --orange-300: #FFB08A;
  --paper: #F4F1EA;
  --gray-500: #7C8A88;
  --red-500: #FF4D5E;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 1260px;
  --edge: clamp(16px, 4vw, 56px);
  --radius: 4px;
  --bar-h: 72px;
  --rail-h: 36px;
  --dock-h: 0px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

body {
  min-height: 100vh;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.sb-lock { overflow: hidden; }

::selection {
  background: var(--cyan-400);
  color: #04140F;
}

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

/* --- 页面骨架工具 --- */
.sb-main {
  display: block;
  min-height: 60vh;
}

.sb-main--offset {
  padding-top: calc(var(--bar-h) + var(--rail-h) + 28px);
}

.sb-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.sb-section {
  padding-block: clamp(48px, 7vw, 96px);
}

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

.sb-grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

/* --- 排版组件 --- */
.sb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.sb-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange-500);
}

.sb-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.sb-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.sb-prose {
  max-width: 34em;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(244, 241, 234, .84);
}

.sb-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray-500);
}

.sb-annot {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--gray-500);
  writing-mode: vertical-rl;
}

.sb-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* --- 按钮与标签 --- */
.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}

.sb-btn--primary {
  background: var(--cyan-400);
  color: #04140F;
  box-shadow: 0 0 0 1px rgba(53, 242, 214, .3);
}

.sb-btn--primary:hover {
  background: var(--cyan-300);
  transform: translateY(-1px);
}

.sb-btn--ghost {
  background: transparent;
  border-color: rgba(244, 241, 234, .28);
  color: var(--paper);
}

.sb-btn--ghost:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.sb-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(244, 241, 234, .2);
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 241, 234, .78);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.sb-chip:hover {
  border-color: var(--cyan-300);
  color: var(--paper);
}

.sb-chip[aria-pressed="true"],
.sb-chip.is-active {
  background: var(--cyan-400);
  border-color: transparent;
  color: #04140F;
}

/* --- 面包屑 --- */
.sb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gray-500);
}

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

.sb-breadcrumb a:hover { color: var(--cyan-400); }

.sb-breadcrumb__sep { color: rgba(124, 138, 136, .5); }

.sb-breadcrumb [aria-current="page"] { color: var(--paper); }

/* --- 卡片与图像容器 --- */
.sb-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ink-700);
  border: 1px solid rgba(53, 242, 214, .14);
  border-radius: var(--radius);
  overflow: hidden;
}

.sb-card--paper {
  background: var(--paper);
  border-color: rgba(6, 17, 15, .1);
  color: var(--ink-900);
}

.sb-card--paper .sb-prose,
.sb-card--paper .sb-note { color: rgba(6, 17, 15, .72); }

.sb-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 234, .08);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(53, 242, 214, .22), transparent 62%),
    radial-gradient(100% 100% at 92% 100%, rgba(255, 106, 43, .18), transparent 56%),
    linear-gradient(160deg, var(--ink-700), var(--ink-800));
}

.sb-media img,
.sb-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-media--wide { aspect-ratio: 21 / 9; }

.sb-media--tall { aspect-ratio: 3 / 4; }

.sb-media__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  background: rgba(6, 17, 15, .72);
  border-left: 2px solid var(--orange-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--cyan-300);
}

/* ===== 头部 ===== */
.sb-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--paper);
  --bar-h: 72px;
}

.sb-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 17, 15, .94) 0%, rgba(6, 17, 15, .55) 62%, rgba(6, 17, 15, 0) 100%);
  pointer-events: none;
  transition: opacity .3s var(--ease);
  z-index: -1;
}

.sb-header[data-state="scrolled"] { --bar-h: 58px; }

.sb-header[data-state="scrolled"]::before { opacity: 0; }

.sb-skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--cyan-400);
  color: #04140F;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  transition: top .2s var(--ease);
}

.sb-skip:focus { top: 12px; }

.sb-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan-400), var(--orange-500));
  transition: transform .1s linear;
  z-index: 2;
}

/* 状态轨 */
.sb-rail {
  height: var(--rail-h);
  overflow: hidden;
  border-bottom: 1px solid rgba(53, 242, 214, .16);
  transition: height .35s var(--ease), opacity .25s var(--ease), border-color .3s var(--ease);
}

.sb-header[data-state="scrolled"] .sb-rail,
.sb-header[data-open] .sb-rail {
  height: 0;
  opacity: 0;
  border-color: transparent;
}

.sb-rail__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--rail-h);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
}

.sb-rail__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-400);
  white-space: nowrap;
}

.sb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  animation: sb-pulse 2.4s var(--ease) infinite;
}

@keyframes sb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 242, 214, .5); }
  70% { box-shadow: 0 0 0 9px rgba(53, 242, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 242, 214, 0); }
}

.sb-rail__meta {
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-rail__link {
  margin-left: auto;
  color: var(--orange-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 176, 138, .35);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.sb-rail__link:hover {
  color: var(--orange-500);
  border-color: var(--orange-500);
}

/* 主条 */
.sb-bar {
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.sb-header[data-state="scrolled"] .sb-bar,
.sb-header[data-open] .sb-bar {
  background: rgba(18, 24, 26, .95);
  box-shadow: 0 1px 0 rgba(53, 242, 214, .16), 0 18px 40px -26px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.sb-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
  height: var(--bar-h);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
  transition: height .3s var(--ease);
}

.sb-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}

.sb-brand__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.02em;
}

.sb-brand__sub {
  padding-left: 10px;
  border-left: 1px solid rgba(53, 242, 214, .45);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

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

.sb-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 24px);
}

.sb-nav__item { display: block; }

.sb-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 2px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(244, 241, 234, .78);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease);
}

.sb-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease), background-color .2s var(--ease);
}

.sb-nav__link:hover { color: var(--paper); }

.sb-nav__link:hover::after { transform: scaleX(1); }

.sb-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--gray-500);
  transition: color .2s var(--ease);
}

.sb-nav__text { white-space: nowrap; }

.sb-nav__link[aria-current="page"] { color: var(--cyan-400); }

.sb-nav__link[aria-current="page"] .sb-nav__idx { color: var(--cyan-400); }

.sb-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--orange-500);
}

.sb-bar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

/* 菜单按钮 */
.sb-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid rgba(244, 241, 234, .22);
  border-radius: 3px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  cursor: pointer;
}

.sb-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.sb-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan-400);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.sb-header[data-open] .sb-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }

.sb-header[data-open] .sb-toggle__bars span:nth-child(2) { opacity: 0; }

.sb-header[data-open] .sb-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 移动端底部快捷条 */
.sb-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 102;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(18, 24, 26, .97);
  border-top: 1px solid rgba(53, 242, 214, .18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.sb-dock__btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 8px;
  border: 1px solid rgba(244, 241, 234, .14);
  border-radius: 3px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.sb-dock__btn--primary {
  background: var(--cyan-400);
  border-color: transparent;
  color: #04140F;
}

/* ===== 页脚 ===== */
.sb-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-800);
  color: var(--paper);
  border-top: 1px solid rgba(53, 242, 214, .2);
}

.sb-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 138, 136, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 138, 136, .08) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  pointer-events: none;
}

.sb-footer__inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--edge) 24px;
}

.sb-footer__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid rgba(244, 241, 234, .1);
}

.sb-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sb-footer__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--paper);
}

.sb-footer__line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--cyan-400);
}

.sb-footer__tag {
  max-height: 130px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 106, 43, .5);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--gray-500);
  white-space: nowrap;
}

.sb-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(28px, 4vw, 48px);
}

.sb-col { min-width: 0; }

.sb-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--orange-300);
}

.sb-col__title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--orange-500);
}

.sb-col__list {
  display: grid;
  gap: 10px;
}

.sb-col__link {
  display: inline-block;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(244, 241, 234, .72);
  text-decoration: none;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.sb-col__link:hover {
  color: var(--cyan-400);
  transform: translateX(3px);
}

.sb-footer__contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-block: 20px;
  border-top: 1px solid rgba(244, 241, 234, .1);
  border-bottom: 1px solid rgba(244, 241, 234, .1);
}

.sb-contact__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sb-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gray-500);
}

.sb-contact__value {
  font-size: 15px;
  color: var(--paper);
  word-break: break-word;
}

.sb-footer__note {
  max-width: 62ch;
  padding-block: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray-500);
}

.sb-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 241, 234, .08);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--gray-500);
}

.sb-legal__icp { color: var(--gray-500); }

.sb-legal__copy { color: rgba(244, 241, 234, .6); }

.sb-to-top {
  margin-left: auto;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(53, 242, 214, .35);
  border-radius: 3px;
  color: var(--cyan-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.sb-to-top:hover {
  background: var(--cyan-400);
  color: #04140F;
}

/* --- 显现动画 --- */
.sb-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}

.sb-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
  .sb-header { --bar-h: 64px; }
  .sb-header[data-state="scrolled"] { --bar-h: 54px; }

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

  .sb-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    max-height: calc(100vh - var(--bar-h) - 16px);
    overflow-y: auto;
    background: var(--ink-800);
    border-top: 1px solid rgba(53, 242, 214, .16);
    border-bottom: 1px solid rgba(244, 241, 234, .08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }

  .sb-header[data-open] .sb-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .sb-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--edge) 20px;
  }

  .sb-nav__item { border-bottom: 1px solid rgba(244, 241, 234, .07); }

  .sb-nav__item:last-child { border-bottom: 0; }

  .sb-nav__link {
    width: 100%;
    gap: 12px;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
  }

  .sb-nav__link::after { display: none; }

  .sb-nav__link[aria-current="page"] { color: var(--cyan-400); }

  .sb-dock { display: flex; }

  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

  .sb-progress { bottom: auto; top: 100%; }
}

@media (max-width: 900px) {
  .sb-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .sb-footer__contact { grid-template-columns: 1fr; }

  .sb-footer__tag { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .sb-rail__meta { display: none; }

  .sb-bar__inner { gap: 12px; }

  .sb-brand__mark { font-size: 19px; }

  .sb-brand__sub { display: none; }

  .sb-bar__actions .sb-btn--primary { display: none; }

  .sb-toggle__text { display: none; }

  .sb-footer__cols { gap: 22px; }

  .sb-to-top { margin-left: 0; }

  .sb-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 400px) {
  .sb-footer__cols { grid-template-columns: 1fr; }
}

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

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

  .sb-reveal {
    opacity: 1;
    transform: none;
  }

  .sb-progress { transition: none; }
}
