/* ============================================================
   九博体育 CN — 共享样式表 /assets/site.css
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  letter-spacing: .005em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--electro); }

button { font-family: inherit; }

/* ---------- 变量 ---------- */
:root {
  --navy: #08182B;
  --panel: #10263F;
  --steel: #1E3B5C;
  --orange: #FF6A13;
  --orange-soft: #FF9147;
  --mint: #14D2A0;
  --electro: #3BC5FF;
  --amber: #FFC44D;
  --ink: #EAF1F8;
  --muted: #93A7BC;

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

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1280px;
  --gut: clamp(16px, 4vw, 40px);
  --line: 1px solid var(--steel);
  --shadow-float: 0 18px 40px rgba(0, 0, 0, .45);
}

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--electro);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 布局工具 ---------- */
.wrap {
  width: min(calc(100% - var(--gut) * 2), var(--maxw));
  margin-inline: auto;
}

#main-content { display: block; outline: none; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.section { position: relative; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: clamp(22px, 3vw, 34px);
  border-bottom: var(--line);
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: .01em;
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

.prose { max-width: 70ch; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 2.1em 0 .7em; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 1.7em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: #FFFFFF; }
.prose a {
  color: var(--electro);
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 197, 255, .35);
}
.prose a:hover { color: var(--orange-soft); border-color: var(--orange-soft); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 8px;
  color: var(--steel);
}
.breadcrumb-item a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(147, 167, 188, .4);
}
.breadcrumb-item a:hover { color: var(--electro); border-color: var(--electro); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease,
              border-color .16s ease, transform .16s ease;
}
.btn--primary { background: var(--orange); color: #08182B; border-color: var(--orange); }
.btn--primary:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
  transform: translateY(-2px);
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--steel); }
.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange-soft);
  transform: translateY(-2px);
}
.btn--sm { padding: 8px 14px; font-size: 13.5px; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--steel);
  border-radius: 999px;
  background: rgba(30, 59, 92, .38);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: .04em;
  white-space: nowrap;
}
.tag--live { color: var(--mint); border-color: rgba(20, 210, 160, .45); background: rgba(20, 210, 160, .08); }
.tag--warn { color: var(--amber); border-color: rgba(255, 196, 77, .45); background: rgba(255, 196, 77, .08); }
.tag--info { color: var(--electro); border-color: rgba(59, 197, 255, .45); background: rgba(59, 197, 255, .08); }

/* ---------- 资料卡 ---------- */
.card {
  position: relative;
  background: var(--panel);
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .16s ease, transform .16s ease;
}
.card:hover,
.card:focus-within {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: var(--line);
  background: rgba(59, 197, 255, .04);
}
.card-body { padding: 18px; }
.card-body > :last-child { margin-bottom: 0; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 11px 18px;
  border-top: var(--line);
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

/* ---------- 图片容器（供页面阶段放置视觉） ---------- */
.media {
  position: relative;
  aspect-ratio: 16 / 10;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(59, 197, 255, .10), transparent 55%),
    linear-gradient(320deg, rgba(255, 106, 19, .14), transparent 60%),
    var(--panel);
}
.media > img,
.media > picture > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

/* ---------- 竖排注释 ---------- */
.annotation-v {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--muted);
  line-height: 1;
}

/* ---------- 筛选条 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(20px, 3vw, 32px);
}
.filter-btn {
  appearance: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--steel);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.filter-btn:hover { color: var(--ink); border-color: var(--electro); }
.filter-btn.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #08182B;
  font-weight: 700;
}
.is-filtered-out { display: none !important; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 999;
  padding: 11px 18px;
  background: var(--orange);
  color: #08182B;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top .16s ease;
}
.skip-link:focus { top: 14px; }

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 24, 43, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding-block: 12px;
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), var(--amber) 55%, var(--mint));
  will-change: transform;
}

/* 品牌块 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}
.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--steel);
  border-radius: 9px;
  background: linear-gradient(140deg, var(--panel), var(--navy));
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  background: var(--orange);
  transform: skewX(-12deg);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--mint);
}
.brand-text { display: inline-flex; align-items: baseline; gap: 6px; }
.brand-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--ink);
}
.brand-suffix {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--electro);
}
.brand-version {
  margin-left: 2px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 77, .45);
  background: rgba(255, 196, 77, .10);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  line-height: 1.5;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  counter-reset: navindex;
}
.nav-item { flex: none; }

.nav-link {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease,
              box-shadow .16s ease;
}
.nav-link::before {
  counter-increment: navindex;
  content: counter(navindex, decimal-leading-zero);
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: rgba(147, 167, 188, .55);
  transition: color .16s ease;
}
.nav-link:hover {
  color: var(--ink);
  background: rgba(30, 59, 92, .55);
}
.nav-link:hover::before { color: var(--electro); }

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 106, 19, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 19, .45);
}
.nav-link[aria-current="page"]::before { color: var(--orange); }

/* 移动端汉堡 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: var(--panel);
  border: 1px solid var(--steel);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.nav-toggle:hover { border-color: var(--orange); color: var(--orange-soft); }

.nav-toggle-icon {
  position: relative;
  width: 16px;
  height: 2px;
  flex: none;
  border-radius: 2px;
  background: currentColor;
  transition: background-color .16s ease;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .16s ease;
}
.nav-toggle-icon::before { top: -5px; }
.nav-toggle-icon::after { top: 5px; }

.site-header[data-open] .nav-toggle-icon { background: transparent; }
.site-header[data-open] .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 128px);
  background: linear-gradient(180deg, #08182B 0%, #0A1D32 58%, #08182B 100%);
  border-top: var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(260px, 42%);
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--mint));
}

/* 常驻反馈条 */
.feedback-bar {
  border-bottom: var(--line);
  background: linear-gradient(90deg, rgba(255, 106, 19, .10), rgba(20, 210, 160, .06));
}
.feedback-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  padding: 14px 0;
}
.feedback-text {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}
.feedback-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(20, 210, 160, .16);
}
.feedback-side {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.feedback-version {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}
.feedback-version b { color: var(--amber); font-weight: 700; }

/* 页脚主体 */
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(36px, 5vw, 64px) 0;
}

.footer-brand .brand { margin-bottom: 4px; }
.footer-line {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}
.footer-line--dim { color: rgba(147, 167, 188, .72); }

.footer-col-title {
  position: relative;
  margin: 0 0 15px;
  padding-left: 13px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
}
.footer-col-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .34em;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--orange);
}

.footer-list {
  display: grid;
  gap: 9px;
  list-style: none;
}
.footer-list a {
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
  transition: color .16s ease, padding-left .16s ease;
}
.footer-list a:hover {
  color: var(--electro);
  padding-left: 4px;
}

.footer-list--contact { gap: 13px; }
.contact-row { display: grid; gap: 3px; }
.contact-label {
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(147, 167, 188, .72);
  font-family: var(--font-mono);
}
.contact-value {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
}

.copy-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--electro);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: color .16s ease;
}
.copy-btn:hover { color: var(--orange-soft); }
.copy-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px dashed currentColor;
  opacity: .8;
}
.copy-btn.is-copied { color: var(--mint); }
.copy-btn.is-copied .copy-hint {
  color: var(--mint);
  border-color: transparent;
}

/* 页脚底栏 */
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  padding: 20px 0 30px;
  border-top: var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-note { margin: 0; font-family: var(--font-mono); letter-spacing: .04em; }
.footer-icp { margin: 0; font-family: var(--font-mono); letter-spacing: .04em; }

.legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
}
.legal-list a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(147, 167, 188, .35);
  transition: color .16s ease, border-color .16s ease;
}
.legal-list a:hover { color: var(--electro); border-color: var(--electro); }

/* ============================================================
   入场显现
   ============================================================ */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}
html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .24s ease-out, transform .24s ease-out;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .grid--7-5 { grid-template-columns: minmax(0, 1fr); }
}

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

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: var(--panel);
    border-top: var(--line);
    border-bottom: var(--line);
    box-shadow: var(--shadow-float);
  }
  .site-header[data-open] .site-nav { display: block; }

  .nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 12px var(--gut);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .nav-item { flex: none; }
  .nav-link {
    padding: 9px 16px;
    border: 1px solid var(--steel);
    border-radius: 999px;
    background: rgba(8, 24, 43, .6);
  }
  .nav-link[aria-current="page"] {
    border-color: var(--orange);
    background: rgba(255, 106, 19, .14);
    box-shadow: none;
  }

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

  .header-inner { min-height: 62px; }
  .brand-name { font-size: 17px; }
  .brand-version { padding: 2px 7px; font-size: 11px; }
}

@media (max-width: 640px) {
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .feedback-inner { padding: 12px 0; }
  .feedback-text { font-size: 14.5px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 12px; }
  .brand-suffix { display: none; }
  .card-foot { font-size: 12.5px; }
}

/* ============================================================
   降低动效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.has-js [data-reveal] { opacity: 1; transform: none; }
  .card:hover, .card:focus-within,
  .btn:hover { transform: none; }
  .header-progress { display: none; }
}
