/* ============================================================
   半岛BOB体育 · 共享 Site Kit
   深海蓝结构轨道 / 奶油纸白阅读面 / 半岛橙刻度
   ============================================================ */

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

:root {
  --deep: #081A2B;
  --navy: #122B45;
  --cream: #F4EBDD;
  --bone: #FFFBF3;
  --orange: #F26A2E;
  --rust: #B8431C;
  --grass: #3F8F52;
  --alert: #C9342A;
  --ink: #241C16;
  --slate: #5C6B78;

  --rail-w: 240px;
  --top-h: 76px;
  --shell-max: 1180px;
  --radius: 2px;

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-data: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--rust);
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
}

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

#main-content {
  scroll-margin-top: calc(var(--top-h) + 16px);
}

/* ---------------- 跳转链接 ---------------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  padding: 12px 20px;
  background: var(--bone);
  color: var(--deep);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid var(--orange);
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

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

/* ---------------- 头部根节点 ---------------- */

.site-header {
  position: relative;
  z-index: 120;
}

/* ---------------- 侧边品牌轨道 ---------------- */

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 130;
  display: none;
  flex-direction: column;
  padding: 26px 22px 24px;
  background: linear-gradient(180deg, #0A2034 0%, #081A2B 58%, #061423 100%);
  color: var(--bone);
  border-right: 1px solid rgba(244, 235, 221, 0.14);
  overflow: hidden;
}

.rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(244, 235, 221, 0.07) 0 1px, transparent 1px 30px);
  pointer-events: none;
}

.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 12px;
  background-image: repeating-linear-gradient(180deg, rgba(242, 106, 46, 0.75) 0 2px, transparent 2px 26px);
  opacity: 0.55;
  pointer-events: none;
}

.rail__eyebrow {
  position: relative;
  margin: 0 0 18px;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 235, 221, 0.45);
}

.rail__brand {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
}

.rail__brand-accent {
  color: var(--orange);
}

.rail__tagline {
  position: relative;
  margin: 9px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: rgba(244, 235, 221, 0.62);
}

.rail__rule {
  height: 1px;
  margin: 22px 0 20px;
  background: rgba(244, 235, 221, 0.16);
}

.rail__filter {
  position: relative;
  margin-top: 2px;
}

.rail__filter-label {
  margin: 0 0 10px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 106, 46, 0.92);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.chip {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid rgba(244, 235, 221, 0.28);
  border-radius: 999px;
  color: rgba(244, 235, 221, 0.9);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--orange);
  background: rgba(242, 106, 46, 0.18);
  color: var(--bone);
}

.rail__foot {
  position: relative;
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  gap: 14px;
  justify-items: stretch;
}

.rail__meta {
  margin: 0;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244, 235, 221, 0.45);
}

.rail__cta {
  width: 100%;
}

/* ---------------- 顶部栏 ---------------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-h);
  z-index: 125;
  color: var(--bone);
  background: rgba(18, 43, 69, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(244, 235, 221, 0.16);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  opacity: 0.9;
}

.site-header[data-scrolled="true"] .topbar {
  background: #081A2B;
  border-bottom-color: rgba(8, 26, 43, 0.9);
  box-shadow: 0 12px 32px rgba(8, 26, 43, 0.42);
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(14px, 2.6vw, 34px);
}

.topbar__brand {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
}

.topbar__brand span {
  color: var(--orange);
}

.topbar__cta {
  margin-left: auto;
  display: none;
}

/* ---------------- 主导航 ---------------- */

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: rgba(244, 235, 221, 0.82);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav__link:hover {
  color: var(--bone);
  background: rgba(244, 235, 221, 0.1);
}

.nav__link[aria-current="page"] {
  color: var(--bone);
  background: rgba(242, 106, 46, 0.2);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--orange);
}

/* ---------------- 移动菜单按钮 ---------------- */

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  background: transparent;
  border: 1px solid rgba(244, 235, 221, 0.34);
  border-radius: var(--radius);
  color: var(--bone);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--orange);
  background: rgba(242, 106, 46, 0.14);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  background: rgba(242, 106, 46, 0.22);
}

.nav-toggle__bars {
  width: 16px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}

.nav-toggle__label {
  line-height: 1;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #08131F;
}

.btn--primary:hover {
  background: #FF8350;
  border-color: #FF8350;
}

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

.btn--ghost {
  background: transparent;
  border-color: rgba(244, 235, 221, 0.34);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: var(--bone);
  background: rgba(244, 235, 221, 0.12);
  color: var(--bone);
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(40px, 6vw, 76px);
  background: var(--deep);
  color: rgba(244, 235, 221, 0.84);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0 18%, var(--rust) 18% 30%, var(--grass) 30% 38%, rgba(244, 235, 221, 0.12) 38% 100%);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 48px);
  padding-bottom: clamp(30px, 4vw, 50px);
}

.site-footer__brand {
  max-width: 42ch;
}

.site-footer__mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bone);
}

.site-footer__mark span {
  color: var(--orange);
}

.site-footer__tagline {
  margin: 7px 0 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(244, 235, 221, 0.6);
}

.site-footer__note {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(244, 235, 221, 0.62);
}

.site-footer__label {
  margin: 0 0 14px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.foot-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.foot-list a {
  display: inline-block;
  padding-bottom: 1px;
  color: rgba(244, 235, 221, 0.84);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.foot-list a:hover,
.foot-list a:focus-visible {
  color: var(--bone);
  border-bottom-color: var(--orange);
}

.contact-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.contact-list__key {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 235, 221, 0.45);
}

.contact-list__value {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 235, 221, 0.9);
  word-break: break-word;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(244, 235, 221, 0.16);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(244, 235, 221, 0.55);
}

.site-footer__copy,
.site-footer__icp {
  margin: 0;
}

.site-footer__year {
  color: rgba(244, 235, 221, 0.88);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}

.legal-links a {
  color: rgba(244, 235, 221, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 235, 221, 0.25);
  padding-bottom: 1px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--bone);
  border-bottom-color: var(--orange);
}

/* ---------------- 通用版式容器 ---------------- */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 54px);
}

.shell--wide {
  max-width: 1440px;
}

.section {
  padding-block: clamp(44px, 6vw, 88px);
}

.section--tight {
  padding-block: clamp(26px, 3.6vw, 46px);
}

.prose {
  max-width: 68ch;
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--ink);
}

.prose > * + * {
  margin-top: 1.05em;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--deep);
}

.prose h3 {
  margin-top: 1.35em;
  font-size: clamp(19px, 2.2vw, 23px);
  color: var(--navy);
}

.prose a {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

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

.prose ul,
.prose ol {
  display: grid;
  gap: 0.45em;
  padding-left: 1.3em;
}

.prose li::marker {
  color: var(--orange);
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 6px 0 6px 20px;
  border-left: 3px solid var(--orange);
  color: var(--navy);
  font-weight: 600;
}

.prose code {
  font-family: var(--font-data);
  font-size: 0.92em;
  background: rgba(36, 28, 22, 0.07);
  padding: 0.1em 0.35em;
}

/* ---------------- 标签与数据 ---------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid currentColor;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  background: rgba(184, 67, 28, 0.08);
}

.tag--win {
  color: var(--grass);
  background: rgba(63, 143, 82, 0.1);
}

.tag--risk {
  color: var(--alert);
  background: rgba(201, 52, 42, 0.1);
}

.tag--key {
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(242, 106, 46, 0.12);
}

.data-num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

/* ---------------- 网格与卡片 ---------------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 28px);
}

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

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

.card {
  position: relative;
  padding: clamp(16px, 2.2vw, 26px);
  background: var(--bone);
  border: 1px solid rgba(36, 28, 22, 0.12);
}

.card--dark {
  background: var(--navy);
  border-color: rgba(244, 235, 221, 0.14);
  color: var(--bone);
}

/* ---------------- 图片容器 ---------------- */

.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(36, 28, 22, 0.16);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--16x9 {
  aspect-ratio: 16 / 9;
}

.figure--4x3 {
  aspect-ratio: 4 / 3;
}

.figure--1x1 {
  aspect-ratio: 1 / 1;
}

.figure--3x4 {
  aspect-ratio: 3 / 4;
}

.figure--plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 106, 46, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 106, 46, 0.22) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}

.figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(8, 26, 43, 0.88));
  color: var(--bone);
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

/* ---------------- 面包屑 ---------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--slate);
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--rust);
  border-bottom-color: currentColor;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(92, 107, 120, 0.55);
}

/* ---------------- 断点 ---------------- */

@media (max-width: 639.98px) {
  :root {
    --top-h: 64px;
  }
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr 1.2fr;
  }
}

@media (min-width: 900px) {
  .grid--split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-w);
  }

  .rail {
    display: flex;
  }

  .topbar {
    left: var(--rail-w);
  }

  .topbar__brand {
    display: none;
  }

  .topbar__cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    margin-left: 0;
    margin-right: auto;
  }
}

@media (max-width: 1023.98px) {
  .nav {
    position: fixed;
    top: var(--top-h);
    left: 0;
    right: 0;
    display: block;
    padding: 8px 16px 20px;
    background: #0A2034;
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 24px 44px rgba(8, 26, 43, 0.5);
    max-height: calc(100vh - var(--top-h));
    max-height: calc(100dvh - var(--top-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 15px 8px;
    border-bottom: 1px solid rgba(244, 235, 221, 0.12);
    border-radius: 0;
    font-size: 16px;
    white-space: normal;
  }

  .nav__link[aria-current="page"] {
    background: rgba(242, 106, 46, 0.12);
    color: var(--orange);
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .topbar__cta {
    display: none;
  }
}

/* ---------------- 减弱动效 ---------------- */

@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;
  }

  .skip-link {
    transition: none;
  }
}
