/* ============================================================
   顺发体育赛事 · 共享样式表 /assets/site.css
   深空蓝底 · 熔岩橙锚点 · 编辑部目录版式 · 电子看板材质
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100%;
  background-color: #0B1224;
  background-image:
    linear-gradient(to right, rgba(233, 211, 168, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(233, 211, 168, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 88% -12%, rgba(255, 106, 31, 0.16), transparent 55%),
    radial-gradient(circle at 4% 42%, rgba(22, 34, 74, 0.9), transparent 62%);
  background-size: 24px 24px, 24px 24px, auto, auto;
  background-attachment: fixed;
  color: #F4F7FF;
  font-family: "Source Han Sans SC", "思源黑体", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

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

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #05070F;
  --ink-800: #0B1224;
  --ink-700: #16224A;
  --orange: #FF6A1F;
  --orange-deep: #C33F0C;
  --sand: #E9D3A8;
  --cyan: #2BE0C8;
  --white: #F4F7FF;
  --gray: #6E7891;
  --red: #FF4D5E;

  --line-soft: rgba(233, 211, 168, 0.14);
  --line-mid: rgba(233, 211, 168, 0.24);
  --glow-orange: rgba(255, 106, 31, 0.35);
  --glow-cyan: rgba(43, 224, 200, 0.35);

  --font-head: "Source Han Sans SC", "思源黑体", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "思源黑体", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --radius-pill: 999px;
  --radius-card: 14px;
  --shell-max: 1240px;
  --header-h: 96px;
  --cut: 22px;
}

/* ---------- 3. 中文排版与文本工具 ---------- */
.mono {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lede {
  max-width: 62ch;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.75;
  color: rgba(244, 247, 255, 0.86);
}

.meta {
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.skew-6 {
  display: inline-block;
  transform: skewX(-6deg);
  transform-origin: left bottom;
}

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-wide {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 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)); }

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section { padding: 72px 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  margin-bottom: 32px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--white);
}

.section-note {
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray);
}

.vertical-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(233, 211, 168, 0.55);
}

.divider-glow {
  height: 1px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, rgba(255, 106, 31, 0.6), rgba(43, 224, 200, 0.3), transparent);
}

/* ---------- 5. 头部外壳 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 10px 20px 0;
  background: rgba(5, 7, 15, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, rgba(22, 34, 74, 0.94), rgba(11, 18, 36, 0.9));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(244, 247, 255, 0.06);
  transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.site-header[data-scrolled="true"] .header-shell {
  padding: 5px 10px 5px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 106, 31, 0.16);
}

/* 品牌浮岛 */
.brand-island {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 12px;
  height: 26px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--orange), var(--orange-deep));
  transform: skewX(-8deg);
  box-shadow: 0 0 16px var(--glow-orange);
}

.brand-name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--white);
  white-space: nowrap;
}

.version-badge {
  flex: 0 0 auto;
  padding: 2px 9px 3px;
  border: 1px solid rgba(43, 224, 200, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(43, 224, 200, 0.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--sand);
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  max-width: 320px;
  transition: opacity 0.25s ease, max-width 0.3s ease;
}

.site-header[data-scrolled="true"] .brand-tagline {
  opacity: 0;
  max-width: 0;
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-pill);
  color: var(--sand);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.nav-toggle-label { line-height: 1; }

.nav-toggle-bars {
  position: relative;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background 0.25s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* 主导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.nav-capsules {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-capsules > li { display: flex; }

.nav-capsule {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(244, 247, 255, 0.78);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-capsule:hover {
  color: var(--white);
  background: rgba(244, 247, 255, 0.09);
}

.nav-capsule[aria-current="page"] {
  color: var(--ink-900);
  font-weight: 700;
  background: linear-gradient(120deg, var(--orange), var(--orange-deep));
  box-shadow: 0 0 20px var(--glow-orange);
}

.nav-utility {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 14px;
  border-left: 1px solid var(--line-mid);
}

.nav-utility-link {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--sand);
  opacity: 0.82;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-utility-link:hover {
  color: var(--orange);
  opacity: 1;
}

/* 标签索引带 */
.index-strip {
  position: relative;
  max-width: var(--shell-max);
  margin: 8px auto 0;
}

.index-strip::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 10px;
  width: 68px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(5, 7, 15, 0.95));
}

.index-strip-inner {
  display: flex;
  gap: 8px;
  padding: 8px 2px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.index-strip-inner::-webkit-scrollbar { display: none; }

.tag-chip {
  position: relative;
  flex: 0 0 auto;
  padding: 6px 12px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(233, 211, 168, 0.06);
  color: rgba(244, 247, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tag-chip:hover {
  color: var(--white);
  border-color: rgba(255, 106, 31, 0.55);
}

.tag-chip[aria-pressed="true"] {
  color: var(--ink-900);
  font-weight: 700;
  background: linear-gradient(120deg, var(--orange), var(--orange-deep));
  border-color: var(--orange);
  box-shadow: 0 0 18px var(--glow-orange);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(233, 211, 168, 0.1);
  overflow: hidden;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  transition: width 0.12s linear;
}

/* 跳转链接 */
.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  transition: top 0.2s ease;
}

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

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: 80px;
  padding: 56px 0 28px;
  background: linear-gradient(180deg, var(--ink-900), #02030A);
  border-top: 1px solid var(--line-soft);
  color: rgba(244, 247, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--white);
}

.footer-brand-tagline {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--sand);
  opacity: 0.74;
}

.footer-version {
  margin-top: 12px;
  font-size: 12px;
  color: var(--cyan);
}

.footer-col-title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}

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

.footer-list a,
.footer-list span {
  font-size: 14px;
  color: rgba(244, 247, 255, 0.72);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-list a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: rgba(244, 247, 255, 0.68);
}

.footer-contact .mono { color: var(--sand); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.footer-legal { color: var(--sand); opacity: 0.8; }

.footer-region {
  padding: 2px 10px;
  border: 1px solid rgba(255, 106, 31, 0.4);
  border-radius: 3px;
  color: var(--orange);
}

.footer-copy { margin-left: auto; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--orange), var(--orange-deep));
  color: var(--ink-900);
  box-shadow: 0 10px 26px rgba(195, 63, 12, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--glow-orange);
}

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

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

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

/* ---------- 8. 面包屑 ---------- */
.breadcrumb { padding: 26px 0 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(233, 211, 168, 0.4);
}

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

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

/* ---------- 9. 通用组件 ---------- */
.card {
  position: relative;
  padding: 24px;
  background: linear-gradient(160deg, rgba(22, 34, 74, 0.86), rgba(11, 18, 36, 0.92));
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translate(-4px, -4px);
  background: linear-gradient(160deg, rgba(30, 46, 96, 0.92), rgba(14, 22, 44, 0.96));
  box-shadow: 6px 6px 0 rgba(233, 211, 168, 0.07);
}

.card-cut {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: rgba(22, 34, 74, 0.58);
  overflow: hidden;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 5px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: rgba(233, 211, 168, 0.1);
  color: var(--sand);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.paper-edge {
  position: relative;
  background: rgba(233, 211, 168, 0.04);
  border: 1px solid var(--line-mid);
  box-shadow: 6px 6px 0 rgba(233, 211, 168, 0.07), 12px 12px 0 rgba(5, 7, 15, 0.6);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 4px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.status-badge.is-live { color: var(--cyan); }
.status-badge.is-live::before { animation: badge-pulse 2.4s ease-in-out infinite; }
.status-badge.is-next { color: var(--orange); }
.status-badge.is-warn { color: var(--red); }
.status-badge.is-done { color: var(--gray); }

@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px currentColor; }
  50% { opacity: 0.35; box-shadow: 0 0 2px currentColor; }
}

/* ---------- 10. 图片容器 ---------- */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, rgba(22, 34, 74, 0.92), rgba(5, 7, 15, 0.96));
}

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

.img-frame-16x9 { aspect-ratio: 16 / 9; }
.img-frame-4x3 { aspect-ratio: 4 / 3; }
.img-frame-1x1 { aspect-ratio: 1 / 1; }
.img-frame-21x9 { aspect-ratio: 21 / 9; }

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  background-image: repeating-linear-gradient(135deg, rgba(233, 211, 168, 0.06) 0 12px, transparent 12px 24px);
  color: rgba(233, 211, 168, 0.5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-align: center;
}

/* ---------- 11. 显现动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ---------- 12. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .brand-tagline { max-width: 200px; }
  .nav-capsule { padding: 8px 11px; font-size: 13px; }
}

@media (max-width: 900px) {
  :root { --cut: 16px; }

  .site-header { padding: 8px 12px 0; }

  .header-shell {
    flex-wrap: wrap;
    border-radius: 18px;
    padding: 8px 10px 8px 12px;
  }

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

  .brand-tagline { display: none; }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
    padding: 14px;
    border: 1px solid var(--line-mid);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(22, 34, 74, 0.98), rgba(5, 7, 15, 0.98));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  }

  .primary-nav[data-open="true"] {
    display: flex;
    animation: nav-drop 0.22s ease both;
  }

  .nav-capsules {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-capsule {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
  }

  .nav-utility {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-left: 0;
    padding-top: 10px;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .nav-utility-link {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
  }

  .nav-utility-link:hover { background: rgba(255, 106, 31, 0.12); }

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

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

  .section { padding: 56px 0; }

  .footer-copy { margin-left: 0; }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

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

  .container,
  .container-wide,
  .container-narrow { padding-inline: 18px; }

  .brand-name { font-size: 17px; }

  .index-strip::after { width: 46px; }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-contact { flex-direction: column; }

  .section-head { gap: 12px; }

  .grid { gap: 18px; }
}

/* ---------- 14. 减少动效 ---------- */
@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;
  }

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

  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}
