/* 九游体育官网 - NBA篮球资讯站全站样式表 */
:root {
  --deep-navy: #0b1f3a;
  --deep-navy-2: #081326;
  --court-blue: #1f6fd6;
  --court-blue-2: #2f8fdb;
  --nba-orange: #f97316;
  --nba-gold: #fbbf24;
  --teal: #14b8a6;
  --purple: #7c5cff;
  --warm-white: #f6f8fc;
  --silver: #cbd5e1;
  --ink: #10203a;
  --ink-soft: #43526b;
  --line: #e2e8f3;
  --card-bg: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --max-width: 1280px;
  --shadow-card: 0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(11, 31, 58, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Heiti SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--court-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--deep-navy); line-height: 1.4; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
table { border-collapse: collapse; width: 100%; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--deep-navy); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--deep-navy); color: #cfe0ff; font-size: 13px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.top-bar a { color: #cfe0ff; }
.top-bar .top-bar-meta { opacity: 0.85; }

/* ---------- Header / Nav ---------- */
.site-header { background: #ffffff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; }
.brand-text .brand-name { font-size: 20px; font-weight: 700; color: var(--deep-navy); }
.brand-text .brand-sub { font-size: 12px; color: var(--ink-soft); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--deep-navy); position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { color: var(--deep-navy); font-weight: 600; padding: 10px 14px; border-radius: 999px; display: inline-block; font-size: 14.5px; }
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: linear-gradient(135deg, var(--court-blue), var(--nba-orange)); color: #fff; text-decoration: none;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13.5px; color: var(--ink-soft); padding: 14px 0; max-width: var(--max-width); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.breadcrumb a { color: var(--court-blue-2); }
.breadcrumb span { margin: 0 6px; color: var(--silver); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse at top right, #133257 0%, var(--deep-navy) 55%, var(--deep-navy-2) 100%);
  color: #eaf1ff; padding: 56px 0 64px; overflow: hidden;
}
.hero .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1 1 420px; min-width: 300px; }
.hero-media { flex: 1 1 480px; min-width: 300px; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 0.05em; background: rgba(255,255,255,0.1);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; color: #ffcf9e;
}
.hero h1 { color: #ffffff; margin-bottom: 18px; }
.hero p { color: #cfe0ff; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 14.5px; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--nba-orange), var(--nba-gold)); color: #3a1c02; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.06); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #ffffff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.btn-secondary { background: #ffffff; color: var(--deep-navy); border-color: #ffffff; }
.btn-secondary:hover { background: var(--warm-white); text-decoration: none; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: #eef2fb; }
.section-header { max-width: 780px; margin-bottom: 34px; }
.section-header .eyebrow { color: var(--court-blue); font-weight: 700; font-size: 13.5px; letter-spacing: 0.04em; }
.section-header p { color: var(--ink-soft); }
.section-lede { max-width: 900px; color: var(--ink-soft); }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card-bg); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 22px; border: 1px solid var(--line); }
.card:hover { box-shadow: var(--shadow-card-hover); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 14.5px; }
.card .tag { margin-bottom: 10px; }

.icon-card { text-align: left; }
.icon-card .icon-wrap {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--court-blue), var(--nba-orange)); margin-bottom: 14px;
}
.icon-wrap svg, .icon-wrap img { width: 28px; height: 28px; }

.module-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-card); overflow: hidden; margin-bottom: 30px; }
.module-card figure { margin: 0; background: var(--deep-navy); }
.module-card figcaption { font-size: 13px; color: var(--ink-soft); padding: 12px 24px 0; }
.module-body { padding: 22px 26px 26px; }
.module-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

.tag { display: inline-block; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; font-weight: 600; background: #e8f0ff; color: var(--court-blue); }
.tag-orange { background: #fff1e6; color: var(--nba-orange); }
.tag-purple { background: #f1edff; color: var(--purple); }
.tag-gold { background: #fff8e1; color: #b8860b; }
.tag-gray { background: #eef1f6; color: var(--ink-soft); }

.kv-table { font-size: 14px; }
.kv-table th { text-align: left; width: 30%; color: var(--ink-soft); font-weight: 600; padding: 8px 10px; vertical-align: top; }
.kv-table td { padding: 8px 10px; }
.kv-table tr:nth-child(odd) { background: #f4f7fd; }

/* ---------- Article / Figure ---------- */
figure { margin: 0 0 12px; }
figcaption { font-size: 13.5px; color: var(--ink-soft); background: #eef2fb; padding: 12px 16px; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.figure-frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--deep-navy); }

.article-list { display: flex; flex-direction: column; gap: 26px; }
.article-card {
  display: grid; grid-template-columns: 340px 1fr; gap: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden;
}
.article-card .article-media { background: var(--deep-navy); }
.article-card .article-body { padding: 22px 24px; }
.article-card .article-meta { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.article-card h2, .article-card h3 { margin-bottom: 8px; }
.article-card .summary { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 12px; }
.article-full { color: var(--ink); font-size: 15px; }
.article-full p { margin-bottom: 1em; }
.source-line { font-size: 13px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 14px; }
.disclaimer-box { background: #fff6e8; border: 1px solid #ffe1a8; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13.5px; color: #7a5200; margin: 14px 0; }
.notice-box { background: #eef6ff; border: 1px solid #cfe3ff; border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14px; color: #1a3a63; margin: 18px 0; }
.notice-box.danger { background: #fdecec; border-color: #f7c6c6; color: #7a1f1f; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 13.5px; cursor: pointer; color: var(--ink-soft); font-weight: 600; }
.filter-btn.is-active { background: var(--deep-navy); border-color: var(--deep-navy); color: #fff; }

/* ---------- Table ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); }
.data-table { min-width: 640px; font-size: 14px; }
.data-table th { background: var(--deep-navy); color: #fff; text-align: left; padding: 12px 14px; white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table tr:nth-child(even) td { background: #f6f8fd; }

/* ---------- Dashboard ---------- */
.dashboard-wrap { background: var(--deep-navy); border-radius: var(--radius-lg); padding: 30px; color: #eaf1ff; }
.dashboard-table th { background: rgba(255,255,255,0.08); color: #eaf1ff; }
.dashboard-table td { color: #dbe6f7; border-bottom: 1px solid rgba(255,255,255,0.12); }
.dashboard-table tr:nth-child(even) td { background: rgba(255,255,255,0.03); }
.progress-bar { width: 100%; height: 8px; border-radius: 6px; background: rgba(255,255,255,0.15); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--nba-orange), var(--nba-gold)); }
.status-pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-live { background: #163e2c; color: #6ee7a0; }
.status-progress { background: #2a3a63; color: #9ec3ff; }
.status-plan { background: #4a3a1b; color: #ffd27a; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 4px; font-size: 15.5px;
  font-weight: 700; color: var(--deep-navy); display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-question .faq-icon { transition: transform 0.2s ease; font-size: 18px; color: var(--court-blue); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; color: var(--ink-soft); font-size: 14.5px; }
.faq-item.is-open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 0 4px 18px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 30px; border-left: 3px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before {
  content: ""; position: absolute; left: -38px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--nba-orange); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--nba-orange);
}
.timeline-date { font-size: 13px; font-weight: 700; color: var(--court-blue); margin-bottom: 4px; }

/* ---------- Steps / Flow ---------- */
.step-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.step-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; position: relative; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--deep-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px; font-size: 14px; }

/* ---------- Login demo ---------- */
.login-demo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-card); max-width: 420px; }
.login-demo label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 16px; }
.login-demo input { width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: #f4f7fd; color: var(--ink-soft); font-size: 14px; }
.pref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; }
.pref-chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; background: #fff; cursor: pointer; text-align: center; color: var(--ink-soft); font-weight: 600; }
.pref-chip.is-active { background: var(--nba-orange); border-color: var(--nba-orange); color: #3a1c02; }

/* ---------- Download columns ---------- */
.download-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.download-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; text-align: center; box-shadow: var(--shadow-card); }
.download-card .icon-wrap { margin: 0 auto 14px; }

/* ---------- Reading tools (app.html) ---------- */
.tool-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.switch input { width: 40px; height: 22px; }

/* ---------- Company table ---------- */
.company-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-navy-2); color: #b9c8e6; padding: 46px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; margin-bottom: 30px; }
.site-footer h4 { color: #eaf1ff; font-size: 14.5px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 13.5px; }
.site-footer a { color: #b9c8e6; }
.site-footer a:hover { color: #fff; }
.footer-desc { font-size: 13px; line-height: 1.9; color: #9db1d6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; font-size: 12.5px; color: #8ea0c4; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--deep-navy); color: #fff; border: none; display: none; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 6px 20px rgba(11,31,58,0.35); font-size: 18px; z-index: 90;
}
.back-to-top.is-visible { display: flex; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small-note { font-size: 12.5px; color: var(--ink-soft); }
.divider { height: 1px; background: var(--line); margin: 34px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .download-cols { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(11,31,58,0.1); padding: 10px 16px 18px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 12px 10px; border-radius: 10px; }
  .site-header .container { position: relative; flex-wrap: wrap; }
  .hero .container { flex-direction: column; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
