/* 89台球 · 官网 */
:root {
  --bg: #f0f2f5;
  --surface: #fff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #00a878;
  --accent-dark: #008f66;
  --accent-dim: rgba(0, 168, 120, 0.1);
  /* 顶栏白底 + 底栏浅灰绿 */
  --chrome-top: #ffffff;
  --chrome-top-end: #ffffff;
  --chrome-foot: #f3f6f4;
  --chrome-foot-end: #e9efec;
  --chrome-border: rgba(0, 0, 0, 0.08);
  --header-bg: var(--chrome-top);
  --header-text: #1a1a1a;
  --header-muted: #6b7280;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --max: 1280px;
  --sidebar: 320px;
  --site-header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scrollbar-gutter: stable;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.site-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* —— 主导航 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--chrome-top);
  border-bottom: 1px solid var(--chrome-border);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--site-header-h);
  height: var(--site-header-h);
  display: grid;
  grid-template-columns: 160px 1fr 80px;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--header-text);
  flex-shrink: 0;
  letter-spacing: 0.02em;
  min-width: 0;
}

.site-logo:hover { color: var(--header-text); }

.site-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
}

.site-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00a878, #1e5c3d);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-self: start;
}

.site-nav a {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--header-muted);
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.site-nav a.on {
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}

.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 80px;
  justify-self: end;
}

.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.site-nav-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.site-nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--header-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header-nav-open .site-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header-nav-open .site-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header-nav-open .site-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #f5f7f9;
  min-width: 220px;
  color: var(--header-muted);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 14px;
  width: 100%;
  color: var(--header-text);
}

.search-box input::placeholder { color: var(--header-muted); }

.site-header .btn {
  border-color: var(--border);
  color: var(--header-text);
  background: #fff;
}

.site-header .btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  white-space: nowrap;
}

.btn:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.site-header .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 168, 120, 0.35);
}

.site-header .btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* —— 首页顶部氛围背景（参考门户站顶部大图 + 底部渐隐） —— */
body[data-page="home"] {
  position: relative;
}

.home-page-bg {
  position: absolute;
  top: var(--site-header-h);
  left: 0;
  right: 0;
  height: 900px;
  z-index: 0;
  pointer-events: none;
  background: url("../img/home-bg-alt-1.png") center 28% / cover no-repeat;
}

.home-page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 30, 24, 0.1) 0%,
    rgba(240, 242, 245, 0.04) 68%,
    rgba(240, 242, 245, 0.38) 88%,
    var(--bg) 100%
  );
}

html.home-bg-off .home-page-bg {
  display: none;
}

body[data-page="home"] .site-logo {
  cursor: pointer;
}

body[data-page="home"] .home-hero-wrap,
body[data-page="home"] .home-body,
body[data-page="home"] .site-footer {
  position: relative;
  z-index: 1;
}

/* —— 首页 Hero（与 .home-body 同宽；home-body 的 padding 会冲掉 site-container 左右内边距） —— */
.site-container.home-hero-wrap {
  padding: 20px 0 0;
  margin-bottom: 24px;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: #0d3d2e;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(13, 61, 46, 0.22);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background-color: #0d3d2e;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero-slide.on {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero-slide:not(.on) {
  pointer-events: none;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 42, 32, 0.9) 0%, rgba(8, 42, 32, 0.55) 45%, rgba(8, 42, 32, 0.12) 100%);
  z-index: 0;
  transition: background 0.25s ease;
}

.hero-slide:hover::before {
  background: linear-gradient(90deg, rgba(8, 42, 32, 0.82) 0%, rgba(8, 42, 32, 0.48) 45%, rgba(8, 42, 32, 0.08) 100%);
}

.hero-slide-1 { background-image: url("../img/hero-banner-1.png"); }
.hero-slide-2 {
  background-image: url("../img/event-rec-hc.png");
  background-position: center 35%;
}
.hero-slide-3 { background-image: url("../img/hero-banner-3.png"); }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
  max-width: 640px;
}

.hero-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin-bottom: 0;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
  pointer-events: auto;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.hero-dots button.on {
  background: #fff;
  width: 28px;
  border-radius: 5px;
}

/* —— 首页 / 内页双栏 —— */
.home-body,
.inner-page {
  display: grid;
  grid-template-columns: 1fr var(--sidebar);
  gap: 28px;
  align-items: start;
}

.home-body {
  padding: 0 0 48px;
}

.inner-page {
  padding: 16px 0 48px;
}

.home-main {
  grid-column: 1;
  min-width: 0;
}

.home-sidebar {
  grid-column: 2;
  position: sticky;
  top: calc(var(--site-header-h) + 20px);
}

/* 区块面板 */
.section-panel {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}

.section-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfc, #fff);
}

.section-panel-head h2 {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-panel-head h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
}

.section-panel-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.section-panel-head a:hover {
  color: var(--accent);
}

.section-panel-body { padding: 20px 24px; }

/* 推荐赛事 — 横向卡片 */
.event-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.event-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: block;
}

.event-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(0, 168, 120, 0.12);
  color: inherit;
}

.event-card-cover {
  height: 140px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.event-card-body { padding: 14px 16px; }

.event-card-sponsors {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.event-card-foot .status-on {
  background: rgba(220, 53, 69, 0.1);
  color: #d63b4a;
}

.event-card-location {
  font-size: 12px;
  color: var(--muted);
}

/* 资讯 — 大图列表 */
.news-list { padding: 0 24px 24px; }

.section-panel-body > .news-grid { margin: 0; }

.news-grid {
  display: flex;
  flex-direction: column;
}

.news-card {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.news-card:first-child { padding-top: 0; }
.news-card:last-child { border-bottom: none; padding-bottom: 0; }

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.news-card:first-child .news-card-title { font-size: 19px; }

.news-card-title a:hover { color: var(--accent); }

.news-card-desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.news-card-cover {
  width: 100%;
  height: 148px;
  border-radius: var(--radius);
  background-color: #e8f5f0;
  background-image: linear-gradient(135deg, #e8f5f0, #c8e6d9);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  overflow: hidden;
}

.news-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-cover.t2 { background-image: linear-gradient(135deg, #e3eef8, #b8d4f0); }
.news-card-cover.t3 { background-image: linear-gradient(135deg, #f0e8f5, #d4c8e6); }
.news-card-cover.t4 { background-image: linear-gradient(135deg, #f5f0e8, #e6dcc8); }
.news-card-cover.t5 { background-image: linear-gradient(135deg, #e8f5f5, #c8e6e6); }

.news-card { cursor: pointer; transition: background 0.12s; }
.news-card:hover { background: rgba(0, 168, 120, 0.03); }
.news-card-title a { pointer-events: none; }

/* 资讯详情弹窗 */
body.news-modal-open,
body.legal-modal-open { overflow: hidden; }

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.news-modal.hidden { display: none !important; }

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.62);
  backdrop-filter: blur(4px);
}

.news-modal-dialog {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.news-modal-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  min-height: 0;
  overflow: hidden;
}

.news-modal-article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.news-modal-article-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.news-modal-article-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.news-modal-aside {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: #f8f9fb;
}

.news-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.news-modal-close:hover { background: #fff; color: var(--accent); }

.news-modal-cover {
  height: 240px;
  background: linear-gradient(135deg, #e8f5f0, #c8e6d9);
}

.news-modal-cover.t2 { background: linear-gradient(135deg, #e3eef8, #b8d4f0); }
.news-modal-cover.t3 { background: linear-gradient(135deg, #f0e8f5, #d4c8e6); }
.news-modal-cover.t4 { background: linear-gradient(135deg, #f5f0e8, #e6dcc8); }
.news-modal-cover.t5 { background: linear-gradient(135deg, #e8f5f5, #c8e6e6); }

.news-modal-inner { padding: 24px 28px 28px; }

.news-modal-head {
  margin-bottom: 20px;
}

.news-modal-headline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.news-modal-headline .news-tag {
  flex-shrink: 0;
  margin-top: 7px;
}

.news-modal-title {
  flex: 1;
  min-width: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.news-modal-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}

.news-modal-content {
  font-size: 15px;
  line-height: 1.85;
  color: #2d333b;
}

.news-modal-content p + p { margin-top: 14px; }

.news-modal-h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 28px 0 12px;
  color: var(--text);
}

.news-modal-figure {
  margin: 22px 0;
}

.news-modal-figure-img {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #e8f5f0, #c8e6d9);
}

.news-modal-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.news-modal-comments-head {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.news-modal-comments-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 4px 20px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.news-modal-comments-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.news-modal-comments-list { margin-bottom: 8px; }

.news-comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.news-comment:last-child { border-bottom: none; }

.news-comment-head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
}

.news-comment-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #6ab36a, #2f9651);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}

.news-comment-user strong {
  display: block;
  font-size: 14px;
  color: var(--accent);
}

.news-comment-user span {
  font-size: 12px;
  color: var(--muted);
}

.news-comment-likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.news-comment-text {
  margin-top: 8px;
  padding-left: 46px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.news-comment-reply-toggle {
  display: block;
  margin-top: 8px;
  margin-left: 46px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.news-comment-reply-toggle:hover { text-decoration: underline; }

.news-comment-replies {
  margin-top: 8px;
  margin-left: 46px;
  padding-left: 14px;
  border-left: 2px solid rgba(0, 168, 120, 0.2);
}

.news-comment-replies[hidden] { display: none; }

.news-comment.is-reply {
  padding: 10px 0 0;
  border-bottom: none;
}

.news-comment.is-reply .news-comment-head {
  grid-template-columns: 28px 1fr auto;
}

.news-comment.is-reply .news-comment-av {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.news-comment.is-reply .news-comment-text {
  padding-left: 38px;
  font-size: 13px;
}

.news-comment-replies .news-comment.is-reply:last-child {
  padding-bottom: 4px;
}

.news-modal-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0;
}

@media (max-width: 900px) {
  .news-modal-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: calc(100vh - 48px);
  }

  .news-modal-article { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 600px) {
  .news-modal { padding: 0; align-items: flex-end; }

  .news-modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 12px 12px 0 0;
  }

  .news-modal-layout {
    height: 92vh;
    max-height: 92vh;
    grid-template-rows: 1fr 1fr;
  }

  .news-modal-cover { height: 160px; }

  .news-modal-inner { padding: 18px 16px 24px; }

  .news-modal-title { font-size: 20px; }

  .news-modal-comments-head { padding: 14px 16px 12px; }

  .news-modal-comments-scroll { padding: 4px 16px 16px; }

  .news-comment-text,
  .news-comment-reply-toggle { padding-left: 0; margin-left: 0; }

  .news-comment-replies { margin-left: 0; }
}

/* —— 侧栏 Widget —— */
.widget {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.widget-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfc, #fff);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-head > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.widget-head > span::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.widget-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.widget-head a:hover {
  color: var(--accent);
}

.widget-body { padding: 4px 0; }

.match-mini {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.match-mini:last-child { border-bottom: none; }

.match-mini-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.match-mini-players {
  line-height: 1.4;
}

.match-mini-players strong,
.match-mini-players .player-link { font-weight: 700; }

.match-mini-score {
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  white-space: nowrap;
}

.match-mini-status {
  grid-column: 2 / 4;
  font-size: 11px;
  color: var(--muted);
  margin-top: -4px;
}

.rank-mini {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.rank-mini:last-child { border-bottom: none; }

.rank-mini-num {
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}

.rank-mini-num.top { color: var(--accent); font-size: 15px; }

.rank-mini-pts {
  font-weight: 700;
  color: var(--accent);
}

.widget-app {
  background: var(--surface);
  border: 1px solid var(--border);
}

.widget-app-body {
  padding: 18px 24px 22px;
}

.widget-app-body p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.widget-app-body .btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 700;
}

.widget-app-body .btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.sidebar-event-link {
  display: block;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.45;
  transition: background 0.12s;
}

.sidebar-event-link:last-child { border-bottom: none; }

.sidebar-event-link:hover {
  background: #fafbfc;
  color: inherit;
}

.sidebar-event-link strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.sidebar-event-link span {
  font-size: 12px;
  color: var(--muted);
}

.widget-quick-links {
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-quick-links .btn-outline {
  color: var(--text);
  border-color: var(--border);
  background: #fff;
}

/* —— 内页页头（紧凑渐变，对齐首页 Banner） —— */
.page-hero {
  grid-column: 1 / -1;
  position: relative;
  height: 168px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 72%);
  z-index: 0;
}

.page-hero--matches { background: linear-gradient(120deg, #0d3d2e 0%, #00a878 52%, #1a1a1a 100%); }
.page-hero--data { background: linear-gradient(120deg, #0d2847 0%, #1a5fb4 48%, #2b8cff 100%); }
.page-hero--players { background: linear-gradient(120deg, #0d3d2e 0%, #1e5c3d 45%, #00a878 100%); }
.page-hero--event { background: linear-gradient(120deg, #0d3d2e 0%, #00a878 50%, #1a1a1a 100%); }

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 22px 28px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.breadcrumb a {
  color: #6b7280;
}

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

.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.6);
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.page-hero .breadcrumb a:hover { color: #fff; }

.breadcrumb span { color: rgba(0, 0, 0, 0.25); }

.page-hero .breadcrumb span { color: rgba(255, 255, 255, 0.35); }

.breadcrumb-current { color: var(--text) !important; font-weight: 600; }

.page-hero .breadcrumb-current { color: #fff !important; }

.page-hero h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.page-hero-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  line-height: 1.55;
}

.page-main {
  grid-column: 1;
  min-width: 0;
}

.page-sidebar {
  grid-column: 2;
  position: sticky;
  top: calc(var(--site-header-h) + 20px);
}

.section-panel-head--toolbar {
  flex-wrap: wrap;
  gap: 12px;
}

.panel-head-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-left: auto;
}

/* 球员链接 */
.player-link {
  color: var(--text);
  font-weight: 700;
  transition: color 0.12s;
}

.player-link:hover {
  color: var(--accent);
}

/* 球员资料页 */
.player-page-wrap {
  padding: 16px 0 48px;
}

.player-hero {
  background: linear-gradient(135deg, #0d3d2e 0%, #00a878 55%, #1a1a1a 100%);
  color: #fff;
  padding: 16px 24px 0;
  margin-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.player-breadcrumb {
  margin-bottom: 20px;
}

.player-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.player-breadcrumb a:hover {
  color: #fff;
}

.player-breadcrumb span {
  color: rgba(255, 255, 255, 0.35);
}

.player-breadcrumb .breadcrumb-current {
  color: #fff !important;
}

.player-hero-main {
  display: flex;
  gap: 28px;
  align-items: center;
  padding-bottom: 24px;
}

.player-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.player-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 4px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 800;
}

.player-rank-badge {
  position: absolute;
  right: 0;
  bottom: 4px;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 18px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.player-hero-info h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}

.player-name-en {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.player-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.player-hero-meta .brand-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.player-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.player-hero-stats strong {
  color: #fff;
  font-size: 18px;
  margin-right: 4px;
}

.player-hero-tabs {
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0;
}

.player-hero-tabs button.on {
  color: var(--accent);
}

.player-body-wrap {
  padding-top: 24px;
}

.player-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.player-match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 0;
}

.player-match-head h3 {
  font-size: 15px;
  font-weight: 800;
}

.player-match-hint {
  font-size: 13px;
  color: var(--muted);
}

.player-match-vs {
  line-height: 1.45;
}

.player-match-vs small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.player-match-vs .player-link {
  font-weight: 700;
}

.match-result {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.match-result.result-w { background: #22c55e; }
.match-result.result-l { background: #ef4444; }
.match-result.result-d { background: #3b82f6; }

.player-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.player-overall {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.player-radar-wrap {
  padding: 8px 12px 16px !important;
}

.player-radar-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.player-radar-chart svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.radar-grid {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 1;
}

.radar-axis {
  stroke: #e5e7eb;
  stroke-width: 1;
}

.radar-label {
  font-size: 11px;
  fill: #5c6570;
  font-weight: 600;
}

.radar-area {
  fill: rgba(66, 133, 244, 0.22);
}

.radar-stroke {
  fill: none;
  stroke: #4285f4;
  stroke-width: 2;
}

.radar-dot {
  fill: #4285f4;
  stroke: #fff;
  stroke-width: 2;
}

.player-match-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.player-match-stat {
  background: #fafbfc;
  padding: 16px 12px;
  text-align: center;
}

.player-match-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.player-match-stat span {
  font-size: 12px;
  color: var(--muted);
}

.player-feed-list {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 24px;
}

.player-feed-item {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.12s;
}

.player-feed-item:hover {
  background: rgba(0, 168, 120, 0.03);
}

.player-feed-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.player-feed-cover {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.player-feed-cover.feed-c1 { background: linear-gradient(135deg, #0d3d2e, #00a878); }
.player-feed-cover.feed-c2 { background: linear-gradient(135deg, #1a5fb4, #2b8cff); }
.player-feed-cover.feed-c3 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.player-feed-cover.feed-c4 { background: linear-gradient(135deg, #e17055, #ffb347); }
.player-feed-cover.feed-c5 { background: linear-gradient(135deg, #1e5c3d, #a8e6cf); }

.player-feed-body {
  min-width: 0;
}

.player-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.player-feed-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
}

.player-feed-text {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
}

.player-feed-item:first-child .player-feed-text {
  font-size: 22px;
}

.player-info-sections {
  padding: 0 20px 20px;
}

.player-info-block {
  padding-top: 4px;
}

.player-info-block + .player-info-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.player-info-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.player-info-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fafbfc;
}

.player-info-table--compact {
  margin-top: 12px;
}

.player-info-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.player-info-row:last-child {
  border-bottom: none;
}

.player-info-key {
  color: var(--muted);
  font-weight: 500;
}

.player-info-val {
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.player-career-brief {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px;
}

.player-career-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.player-career-item {
  background: #fafbfc;
  padding: 14px 8px;
  text-align: center;
}

.player-career-item strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.player-career-item span {
  font-size: 11px;
  color: var(--muted);
}

.player-tech-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.player-tech-head .player-info-subtitle {
  margin-bottom: 0;
}

.player-tech-season {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.player-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.player-tech-item {
  background: #fafbfc;
  padding: 16px 8px;
  text-align: center;
  min-height: 72px;
}

.player-tech-item strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.player-tech-item span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}


/* 关于我们 */
.about-page {
  padding-bottom: 48px;
}

.about-hero-banner {
  background: linear-gradient(125deg, #0d3d2e 0%, #00a878 42%, #1a2836 100%);
  color: #fff;
  padding: 56px 0 64px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.about-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 90% 10%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(0, 0, 0, 0.15), transparent 50%);
  pointer-events: none;
}

.about-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
}

.about-hero-logo-wrap {
  flex-shrink: 0;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.about-hero-logo {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: contain;
}

.about-hero-text {
  min-width: 0;
  max-width: 640px;
}

.about-hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 10px;
}

.about-hero-text h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.about-hero-desc {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.about-hero-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.about-hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.about-version {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 8px;
}

.about-intro-card,
.about-values {
  padding: 32px 36px 36px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.about-intro-card h2,
.about-values h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.about-intro-card h2::before,
.about-values h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: -3px;
}

.about-intro-content {
  max-width: 820px;
}

.about-intro-content p {
  font-size: 15px;
  line-height: 1.85;
  color: #3d4450;
  margin: 0;
}

.about-intro-content p + p {
  margin-top: 12px;
}

.about-intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.about-intro-tags li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 168, 120, 0.08);
  border: 1px solid rgba(0, 168, 120, 0.14);
  color: #1f6f57;
  font-size: 13px;
  font-weight: 700;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-value-card {
  position: relative;
  padding: 24px 22px 22px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f5f7f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 168, 120, 0.28);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.about-value-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid rgba(0, 168, 120, 0.16);
  color: var(--accent-dark);
  box-shadow: 0 2px 8px rgba(0, 168, 120, 0.08);
}

.about-value-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}

.about-value-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .about-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .about-hero-text { max-width: none; }

  .about-hero-actions { justify-content: center; }

  .about-values-grid { grid-template-columns: 1fr; }

  .about-intro-tags { justify-content: center; }
}

@media (max-width: 600px) {
  .about-hero-banner { padding: 40px 0 48px; }

  .about-hero-text h1 { font-size: 30px; }

  .about-intro-card,
  .about-values { padding: 24px 20px; }
}

/* 协议政策弹窗 */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.legal-modal.hidden { display: none !important; }

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.62);
  backdrop-filter: blur(4px);
}

.legal-modal-dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.legal-modal-close:hover {
  background: #fff;
  color: var(--accent);
}

.legal-modal-head {
  padding: 18px 56px 14px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfc, #fff);
  flex-shrink: 0;
}

.legal-modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.legal-modal-scroll--iframe {
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f0f2f5;
}

.legal-modal-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(72vh, 640px);
  border: none;
  background: #f0f2f5;
}

.legal-modal-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.legal-modal-head-main {
  min-width: 0;
  flex: 1;
}

.legal-modal-dates {
  flex-shrink: 0;
  text-align: right;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 2px;
}

.legal-modal-dates span {
  display: block;
  white-space: nowrap;
}

.legal-modal-tab {
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #f3f4f6;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.legal-modal-tab.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.legal-modal-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.legal-modal-scroll {
  padding: 24px 28px 32px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.legal-modal-scroll::-webkit-scrollbar { width: 6px; }
.legal-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}

.legal-modal-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.legal-modal-scroll h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 20px 0 8px;
  color: var(--text);
}

.legal-modal-scroll h3:first-child {
  margin-top: 0;
}

.legal-modal-scroll p {
  font-size: 14px;
  line-height: 1.85;
  color: #3d4249;
  margin: 0 0 10px;
  text-align: justify;
}

.legal-modal-scroll a {
  color: var(--accent);
  font-weight: 600;
}

.legal-modal-scroll a:hover {
  color: var(--accent-dark);
}

.legal-modal-scroll strong {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 640px) {
  .legal-modal { padding: 0; align-items: flex-end; }

  .legal-modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }

  .legal-modal-head { padding: 18px 48px 14px 18px; }

  .legal-modal-head-row { flex-direction: column; gap: 10px; }

  .legal-modal-dates { text-align: left; padding-top: 0; }

  .legal-modal-scroll { padding: 18px 18px 28px; }

  .legal-modal-scroll--iframe {
    padding: 0;
  }

  .legal-modal-iframe {
    min-height: min(78vh, 720px);
  }
}

/* 客户端下载页 */
.download-page {
  padding-bottom: 56px;
}

.download-hero-banner {
  background: #00a878;
  color: #fff;
  padding: 36px 0 42px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.download-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 85% 15%, rgba(255, 255, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(0, 0, 0, 0.08), transparent 50%);
  pointer-events: none;
}

.download-hero-inner {
  position: relative;
}

.download-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.download-hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.download-hero-left {
  max-width: 560px;
}

.download-hero-stat {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 20px;
  color: #fff;
}

.download-hero-stat em {
  font-style: normal;
  color: #ffe566;
  font-weight: 800;
}

.download-hero-tip {
  font-size: 15px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
}

.download-hero-actions {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 18px;
}

.download-store-btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 220px;
}

.download-store-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.download-store-meta {
  margin: 0;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.download-store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.18s, border-color 0.18s;
}

.download-store-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.download-store-btn svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.download-hero-qr {
  position: relative;
  flex-shrink: 0;
  width: 148px;
  height: 148px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.download-qr-pattern {
  position: absolute;
  inset: 10px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, #222 1.5px, transparent 1.5px) 0 0 / 7px 7px,
    linear-gradient(#222 1.5px, transparent 1.5px) 0 0 / 7px 7px;
  opacity: 0.82;
}

.download-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}

.download-hero-phones {
  position: relative;
  height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-phone {
  position: relative;
  width: 238px;
}

.download-phone--showcase {
  transform: rotate(4deg);
}

.download-phone-frame {
  position: relative;
  padding: 3px;
  border-radius: 52px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 18%),
    linear-gradient(145deg, #5a5a5a 0%, #1f1f1f 28%, #101010 62%, #050505 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 2px rgba(0, 0, 0, 0.55),
    0 28px 56px rgba(0, 0, 0, 0.42),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.download-phone-btn {
  position: absolute;
  background: linear-gradient(90deg, #2a2a2a, #484848 50%, #222);
  border-radius: 2px;
  z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.download-phone-btn--silent {
  left: -2px;
  top: 108px;
  width: 3px;
  height: 24px;
}

.download-phone-btn--vol-up {
  left: -2px;
  top: 148px;
  width: 3px;
  height: 42px;
}

.download-phone-btn--vol-down {
  left: -2px;
  top: 200px;
  width: 3px;
  height: 42px;
}

.download-phone-btn--power {
  right: -2px;
  top: 164px;
  width: 3px;
  height: 64px;
}

.download-phone-shell {
  position: relative;
  border-radius: 48px;
  overflow: hidden;
  padding: 10px 8px 12px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.download-phone-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 48px;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.05) 100%);
  z-index: 2;
}

.download-phone-screen {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  line-height: 0;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.8);
}

.download-phone-shot {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.download-module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.download-module-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.download-module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.download-module-cover {
  height: 148px;
  overflow: hidden;
  background: #eef2f5;
}

.download-module-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.download-module-body {
  padding: 16px 16px 20px;
}

.download-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.download-module-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dl-icon-news { background: rgba(225, 112, 85, 0.12); color: #e17055; }
.dl-icon-match { background: rgba(0, 168, 120, 0.12); color: var(--accent); }
.dl-icon-data { background: rgba(43, 140, 255, 0.12); color: #1a5fb4; }
.dl-icon-player { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }

.download-module-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 168, 120, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.download-module-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-module-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.download-brands {
  text-align: center;
  padding: 28px 24px 32px;
}

.download-brands p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.download-brands-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.download-brands-list .brand-tag {
  padding: 8px 18px;
  font-size: 14px;
}

/* 赛事数据列表页 */
.inner-page--full {
  grid-template-columns: 1fr;
}

.inner-page--full .page-main {
  grid-column: 1 / -1;
}

.section-panel-body--flush {
  padding: 0;
}

.event-list {
  display: flex;
  flex-direction: column;
}

.event-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  transition: background 0.15s;
}

.event-list-item:first-child {
  border-top: none;
}

.event-list-item:hover {
  background: #f8fafb;
  color: inherit;
}

.event-list-item--active {
  background: rgba(0, 168, 120, 0.06);
  box-shadow: inset 3px 0 0 var(--accent);
}

.event-list-item:hover .event-list-enter {
  color: var(--accent);
}

.event-list-cover {
  width: 360px;
  height: 180px;
  margin-left: 20px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.event-list-body {
  padding: 8px 24px;
  min-width: 0;
}

.event-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.event-list-body h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 8px;
}

.event-list-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #9ca3af;
}

.data-type-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
  background: #f3f4f6;
}

.official-rank-preview {
  gap: 12px 18px;
  font-weight: 600;
  color: var(--text);
}

/* 数据页 · 官方 / 赛事切换 */
.section-panel--data {
  overflow: hidden;
}

.data-hub-bar {
  display: flex;
  justify-content: center;
  padding: 4px 24px 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.data-hub-tabs {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
}

.data-hub-tabs button {
  position: relative;
  border: none;
  background: transparent;
  padding: 16px 28px 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.data-hub-tabs button.on {
  color: var(--text);
}

.data-hub-tabs button.on::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
}

/* 官方榜（球员榜 / 战力榜 / 定位榜） */
.official-data-panel {
  display: block;
}

.official-data {
  padding: 0 28px 24px 48px;
}

.official-platform-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.official-platform-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, #0d3d2e, #00a878);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 168, 120, 0.22);
}

.official-platform-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 4px;
}

.official-platform-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.official-platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.official-platform-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  background: #f3f4f6;
}

.official-rank-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0 0 8px;
  border-bottom: 1px solid var(--border);
}

.official-rank-tabs {
  flex: 1;
  min-width: 0;
  border-bottom: none;
  border-radius: 0;
  background: transparent;
}

.official-season-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  flex-shrink: 0;
}

.official-rank-table {
  margin-top: 0;
  width: 100%;
  padding-left: 8px;
  box-sizing: border-box;
}

.official-rank-table .data-table {
  width: 100%;
  table-layout: fixed;
}

.official-rank-table .data-table th {
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  border-bottom: none;
}

.official-rank-table .data-table th,
.official-rank-table .data-table td {
  padding-left: 22px;
  padding-right: 22px;
}

.official-rank-table .data-table th:first-child,
.official-rank-table .data-table td.rank-num {
  width: 72px;
  min-width: 72px;
  padding-left: 28px;
}

.official-rank-table .data-table thead {
  border-bottom: 1px solid var(--border);
}

.official-rank-table .data-table thead th {
  border-top: none;
  background: #f8f9fb;
}

.official-rank-table .data-table tbody tr:last-child td {
  border-bottom: none;
}

.official-rank-note {
  margin: 0;
  padding: 14px 4px 4px 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.rank-role-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.rank-role-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #5b4bb7;
  background: #ede9fe;
}

.event-list-enter {
  display: flex;
  align-items: center;
  align-self: center;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  border-left: 1px solid var(--border);
  transition: color 0.15s;
}

/* 赛事详情页 */
.data-event-wrap {
  padding: 16px 0 48px;
  max-width: var(--max);
  margin: 0 auto;
}

.data-event-breadcrumb {
  margin-bottom: 16px;
}

.data-event-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  margin-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}

.data-event-header-cover {
  min-height: 180px;
}

.data-event-header-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.data-event-header-body h1 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}

.data-event-summary {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.data-event-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: #6b7280;
  align-items: center;
}

.data-event-tabs {
  border-radius: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.data-event-panel {
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 24px;
}

.data-event-panel .data-table th,
.data-event-panel .data-table td {
  padding: 14px 28px;
}

.event-panel-title {
  padding: 20px 28px 12px;
  font-size: 16px;
  font-weight: 800;
}

.event-schedule {
  padding: 0;
}

.event-phase-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  scrollbar-width: none;
}

.event-phase-tabs::-webkit-scrollbar {
  display: none;
}

.event-phase-tab {
  flex: 0 0 auto;
  padding: 14px 22px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.event-phase-tab:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.03);
}

.event-phase-tab.on {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: #fff;
  font-weight: 700;
}

.event-phase-desc {
  padding: 14px 28px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.event-phase-body {
  background: #fff;
}

.event-phase-body .empty-tip {
  padding: 40px 28px;
}

.data-event-panel .col-pts {
  font-weight: 800;
}

/* 比赛页 */
.inner-page--matches {
  grid-template-columns: 1fr;
  padding-top: 16px;
}

.inner-page--matches .page-main {
  grid-column: 1 / -1;
  min-width: 0;
}

body[data-page="matches"] {
  scroll-padding-top: calc(var(--site-header-h) + 72px);
}

.matches-date-bar {
  position: sticky;
  top: var(--site-header-h);
  z-index: 100;
  background: #fafbfc;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.matches-page .date-strip {
  justify-content: center;
  gap: 6px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

.matches-page .date-strip button {
  min-width: 64px;
  padding: 10px 14px;
}

.matches-list-panel {
  margin-top: 0;
  overflow: visible;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.match-day-section {
  scroll-margin-top: calc(var(--site-header-h) + 72px);
}

.match-day-section:first-child .date-group-head {
  border-top: none;
}

.match-day-section + .match-day-section .date-group-head {
  border-top: 8px solid #f4f5f7;
}

.matches-page .date-group-head {
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.matches-table {
  font-size: 15px;
}

.matches-table th,
.matches-table td {
  padding: 16px 28px;
  vertical-align: middle;
}

.matches-table th {
  font-size: 13px;
  background: #f4f6f8;
}

.matches-table tbody tr:hover {
  background: #f8fafb;
}

.matches-table .col-time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  width: 80px;
}

.matches-table .col-event {
  min-width: 220px;
  line-height: 1.45;
}

.matches-table .col-event strong {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.matches-table .col-event-stage {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.matches-table .col-player {
  font-weight: 700;
  min-width: 88px;
}

.matches-table th.col-score,
.matches-table td.col-score {
  text-align: center;
  min-width: 96px;
}

.matches-table td.col-score {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* 比赛页 · 手机端居中卡片（参考 new2） */
.match-card-list {
  display: none;
}

.match-card {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.match-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.match-card-meta .brand-tag {
  font-size: 11px;
  vertical-align: middle;
}

.match-card-meta .match-card-time {
  font-weight: 600;
  color: #6b7280;
}

.match-card-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.match-card-side {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 0;
}

.match-card-side--left {
  justify-content: flex-end;
}

.match-card-side--right {
  justify-content: flex-start;
}

.match-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  max-width: 5.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-card-name .player-link {
  color: inherit;
}

.match-card-name .player-link:hover {
  color: var(--accent);
}

.match-card-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.match-card-av--a {
  background: rgba(0, 168, 120, 0.14);
  color: #00a878;
}

.match-card-av--b {
  background: rgba(99, 102, 241, 0.14);
  color: #6366f1;
}

.match-card-score {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  padding: 0 2px;
}

.match-card-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}

.match-card-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: match-live-pulse 1.4s ease-in-out infinite;
}

@keyframes match-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.match-card-status .status-tag {
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.match-card-status .status-on {
  color: #ef4444;
  background: transparent;
}

.match-card-watch .watch-tags {
  justify-content: center;
  gap: 0;
}

.match-card-watch .watch-tag {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
}

.match-card-watch .watch-tag:hover {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
}

.match-card-watch .watch-tag + .watch-tag::before {
  content: " · ";
  color: #9ca3af;
  pointer-events: none;
}

.watch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.watch-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}

.watch-tag:hover {
  color: var(--primary);
  background: rgba(0, 168, 120, 0.08);
  border-color: rgba(0, 168, 120, 0.25);
}

/* 比赛页日期条 */
.date-strip {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  scrollbar-width: none;
}

.date-strip::-webkit-scrollbar { display: none; }

.date-strip button {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: background 0.12s, color 0.12s;
}

.date-strip button:hover { background: rgba(0, 0, 0, 0.04); }

.date-strip button.on {
  background: rgba(0, 168, 120, 0.1);
}

.date-strip-week {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.date-strip-day {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.2;
}

.date-strip button.on .date-strip-week,
.date-strip button.on .date-strip-day {
  color: var(--text);
  font-weight: 700;
}

/* Tabs */
.page-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
}

.page-tabs button {
  padding: 16px 24px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  position: relative;
}

.page-tabs button.on { color: var(--accent); }

.page-tabs button.on::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -1px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
}

.official-rank-toolbar .page-tabs.official-rank-tabs {
  border-bottom: none;
  border-radius: 0;
  background: transparent;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tabs button {
  padding: 9px 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.filter-tabs button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Tables */
.section-panel--flush .section-panel-body { padding: 0; }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.table-wrap--cards {
  overflow: visible;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #f8f9fb;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table tbody tr:hover { background: #fafbfc; }

.data-table .col-time { white-space: nowrap; }
.data-table th.col-score,
.data-table td.col-score {
  text-align: center;
  min-width: 80px;
}

.data-table td.col-score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.date-group-head {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: #f4f5f7;
  border-bottom: 1px solid var(--border);
}

.rank-num {
  font-weight: 800;
  color: var(--muted);
  width: 48px;
  text-align: center;
}

.rank-num.top { color: var(--accent); font-size: 16px; }

.player-name { font-weight: 700; }

.link-btn {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

/* Tags */
.brand-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.brand-qiaoshi { background: rgba(0, 168, 120, 0.12); color: #00a878; }
.brand-kangxi { background: rgba(43, 140, 255, 0.12); color: #2b8cff; }
.brand-duya { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.brand-tengbo { background: rgba(253, 152, 83, 0.15); color: #e17055; }

.status-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.status-on { background: rgba(0, 168, 120, 0.12); color: var(--accent); }
.status-wait { background: rgba(230, 168, 23, 0.15); color: #b8860b; }
.status-end { background: rgba(0, 0, 0, 0.06); color: var(--muted); }

.news-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}

/* Event detail phases */
.phase-timeline { padding: 8px 0; }

.phase-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.phase-item:last-child { border-bottom: none; }

.phase-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.phase-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.phase-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Event info sidebar */
.event-info-list {
  padding: 8px 0;
}

.event-info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.event-info-row:last-child { border-bottom: none; }

.event-info-row dt { color: var(--muted); }

.event-info-row dd { font-weight: 600; text-align: right; }

/* Top 3 players highlight */
.top-players {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.top-player-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.top-player-card.rank-1 {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 168, 120, 0.06), #fff);
}

.top-player-rank {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.top-player-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.top-player-card.rank-1 .player-link {
  color: #fff;
}

.top-player-card.rank-1 .player-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.top-player-team {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.top-player-pts {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.top-player-pts small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

#news {
  scroll-margin-top: calc(var(--site-header-h) + 20px);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--chrome-foot) 0%, var(--chrome-foot-end) 100%);
  color: var(--muted);
  padding: 48px 0 28px;
  border-top: 1px solid var(--chrome-border);
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(260px, 2.2fr) 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand .site-logo {
  margin-bottom: 16px;
  color: var(--text);
}

.footer-desc {
  margin: 0;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s;
}

.footer-social-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.footer-wechat {
  position: relative;
}

.footer-wechat-trigger {
  cursor: default;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: var(--muted);
}

.footer-wechat-id {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.footer-wechat:hover .footer-wechat-trigger,
.footer-wechat:focus-within .footer-wechat-trigger {
  color: var(--accent);
}

.footer-wechat-popup {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 20;
  text-align: center;
  pointer-events: none;
}

.footer-wechat-popup img {
  display: block;
  border-radius: 6px;
}

.footer-wechat-popup span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  white-space: nowrap;
}

.footer-wechat:hover .footer-wechat-popup,
.footer-wechat:focus-within .footer-wechat-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-footer h4 {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  font-size: 13px;
  line-height: 2.3;
  color: var(--muted);
}

.site-footer ul a {
  color: var(--muted);
}

.site-footer a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  margin-top: 10px;
}

.footer-legal a {
  color: #9ca3af;
}

.footer-legal a:hover {
  color: var(--accent);
}

.news-load-sentinel {
  height: 1px;
  margin-top: 8px;
}

.hidden { display: none !important; }

.empty-tip {
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* —— 响应式（仅小屏降级，桌面优先） —— */
@media (max-width: 1100px) {
  .home-body,
  .inner-page {
    grid-template-columns: 1fr;
  }

  .home-main,
  .home-sidebar,
  .page-main,
  .page-sidebar {
    grid-column: 1 / -1;
  }

  .home-sidebar,
  .page-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .home-sidebar .widget-app { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root {
    --site-header-h: 56px;
  }

  .site-header-inner {
    gap: 10px;
    height: var(--site-header-h);
    min-height: var(--site-header-h);
    padding: 0 16px;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto;
    align-items: center;
    position: relative;
  }

  .site-logo {
    grid-column: 1;
    grid-row: 1;
    font-size: 17px;
    gap: 8px;
    min-width: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 8px 12px 12px;
    background: var(--chrome-top);
    border-bottom: 1px solid var(--chrome-border);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    z-index: 20;
    overflow: visible;
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }

  .site-header-actions {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    justify-self: end;
  }

  .site-header-actions .btn {
    padding: 7px 12px;
    font-size: 13px;
  }

  .site-nav-toggle {
    display: flex;
    grid-column: 3;
    grid-row: 1;
  }

  .site-logo span {
    white-space: nowrap;
  }

  .site-logo-img {
    width: 34px;
    height: 34px;
  }

  .site-header-nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    flex-shrink: unset;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.35;
    border-radius: 8px;
    text-align: left;
  }

  body.site-nav-open {
    overflow: hidden;
  }

  .home-page-bg {
    height: 560px;
  }

  .site-container.home-hero-wrap {
    padding-top: 8px;
    margin-bottom: 12px;
  }

  .hero-banner {
    height: 180px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(13, 61, 46, 0.14);
  }

  .hero-content {
    padding: 0 14px;
  }

  .search-box { display: none; }

  .page-hero { height: 140px; }

  .page-hero h1 { font-size: 22px; }

  .hero-content h1 { font-size: 18px; margin-bottom: 6px; }

  .hero-content p { font-size: 12px; margin-bottom: 0; line-height: 1.4; }

  .hero-dots {
    bottom: 8px;
  }

  .event-cards { grid-template-columns: 1fr; }

  .news-card { grid-template-columns: 1fr; }

  .news-card-cover { height: 168px; order: -1; }

  .download-hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .download-hero-banner {
    padding: 32px 0 36px;
  }

  .download-hero-left {
    max-width: none;
    text-align: center;
  }

  .download-hero-stat {
    font-size: 22px;
  }

  .download-hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .download-store-btns {
    min-width: 0;
    width: 100%;
    max-width: 280px;
  }

  .download-hero-phones {
    height: 400px;
    margin-top: 4px;
  }

  .download-phone {
    width: 212px;
  }

  .download-module-grid { grid-template-columns: repeat(2, 1fr); }

  .top-players { grid-template-columns: 1fr; }

  .event-list-item {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .event-list-cover {
    width: 100%;
    height: 200px;
    margin-left: 0;
    border-radius: 0;
  }

  .event-list-body {
    padding: 16px 20px;
  }

  .event-list-enter {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 14px 24px;
    justify-content: flex-end;
  }

  .data-event-header {
    grid-template-columns: 1fr;
  }

  .data-event-header-cover {
    min-height: 140px;
  }

  .player-hero-main {
    flex-direction: column;
    text-align: center;
  }

  .player-layout {
    grid-template-columns: 1fr;
  }

  .player-hero-info h1 {
    font-size: 26px;
  }

  .player-hero-stats {
    justify-content: center;
  }

  .player-match-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-feed-item {
    grid-template-columns: 1fr;
  }

  .player-feed-cover {
    height: 220px;
    order: -1;
  }

  .player-feed-list {
    padding: 8px 16px 20px;
  }

  .radar-legend {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer-inner { grid-template-columns: 1fr 1fr; }

  .footer-brand { grid-column: 1 / -1; }

  .footer-wechat-popup {
    left: auto;
    right: 0;
  }

  .home-sidebar,
  .page-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-container { padding: 0 16px; }

  .site-logo {
    font-size: 16px;
  }

  .site-logo-img {
    width: 32px;
    height: 32px;
  }

  .site-container.home-hero-wrap {
    padding-top: 6px;
    margin-bottom: 10px;
  }

  .hero-banner {
    height: 148px;
    box-shadow: 0 2px 8px rgba(13, 61, 46, 0.1);
  }

  .hero-content h1 {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .hero-content p {
    font-size: 11px;
    line-height: 1.35;
  }

  .hero-dots {
    bottom: 6px;
    gap: 6px;
  }

  .hero-dots button {
    width: 6px;
    height: 6px;
  }

  .site-header-actions .btn:not(.btn-primary) { display: none; }

  .download-hero-stat { font-size: 20px; }

  .download-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .download-hero-phones {
    height: 360px;
  }

  .download-phone {
    width: 188px;
  }

  .download-phone--showcase {
    transform: none;
  }

  .download-module-grid { grid-template-columns: 1fr; }

  .site-footer-inner { grid-template-columns: 1fr; }

  /* —— 比赛 / 数据 / 球员页 · 手机适配 —— */
  .data-event-wrap,
  .player-page-wrap {
    min-width: 0;
    overflow-x: hidden;
  }

  .inner-page--matches .page-main {
    min-width: 0;
  }

  .inner-page--matches .matches-list-panel {
    overflow-x: hidden;
    overflow-y: visible;
  }

  .matches-page .date-strip {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .matches-page .date-strip button {
    min-width: 52px;
    padding: 8px 10px;
  }

  .matches-page .date-group-head {
    padding: 12px 16px;
    font-size: 13px;
    text-align: center;
    font-weight: 700;
    color: var(--text);
    background: #eef2f6;
  }

  .matches-table-wrap {
    display: none;
  }

  .match-card-list {
    display: block;
  }

  .match-card:last-child {
    border-bottom: none;
  }

  .data-event-wrap {
    padding: 12px 0 32px;
  }

  .data-event-breadcrumb {
    font-size: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .data-event-header-body {
    padding: 16px;
  }

  .data-event-header-body h1 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .data-event-summary {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .data-event-submeta {
    gap: 8px 12px;
    font-size: 12px;
  }

  .data-event-panel .data-table th,
  .data-event-panel .data-table td {
    padding: 12px 16px;
  }

  .event-panel-title {
    padding: 14px 16px 10px;
    font-size: 15px;
  }

  .page-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .page-tabs::-webkit-scrollbar {
    display: none;
  }

  .page-tabs button {
    flex-shrink: 0;
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  .page-tabs button.on::after {
    left: 16px;
    right: 16px;
  }

  .player-page-wrap {
    padding: 12px 0 32px;
  }

  .player-hero {
    padding: 12px 16px 0;
  }

  .player-breadcrumb {
    font-size: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .player-avatar {
    width: 88px;
    height: 88px;
    font-size: 36px;
  }

  .player-rank-badge {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .player-hero-info h1 {
    font-size: 22px;
  }

  .player-name-en {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .player-hero-meta {
    justify-content: center;
    font-size: 13px;
    gap: 8px;
  }

  .player-hero-stats {
    gap: 10px 16px;
    font-size: 13px;
  }

  .player-hero-stats strong {
    font-size: 16px;
  }

  .player-body-wrap {
    padding-top: 16px;
  }

  .player-match-head {
    padding: 12px 16px 0;
    flex-wrap: wrap;
    gap: 4px;
  }

  .player-match-stats {
    gap: 8px;
  }

  .player-match-stat {
    padding: 10px 8px;
  }

  .player-info-block {
    padding: 0 16px;
  }

  .section-panel-head h2 {
    font-size: 16px;
  }

  /* 手机：表格改卡片 */
  .table-wrap--cards .data-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .table-wrap--cards .data-table thead {
    display: none;
  }

  .table-wrap--cards .data-table tbody {
    display: block;
  }

  .table-wrap--cards .data-table tbody tr {
    border-bottom: 1px solid var(--border);
  }

  .table-wrap--cards .data-table tbody tr:hover {
    background: #f8fafb;
  }

  .table-wrap--cards .data-table td {
    border: none;
    min-width: 0;
  }

  .table-wrap--cards .brand-tag {
    white-space: nowrap;
  }

  /* 比赛页对阵卡片（赛事详情赛程等仍用 table-wrap--cards） */
  .table-wrap--cards .data-table--rank tbody tr {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 4px 12px;
    align-items: center;
    padding: 12px 16px;
  }

  .table-wrap--cards .data-table--rank td {
    display: block;
    padding: 0;
  }

  .table-wrap--cards .data-table--rank td:first-child {
    grid-row: 1 / 4;
    align-self: center;
  }

  .table-wrap--cards .data-table--rank td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    font-weight: 700;
    font-size: 15px;
  }

  .table-wrap--cards .data-table--rank td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .table-wrap--cards .data-table--rank td:nth-child(4) {
    grid-column: 3;
    grid-row: 1;
    font-weight: 800;
    font-size: 16px;
    color: var(--accent);
    text-align: right;
  }

  .table-wrap--cards .data-table--rank td:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
  }

  .table-wrap--cards .data-table--rank td:nth-child(6) {
    grid-column: 3;
    grid-row: 3;
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
  }

  .table-wrap--cards .data-table--rank td:nth-child(5)::after {
    content: "胜";
    margin-left: 1px;
  }

  .table-wrap--cards .data-table--rank td:nth-child(6)::after {
    content: "清";
    margin-left: 1px;
  }

  /* 赛事详情 · 赛程对阵（6 列） */
  .table-wrap--cards .matches-table--compact td:nth-child(2),
  .table-wrap--cards .matches-table--compact td:nth-child(4) {
    flex: 1 1 0;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
  }

  .table-wrap--cards .matches-table--compact td:nth-child(4) {
    text-align: right;
  }

  .table-wrap--cards .matches-table--compact td:nth-child(5) {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .table-wrap--cards .matches-table--compact td:nth-child(6) {
    flex: 1 1 100%;
    padding-top: 2px;
  }

  .table-wrap--cards .matches-table--compact .col-event,
  .table-wrap--cards .matches-table--compact td:nth-child(7),
  .table-wrap--cards .matches-table--compact td:nth-child(8) {
    display: none;
  }

  /* 球员资料 · 比赛记录卡片 */
  .table-wrap--cards .player-match-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 14px 16px;
  }

  .table-wrap--cards .player-match-table td {
    display: block;
    padding: 0;
  }

  .table-wrap--cards .player-match-table .col-time {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
  }

  .table-wrap--cards .player-match-table td:nth-child(2) {
    flex: 0 0 auto;
  }

  .table-wrap--cards .player-match-table .col-score {
    flex: 0 0 auto;
    margin-left: auto;
    min-width: auto;
    font-size: 15px;
  }

  .table-wrap--cards .player-match-table td:nth-child(5) {
    flex: 0 0 auto;
  }

  .table-wrap--cards .player-match-table .player-match-vs {
    flex: 1 1 100%;
    order: 10;
    white-space: normal;
    line-height: 1.5;
    font-size: 14px;
    font-weight: 700;
  }

  .table-wrap--cards .player-match-table .player-match-vs small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
  }

  .table-wrap--cards .player-match-table td:nth-child(6),
  .table-wrap--cards .player-match-table td:nth-child(7) {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--muted);
    order: 11;
  }

  .table-wrap--cards .player-match-table td:nth-child(6)::before {
    content: "清台 ";
    color: var(--muted);
  }

  .table-wrap--cards .player-match-table td:nth-child(7)::before {
    content: "评分 ";
    color: var(--muted);
  }

  /* 历史等宽表 · 横向滑动 */
  .table-wrap--scroll .data-table {
    min-width: 520px;
  }

  .table-wrap--scroll .data-table th,
  .table-wrap--scroll .data-table td {
    padding: 12px 14px;
    white-space: nowrap;
  }
}

/* —— 89台球 · 产品介绍落地页 —— */
.landing-page {
  --landing-ink: #1a1f26;
  --landing-muted: #5f6b7a;
  --landing-bg: #e9ecf0;
  --landing-surface: #f4f6f8;
  --landing-elevated: #fafbfc;
  --landing-line: rgba(26, 32, 44, 0.09);
  --landing-accent: var(--accent);
  --landing-accent-dark: var(--accent-dark);
  --landing-accent-soft: rgba(0, 168, 120, 0.1);
  --landing-accent-line: rgba(0, 168, 120, 0.22);
  --landing-radius: 10px;
  --landing-shadow: 0 8px 28px rgba(26, 32, 44, 0.07);
  --landing-shadow-sm: 0 2px 10px rgba(26, 32, 44, 0.05);
  padding-bottom: 0;
  background: var(--landing-bg);
  color: var(--landing-ink);
}

.landing-page #features,
.landing-page #pain-points,
.landing-page #download {
  scroll-margin-top: calc(var(--site-header-h) + 16px);
}

/* Hero */
.landing-hero {
  position: relative;
  color: var(--landing-ink);
  padding: 64px 0 72px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef1f4 0%, var(--landing-bg) 100%);
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.landing-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--landing-elevated);
  border: 1px solid var(--landing-line);
  font-size: 13px;
  font-weight: 700;
  color: var(--landing-muted);
}

.landing-hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--landing-accent);
  box-shadow: 0 0 0 3px var(--landing-accent-soft);
}

.landing-hero-tagline {
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--landing-ink);
}

.landing-hero-br {
  display: none;
}

.landing-hero-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--landing-muted);
  max-width: 480px;
  margin-bottom: 22px;
}

.landing-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.landing-hero-chips span {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--landing-elevated);
  border: 1px solid var(--landing-line);
  font-size: 12px;
  font-weight: 600;
  color: var(--landing-muted);
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-btn {
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
}

.landing-btn--lg {
  padding: 15px 38px;
  font-size: 16px;
}

.landing-hero .btn-primary,
.landing-cta .btn-primary {
  background: var(--landing-accent);
  border-color: var(--landing-accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 168, 120, 0.22);
}

.landing-hero .btn-primary:hover,
.landing-cta .btn-primary:hover {
  background: var(--landing-accent-dark);
  border-color: var(--landing-accent-dark);
  color: #fff;
}

.landing-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 8px;
  border: 1px solid var(--landing-line);
  font-size: 15px;
  font-weight: 600;
  color: var(--landing-ink);
  background: var(--landing-elevated);
}

.landing-btn-ghost:hover {
  border-color: var(--landing-accent-line);
  color: var(--landing-accent-dark);
  background: #fff;
}

.landing-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-phone {
  position: relative;
  width: 258px;
  padding: 11px;
  border-radius: 36px;
  background: var(--landing-elevated);
  border: 1px solid var(--landing-line);
  box-shadow: var(--landing-shadow);
}

.landing-phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.landing-phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* Pain points */
.landing-pain {
  padding: 72px 0;
  background: var(--landing-surface);
  border-top: 1px solid var(--landing-line);
  border-bottom: 1px solid var(--landing-line);
}

.landing-section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

.landing-section-head h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--landing-ink);
}

.landing-section-head p {
  font-size: 16px;
  color: var(--landing-muted);
  line-height: 1.7;
}

.landing-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.landing-pain-card {
  overflow: hidden;
  background: var(--landing-elevated);
  border: 1px solid var(--landing-line);
  border-radius: var(--landing-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-pain-card:hover {
  border-color: var(--landing-accent-line);
  box-shadow: var(--landing-shadow-sm);
}

.landing-pain-cover {
  height: 140px;
  overflow: hidden;
  background: #e8ecf0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}

.landing-pain-illus {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 124px;
}

.landing-pain-body {
  padding: 18px 20px 20px;
}

.landing-pain-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--landing-ink);
}

.landing-pain-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--landing-muted);
  margin: 0;
}

/* Features */
.landing-section {
  padding: 72px 0;
}

.landing-section--features {
  background: var(--landing-bg);
}

.landing-page .landing-module-grid--six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.landing-page .download-module-card {
  border-radius: var(--landing-radius);
  border-color: var(--landing-line);
  box-shadow: var(--landing-shadow-sm);
  background: var(--landing-elevated);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-page .download-module-card:hover {
  border-color: var(--landing-accent-line);
  box-shadow: var(--landing-shadow);
}

.landing-page .download-module-cover {
  height: 156px;
  background: #e2e6eb;
}

.landing-page .download-module-body {
  padding: 18px 18px 22px;
}

.landing-page .download-module-card h3 {
  font-size: 17px;
  font-weight: 800;
}

.landing-page .download-module-tag {
  background: var(--landing-accent-soft);
  color: var(--landing-accent-dark);
}

.landing-page .download-module-cover--accent {
  display: grid;
  place-items: center;
  min-height: 156px;
  background: linear-gradient(135deg, #0d5c44 0%, var(--landing-accent) 100%);
}

.download-module-cover--accent {
  display: grid;
  place-items: center;
  min-height: 168px;
  background: linear-gradient(135deg, #0d5c44 0%, var(--landing-accent) 100%);
}

.download-module-cover-icon {
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.95;
}

/* CTA */
.landing-cta {
  color: var(--landing-ink);
  padding: 72px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--landing-surface) 0%, #e8f2ee 100%);
  border-top: 1px solid var(--landing-line);
}

.landing-cta-inner h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--landing-ink);
}

.landing-cta-inner p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--landing-muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

@media (max-width: 900px) {
  .landing-hero {
    padding: 48px 0 56px;
  }

  .landing-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .landing-hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .landing-hero-br {
    display: block;
  }

  .landing-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .landing-hero-chips {
    justify-content: center;
  }

  .landing-hero-actions {
    justify-content: center;
  }

  .landing-hero-visual {
    order: -1;
  }

  .landing-phone {
    width: 220px;
  }

  .landing-pain,
  .landing-section {
    padding: 56px 0;
  }

  .landing-pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-page .landing-module-grid--six {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .landing-hero {
    padding: 36px 0 44px;
  }

  .landing-hero-desc {
    font-size: 15px;
  }

  .landing-pain,
  .landing-section,
  .landing-cta {
    padding: 44px 0;
  }

  .landing-pain-grid,
  .landing-page .landing-module-grid--six {
    grid-template-columns: 1fr;
  }
}

.download-hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 8px;
}

.download-hero-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.download-hero-stat--simple {
  font-size: 18px;
  line-height: 1.6;
}

.download-hero-stat--simple em {
  font-style: normal;
  font-weight: 800;
}

.download-future-note {
  margin: 0;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  background: #f8f9fb;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  text-align: center;
}
