/* =========================================================
   24直播网 · 午夜球场 / 计分板主题
   ========================================================= */

:root {
  --sp-bg: #f7f5ef;
  --sp-surface: #fffdf9;
  --sp-ink: #12161d;
  --sp-muted: #6a7380;
  --sp-line: #e6e0d4;
  --sp-primary: #e8410b;
  --sp-primary-deep: #c23306;
  --sp-live: #f43f5e;
  --sp-soon: #e58a00;
  --sp-done: #9aa3ad;
  --sp-navy: #12161d;
  --sp-radius: 8px;
  --sp-shadow: 0 1px 0 rgba(18, 22, 29, .04);
  --sp-shadow-hover: 0 4px 16px rgba(18, 22, 29, .08);
}

html[data-theme="dark"] {
  --sp-bg: #0b0f14;
  --sp-surface: #141a22;
  --sp-ink: #eef2f6;
  --sp-muted: #8a97a8;
  --sp-line: #1f2833;
  --sp-primary: #ff6a3d;
  --sp-primary-deep: #ff8a63;
  --sp-live: #ff4d6d;
  --sp-soon: #ffb020;
  --sp-done: #64748b;
  --sp-navy: #05080c;
  --sp-shadow: 0 1px 0 rgba(0, 0, 0, .4);
  --sp-shadow-hover: 0 6px 24px rgba(0, 0, 0, .45);
}

body {
  background: var(--sp-bg) !important;
  color: var(--sp-ink) !important;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.w, .wrap {
  width: min(1200px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
}

/* ---------- 顶部导航：深色 + 橙色下划线 ---------- */
.header {
  background: var(--sp-navy) !important;
  height: 64px !important;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header .navigation { height: 64px !important; }
.header .navigation .select ul { gap: 32px !important; }
.header .navigation .select ul li a {
  position: relative;
  padding: 20px 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, .72) !important;
  letter-spacing: .3px;
  transition: color .2s;
}
.header .navigation .select ul li a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  height: 3px;
  background: var(--sp-primary);
  transform: scaleX(0);
  transition: transform .2s;
}
.header .navigation .select ul li a:hover,
.header .navigation .select ul .active a {
  color: #fff !important;
}
.header .navigation .select ul li a:hover::after,
.header .navigation .select ul .active a::after { transform: scaleX(1); }

/* ---------- 锚点导航：下划线 tab ---------- */
.anchor-nav {
  display: flex;
  gap: 28px;
  margin: 18px auto 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--sp-line);
  padding-bottom: 0;
}
.anchor-nav::-webkit-scrollbar { display: none; }
.anchor-nav a {
  display: inline-block;
  padding: 8px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.anchor-nav a:hover { color: var(--sp-ink); }
.anchor-nav a.active {
  color: var(--sp-primary);
  border-bottom-color: var(--sp-primary);
}

/* ---------- SEO H1：块状标记 ---------- */
.seo-h1 {
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: .3px;
  margin: 22px 0 12px !important;
  color: var(--sp-ink) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.seo-h1::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--sp-primary);
  border-radius: 2px;
  transform: skewX(-12deg);
}

/* ---------- 轮播 + 新闻 ---------- */
.Min1 {
  margin: 16px auto 28px !important;
  display: grid !important;
  grid-template-columns: 1.15fr 1fr !important;
  gap: 24px !important;
  align-items: stretch !important;
}
.Min1 .Hdwrap {
  width: 100% !important;
  height: 420px !important;
  float: none !important;
  border-radius: var(--sp-radius) !important;
  overflow: hidden !important;
  box-shadow: none !important;
  border: 1px solid var(--sp-line) !important;
}
.Min1 .Hdwrap .bd img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.Min1 .Hdwrap .bd p {
  width: auto !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  height: auto !important;
  padding: 12px 16px !important;
  border-top: none !important;
  border-left: 4px solid var(--sp-primary) !important;
  border-radius: 6px !important;
  background: rgba(10, 14, 20, .82) !important;
  backdrop-filter: blur(6px);
  text-align: left !important;
}
.Min1 .Hdwrap .bd p a {
  font-size: 17px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  color: #fff !important;
}

.Min1 .R_news {
  width: 100% !important;
  height: 420px !important;
  float: none !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  background: var(--sp-surface) !important;
  border: 1px solid var(--sp-line) !important;
  border-radius: var(--sp-radius) !important;
  box-shadow: none !important;
  overflow-y: auto !important;
}
.Min1 .R_news .item {
  border-bottom: 1px dashed var(--sp-line) !important;
  padding-bottom: 12px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.Min1 .R_news .item .titleA a {
  font: 800 15px/1.55 "Microsoft YaHei", sans-serif !important;
  color: var(--sp-ink) !important;
  padding-left: 12px !important;
  border-left: 3px solid var(--sp-primary) !important;
  display: block !important;
  white-space: normal !important;
  -webkit-line-clamp: 2 !important;
}
.Min1 .R_news .item .titleB { display: flex !important; align-items: center !important; }
.Min1 .R_news .item .titleB .tie {
  float: none !important;
  width: auto !important;
  flex: 1 !important;
  font: normal 13.5px/26px "Microsoft YaHei", sans-serif !important;
  color: var(--sp-ink) !important;
}
.Min1 .R_news .item .titleB .tie:hover,
.Min1 .R_news .item .titleA a:hover { color: var(--sp-primary) !important; }
.Min1 .R_news .item .titleB .tie_count { display: none !important; }

/* ---------- NBA直播：计分板 ---------- */
.main .matchlive .title .topic h2 {
  font-size: 22px !important;
  font-weight: 900 !important;
  color: var(--sp-ink) !important;
  display: flex !important;
  align-items: center !important;
  letter-spacing: .5px;
}
.main .matchlive .title .topic h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 20px;
  background: var(--sp-primary);
  margin-right: 10px;
  border-radius: 2px;
  transform: skewX(-12deg);
}
.main .matchlive .outside {
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
  gap: 16px !important;
}
.main .matchlive .outside .teep {
  background: var(--sp-navy) !important;
  border-radius: 6px !important;
  height: 44px !important;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  grid-template-columns: 90px 140px 100px 1fr 130px !important;
}
.main .matchlive .outside .teep span { color: rgba(255, 255, 255, .65) !important; }
.main .matchlive .outside .surface {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.main .matchlive .outside .surface ul {
  gap: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid var(--sp-line) !important;
  border-radius: var(--sp-radius) !important;
  overflow: hidden;
  background: var(--sp-surface) !important;
}

/* 日期分割 */
.main .matchlive .outside .surface ul li.date-divider {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  background: var(--sp-bg) !important;
  box-shadow: none !important;
  border: none !important;
  border-top: 1px solid var(--sp-line) !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  font-weight: 800 !important;
  color: var(--sp-primary) !important;
}
.main .matchlive .outside .surface ul li.date-divider:first-child { border-top: none !important; }
.main .matchlive .outside .surface ul li.date-divider::before { display: none !important; }
.main .matchlive .outside .surface ul li.date-divider span {
  font-size: 14px !important;
  padding-left: 0 !important;
  border-left: none !important;
  letter-spacing: .5px;
}

/* 比赛行：计分板质感 */
.main .matchlive .outside .surface ul li {
  position: relative !important;
  padding: 14px 18px !important;
  background: var(--sp-surface) !important;
  border: none !important;
  border-bottom: 1px solid var(--sp-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: background .15s !important;
  display: grid !important;
  grid-template-columns: 90px 140px 100px 1fr 130px !important;
  align-items: center !important;
  text-align: center !important;
  gap: 10px !important;
}
.main .matchlive .outside .surface ul li:last-child { border-bottom: none !important; }
.main .matchlive .outside .surface ul li:hover { background: rgba(232, 65, 11, .04) !important; }
html[data-theme="dark"] .main .matchlive .outside .surface ul li:hover { background: rgba(255, 106, 61, .06) !important; }
.main .matchlive .outside .surface ul li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 3px !important;
  border-radius: 0 !important;
  background: var(--sp-done) !important;
}
.main .matchlive .outside .surface ul li.start::before { background: var(--sp-live) !important; }
.main .matchlive .outside .surface ul li.wait::before  { background: var(--sp-soon) !important; }
.main .matchlive .outside .surface ul li.start { animation: boardPulse 2s ease-in-out infinite; }
@keyframes boardPulse {
  0%, 100% { background: var(--sp-surface); }
  50% { background: rgba(244, 63, 94, .05); }
}

.main .matchlive .outside .surface ul li time {
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace !important;
  font-size: 12.5px !important;
  color: var(--sp-muted) !important;
  letter-spacing: .3px !important;
  text-align: left !important;
}
.main .matchlive .outside .surface ul li .status { display: flex !important; justify-content: center !important; }
.main .matchlive .outside .surface ul li .status a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 24px !important;
  width: auto !important;
  padding: 0 10px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  letter-spacing: .5px;
}
.main .matchlive .outside .surface ul li .start a { color: #fff !important; background: var(--sp-live) !important; }
.main .matchlive .outside .surface ul li .wait a  { color: #fff !important; background: var(--sp-soon) !important; }

.main .matchlive .outside .surface ul li .troop {
  display: grid !important;
  grid-template-columns: 1fr 34px 1fr !important;
  align-items: center !important;
}
.main .matchlive .outside .surface ul li .troop .linkBox { display: flex !important; align-items: center !important; gap: 8px !important; min-width: 0 !important; }
.main .matchlive .outside .surface ul li .troop .linkBox:first-child { justify-content: flex-end !important; }
.main .matchlive .outside .surface ul li .troop .linkBox:last-child { justify-content: flex-start !important; }
.main .matchlive .outside .surface ul li .troop .team { display: flex !important; align-items: center !important; }
.main .matchlive .outside .surface ul li .troop .team img { height: 30px !important; width: auto !important; object-fit: contain !important; }
.main .matchlive .outside .surface ul li .troop .team span {
  font-weight: 700 !important;
  font-size: 14.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100px !important;
  color: var(--sp-ink) !important;
}
.main .matchlive .outside .surface ul li .troop .linkBox:first-child .team span { text-align: right !important; margin-right: 8px !important; }
.main .matchlive .outside .surface ul li .troop .linkBox:last-child .team span { text-align: left !important; margin-left: 8px !important; }

.main .matchlive .outside .surface ul li .definition {
  border-radius: 4px !important;
  background: var(--sp-navy) !important;
  box-shadow: none !important;
  width: 108px !important;
  height: 32px !important;
  margin: 0 auto !important;
}
.main .matchlive .outside .surface ul li .definition .linkBox span {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  letter-spacing: .5px;
}
html[data-theme="dark"] .main .matchlive .outside .surface ul li .definition { background: var(--sp-primary) !important; }

/* ---------- 卡片模块 ---------- */
.new-module-wrap {
  width: min(1200px, calc(100% - 32px)) !important;
  margin: 30px auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  align-items: start !important;
}
.new-module-wrap > div {
  min-width: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}
.new-module-card {
  background: var(--sp-surface) !important;
  border: 1px solid var(--sp-line) !important;
  border-radius: var(--sp-radius) !important;
  box-shadow: none !important;
  padding: 22px !important;
}
.new-module-title {
  font-size: 17px !important;
  font-weight: 900 !important;
  color: var(--sp-ink) !important;
  padding-left: 12px !important;
  border-left: 3px solid var(--sp-primary) !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center;
  letter-spacing: .3px;
}
.faq-list .faq-q {
  font-weight: 800 !important;
  color: var(--sp-ink) !important;
  font-size: 14.5px !important;
  margin-bottom: 6px !important;
}
.faq-list .faq-a {
  color: var(--sp-muted) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

/* ---------- 积分榜 ---------- */
.standings-table {
  width: 100% !important;
  font-size: 13px !important;
  border-collapse: collapse !important;
}
.standings-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--sp-muted);
  padding-bottom: 8px;
  font-size: 12px;
}
.standings-table th {
  background: var(--sp-navy) !important;
  color: rgba(255, 255, 255, .75) !important;
  font-weight: 700 !important;
  padding: 10px 6px !important;
  border-bottom: none !important;
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: center !important;
  font-size: 12px;
  letter-spacing: .5px;
}
.standings-table td {
  padding: 10px 6px !important;
  border-bottom: 1px solid var(--sp-line) !important;
  color: var(--sp-ink) !important;
  text-align: center !important;
}
.standings-table tbody tr:nth-child(odd) { background: rgba(18, 22, 29, .02); }
html[data-theme="dark"] .standings-table tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .02); }
.standings-table tbody tr:hover { background: rgba(232, 65, 11, .06) !important; }
.standings-table .team-name { text-align: left !important; padding-left: 15px !important; font-weight: 700 !important; }
.standings-table .rank-num { font-weight: 900 !important; color: var(--sp-primary) !important; }
.standings-table .division-row {
  background: var(--sp-bg) !important;
  color: var(--sp-primary) !important;
  font-weight: 900 !important;
  text-align: left !important;
  padding-left: 15px !important;
  letter-spacing: .5px;
}
.standings-table .pts { color: var(--sp-primary) !important; font-weight: 900 !important; }
.standings-table .record { color: var(--sp-muted) !important; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--sp-navy) !important;
  padding: 44px 0 28px !important;
  margin-top: 40px !important;
  border-top: 3px solid var(--sp-primary);
}
.footer .footerBox dl { border-right: 1px solid rgba(255, 255, 255, .1) !important; }
.footer .info > p {
  font-size: 13px !important;
  line-height: 1.9 !important;
  color: rgba(255, 255, 255, .6) !important;
  text-align: center !important;
}

/* ---------- 返回顶部 ---------- */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 42px;
  height: 42px;
  background: var(--sp-navy);
  border: none;
  border-radius: 6px;
  box-shadow: var(--sp-shadow-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
  cursor: pointer;
}
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover {
  transform: translateY(-3px);
  background: var(--sp-primary);
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 900px) {
  .new-module-wrap { grid-template-columns: 1fr !important; }
  .Min1 { grid-template-columns: 1fr !important; gap: 16px !important; }
  .Min1 .Hdwrap { height: 220px !important; }
  .Min1 .Hdwrap .bd p { bottom: 10px !important; left: 10px !important; right: 10px !important; padding: 10px 12px !important; }
  .Min1 .Hdwrap .bd p a { font-size: 14px !important; }
  .Min1 .R_news { height: 240px !important; padding: 15px !important; }

  .main .matchlive .outside .teep { display: none !important; }
  .main .matchlive .outside .surface ul { border-radius: 8px; }
  .main .matchlive .outside .surface ul li {
    display: flex !important;
    flex-direction: column !important;
    padding: 15px !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .main .matchlive .outside .surface ul li.date-divider { padding: 10px 12px !important; margin-bottom: 0 !important; }
  .main .matchlive .outside .surface ul li time { position: absolute !important; left: 18px !important; top: 18px !important; font-size: 12px !important; }
  .main .matchlive .outside .surface ul li .status { position: absolute !important; right: 18px !important; top: 15px !important; }
  .main .matchlive .outside .surface ul li .nba { display: none !important; }

  .main .matchlive .outside .surface ul li .troop {
    margin-top: 35px !important;
    display: grid !important;
    grid-template-columns: 1fr 34px 1fr !important;
    width: 100% !important;
  }
  .main .matchlive .outside .surface ul li .troop .linkBox { flex-direction: column !important; gap: 6px !important; }
  .main .matchlive .outside .surface ul li .troop .linkBox:first-child { justify-content: flex-start !important; }
  .main .matchlive .outside .surface ul li .troop .linkBox:last-child { justify-content: flex-end !important; }
  .main .matchlive .outside .surface ul li .troop .team { display: flex !important; flex-direction: column !important; gap: 6px !important; align-items: center !important; }
  .main .matchlive .outside .surface ul li .troop .linkBox:first-child .team span { order: -1 !important; margin: 0 !important; font-size: 14.5px !important; text-align: center !important; }
  .main .matchlive .outside .surface ul li .troop .linkBox:last-child .team span { order: -1 !important; margin: 0 !important; font-size: 14.5px !important; text-align: center !important; }
  .main .matchlive .outside .surface ul li .troop .team img { height: 38px !important; }
  .main .matchlive .outside .surface ul li .definition { width: 100% !important; height: 38px !important; margin-top: 10px !important; }
  .main .matchlive .outside .surface ul li .definition .linkBox span { font-size: 13.5px !important; }

  .new-module-card > div { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .standings-table { min-width: 400px !important; }
}

@media screen and (max-width: 750px) {
  .anchor-nav { gap: 20px; margin: 14px auto 2px; }
  .anchor-nav a { font-size: 13px; }
  .seo-h1 { font-size: 18px !important; margin: 16px 0 6px !important; }
  .seo-h1::before { height: 20px; width: 5px; }
  .new-module-card { padding: 16px !important; border-radius: 8px !important; }
  .new-module-title { font-size: 15px !important; }
  .Min1 { display: grid !important; margin-bottom: 18px !important; }
  .Min1 .Hdwrap { height: 210px !important; }
  .Min1 .Hdwrap .bd p a { font-size: 14px !important; }
  .Min1 .R_news { height: auto !important; max-height: 260px !important; }
  .main .matchlive .outside .surface ul li { padding: 12px !important; }
  #back-to-top { bottom: 20px; right: 20px; width: 38px; height: 38px; }
}