:root {
  color-scheme: dark;
  --bg: #080b0d;
  --panel: #111719;
  --panel-2: #172023;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5efe4;
  --muted: #b9b1a5;
  --gold: #e7b85b;
  --red: #c43f2d;
  --green: #4f9870;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(196, 63, 45, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 42%, rgba(79, 152, 112, 0.16), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(8, 11, 13, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(231, 184, 91, 0.65);
  background: linear-gradient(135deg, var(--red), #5c1e19 58%, var(--gold));
  border-radius: 8px;
  color: #fff8ea;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(196, 63, 45, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  margin-top: -3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: #e6ddd0;
  font-size: 14px;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 6px auto;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  padding: 142px clamp(18px, 5vw, 64px) 70px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.08);
  opacity: 0.48;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.98) 0%, rgba(8, 11, 13, 0.86) 38%, rgba(8, 11, 13, 0.38) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 34%);
}

.hero-content {
  align-self: end;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 10vw, 118px);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.62);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-lead {
  width: min(640px, 100%);
  margin-bottom: 28px;
  color: #eadfce;
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--red), #8e2e23);
  color: #fff9ed;
  box-shadow: 0 18px 42px rgba(196, 63, 45, 0.24);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(680px, 100%);
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(17, 23, 25, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-stats div {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  margin-bottom: 2px;
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  grid-column: 1 / 2;
}

.intro-grid,
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.intro-grid article,
.rule-card,
.contact-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border-radius: 8px;
}

.intro-grid article {
  min-height: 220px;
  padding: 26px;
}

.intro-grid p,
.rule-card p,
.honor-copy p,
.join-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.schedule-section {
  width: 100%;
  max-width: none;
  padding: 88px clamp(18px, 5vw, 64px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--panel);
}

.schedule-section .section-heading,
.match-list {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.match-list {
  display: grid;
  gap: 12px;
}

.match-row {
  display: grid;
  grid-template-columns: 180px 1fr 96px;
  gap: 18px;
  align-items: center;
  min-height: 82px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 13, 0.52);
  border-radius: 8px;
}

.match-row time {
  color: var(--gold);
  font-weight: 800;
}

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  text-align: center;
  font-size: 20px;
  font-weight: 850;
}

.teams strong {
  color: var(--red);
  font-size: 14px;
}

.match-tag {
  justify-self: end;
  padding: 5px 10px;
  border: 1px solid rgba(231, 184, 91, 0.35);
  border-radius: 6px;
  color: #ffe0a0;
  font-size: 13px;
}

.rules-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rule-card {
  min-height: 270px;
  padding: 24px;
}

.rule-card span {
  display: inline-block;
  margin-bottom: 38px;
  color: rgba(231, 184, 91, 0.72);
  font-size: 15px;
  font-weight: 900;
}

.honor-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: center;
}

.honor-board {
  border: 1px solid rgba(231, 184, 91, 0.26);
  background:
    linear-gradient(135deg, rgba(196, 63, 45, 0.14), transparent 52%),
    var(--panel-2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.honor-board div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.honor-board div:last-child {
  border-bottom: 0;
}

.honor-board span {
  color: var(--muted);
}

.honor-board strong {
  text-align: right;
}

.join-section {
  width: 100%;
  max-width: none;
  padding: 88px clamp(18px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(196, 63, 45, 0.18), rgba(79, 152, 112, 0.12)),
    #0d1113;
}

.join-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: center;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.contact-box {
  display: grid;
  gap: 12px;
  padding: 26px;
}

.contact-box span {
  color: var(--muted);
}

.contact-box strong {
  color: var(--text);
  word-break: break-word;
}

.contact-box .button {
  width: 100%;
}

.copy-feedback {
  min-height: 20px;
  color: var(--gold);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 18px;
    background: rgba(8, 11, 13, 0.96);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: 88vh;
  }

  .section-heading,
  .intro-grid,
  .rules-grid,
  .honor-section,
  .join-panel {
    grid-template-columns: 1fr;
  }

  .match-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .match-tag {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 16px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 112px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 64px 0;
  }

  .schedule-section,
  .join-section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .teams {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .teams strong {
    justify-self: start;
  }

  .honor-board div,
  .site-footer {
    flex-direction: column;
  }

  .honor-board strong {
    text-align: left;
  }
}
