/* ==========================================================================
   非凡体育主站 · 共享样式表 /assets/site.css
   夜场记分牌：深靛蓝底 + 荧光青 / 活力橙 / 电紫强调 + 粗描边硬阴影
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 118px;
}

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

ul, ol { list-style: none; }

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

button { font: inherit; color: inherit; background: none; border: 0; }

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

address { font-style: normal; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #05070F;
  --night: #0B1230;
  --surface: #141C42;
  --cyan: #35F2D0;
  --orange: #FF7A2F;
  --violet: #A46BFF;
  --grey: #8A94B8;
  --white: #FFFFFF;
  --mist: #E6EAF5;
  --alert: #FF4D6A;

  --font-display: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-label: "Arial Narrow", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --shell: 1280px;
  --shell-wide: 1480px;
  --gap: 32px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-tight: 3px 3px 0 var(--ink);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. 基底与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(138, 148, 184, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 148, 184, .055) 1px, transparent 1px),
    radial-gradient(1100px 620px at 9% -12%, rgba(53, 242, 208, .13), transparent 62%),
    radial-gradient(880px 520px at 93% 2%, rgba(164, 107, 255, .15), transparent 64%),
    radial-gradient(760px 460px at 50% 108%, rgba(255, 122, 47, .10), transparent 66%);
  background-size: 96px 96px, 96px 96px, auto, auto, auto;
  background-attachment: fixed;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#main-content { display: block; padding-top: 8px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--white);
  letter-spacing: -.005em;
}

p { line-height: 1.75; }

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -140px;
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-tight);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: clamp(16px, 3vw, 28px);
  padding-right: clamp(16px, 3vw, 28px);
}
.shell--wide { max-width: var(--shell-wide); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding: clamp(32px, 4.5vw, 56px) 0; }

.rule {
  height: 0;
  border: 0;
  border-top: 2px dashed rgba(138, 148, 184, .4);
  margin: clamp(24px, 3vw, 40px) 0;
}

/* ---------- 5. 文字组件 ---------- */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  color: var(--white);
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  color: var(--white);
}
.display-3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 62ch;
}

.muted { color: var(--grey); }

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

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  color: var(--mist);
  box-shadow: var(--shadow-tight);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--cyan { background: var(--cyan); color: var(--ink); }
.btn--ghost {
  background: transparent;
  border-color: var(--grey);
  color: var(--mist);
  box-shadow: none;
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: none;
  transform: none;
}

/* ---------- 7. 头部 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px clamp(12px, 3vw, 28px) 0;
}

.head-island {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  padding: 10px 14px 10px 18px;
  background: rgba(20, 28, 66, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-hard);
  transition: padding .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-radius .25s var(--ease);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.brand-mark::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--cyan);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}
.brand-sub {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
  transition: opacity .2s var(--ease), max-width .25s var(--ease);
  max-width: 220px;
  overflow: hidden;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--mist);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  flex: none;
}
.nav-toggle-bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 10px;
  flex: none;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  transition: transform .2s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

/* 主导航 */
.primary-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-list a {
  display: block;
  padding: 8px 13px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mist);
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.nav-list a:hover {
  color: var(--cyan);
  background: rgba(53, 242, 208, .09);
}
.nav-list a[aria-current="page"] {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--ink);
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.head-actions .btn {
  padding: 9px 14px;
  font-size: 12px;
}

/* 收缩态 */
.site-head.is-condensed { padding-top: 8px; }
.site-head.is-condensed .head-island {
  padding: 6px 10px 6px 16px;
  background: rgba(11, 18, 48, .95);
  box-shadow: 3px 3px 0 var(--ink);
}
.site-head.is-condensed .brand-sub {
  opacity: 0;
  max-width: 0;
}

/* 状态条 */
.status-strip {
  max-width: var(--shell);
  margin: 8px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 7px 18px;
  background: rgba(5, 7, 15, .74);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 12px;
  max-height: 80px;
  overflow: hidden;
  transition: opacity .2s var(--ease), max-height .3s var(--ease), margin .3s var(--ease), padding .3s var(--ease), border-width .3s var(--ease);
}
.site-head.is-condensed .status-strip {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
}
.status-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.status-item b {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--white);
}
.status-item .dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--cyan);
}
.status-item .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .4;
  animation: status-ping 2.6s ease-out infinite;
}
.status-item[data-service="notes"] .dot { background: var(--orange); color: var(--orange); }
.status-item[data-service="clips"] .dot { background: var(--cyan); color: var(--cyan); }
.status-item[data-service="app"] .dot { background: var(--violet); color: var(--violet); }
.status-meta { margin-left: auto; letter-spacing: .04em; }

@keyframes status-ping {
  0% { transform: scale(.6); opacity: .55; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- 8. 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 2px solid var(--ink);
  background:
    linear-gradient(180deg, rgba(20, 28, 66, .95), rgba(5, 7, 15, .98));
  color: var(--mist);
}
.site-foot::before {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--orange) 0 24px, var(--ink) 24px 26px,
    var(--cyan) 26px 50px, var(--ink) 50px 52px,
    var(--violet) 52px 76px, var(--ink) 76px 78px);
  opacity: .9;
}

.foot-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 3vw, 28px) clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.foot-mark {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}
.foot-sub {
  margin-top: 6px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.foot-close {
  margin-top: 14px;
  max-width: 26ch;
  font-size: 14px;
  color: var(--grey);
}

.foot-col-title {
  margin-bottom: 12px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey);
}
.foot-col:nth-of-type(1) .foot-col-title { color: var(--orange); }
.foot-col:nth-of-type(2) .foot-col-title { color: var(--cyan); }
.foot-col:nth-of-type(3) .foot-col-title { color: var(--violet); }

.foot-col ul {
  display: grid;
  gap: 9px;
}
.foot-col a {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14px;
  color: var(--mist);
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.foot-col a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.foot-contact {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 30px) clamp(16px, 3vw, 28px);
  border-top: 2px dashed rgba(138, 148, 184, .35);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey);
}
.foot-address { max-width: 42ch; line-height: 1.7; }
.foot-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: flex-end;
  line-height: 1.7;
}

.foot-base {
  border-top: 2px solid var(--ink);
  background: var(--ink);
}
.foot-base-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 28px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
}

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before {
  content: "/";
  color: var(--grey);
  opacity: .7;
}
.crumbs a {
  color: var(--mist);
  border-bottom: 2px solid rgba(53, 242, 208, .35);
  padding-bottom: 1px;
}
.crumbs a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--cyan); }

/* ---------- 10. 框景 / 斜切 / 图片容器 ---------- */
.frame {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 28, 66, .92), rgba(11, 18, 48, .92));
  box-shadow: var(--shadow-hard);
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.frame::before {
  top: -2px; left: -2px;
  border-top: 3px solid var(--cyan);
  border-left: 3px solid var(--cyan);
}
.frame::after {
  bottom: -2px; right: -2px;
  border-bottom: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
}
.frame--flush { padding: 0; }

.slab {
  display: inline-block;
  padding: 6px 16px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.figure {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-tight);
}
.figure img,
.figure .figure-ph {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.figure--tall img,
.figure--tall .figure-ph { aspect-ratio: 4 / 5; }
.figure--square img,
.figure--square .figure-ph { aspect-ratio: 1 / 1; }
.figure-ph {
  background:
    linear-gradient(135deg, rgba(53, 242, 208, .22), rgba(164, 107, 255, .22) 58%, rgba(255, 122, 47, .22)),
    var(--surface);
}
.figure--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.figure-cap {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey);
}

/* ---------- 11. 卡片 / 胶囊 / 数据 ---------- */
.card {
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-tight);
}
.card--cyan { border-left: 6px solid var(--cyan); }
.card--orange { border-left: 6px solid var(--orange); }
.card--violet { border-left: 6px solid var(--violet); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.chip--cyan { background: var(--cyan); }
.chip--orange { background: var(--orange); }
.chip--violet { background: var(--violet); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- 12. 滚动显现 ---------- */
[data-reveal] {
  transition: opacity .24s var(--ease), transform .24s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(12px);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 断点 ---------- */
@media (max-width: 1180px) {
  .brand-sub { display: none; }
  .nav-list a { padding: 7px 10px; font-size: 13px; }
  .head-actions .btn { padding: 8px 12px; font-size: 11px; }
}

@media (max-width: 1024px) {
  .head-island {
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 10px 12px;
    gap: 10px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .brand { flex: 0 1 auto; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .head-actions { margin-left: 0; }
  .head-actions .btn--ghost { display: none; }
  .head-actions .btn { padding: 8px 12px; font-size: 11px; }

  .primary-nav {
    display: none;
    flex: 1 0 100%;
    order: 9;
    margin: 0;
    padding: 10px 2px 4px;
    border-top: 2px dashed rgba(138, 148, 184, .32);
  }
  .primary-nav[data-open] { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-list a {
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 15px;
  }
  .nav-list a[aria-current="page"] { box-shadow: none; }

  .status-strip {
    border-radius: 20px;
    font-size: 11px;
    gap: 6px 14px;
    padding: 7px 14px;
  }
  .status-meta { display: none; }

  .grid-12 { gap: 24px; }
  .span-3, .span-4, .span-5, .span-6,
  .span-7, .span-8, .span-9 { grid-column: span 12; }

  .foot-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-lines { justify-content: flex-start; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 96px; }
  .site-head { padding-left: 10px; padding-right: 10px; }
  .head-island { border-radius: 20px; }
  .brand-mark { font-size: 17px; }
  .nav-toggle { padding: 7px 11px; font-size: 11px; }
  .nav-toggle-text { display: none; }
  .status-strip { border-radius: 16px; }
  .status-item { font-size: 11px; }

  .foot-shell { grid-template-columns: 1fr; gap: 28px; }
  .foot-base-inner { flex-direction: column; align-items: flex-start; }
  .btn { padding: 10px 15px; font-size: 12px; }
}

/* ---------- 14. 无障碍偏好 ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  [data-reveal].is-pending {
    opacity: 1 !important;
    transform: none !important;
  }
}
