:root {
  --grape: #8f32ba;
  --grape-deep: #5c5ad7;
  --glow: #8886ff;
  --glow-soft: #d9d8ff;
  --ink: #17121a;
  --muted: #6f6574;
  --paper: #fbf9ff;
  --cream: #f2f1ff;
  --line: rgba(92, 90, 215, 0.16);
  --shadow: 0 24px 80px rgba(92, 90, 215, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(143, 50, 186, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(136, 134, 255, 0.08) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 248, 252, 0.91);
  border-color: var(--line);
  box-shadow: 0 10px 40px rgba(40, 25, 48, 0.08);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: block;
  width: 180px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  color: rgba(23, 18, 26, 0.76);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a,
.text-link {
  position: relative;
}

.site-nav a::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.header-cta,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.header-cta,
.primary-button {
  color: #fff;
  background: var(--grape);
  box-shadow: 0 12px 28px rgba(143, 50, 186, 0.24);
}

.ghost-button {
  color: var(--grape-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 120px clamp(20px, 5vw, 76px) 56px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.88), rgba(242, 241, 255, 0.74)),
    radial-gradient(circle at 88% 28%, rgba(136, 134, 255, 0.24), transparent 26%);
}

.hero::after {
  position: absolute;
  right: -10vw;
  bottom: -16vw;
  width: 54vw;
  max-width: 720px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(143, 50, 186, 0.12);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 38px, rgba(136, 134, 255, 0.1) 39px 40px);
}

.hero-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-track span {
  position: absolute;
  width: 46vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(136, 134, 255, 0.42), transparent);
  transform: rotate(-18deg);
}

.hero-track span:nth-child(1) {
  top: 28%;
  left: -10%;
}

.hero-track span:nth-child(2) {
  top: 49%;
  right: 0;
}

.hero-track span:nth-child(3) {
  right: 18%;
  bottom: 20%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: center;
  max-width: 1240px;
  min-height: calc(92vh - 176px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--grape-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--grape-deep);
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  color: var(--grape-deep);
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.22;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button {
  min-width: 138px;
  min-height: 52px;
}

.primary-button:hover,
.header-cta:hover {
  background: #7d28a8;
  transform: translateY(-1px);
}

.ghost-button:hover {
  border-color: rgba(136, 134, 255, 0.58);
  transform: translateY(-1px);
}

.hero-brand {
  position: relative;
  padding: clamp(16px, 4vw, 34px);
  border: 1px solid rgba(92, 90, 215, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-brand::before {
  position: absolute;
  top: -18px;
  right: 34px;
  width: 120px;
  height: 120px;
  content: "";
  background:
    radial-gradient(circle at 36% 66%, var(--grape) 0 17px, transparent 18px),
    radial-gradient(circle at 62% 66%, var(--grape) 0 17px, transparent 18px),
    radial-gradient(circle at 49% 88%, var(--grape) 0 17px, transparent 18px),
    linear-gradient(135deg, transparent 42%, var(--glow) 43% 58%, transparent 59%);
  opacity: 0.22;
  transform: rotate(-10deg);
}

.hero-brand img {
  position: relative;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.proof-section {
  padding: 0 clamp(20px, 5vw, 76px) 76px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: -24px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.proof-item {
  min-height: 150px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.86);
}

.proof-item strong {
  display: block;
  color: var(--grape);
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

.proof-item span {
  display: block;
  max-width: 190px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 750;
}

.section {
  padding: 86px clamp(20px, 5vw, 76px);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.narrow {
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-card,
.support-panel {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.support-panel:hover,
.tool-item:hover {
  border-color: rgba(136, 134, 255, 0.46);
  box-shadow: 0 18px 54px rgba(55, 29, 66, 0.12);
  transform: translateY(-4px);
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 42px;
  color: var(--grape);
  border: 1px solid rgba(92, 90, 215, 0.26);
  border-radius: 50%;
  font-weight: 900;
}

.feature-card p,
.tool-item p,
.support-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.tournament-section {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 18, 26, 0.98), rgba(92, 90, 215, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255, 255, 255, 0.08) 81px 82px);
}

.tournament-section h2,
.tournament-section h3 {
  color: #fff;
}

.tournament-section .section-heading p:not(.eyebrow),
.tournament-section .tool-item p {
  color: rgba(255, 255, 255, 0.74);
}

.tournament-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}

.scoreboard {
  position: relative;
  min-height: 520px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(255, 255, 255, 0.06) 43px 44px);
}

.scoreboard::after {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  content: "";
  border: 34px solid rgba(136, 134, 255, 0.34);
  border-radius: 50%;
}

.scoreboard-top,
.match-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.scoreboard-top {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
}

.scoreboard-top strong {
  color: var(--glow-soft);
  font-size: 13px;
}

.match-row {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto minmax(112px, 1fr);
  margin-bottom: 14px;
}

.match-row.active {
  background: rgba(143, 50, 186, 0.5);
}

.match-row > span:first-child,
.match-meta {
  min-width: 0;
}

.match-meta {
  text-align: right;
}

.match-score {
  display: grid;
  grid-template-columns: 2ch 0.8ch 2ch;
  align-items: baseline;
  min-width: 4.8ch;
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.match-score span:first-child {
  text-align: right;
}

.match-score span:last-child {
  text-align: left;
}

.score-separator {
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.bracket {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 50px;
}

.bracket i {
  display: block;
  height: 74px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tool-item {
  min-height: 210px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-item-wide {
  grid-column: 1 / -1;
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(143, 50, 186, 0.28), rgba(136, 134, 255, 0.14)),
    rgba(255, 255, 255, 0.08);
}

.host-section {
  background: linear-gradient(180deg, rgba(244, 247, 237, 0.86), rgba(251, 248, 252, 0.8));
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.support-panel {
  min-height: 210px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(26px, 6vw, 80px);
  align-items: center;
  padding: 90px clamp(20px, 5vw, 76px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(92, 90, 215, 0.96), rgba(23, 18, 26, 0.98)),
    repeating-linear-gradient(-18deg, transparent 0 70px, rgba(255, 255, 255, 0.08) 71px 72px);
}

.contact-copy {
  max-width: 780px;
}

.contact-copy h2 {
  color: #fff;
}

.contact-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: #fff;
  font-weight: 900;
}

.qr-grid {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 520px);
}

.qr-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.qr-panel img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
}

.qr-panel p {
  margin: 14px 0 0;
  color: var(--grape-deep);
  font-weight: 900;
  text-align: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 22px;
  color: rgba(23, 18, 26, 0.68);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--grape);
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  display: none;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: var(--grape);
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(143, 50, 186, 0.34);
  font-size: 14px;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease var(--delay, 0ms), transform 560ms ease var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 150px 1fr;
  }

  .brand-mark {
    width: 150px;
  }

  .site-nav {
    justify-content: flex-end;
    gap: 18px;
    font-size: 14px;
  }

  .header-cta {
    display: none;
  }

  .hero-inner,
  .tournament-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-brand {
    max-width: 760px;
  }

  .proof-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .qr-grid {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: sticky;
    grid-template-columns: 1fr auto;
    min-height: 66px;
    padding: 10px 16px;
    background: rgba(251, 248, 252, 0.94);
    border-bottom: 1px solid var(--line);
  }

  .site-nav {
    display: none;
  }

  .brand-mark {
    width: 138px;
  }

  .header-cta {
    display: inline-flex;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 54px 18px 44px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .proof-section,
  .section,
  .contact-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .proof-grid,
  .feature-grid,
  .tool-list {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    margin-top: 0;
  }

  .feature-card,
  .support-panel,
  .tool-item {
    min-height: auto;
  }

  .scoreboard {
    min-height: 430px;
    padding: 18px;
  }

  .match-row {
    grid-template-columns: minmax(74px, 1fr) auto minmax(74px, 1fr);
    padding: 14px;
  }

  .match-score {
    font-size: 24px;
  }

  .contact-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .qr-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .floating-contact {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
