/* =========================================================
   theme-sport.css — 运动赛事风完整版（终极整合版）
   ========================================================= */

:root {
  --sp-bg: #f3f6fb;
  --sp-surface: #ffffff;
  --sp-ink: #0d1b2a;
  --sp-muted: #5b6b7c;
  --sp-line: #e3e8ef;
  --sp-primary: #0b63f6;
  --sp-accent: #ff6a00;
  --sp-live: #ff2d55;
  --sp-soon: #ff9f0a;
  --sp-done: #8a97a6;
  --sp-navy: #081221;
  --sp-radius: 12px;
  --sp-shadow: 0 1px 2px rgba(13, 27, 42, .05), 0 8px 24px rgba(13, 27, 42, .06);
  --sp-shadow-hover: 0 6px 12px rgba(13, 27, 42, .08), 0 16px 40px rgba(13, 27, 42, .10);
}

body {
  background: var(--sp-bg) !important;
  color: var(--sp-ink) !important;
}

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

/* ---------- 顶部导航 ---------- */
.header {
  background: var(--sp-navy) !important;
  height: 68px !important;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header .navigation .select ul li a {
  position: relative;
  padding: 22px 0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  opacity: .85;
  transition: opacity .2s;
}
.header .navigation .select ul li a:hover,
.header .navigation .select ul .active a { opacity: 1; color: #fff !important; }
.header .navigation .select ul li a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 3px;
  border-radius: 3px; background: var(--sp-accent); transform: scaleX(0); transition: transform .2s;
}
.header .navigation .select ul li a:hover::after,
.header .navigation .select ul .active a::after { transform: scaleX(1); }

/* ---------- 锚点导航 ---------- */
.anchor-nav {
  display: flex; gap: 10px; margin: 15px auto; overflow-x: auto;
  -webkit-overflow-scrolling: touch; padding-bottom: 5px;
}
.anchor-nav::-webkit-scrollbar { display: none; }
.anchor-nav a {
  display: inline-block; padding: 6px 16px; background: var(--sp-surface);
  border: 1px solid var(--sp-line); border-radius: 20px; font-size: 14px;
  color: var(--sp-muted); white-space: nowrap; box-shadow: var(--sp-shadow); transition: all .2s;
}
.anchor-nav a:hover, .anchor-nav a.active { background: var(--sp-primary); color: #fff; border-color: var(--sp-primary); }

/* ---------- SEO H1 ---------- */
.seo-h1 {
  font-size: 22px !important; font-weight: 800 !important; letter-spacing: .5px;
  margin: 20px 0 10px !important; color: var(--sp-ink) !important;
}
.seo-h1::before {
  content: "LIVE"; display: inline-block; margin-right: 10px; padding: 2px 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #fff;
  background: var(--sp-live); border-radius: 4px; vertical-align: 3px;
}

/* ---------- 新闻轮播区 ---------- */
.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: var(--sp-shadow) !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: 14px 16px !important;
  border-top: none !important; border-left: 4px solid var(--sp-accent) !important; border-radius: 8px !important;
  background: rgba(8, 18, 33, .82) !important; backdrop-filter: blur(8px); text-align: left !important;
}
.Min1 .Hdwrap .bd p a { font-size: 18px !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: 20px 22px !important;
  background: var(--sp-surface) !important; border: 1px solid var(--sp-line) !important;
  border-radius: var(--sp-radius) !important; box-shadow: var(--sp-shadow) !important; overflow-y: auto !important;
}
.Min1 .R_news .item {
  border-bottom: 1px solid 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: 700 16px/1.5 "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 14px/28px "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: 24px !important; font-weight: 800 !important; color: var(--sp-ink) !important;
  display: flex !important; align-items: center !important;
}
.main .matchlive .title .topic h2::before {
  content: ""; display: inline-block; width: 4px; height: 20px;
  background: var(--sp-primary); margin-right: 10px; border-radius: 2px;
}
.main .shift ul li { padding: 6px 20px !important; border-radius: 6px !important; box-shadow: var(--sp-shadow) !important; }
.main .shift ul li a { font-size: 14px !important; }
html[data-theme="light"] .main .shift ul .active { background: var(--sp-primary) !important; }

/* 按钮选项卡样式 */
.main .shift ul.date-tabs { display: flex; gap: 10px; }
.main .shift ul.date-tabs li {
  padding: 6px 20px !important; border-radius: 20px !important; box-shadow: var(--sp-shadow) !important;
  background: var(--sp-surface) !important; border: 1px solid var(--sp-line) !important; cursor: pointer; transition: all 0.2s;
}
.main .shift ul.date-tabs li a { color: var(--sp-ink) !important; }
.main .shift ul.date-tabs li.active { background: var(--sp-primary) !important; border-color: var(--sp-primary) !important; }
.main .shift ul.date-tabs li.active a { color: #fff !important; font-weight: bold; }

.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: 10px !important; height: 46px !important;
  font-size: 13px !important; letter-spacing: .5px !important;
}
.main .matchlive .outside .teep span { color: rgba(255, 255, 255, .75) !important; }
.main .matchlive .outside .surface { height: auto !important; max-height: none !important; overflow: visible !important; }
.main .matchlive .outside .surface ul { gap: 12px !important; display: flex !important; flex-direction: column !important; }

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

.main .matchlive .outside .surface ul li {
  position: relative !important; padding: 14px 18px !important; background: var(--sp-surface) !important;
  border: 1px solid var(--sp-line) !important; border-radius: var(--sp-radius) !important;
  box-shadow: var(--sp-shadow) !important; transition: transform .18s, box-shadow .18s, border-color .18s !important;
  display: grid !important; grid-template-columns: 80px 150px 100px 1fr 140px !important;
  align-items: center !important; text-align: center !important; gap: 10px !important;
}
.main .matchlive .outside .surface ul li:hover {
  transform: translateY(-2px) !important; box-shadow: var(--sp-shadow-hover) !important; border-color: #cfd9e6 !important;
}
.main .matchlive .outside .surface ul li::before {
  content: "" !important; position: absolute !important; left: 0 !important; top: 12px !important; bottom: 12px !important; width: 4px !important;
  border-radius: 0 4px 4px 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 time {
  font-family: "SFMono-Regular", Consolas, monospace !important; font-size: 13px !important;
  color: var(--sp-muted) !important; letter-spacing: .5px !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: 26px !important; width: auto !important; padding: 0 12px !important;
  font-size: 12px !important; font-weight: 700 !important; border-radius: 999px !important; white-space: nowrap !important;
}
.main .matchlive .outside .surface ul li .start a { color: var(--sp-live) !important; background: rgba(255, 45, 85, .1) !important; }
.main .matchlive .outside .surface ul li .wait a { color: #b26a00 !important; background: rgba(255, 159, 10, .12) !important; }

.main .matchlive .outside .surface ul li .troop { display: grid !important; grid-template-columns: 1fr 40px 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: 32px !important; width: auto !important; object-fit: contain !important; }
.main .matchlive .outside .surface ul li .troop .team span {
  font-weight: 600 !important; font-size: 15px !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: 8px !important; background: var(--sp-primary) !important; box-shadow: none !important;
  width: 110px !important; height: 34px !important; margin: 0 auto !important;
}
.main .matchlive .outside .surface ul li .definition .linkBox span { color: #fff !important; font-weight: 600 !important; font-size: 13px !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: var(--sp-shadow) !important; padding: 22px !important;
}
.new-module-title {
  font-size: 18px !important; font-weight: 800 !important; color: var(--sp-ink) !important;
  border-left: 4px solid var(--sp-primary) !important; padding-left: 12px !important; margin-bottom: 16px !important;
  display: flex !important; align-items: center !important;
}
.faq-list .faq-q { font-weight: 700 !important; color: var(--sp-ink) !important; font-size: 15px !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: separate !important; border-spacing: 0 !important; }
.standings-table caption { caption-side: top; text-align: left; font-weight: 700; color: var(--sp-muted); padding-bottom: 8px; }
.standings-table th {
  background: var(--sp-navy) !important; color: rgba(255, 255, 255, .8) !important; font-weight: 600 !important;
  padding: 10px 6px !important; border-bottom: none !important; position: sticky; top: 0; z-index: 1; text-align: center !important;
}
.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:hover { background: #f7faff !important; }
.standings-table .team-name { text-align: left !important; padding-left: 15px !important; font-weight: 600 !important; }
.standings-table .rank-num { font-weight: 800 !important; color: var(--sp-primary) !important; }
.standings-table .division-row { background: #eef4ff !important; color: var(--sp-primary) !important; font-weight: 800 !important; text-align: left !important; padding-left: 15px !important; }
.standings-table .pts { color: var(--sp-accent) !important; font-weight: 800 !important; }
.standings-table .record { color: var(--sp-muted) !important; }

/* ---------- 页脚 ---------- */
.footer { background: var(--sp-navy) !important; padding: 48px 0 32px !important; margin-top: 40px !important; }
.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, .65) !important; text-align: center !important; }

/* =========================================================
   移动端适配
   ========================================================= */
@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 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: 15px 0 5px 0 !important; margin-bottom: 0 !important; }

  .main .matchlive .outside .surface ul li time { position: absolute !important; left: 20px !important; top: 18px !important; font-size: 12px !important; }
  .main .matchlive .outside .surface ul li .status { position: absolute !important; right: 20px !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 40px 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: 15px !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: 15px !important; text-align: center !important; }
  .main .matchlive .outside .surface ul li .troop .team img { height: 40px !important; }

  .main .matchlive .outside .surface ul li .definition { width: 100% !important; height: 40px !important; margin-top: 10px !important; }
  .main .matchlive .outside .surface ul li .definition .linkBox span { font-size: 14px !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) {
  .seo-h1 { font-size: 17px !important; margin: 16px 0 4px !important; }
  .new-module-card { padding: 16px !important; border-radius: 10px !important; }
  .new-module-title { font-size: 16px !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; }
}

/* 暗色主题适配 */
html[data-theme="dark"] {
  --sp-bg: #0d1b2a; --sp-surface: #132234; --sp-ink: #e8eef6;
  --sp-muted: #9aa9ba; --sp-line: #24374d; --sp-navy: #050c16;
  --sp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --sp-shadow-hover: 0 6px 12px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] body { background: var(--sp-bg); color: var(--sp-ink); }
html[data-theme="dark"] .header { background: var(--sp-navy); }
html[data-theme="dark"] .anchor-nav a { background: var(--sp-surface); border-color: var(--sp-line); color: var(--sp-muted); }
html[data-theme="dark"] .anchor-nav a:hover, html[data-theme="dark"] .anchor-nav a.active { background: var(--sp-primary); color: #fff; }
html[data-theme="dark"] .main .matchlive .outside .surface ul li:hover { border-color: #2c4058; }
html[data-theme="dark"] .standings-table tbody tr:hover { background: #16283c; }
html[data-theme="dark"] .standings-table .division-row { background: #16283c !important; color: #7fb0ff !important; }
html[data-theme="dark"] .standings-table .rank-num { color: #7fb0ff; }
html[data-theme="dark"] .new-module-card,
html[data-theme="dark"] .Min1 .R_news { background: var(--sp-surface); border-color: var(--sp-line); }
html[data-theme="dark"] .Min1 .R_news .item .titleB .tie,
html[data-theme="dark"] .Min1 .R_news .item .titleA a { color: var(--sp-ink); }
html[data-theme="dark"] .Min1 .R_news .item .titleB .tie:hover,
html[data-theme="dark"] .Min1 .R_news .item .titleA a:hover { color: #7fb0ff; }
/* 暗色模式下的日期选项卡 */
html[data-theme="dark"] .main .shift ul.date-tabs li { background: var(--sp-surface) !important; border-color: var(--sp-line) !important; }
html[data-theme="dark"] .main .shift ul.date-tabs li a { color: var(--sp-ink) !important; }
html[data-theme="dark"] .main .shift ul.date-tabs li.active { background: var(--sp-primary) !important; }
html[data-theme="dark"] .main .shift ul.date-tabs li.active a { color: #fff !important; }
/* ==========================================
   返回顶部按钮样式
   ========================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--sp-surface);
    border: 1px solid var(--sp-line);
    border-radius: 50%;
    box-shadow: var(--sp-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-primary);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    cursor: pointer;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--sp-shadow-hover);
    background: var(--sp-primary);
    color: #fff;
    border-color: var(--sp-primary);
}
@media screen and (max-width: 750px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
    }
}