/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== 顶部导航 ===== */
.site-header {
  background: #0b1b2b;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo span {
  font-size: 12px;
  font-weight: 400;
  color: #c9a227;
  margin-left: 6px;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: #cfd8e3;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-bottom-color: #c9a227;
}

/* ===== 大横幅 ===== */
.hero {
  background-color: #0b1b2b;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 120px 24px;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-kicker {
  color: #c9a227;
  letter-spacing: 4px;
  font-size: 14px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

.hero-sub {
  margin-top: 14px;
  color: #e3e9f0;
  font-size: 16px;
}

/* ===== 通用 section ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-dark {
  max-width: none;
  background: #f5f7fa;
  padding: 0;
}

.section-gold {
  max-width: none;
  background: #fbf7ec;
  padding: 0;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 26px;
  font-weight: 700;
  white-space: nowrap;
}

.section-head .line {
  flex: 1;
  height: 1px;
  background: #e2e6ec;
}

/* ===== 比赛列表 ===== */
.match-list {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  overflow: hidden;
}

.match-row {
  display: grid;
  grid-template-columns: 100px 1fr 100px 100px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #eef1f5;
  font-size: 15px;
  transition: background .15s;
}

.match-row:hover {
  background: #fafbfd;
}

.match-row:last-child {
  border-bottom: none;
}

.match-round {
  color: #6b7684;
  font-size: 13px;
}

.match-teams {
  font-weight: 600;
}

.match-score {
  text-align: center;
  font-weight: 700;
  color: #0b1b2b;
  font-variant-numeric: tabular-nums;
}

.match-status {
  text-align: right;
  font-size: 13px;
}

.match-status.done {
  color: #6b7684;
}

.match-status.next {
  color: #c9a227;
  font-weight: 600;
}

/* ===== 选手 ===== */
.player-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.player-card {
  text-align: center;
  padding: 24px 12px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  transition: box-shadow .2s, transform .2s;
  background: #fff;
}

.player-card:hover {
  box-shadow: 0 8px 24px rgba(11, 27, 43, .1);
  transform: translateY(-3px);
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #1c3a5e, #0b1b2b);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.player-card p {
  font-size: 13px;
  color: #6b7684;
}

/* ===== 冠军 ===== */
.champion {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #efe3c4;
}

.champion-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #c9a227, #8a6d14);
  flex-shrink: 0;
}

.champion-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.champion-year {
  color: #c9a227;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.champion-info h2 {
  font-size: 30px;
  margin-bottom: 6px;
}

.champion-info p {
  color: #6b7684;
  font-size: 14px;
}

/* ===== 视频 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  display: block;
  color: inherit;
}

.video-card h3 {
  font-size: 16px;
  margin-top: 12px;
}

.video-card p {
  font-size: 13px;
  color: #6b7684;
}

.video-thumb {
  height: 160px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1c3a5e, #0b1b2b);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s, transform .2s;
}

.video-card:hover .video-thumb {
  opacity: .88;
  transform: translateY(-3px);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #0b1b2b;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.play {
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

/* ===== 捐赠 ===== */
.donate-box {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 60px 36px;
  text-align: center;
}

.donate-box p {
  color: #6b7684;
  margin-bottom: 20px;
}

.donate-btn {
  display: inline-block;
  background: #c9a227;
  color: #fff;
  padding: 12px 36px;
  border-radius: 6px;
  font-weight: 600;
  transition: background .2s, transform .15s;
}

.donate-btn:hover {
  background: #a98a1c;
  transform: translateY(-1px);
}

/* ===== 页脚 ===== */
.site-footer {
  background: #0b1b2b;
  color: #8a99ab;
  text-align: center;
  padding: 28px 24px;
  font-size: 13px;
}

/* ===== 锚点跳转留出导航高度 ===== */
#replays,
#matches,
#players,
#past,
#donate {
  scroll-margin-top: 70px;
}

/* ===== 响应式：平板 ===== */
@media (max-width: 860px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  .player-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    padding: 90px 20px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-sub {
    font-size: 15px;
  }
  .section,
  .section-inner {
    padding: 48px 20px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .match-row {
    grid-template-columns: 84px 1fr 70px 80px;
    font-size: 14px;
    padding: 14px 16px;
    gap: 8px;
  }
  .champion {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .champion-info h2 {
    font-size: 26px;
  }
  .donate-box {
    padding: 44px 20px;
  }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 560px) {
  .nav-wrap {
    height: 56px;
    padding: 0 16px;
    gap: 10px;
  }
  .logo {
    font-size: 17px;
  }
  .logo span {
    display: none;
  }
  .main-nav {
    gap: 18px;
  }
  .main-nav a {
    font-size: 14px;
  }

  .hero {
    padding: 70px 16px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-kicker {
    font-size: 12px;
    letter-spacing: 3px;
  }
  .hero-sub {
    font-size: 14px;
  }

  .section,
  .section-inner {
    padding: 40px 16px;
  }
  .section-head {
    margin-bottom: 22px;
    gap: 12px;
  }
  .section-head h2 {
    font-size: 20px;
  }

  .match-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "round  status"
      "teams  score";
    row-gap: 6px;
    padding: 14px 14px;
    font-size: 14px;
  }
  .match-round  { grid-area: round; }
  .match-teams  { grid-area: teams; font-size: 15px; }
  .match-score  { grid-area: score; text-align: right; font-size: 16px; }
  .match-status { grid-area: status; }

  .player-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .player-card {
    padding: 18px 8px;
  }
  .avatar {
    width: 72px;
    height: 72px;
  }

  .video-thumb {
    height: 180px;
  }

  .champion-photo {
    width: 110px;
    height: 110px;
  }
  .champion-info h2 {
    font-size: 22px;
  }

  .donate-box {
    padding: 36px 16px;
  }
  .donate-btn {
    padding: 11px 28px;
    font-size: 15px;
  }
}