/* ==========================================================================
   新利体育主站 — /assets/site.css
   夜场数据指挥台：深空蓝底 / 荧光青数据指针 / 亮橙动作 / 等宽码表
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--sx-deep);
  color: var(--sx-white);
  font-family: var(--sx-ff-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }

ul, ol { padding: 0; }

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

button { font: inherit; color: inherit; }

a { color: var(--sx-cyan); text-decoration-color: rgba(70, 239, 210, .35); text-underline-offset: 3px; }
a:hover { color: #7FF5E0; }

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

::selection { background: rgba(70, 239, 210, .28); color: var(--sx-white); }

/* ---------- 2. 设计变量 ---------- */
:root {
  --sx-deep:   #0A1830;
  --sx-ink:    #05101F;
  --sx-slate:  #253044;
  --sx-line:   #1B2740;
  --sx-white:  #ECF2FA;
  --sx-mist:   #7C8DA6;
  --sx-cream:  #F4EFE4;
  --sx-cyan:   #46EFD2;
  --sx-orange: #FF8A3D;
  --sx-rust:   #8E2136;
  --sx-clay:   #B4593B;
  --sx-moss:   #55705C;

  --sx-ff-head: "Source Han Sans Heavy", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --sx-ff-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --sx-ff-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --sx-wrap: 1200px;
  --sx-gutter: clamp(16px, 4vw, 40px);
  --sx-radius: 18px;
  --sx-ease: cubic-bezier(.22, .61, .36, 1);
  --sx-header-h: 68px;
}

/* ---------- 3. 排版阶梯 ---------- */
.sx-h1 {
  font-family: var(--sx-ff-head);
  font-weight: 900;
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--sx-white);
}

.sx-h2 {
  font-family: var(--sx-ff-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--sx-white);
}

.sx-h3 {
  font-family: var(--sx-ff-head);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--sx-white);
}

.sx-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--sx-mist);
  max-width: 38em;
}

.sx-prose {
  max-width: 38em;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--sx-white);
}

.sx-prose p + p { margin-top: .9em; }

.sx-num {
  font-family: var(--sx-ff-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  font-size: .875em;
}

.sx-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sx-ff-mono);
  font-size: .75rem;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sx-cyan);
}

.sx-kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 2px;
  background: var(--sx-cyan);
}

/* ---------- 4. 布局工具 ---------- */
.sx-wrap {
  width: 100%;
  max-width: var(--sx-wrap);
  margin-inline: auto;
  padding-inline: var(--sx-gutter);
}

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

.sx-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

@media (max-width: 900px) {
  .sx-grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .sx-grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 5. 按钮 ---------- */
.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .68rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: var(--sx-ff-body);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--sx-ease), background-color .18s var(--sx-ease),
              border-color .18s var(--sx-ease), color .18s var(--sx-ease),
              box-shadow .18s var(--sx-ease);
}

.sx-btn:hover { transform: translateY(-1px); }
.sx-btn:active { transform: translateY(0); }

.sx-btn--hot {
  background: var(--sx-orange);
  color: #180B02;
  box-shadow: 0 0 0 1px rgba(255, 138, 61, .38), 0 12px 28px -14px rgba(255, 138, 61, .85);
}

.sx-btn--hot:hover { background: #FFA066; color: #180B02; }

.sx-btn--ghost {
  border-color: var(--sx-line);
  background: rgba(70, 239, 210, .04);
  color: var(--sx-white);
}

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

.sx-btn--quiet {
  padding: .5rem .6rem;
  color: var(--sx-mist);
  font-weight: 600;
}

.sx-btn--quiet:hover { color: var(--sx-cyan); }

/* ---------- 6. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 200;
  padding: .65rem 1.1rem;
  border-radius: 0 0 12px 12px;
  background: var(--sx-cyan);
  color: #04121A;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
  transition: top .18s var(--sx-ease);
}

.skip-link:focus { top: 0; color: #04121A; }

/* ---------- 7. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--sx-deep);
  border-bottom: 1px solid var(--sx-line);
}

.sx-topbar {
  background: linear-gradient(90deg, #0A1830 0%, #0E2038 52%, #0A1830 100%);
  border-bottom: 1px solid var(--sx-line);
}

.sx-topbar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--sx-header-h);
  transition: min-height .22s var(--sx-ease);
}

.site-header[data-compact] .sx-topbar__inner { min-height: 52px; }

.sx-topbar__actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
  margin-left: auto;
}

/* 品牌 */
.sx-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
  color: var(--sx-white);
  font-family: var(--sx-ff-head);
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: font-size .22s var(--sx-ease);
}

.sx-brand:hover { color: var(--sx-white); }

.site-header[data-compact] .sx-brand { font-size: .9375rem; }

.sx-brand__mark {
  display: block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: var(--sx-cyan);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 18px rgba(70, 239, 210, .5);
}

.sx-brand__name { white-space: nowrap; }

.sx-brand__sub {
  padding-left: .55rem;
  border-left: 1px solid var(--sx-line);
  font-family: var(--sx-ff-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--sx-clay);
  white-space: nowrap;
}

/* 等宽计数条 */
.sx-ticker {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .45rem;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sx-ff-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--sx-mist);
}

.sx-ticker__label { white-space: nowrap; }

.sx-ticker__value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sx-cyan);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.sx-ticker__unit { color: var(--sx-mist); }

/* 移动导航按钮 */
.sx-navtoggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  border: 1px solid var(--sx-line);
  border-radius: 999px;
  background: transparent;
  color: var(--sx-white);
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s var(--sx-ease), color .18s var(--sx-ease);
}

.sx-navtoggle:hover { border-color: var(--sx-cyan); color: var(--sx-cyan); }

.sx-navtoggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.sx-navtoggle__bars > span {
  display: block;
  height: 2px;
  background: var(--sx-cyan);
  transition: transform .2s var(--sx-ease);
}

.sx-navtoggle[aria-expanded="true"] .sx-navtoggle__bars > span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.sx-navtoggle[aria-expanded="true"] .sx-navtoggle__bars > span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.sx-navtoggle__text { white-space: nowrap; }

/* 下层导航 */
.sx-nav {
  background: var(--sx-ink);
}

.sx-nav__list {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sx-nav__list::-webkit-scrollbar { display: none; }

.sx-nav__list li { flex: 0 0 auto; }

.sx-nav__list a {
  position: relative;
  display: block;
  padding: .9rem .95rem;
  color: var(--sx-mist);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s var(--sx-ease), padding .22s var(--sx-ease);
}

.sx-nav__list a::after {
  content: "";
  position: absolute;
  left: .95rem;
  right: .95rem;
  bottom: .42rem;
  height: 2px;
  background: var(--sx-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--sx-ease);
}

.sx-nav__list a:hover { color: var(--sx-white); }

.sx-nav__list a[aria-current="page"] { color: var(--sx-white); }

.sx-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.site-header[data-compact] .sx-nav__list a { padding-block: .62rem; }

/* 滚动进度 */
.sx-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.sx-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--sx-cyan), var(--sx-orange));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  background: var(--sx-ink);
  border-top: 1px solid var(--sx-line);
  color: var(--sx-mist);
  padding-top: clamp(40px, 5vw, 72px);
}

.sx-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(24px, 3vw, 48px);
}

.sx-footer__col { min-width: 0; }

.sx-footer__brandmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--sx-white);
  font-family: var(--sx-ff-head);
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: -.01em;
  text-decoration: none;
}

.sx-footer__brandmark:hover { color: var(--sx-white); }

.sx-footer__tagline {
  margin-top: .85rem;
  max-width: 22em;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--sx-mist);
}

.sx-footer__title {
  position: relative;
  margin-bottom: .95rem;
  padding-left: .85rem;
  font-family: var(--sx-ff-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sx-white);
}

.sx-footer__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 6px;
  height: 6px;
  background: var(--sx-clay);
}

.sx-footer__list {
  display: grid;
  gap: .55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sx-footer__list a {
  color: var(--sx-mist);
  font-size: .875rem;
  text-decoration: none;
  transition: color .16s var(--sx-ease);
}

.sx-footer__list a:hover { color: var(--sx-cyan); }

.sx-footer__contact {
  display: grid;
  gap: .7rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .875rem;
  line-height: 1.6;
}

.sx-footer__contact li { min-width: 0; overflow-wrap: anywhere; }

.sx-footer__mail,
.sx-footer__tel {
  font-family: var(--sx-ff-mono);
  font-size: .8125rem;
  letter-spacing: .02em;
  color: var(--sx-white);
}

.sx-footer__addr { color: var(--sx-mist); }

.sx-footer__note {
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px dashed var(--sx-line);
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--sx-mist);
}

.sx-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  margin-top: clamp(32px, 4vw, 56px);
  padding-block: 1.1rem;
  border-top: 1px solid var(--sx-line);
  font-family: var(--sx-ff-mono);
  font-size: .75rem;
  letter-spacing: .02em;
  color: var(--sx-mist);
}

.sx-footer__icp { margin: 0; }

.sx-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sx-footer__legal a { color: var(--sx-mist); text-decoration: none; }
.sx-footer__legal a:hover { color: var(--sx-cyan); }

.sx-footer__year { margin: 0; }

.sx-footer__year span { margin-inline: .28em; }

/* ---------- 9. 面包屑 ---------- */
.sx-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sx-ff-mono);
  font-size: .75rem;
  letter-spacing: .03em;
  color: var(--sx-mist);
}

.sx-crumbs li {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.sx-crumbs li + li::before {
  content: "/";
  color: var(--sx-line);
}

.sx-crumbs a { color: var(--sx-mist); text-decoration: none; }
.sx-crumbs a:hover { color: var(--sx-cyan); }
.sx-crumbs [aria-current="page"] { color: var(--sx-white); }

/* ---------- 10. 面板与标签 ---------- */
.sx-panel {
  background: var(--sx-slate);
  border: 1px solid var(--sx-line);
  border-radius: var(--sx-radius);
  padding: clamp(16px, 2vw, 26px);
}

.sx-panel--ink {
  background: var(--sx-ink);
}

.sx-panel--cream {
  background: var(--sx-cream);
  border-color: rgba(10, 24, 48, .14);
  color: #12203A;
}

.sx-panel--cream .sx-h2,
.sx-panel--cream .sx-h3 { color: #0A1830; }

.sx-panel--cream .sx-lead,
.sx-panel--cream .sx-prose { color: #3A4A63; }

.sx-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .58rem;
  border: 1px solid var(--sx-line);
  border-radius: 999px;
  font-family: var(--sx-ff-mono);
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--sx-mist);
  white-space: nowrap;
}

.sx-tag--hot {
  border-color: rgba(255, 138, 61, .45);
  background: rgba(255, 138, 61, .08);
  color: var(--sx-orange);
}

.sx-tag--cyan {
  border-color: rgba(70, 239, 210, .4);
  background: rgba(70, 239, 210, .07);
  color: var(--sx-cyan);
}

.sx-tag--rust {
  border-color: rgba(142, 33, 54, .65);
  background: rgba(142, 33, 54, .2);
  color: #E8899C;
}

.sx-tag--moss {
  border-color: rgba(85, 112, 92, .75);
  background: rgba(85, 112, 92, .22);
  color: #A8C4AE;
}

.sx-tag--clay {
  border-color: rgba(180, 89, 59, .6);
  background: rgba(180, 89, 59, .18);
  color: #E8A184;
}

/* ---------- 11. 目录型索引条 ---------- */
.sx-index {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding-bottom: .7rem;
  scrollbar-width: thin;
  scrollbar-color: var(--sx-line) transparent;
}

.sx-index::-webkit-scrollbar { height: 6px; }
.sx-index::-webkit-scrollbar-thumb { background: var(--sx-line); border-radius: 999px; }
.sx-index::-webkit-scrollbar-track { background: transparent; }

.sx-index__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 156px;
  padding: .8rem .95rem;
  border: 1px solid var(--sx-line);
  border-radius: 14px;
  background: rgba(37, 48, 68, .55);
  color: var(--sx-mist);
  text-decoration: none;
  transition: border-color .2s var(--sx-ease), background-color .2s var(--sx-ease),
              color .2s var(--sx-ease);
}

.sx-index__item:hover,
.sx-index__item:focus-visible {
  border-color: var(--sx-cyan);
  background: rgba(70, 239, 210, .07);
  color: var(--sx-white);
}

.sx-index__no {
  font-family: var(--sx-ff-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  color: var(--sx-clay);
}

.sx-index__name {
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sx-white);
}

.sx-index__meta {
  font-family: var(--sx-ff-mono);
  font-size: .6875rem;
  letter-spacing: .04em;
  color: var(--sx-mist);
}

.sx-index__item[data-active="true"] {
  border-color: var(--sx-cyan);
  background: rgba(70, 239, 210, .09);
  animation: sx-scan .3s var(--sx-ease) 1;
}

@keyframes sx-scan {
  from { box-shadow: 0 0 0 0 rgba(70, 239, 210, .55); }
  to   { box-shadow: 0 0 0 12px rgba(70, 239, 210, 0); }
}

/* ---------- 12. 图片容器 ---------- */
.sx-figure {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--sx-line);
  border-radius: var(--sx-radius);
  background: var(--sx-slate);
}

.sx-figure__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.sx-figure--wide .sx-figure__img { aspect-ratio: 21 / 9; }
.sx-figure--tall .sx-figure__img { aspect-ratio: 4 / 5; }
.sx-figure--square .sx-figure__img { aspect-ratio: 1 / 1; }

.sx-figure--empty .sx-figure__img {
  background:
    repeating-linear-gradient(115deg, rgba(70, 239, 210, .07) 0 1px, transparent 1px 15px),
    radial-gradient(120% 90% at 22% 10%, rgba(70, 239, 210, .16), transparent 62%),
    linear-gradient(160deg, #1A2840, #0D1A30 58%, #0A1424);
}

.sx-figure__cap {
  padding: .7rem 1rem;
  border-top: 1px solid var(--sx-line);
  background: var(--sx-ink);
  font-family: var(--sx-ff-mono);
  font-size: .75rem;
  letter-spacing: .03em;
  color: var(--sx-mist);
}

/* ---------- 13. 滚动显现 ---------- */
[data-reveal] {
  transition: opacity .26s var(--sx-ease), transform .26s var(--sx-ease);
  transition-delay: var(--sx-delay, 0ms);
}

[data-reveal="pending"] {
  opacity: 0;
  transform: translateY(14px);
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1024px) {
  .sx-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .sx-navtoggle { display: inline-flex; }

  .sx-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--sx-ink);
    border-top: 1px solid var(--sx-line);
    border-bottom: 1px solid var(--sx-line);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .28s var(--sx-ease), visibility .28s var(--sx-ease);
  }

  .sx-nav[data-open="true"] {
    max-height: min(72vh, 520px);
    overflow-y: auto;
    visibility: visible;
  }

  .sx-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: .4rem;
    overflow: visible;
  }

  .sx-nav__list li { width: 100%; }

  .sx-nav__list a {
    padding: .95rem 1.6rem;
    border-bottom: 1px solid var(--sx-line);
    font-size: 1rem;
  }

  .sx-nav__list li:last-child a { border-bottom: 0; }

  .sx-nav__list a::after {
    left: 1rem;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 12px;
    height: 2px;
    transform: translateY(-50%) scaleX(0);
  }

  .sx-nav__list a[aria-current="page"]::after {
    transform: translateY(-50%) scaleX(1);
  }

  .site-header[data-compact] .sx-nav__list a { padding-block: .95rem; }

  html { scroll-padding-top: 92px; }
}

@media (max-width: 720px) {
  .sx-ticker__label { display: none; }
  .sx-topbar__watch { display: none; }
}

@media (max-width: 600px) {
  .sx-footer__grid { grid-template-columns: 1fr; }
  .sx-footer__bar { justify-content: flex-start; }
  .sx-brand__sub { display: none; }
}

@media (max-width: 480px) {
  .sx-ticker { display: none; }
  .sx-btn { padding: .62rem .95rem; font-size: .8125rem; }
}

/* ---------- 15. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] { transition: none !important; }

  [data-reveal="pending"] {
    opacity: 1 !important;
    transform: none !important;
  }

  .sx-btn:hover { transform: none; }
}
