:root {
  --blue: #1b4a8f;
  --blue-dark: #123a72;
  --blue-deep: #0d2b55;
  --accent: #f6c400;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
}

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

html, body {
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

/* ===== 顶栏 ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark));
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 24px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; letter-spacing: 1px; }
.brand-text em { font-size: 11px; font-style: normal; opacity: .75; letter-spacing: .5px; }

.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px;
  transition: background .2s; white-space: nowrap;
}
.nav a:hover { background: rgba(255,255,255,.14); }
.nav a.active { background: var(--accent); color: #1a1a1a; font-weight: 600; }

.menu-toggle {
  display: none; margin-left: auto;
  background: rgba(255,255,255,.12); color: #fff;
  border: none; font-size: 24px; width: 44px; height: 44px;
  border-radius: 8px; cursor: pointer;
}

/* ===== 布局 ===== */
.app { max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; min-height: 70vh; }

/* ===== Hero ===== */
/* ===== Hero ===== */
.hero {
  position: relative; border-radius: 20px; overflow: hidden;
  color: #fff; margin-bottom: 32px;
  padding: 48px 44px;
  display: flex; align-items: center; gap: 36px;
  background: linear-gradient(135deg, #0d2b55 0%, #1b4a8f 55%, #2a6ac8 100%);
  min-height: 260px;
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246,196,0,.22), transparent 70%);
  pointer-events: none;
}
.hero > div { position: relative; z-index: 1; }
.hero-season-tag {
  display: inline-block; background: var(--accent); color: #1a1a1a;
  font-weight: 700; font-size: 13px; padding: 4px 14px; border-radius: 20px;
  letter-spacing: 1px; margin-bottom: 14px;
}
.hero-logo {
  width: 140px; height: 140px; border-radius: 50%; object-fit: contain;
  flex-shrink: 0; position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.hero h1 { font-size: 38px; line-height: 1.2; margin-bottom: 10px; letter-spacing: 1px; }
.hero p { font-size: 16px; opacity: .95; max-width: 640px; }
.hero .badge-row { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .badge {
  background: rgba(255,255,255,.16); padding: 6px 14px; border-radius: 20px;
  font-size: 13px; letter-spacing: .5px; backdrop-filter: blur(4px);
}

/* ===== 首页双栏布局 ===== */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.home-side { position: sticky; top: 84px; }

/* ===== 历年冠军侧边卡 ===== */
.side-card {
  background: var(--card); border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); overflow: hidden;
}
.side-card-title {
  background: var(--blue-deep); color: #fff; font-weight: 700;
  padding: 14px 18px; font-size: 16px; letter-spacing: 1px;
}
.honor-list { padding: 8px 0; }
.honor-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
}
.honor-item:last-child { border-bottom: none; }
.honor-year {
  font-weight: 700; color: var(--blue); font-size: 16px;
  font-variant-numeric: tabular-nums; min-width: 44px;
}
.honor-logo {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.honor-logo img { width: 100%; height: 100%; object-fit: contain; }
.honor-team { font-size: 15px; font-weight: 600; }
.honor-item.pending .honor-team { color: var(--muted); font-weight: 400; }

/* ===== 区块标题 ===== */
.section-title {
  font-size: 24px; font-weight: 700; margin: 32px 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::before {
  content: ""; width: 6px; height: 26px; border-radius: 3px;
  background: var(--accent); display: inline-block;
}

/* ===== 卡片栅格 ===== */
.grid { display: grid; gap: 20px; }
.grid.teams {
  grid-template-columns: repeat(3, 1fr);
}
.grid.gallery { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: var(--card); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }

.team-card { text-align: center; padding: 20px 14px; }
.team-card .logo-wrap {
  width: 100%; height: 170px; margin: 0 0 14px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.team-card .logo-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  display: block;
}
.team-card h3 { font-size: 20px; margin-bottom: 2px; }
.team-card .en { font-size: 12px; color: var(--muted); letter-spacing: 1px; margin-bottom: 8px; }
.team-card .slogan { font-size: 13px; color: var(--muted); font-style: italic; }
.team-card .color-bar { height: 5px; margin: 16px -20px -24px; }

/* ===== 表格 ===== */
.table-wrap { background: var(--card); border-radius: 14px; overflow-x: auto; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 13px 16px; text-align: left; font-size: 15px; }
thead th {
  background: var(--blue-deep); color: #fff; font-weight: 600;
  position: sticky; top: 0;
}
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 在册球员卡片网格 */
.season-switch-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 8px;
}
.season-switch {
  display: inline-flex; background: #eef2f7; border-radius: 999px; padding: 4px;
}
.season-switch button {
  border: none; background: transparent; padding: 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: all .2s;
}
.season-switch button.active {
  background: var(--blue-deep); color: #fff;
}
.player-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px; margin-top: 8px;
}
.player-card {
  background: var(--card); border-radius: 16px; padding: 24px 20px 20px;
  text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.05);
  border: 1px solid var(--line); transition: transform .15s, box-shadow .15s;
}
.player-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.player-photo {
  width: 130px; height: 160px; margin: 0 auto 14px; border-radius: 12px;
  background: #eef2f7; border: 1px dashed #cbd5e1;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: #b6c2d0; overflow: hidden; position: relative;
}
.player-photo::before { content: "👤"; opacity: .7; }
.player-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; border-radius: 12px; }
.player-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 10px;
  background: var(--blue-deep); color: #fff; font-size: 24px; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.player-name { font-size: 17px; font-weight: 700; color: #1f2937; }
.player-pos { font-size: 13px; color: var(--muted); margin-top: 4px; }
.player-goals { font-size: 13px; color: var(--muted); margin-top: 10px; }
.player-goals strong { color: var(--blue); font-size: 16px; }
.rank-badge {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%;
  align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  background: #eef2ff; color: var(--blue);
}
.rank-badge.top1 { background: var(--accent); color: #1a1a1a; }
.rank-badge.top2 { background: #cbd5e1; color: #333; }
.rank-badge.top3 { background: #f1c27d; color: #6b4a1d; }

.team-cell { display: flex; align-items: center; gap: 10px; }
.team-cell img { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; background: #fff; }
.team-cell .num { color: var(--muted); font-size: 13px; }

/* ===== 新闻 ===== */
.news-card { padding: 24px; }
.news-card h3 { font-size: 20px; margin-bottom: 8px; }
.news-card .meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.news-card .scoreline {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  background: #f8fafc; border-radius: 10px; padding: 16px; margin: 12px 0;
}
.news-card .scoreline .team { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.news-card .scoreline img { width: 52px; height: 52px; border-radius: 50%; object-fit: contain; }
.news-card .scoreline .score { font-size: 30px; font-weight: 800; color: var(--blue); }
.news-card p { margin-bottom: 12px; }

/* ===== 详情页 ===== */
.back-link { display: inline-block; margin-bottom: 20px; color: var(--blue); font-weight: 600; }
.back-link:hover { text-decoration: underline; }

.team-header {
  display: flex; align-items: center; gap: 28px;
  background: var(--card); border-radius: 18px; padding: 32px; margin-bottom: 24px;
}
.team-header .logo-big {
  width: 120px; height: 120px; object-fit: contain;
  flex-shrink: 0;
}
.team-header h1 { font-size: 30px; margin-bottom: 4px; }
.team-header .en { color: var(--muted); font-size: 13px; letter-spacing: 1px; margin-bottom: 6px; }
.team-header .slogan { color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.team-header p { color: var(--muted); max-width: 640px; }

/* ===== 冠军专栏 ===== */
.champion-list { display: flex; flex-direction: column; gap: 20px; }
.champion-card {
  display: flex; gap: 28px; background: var(--card); border-radius: 18px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid var(--line);
}
.champion-photo { width: 320px; height: 260px; object-fit: cover; flex-shrink: 0; }
.champion-body { padding: 24px 28px; flex: 1; }
.champion-tag {
  display: inline-block; background: #fff4cc; color: #8a6d00;
  font-weight: 700; font-size: 13px; padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
}
.champion-body h3 { font-size: 26px; margin-bottom: 6px; }
.champion-result { display: flex; align-items: center; gap: 16px; margin: 10px 0 14px; }
.champion-team { font-weight: 700; font-size: 18px; }
.champion-team.muted { color: var(--muted); font-weight: 600; }
.champion-score {
  font-size: 30px; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums;
}
.champion-body p { color: var(--muted); margin-bottom: 12px; }
.champion-meta { font-size: 13px; color: var(--muted); }

/* ===== 图集折叠 ===== */
.gallery-section {
  background: var(--card); border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); margin-bottom: 20px;
  overflow: hidden;
}
.gallery-toggle {
  cursor: pointer; list-style: none;
  padding: 18px 22px; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  user-select: none;
}
.gallery-toggle::-webkit-details-marker { display: none; }
.gallery-toggle::after {
  content: ""; margin-left: auto; width: 10px; height: 10px;
  border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue);
  transform: rotate(45deg); transition: transform .25s;
}
.gallery-section[open] .gallery-toggle::after { transform: rotate(-135deg); }
.gallery-count {
  font-size: 13px; font-weight: 400; color: var(--muted);
  background: var(--bg); padding: 2px 10px; border-radius: 20px;
}
.gallery-section > .grid { padding: 0 22px 22px; }

/* ===== 图集 ===== */
.gallery-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.gallery-card.gallery-material img {
  object-fit: contain; background: #fff; padding: 14px;
}
.gallery-card .cap { padding: 12px 16px; font-size: 14px; color: var(--muted); }

/* ===== 视频 ===== */
.video-list { display: grid; gap: 16px; }
.video-item {
  background: var(--card); border-radius: 14px; padding: 20px;
  display: flex; align-items: center; gap: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.video-item .play {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

/* ===== 页脚 ===== */
.footer { background: var(--blue-deep); color: rgba(255,255,255,.7); text-align: center; padding: 32px 20px; }
.footer-inner p { font-size: 14px; }
.footer-sub { margin-top: 4px; font-size: 12px !important; opacity: .6; letter-spacing: 1px; }

/* ===== 响应式 ===== */
@media (max-width: 820px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--blue-deep); padding: 12px; }
  .menu-toggle { display: block; }
  .hero { flex-direction: column; text-align: center; padding: 32px 20px; min-height: auto; }
  .hero-logo { width: 90px; height: 90px; }
  .team-header { flex-direction: column; text-align: center; }
  .champion-card { flex-direction: column; }
  .champion-photo { width: 100%; height: 220px; }
  .grid.teams { grid-template-columns: repeat(2, 1fr); }
  .home-layout { grid-template-columns: 1fr; }
  .home-side { position: static; }
}
@media (max-width: 480px) {
  .grid.teams { grid-template-columns: repeat(1, 1fr); }
}
