/* ==========================================================================
   三峡之星体育馆 · 品牌站点设计系统
   视觉基调：长江夜航深蓝底 + 星金点缀 + 江水青辅助
   关键词：地标感、公共性、家庭感、可信赖、明码标价
   ========================================================================== */

:root {
  --bg:            #05080f;
  --bg-elev:       #0a0f1a;
  --surface:       #0d1420;
  --surface-2:     #121a29;
  --surface-3:     #182236;
  --line:          #22304a;
  --line-soft:     #172032;
  --text:          #eef2f8;
  --text-2:        #c3cde0;
  --muted:         #8b98b0;
  --faint:         #626f88;

  --accent:        #ffc247;   /* 星金 */
  --accent-hot:    #ffd479;
  --accent-dim:    #6d4a0f;
  --river:         #38bdf8;   /* 江水青 */
  --river-dim:     #0e4a63;
  --ok:            #34d399;
  --warn:          #fbbf24;
  --danger:        #f87171;
  --info:          #60a5fa;

  --radius:        14px;
  --radius-sm:     9px;
  --radius-lg:     22px;
  --shadow:        0 18px 44px -22px rgba(0,0,0,.9);
  --shadow-sm:     0 6px 20px -12px rgba(0,0,0,.85);

  --maxw:          1180px;
  --nav-h:         64px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

html[data-theme="light"] {
  --bg:            #f4f6fb;
  --bg-elev:       #ffffff;
  --surface:       #ffffff;
  --surface-2:     #f7f9fd;
  --surface-3:     #edf1f8;
  --line:          #d9e0ec;
  --line-soft:     #e7ecf5;
  --text:          #0d1420;
  --text-2:        #333f52;
  --muted:         #5b6880;
  --faint:         #8a95aa;
  --accent:        #b87b04;
  --accent-hot:    #96620a;
  --accent-dim:    #ffefc6;
  --river:         #0284c7;
  --river-dim:     #cfe9f8;
  --shadow:        0 18px 44px -26px rgba(15,25,45,.35);
  --shadow-sm:     0 6px 20px -14px rgba(15,25,45,.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4, h5 {
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin: .3em 0; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 880px); margin-inline: auto; }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%; display: flex; align-items: center; gap: 18px;
  width: min(100% - 32px, 1320px); margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, var(--accent-hot), #c4860e 72%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 6px 16px -8px var(--accent);
  display: grid; place-items: center; color: #2a1c00; font-size: 15px; font-weight: 900;
}
.brand .txt { font-size: 15.5px; white-space: nowrap; }
.brand .txt small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--muted); font-weight: 600; }

.nav-links { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 11px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--text-2); white-space: nowrap;
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-links a.on { color: var(--accent-hot); background: color-mix(in srgb, var(--accent) 14%, transparent); }

.nav-side { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 14.5px;
  cursor: pointer; font-family: inherit; transition: transform .12s ease, background .15s ease, border-color .15s;
}
.btn:hover { background: var(--surface-3); text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(140deg, var(--accent-hot), #d09006);
  border-color: color-mix(in srgb, var(--accent) 60%, #000);
  color: #2a1c00; box-shadow: 0 10px 26px -14px var(--accent);
}
.btn-primary:hover { background: linear-gradient(140deg, #ffe0a0, #dc9a08); }
.btn-river {
  background: linear-gradient(140deg, #6fd2f9, #0b7fb0);
  border-color: color-mix(in srgb, var(--river) 55%, #000);
  color: #04202c;
}
.btn-river:hover { background: linear-gradient(140deg, #9ce2ff, #0d8ec4); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-ghost { background: transparent; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2);
  cursor: pointer; font-size: 15px; flex: none;
}
.theme-toggle:hover { background: var(--surface-3); color: var(--text); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 116px) 0 clamp(40px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 470px at 80% -14%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
    radial-gradient(820px 400px at 4% 110%, color-mix(in srgb, var(--river) 20%, transparent), transparent 62%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 24%, #000 10%, transparent 72%);
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-hot); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow.river { color: var(--river); }
.eyebrow.river::before { background: var(--river); }
.hero h1 { max-width: 22ch; }
.hero .lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--text-2); max-width: 64ch; }
.slogan {
  margin: 26px 0 0; padding: 16px 22px; border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700; color: var(--text);
  max-width: 64ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 通用版式 ---------- */
section { padding: clamp(44px, 6.5vw, 82px) 0; }
section + section { border-top: 1px solid var(--line-soft); }
section.tight { padding: clamp(30px, 4vw, 52px) 0; }
section.band { background: var(--bg-elev); }
.section-head { max-width: 70ch; margin-bottom: 34px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head p { color: var(--muted); margin: 0; }
.section-foot { margin-top: 26px; }

/* 固定列栅格：列数可预测，避免 auto-fit 把 6 张卡排成 4+2 */
.grid { display: grid; gap: 18px; }
.g1 { grid-template-columns: 1fr; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); }
.card-accent { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card-river { border-color: color-mix(in srgb, var(--river) 40%, var(--line)); }
.card-flat { box-shadow: none; }
.card-tag { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hot); margin-bottom: 8px; }
.kicker.river { color: var(--river); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2);
  white-space: nowrap;
}
.badge-accent { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-hot); }
.badge-river  { border-color: color-mix(in srgb, var(--river) 50%, transparent); background: color-mix(in srgb, var(--river) 14%, transparent); color: var(--river); }
.badge-ok     { border-color: color-mix(in srgb, var(--ok) 46%, transparent); background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.badge-warn   { border-color: color-mix(in srgb, var(--warn) 46%, transparent); background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn); }
.badge-danger { border-color: color-mix(in srgb, var(--danger) 46%, transparent); background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.badge-info   { border-color: color-mix(in srgb, var(--info) 46%, transparent); background: color-mix(in srgb, var(--info) 13%, transparent); color: var(--info); }

.todo {
  display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 700;
  background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn);
  border: 1px dashed color-mix(in srgb, var(--warn) 55%, transparent);
}
.blank { color: var(--accent-hot); font-weight: 600; }

.note {
  border: 1px solid var(--line); border-left: 3px solid var(--river);
  background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; margin: 0 0 1.2em; color: var(--text-2); font-size: 14.5px;
}
.note-accent { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); }
.note-warn   { border-left-color: var(--warn);   background: color-mix(in srgb, var(--warn) 8%, var(--surface-2)); }
.note-danger { border-left-color: var(--danger);  background: color-mix(in srgb, var(--danger) 8%, var(--surface-2)); }
.note strong { color: var(--text); }
.note p:last-child { margin-bottom: 0; }

/* ---------- 表格 ---------- */
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
th { background: var(--surface-2); font-weight: 800; color: var(--text); white-space: nowrap; font-size: 13.5px; letter-spacing: .01em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
td code, th code { font-family: var(--mono); font-size: 12.8px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.hl td { background: color-mix(in srgb, var(--accent) 9%, transparent); }

/* ---------- 清单 / 数据 / 定义列表 ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.checklist li::before {
  content: "\2610"; color: var(--accent-hot); font-size: 15px; line-height: 1.6; flex: none;
}
.checklist.checked li::before { content: "\2611"; color: var(--ok); }
.checklist li strong { color: var(--text); }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -.02em; color: var(--accent-hot); }
.stat.river b { color: var(--river); }
.stat span { font-size: 13px; color: var(--muted); }

.kv { margin: 0; display: grid; grid-template-columns: minmax(120px, 176px) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.kv dt { padding: 12px 16px; background: var(--surface-2); font-weight: 700; font-size: 13.8px; color: var(--text-2); border-bottom: 1px solid var(--line-soft); }
.kv dd { padding: 12px 16px; margin: 0; border-bottom: 1px solid var(--line-soft); font-size: 14.6px; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }

/* ---------- 标签页 / 筛选 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button, .tabs .tab {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text-2); font-size: 13.8px; font-weight: 700;
  font-family: inherit; cursor: pointer; white-space: nowrap;
}
.tabs button:hover, .tabs .tab:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.tabs button.on, .tabs .tab.on {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent-hot);
}
[hidden] { display: none !important; }

/* ---------- 时间轴（赛事日历） ---------- */
.tl { list-style: none; padding: 0; margin: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl > li { position: relative; padding: 0 0 26px 36px; }
.tl > li::before {
  content: ""; position: absolute; left: 3px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.tl > li.river::before { border-color: var(--river); }
.tl > li:last-child { padding-bottom: 0; }
.tl .when { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.tl h3 { margin: 2px 0 6px; }
.tl .tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- 楼层 / 场地 ---------- */
.floor { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.floor-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.floor-head .no {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--river) 18%, transparent); color: var(--river);
  border: 1px solid color-mix(in srgb, var(--river) 45%, transparent); font-weight: 900; font-size: 13.5px;
}
.spot { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14.4px; }
.spot:last-child { border-bottom: 0; }
.spot b { flex: none; min-width: 5.5em; }
.spot span { color: var(--muted); }

/* ---------- 品牌墙 ---------- */
.brandwall { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.brand-chip {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
}
.brand-chip b { font-size: 15px; }
.brand-chip span { font-size: 12.6px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  background:
    radial-gradient(700px 240px at 88% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 66%),
    var(--surface);
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 42px);
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li { padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.linklist li:last-child { border-bottom: 0; }
.linklist a { font-weight: 600; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-elev); padding: 46px 0 30px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.foot h5 { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot a { display: block; padding: 3px 0; font-size: 14px; color: var(--text-2); }
.foot a:hover { color: var(--accent-hot); text-decoration: none; }
.foot .foot-about p { font-size: 13.6px; color: var(--muted); margin-bottom: 10px; }
.foot-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--faint); }
.foot-bottom span { display: inline-flex; align-items: center; gap: 6px; }

.switch-band { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; padding: 26px 0; }

/* ---------- 移动端常驻转化条 ---------- */
.dockbar { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: minmax(104px, 148px) minmax(0, 1fr); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 12px 16px 18px;
    background: var(--bg-elev); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: grid; margin-left: auto; }
  .nav-inner { gap: 10px; }
  .brand .txt small { display: none; }
  .nav-side .btn { display: none; }
  table { font-size: 13.6px; }
  th, td { padding: 9px 11px; }
  .foot-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 2px; }
  .kv dd { padding-top: 2px; }
  body { padding-bottom: 62px; }
  .dockbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
    backdrop-filter: blur(12px); padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); gap: 10px;
  }
  .dockbar .btn { flex: 1; }
}

@media (max-width: 620px) {
  .g3, .g4 { grid-template-columns: 1fr; }
  .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floor { grid-template-columns: 1fr; }
}

@media print {
  .nav, .foot, .hero-actions, .theme-toggle, .dockbar, .tabs { display: none !important; }
  body { background: #fff; color: #000; font-size: 11.5pt; padding-bottom: 0; }
  a { color: #000; }
  table { font-size: 10pt; }
  .card, .note, .cta, .brand-chip { break-inside: avoid; }
  section { padding: 12pt 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
