﻿:root {
  --bg: #070707;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --line: rgba(245, 245, 244, 0.14);
  --red: #ef233c;
  --orange: #ff7a00;
  --yellow: #ffd166;
  --panel: rgba(23, 23, 23, 0.78);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  background:
    radial-gradient(circle at 78% 12%, rgba(239, 35, 60, 0.28), transparent 30rem),
    radial-gradient(circle at 18% 42%, rgba(255, 122, 0, 0.18), transparent 28rem),
    linear-gradient(135deg, #030303 0%, #121212 55%, #050505 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: skewY(-4deg) scale(1.1);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.14), rgba(255,255,255,0.14) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: overlay;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 7, 0.78);
  backdrop-filter: blur(18px);
}

.brand, .nav, .hero-actions, .ticker, .footer { display: flex; align-items: center; }
.brand, .nav a, .btn { color: var(--text); text-decoration: none; }

.brand {
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.brand-rog {
  font-family: "ROG Fonts", "ROGFont", "Noto Sans SC", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
}
.brand-x {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav { gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.92rem; font-weight: 700; white-space: nowrap; }
.nav a:hover { color: var(--yellow); }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
  margin-top: -70px;
  padding: 110px clamp(18px, 6vw, 86px) 72px;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center 28%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1500ms ease-in-out, transform 6500ms ease-out;
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  transform: scale(1.14);
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(5,5,5,0.32) 0%, rgba(5,5,5,0.62) 55%, rgba(5,5,5,0.82) 100%),
    linear-gradient(0deg, rgba(5,5,5,0.92) 2%, transparent 38%),
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, transparent 22%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  right: clamp(18px, 6vw, 86px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.28em;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--yellow), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

.kicker {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, .score-row strong {
  font-family: "Anton", "Noto Sans SC", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}

h1 {
  max-width: 940px;
  margin-bottom: 24px;
  font-size: clamp(4.2rem, 10vw, 10.8rem);
  line-height: 0.84;
  letter-spacing: -0.05em;
}

.rog-title {
  max-width: 1120px;
  font-family: "ROG Fonts", "ROGFont", "Noto Sans SC", sans-serif;
  font-size: clamp(3.6rem, 7.6vw, 8.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #ffffff;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.7),
    0 8px 40px rgba(0, 0, 0, 0.55);
  transform: scaleX(1.02);
  transform-origin: center;
}

/* 首屏居中 */
.hero-inner.centered { margin: 0 auto; text-align: center; }
.hero-inner.centered .hero-actions { justify-content: center; }
.hero-inner.centered .lead { margin-inline: auto; }

/* 标题循环淡入淡出 */
.fade-loop { animation: fadeLoop 3.6s ease-in-out infinite; }
@keyframes fadeLoop {
  0% { opacity: 1; }
  45% { opacity: 0; }
  55% { opacity: 0; }
  100% { opacity: 1; }
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

h3 { margin-bottom: 14px; font-size: 1.5rem; }
.lead, .mission p, .system-card p, .join p { color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.lead { max-width: 700px; margin-bottom: 34px; }
.hero .lead { color: #e7e5e4; text-shadow: 0 2px 12px rgba(0,0,0,0.7); }

.hero-actions { gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-weight: 900;
  letter-spacing: 0.04em;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.btn-primary { color: #050505; border-color: transparent; background: linear-gradient(135deg, var(--yellow), var(--orange)); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); }

.scoreboard {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(239, 35, 60, 0.18), rgba(23, 23, 23, 0.88));
  box-shadow: 0 30px 100px rgba(239, 35, 60, 0.22);
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}
.scoreboard-head, .score-row, .score-grid { padding: 24px; }
.scoreboard-head, .score-row { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.scoreboard-head strong { color: var(--red); }
.score-row.huge { display: block; }
.score-row span, .score-grid span { color: var(--muted); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.16em; }
.score-row strong { display: block; font-size: 12rem; line-height: 0.86; color: var(--yellow); }
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.08); }
.score-grid div { padding: 18px; background: rgba(7, 7, 7, 0.58); }
.score-grid strong { display: block; margin-top: 8px; font-size: 2rem; }

.ticker {
  justify-content: space-around;
  gap: 28px;
  overflow: hidden;
  padding: 18px;
  color: #050505;
  background: var(--yellow);
  font-family: "Anton", sans-serif;
  font-size: clamp(1.3rem, 3vw, 2.8rem);
  letter-spacing: 0.04em;
}

.section-wrap { padding: 110px clamp(18px, 6vw, 86px); }
.section-title { max-width: 860px; margin-bottom: 38px; }

/* MISSION 区块：图片背景 + 居中 */
.mission {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78vh;
  padding: 120px clamp(18px, 6vw, 86px);
  overflow: hidden;
}
.mission-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.mission-slide {
  position: absolute;
  inset: 0;
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1500ms ease-in-out, transform 7500ms ease-out;
  will-change: opacity, transform;
}
.mission-slide.is-active {
  opacity: 1;
  z-index: 1;
  transform: scale(1.14);
}
.mission-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(110% 90% at 50% 50%, rgba(5,5,5,0.42) 0%, rgba(5,5,5,0.7) 60%, rgba(5,5,5,0.9) 100%),
    linear-gradient(0deg, rgba(5,5,5,0.85) 0%, transparent 30%),
    linear-gradient(180deg, rgba(5,5,5,0.7) 0%, transparent 26%);
}
.mission-inner {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  text-align: center;
}
.mission-inner h2 {
  margin-bottom: 30px;
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,0.75);
}
.mission-inner p {
  max-width: 640px;
  margin: 0 auto;
  color: #e7e5e4;
  font-size: 1.02rem;
  line-height: 2;
  letter-spacing: 0.03em;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0,0,0,0.75);
}

.system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.system-card {
  min-height: 330px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.system-card span { color: var(--red); font-family: "Anton", sans-serif; font-size: 3.4rem; }
.system-card.featured { background: linear-gradient(160deg, rgba(239, 35, 60, 0.32), rgba(23, 23, 23, 0.9)); }

/* 队伍列表 */
#teams.has-bg { position: relative; overflow: hidden; }
#teams.has-bg .section-title,
#teams.has-bg .team-grid { position: relative; z-index: 2; }
.teams-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/teams-bg.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.teams-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.86) 0%, rgba(5,5,5,0.7) 40%, rgba(5,5,5,0.86) 100%),
    radial-gradient(120% 80% at 50% 40%, rgba(5,5,5,0.45), rgba(5,5,5,0.8));
}
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(4px);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.team-card .team-season {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.team-card h3 {
  margin: 16px 0 6px;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
}
.team-card .team-en {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.team-card .team-nums {
  list-style: none;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-card .team-nums li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.team-card .t-idx {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.team-card .t-num {
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.team-card .team-nums li.pending .t-num { color: var(--muted); }
.team-card .team-arrow {
  margin-top: auto;
  align-self: flex-end;
  font-size: 1.6rem;
  color: var(--muted);
  transition: transform 260ms ease, color 260ms ease;
}
.team-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 209, 102, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.team-card:hover::after { opacity: 1; }
.team-card:hover { border-color: rgba(255, 209, 102, 0.5); box-shadow: 0 24px 70px rgba(239, 35, 60, 0.22); }
.team-card:hover .team-arrow { transform: translateX(6px); color: var(--yellow); }
.team-card.featured { background: linear-gradient(160deg, rgba(239, 35, 60, 0.32), rgba(23, 23, 23, 0.9)); }

/* 视频栏目 */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 18px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.82);
  color: var(--text);
  text-decoration: none;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}
.video-card:hover, .video-card:focus-visible {
  border-color: rgba(255, 209, 102, 0.5);
  box-shadow: 0 24px 70px rgba(239, 35, 60, 0.22);
  transform: translateY(-4px);
  outline: none;
}
.video-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.video-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease, filter 300ms ease; }
.video-card:hover .video-cover img { transform: scale(1.06); filter: brightness(0.7); }
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms ease;
}
.video-play::after {
  position: absolute;
  top: 50%;
  left: 54%;
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--yellow);
  transform: translate(-50%, -50%);
}
.video-card:hover .video-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}
.video-title {
  display: -webkit-box;
  overflow: hidden;
  padding: 0 4px;
  font-weight: 800;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.video-card:hover .video-title { color: var(--yellow); }
.video-up { padding: 0 4px; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
@media (max-width: 960px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .video-grid { grid-template-columns: 1fr; } }

/* 队伍详情占位页 */
.subpage { padding: 130px clamp(18px, 6vw, 86px) 90px; max-width: 980px; margin: 0 auto; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.back-link:hover { color: var(--yellow); }
.subpage h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: none;
}
.subpage .sub-meta { margin: 10px 0 40px; color: var(--muted); font-size: 1.05rem; }
.roster { display: flex; flex-direction: column; gap: 12px; }
.roster-item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  transition: border-color 260ms ease, transform 260ms ease;
}
.roster-item:hover { border-color: rgba(255, 209, 102, 0.5); transform: translateX(6px); }
.roster-item .idx { color: var(--muted); font-size: 0.8rem; font-weight: 900; letter-spacing: 0.14em; min-width: 64px; }
.roster-item .num { font-family: "Anton", sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: 0.02em; }
.roster-item.pending .num { color: var(--muted); }
.roster-item .tag { margin-left: auto; padding: 6px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 900; letter-spacing: 0.1em; background: rgba(255, 209, 102, 0.16); color: var(--yellow); }
@media (max-width: 620px) {
  .roster-item { clip-path: none; gap: 14px; padding: 18px; }
}

/* 队伍及赛事查询页 */
.nav a.is-active { color: var(--yellow); }
.query-bar { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 14px; }
.query-input {
  flex: 1 1 280px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.82);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.query-input:focus { outline: none; border-color: var(--yellow); }
.query-select {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.82);
  color: var(--text);
  font-weight: 700;
}
.query-bar .btn { min-width: 120px; }
.query-hint { color: var(--muted); font-size: 0.86rem; margin-bottom: 18px; }
.query-status { min-height: 24px; margin-bottom: 18px; font-weight: 700; }
.query-status.ok { color: var(--yellow); }
.query-status.warn { color: #ffb454; }
.query-status.error { color: var(--red); }

.season-note {
  grid-column: 1 / -1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-left: 3px solid var(--yellow);
  background: rgba(255, 209, 102, 0.08);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}
.season-note strong { color: var(--yellow); }

.query-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }
.result-card {
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.82);
  padding: 24px;
}
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-num { font-family: "Anton", sans-serif; font-size: 2rem; letter-spacing: 0.03em; }
.result-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.re-badge { padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.06em; background: rgba(255,255,255,0.08); color: var(--muted); }
.re-badge.on { background: rgba(255, 209, 102, 0.16); color: var(--yellow); }
.re-badge.blue { background: rgba(108, 99, 255, 0.22); color: #b7b0ff; }
.re-badge.live { background: rgba(239, 35, 60, 0.22); color: #ff8095; }
.result-name { margin: 14px 0 16px; font-size: 1.3rem; }
.result-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0 0 18px; }
.result-meta div { display: flex; flex-direction: column; gap: 3px; }
.result-meta dt { color: var(--muted); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; }
.result-meta dd { margin: 0; font-size: 0.95rem; font-weight: 700; }
.detail-btn { width: 100%; min-height: 44px; }

.result-detail { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 18px; }
.detail-block { display: flex; flex-direction: column; gap: 10px; }
.detail-title { color: var(--yellow); font-size: 0.8rem; font-weight: 900; letter-spacing: 0.1em; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; }
.stat-cell { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); text-align: center; }
.stat-val { font-family: "Anton", sans-serif; font-size: 1.3rem; }
.stat-val small { font-size: 0.7rem; color: var(--muted); }
.stat-lab { color: var(--muted); font-size: 0.72rem; font-weight: 700; }

.live-event { padding: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); display: flex; flex-direction: column; gap: 10px; }
.live-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; }
.live-head small { color: var(--muted); font-weight: 500; }

.panel-loading, .panel-empty { color: var(--muted); font-size: 0.92rem; padding: 6px 0; }
.event-list, .award-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.event-item { display: flex; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.event-date { flex-shrink: 0; color: var(--yellow); font-family: "Anton", sans-serif; font-size: 0.95rem; letter-spacing: 0.04em; min-width: 96px; }
.event-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.event-name { font-weight: 700; font-size: 0.95rem; }
.event-loc { color: var(--muted); font-size: 0.8rem; }
.award-item { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.award-title { font-weight: 800; }
.award-event { color: var(--muted); font-size: 0.82rem; }

@media (max-width: 620px) {
  .query-results { grid-template-columns: 1fr; }
}

/* 里程碑 */
.milestones { position: relative; overflow: hidden; }
.milestones-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.milestone-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1500ms ease-in-out, transform 7500ms ease-out;
  will-change: opacity, transform;
}
.milestone-slide.is-active { opacity: 1; z-index: 1; transform: scale(1.14); }
.milestones-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.88) 0%, rgba(5,5,5,0.72) 45%, rgba(5,5,5,0.9) 100%),
    radial-gradient(120% 90% at 30% 40%, rgba(5,5,5,0.4), rgba(5,5,5,0.82));
}
.milestones-inner { position: relative; z-index: 2; }

.milestone-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.milestone-item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.74);
  backdrop-filter: blur(4px);
  clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%);
  transition: border-color 260ms ease, transform 260ms ease;
}
.milestone-item:hover { border-color: rgba(255, 209, 102, 0.5); transform: translateX(8px); }
.milestone-item .m-date {
  flex-shrink: 0;
  color: var(--yellow);
  font-family: "Anton", sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: 0.04em;
}
.milestone-item .m-line { width: 2px; align-self: stretch; background: linear-gradient(var(--yellow), transparent); }
.milestone-item .m-text { font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: 0.04em; }

.join {
  margin: 110px clamp(18px, 6vw, 86px);
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(255, 209, 102, 0.36);
  background: radial-gradient(circle at 75% 20%, rgba(255, 209, 102, 0.2), transparent 24rem), rgba(23, 23, 23, 0.82);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}
.join p { max-width: 760px; margin-bottom: 28px; }

.footer {
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 6vw, 86px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 800ms cubic-bezier(.16,1,.3,1), transform 800ms cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* 动态光晕背景 */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob-1 { top: -12%; left: -6%; background: radial-gradient(circle, var(--red), transparent 70%); animation: drift1 18s ease-in-out infinite; }
.blob-2 { top: 8%; right: -10%; background: radial-gradient(circle, var(--orange), transparent 70%); animation: drift2 22s ease-in-out infinite; }
.blob-3 { bottom: -18%; left: 28%; background: radial-gradient(circle, #6c2bd9, transparent 70%); animation: drift3 26s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(-7vw, 8vh) scale(0.9); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw, -7vh) scale(1.2); } }

/* 鼠标聚光 */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.16), transparent 65%);
  transform: translate3d(var(--mx, 50vw), var(--my, 30vh), 0);
  transition: opacity 400ms ease;
  opacity: 0;
}
body.has-pointer .spotlight { opacity: 1; }
main, .footer { position: relative; z-index: 1; }
.topbar { z-index: 30; }

/* 标题流光 */
.shimmer-text {
  background: linear-gradient(100deg, #f5f5f4 0%, #f5f5f4 38%, var(--yellow) 50%, #f5f5f4 62%, #f5f5f4 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

/* 跑马灯 */
.ticker { display: block; }
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 22s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track .dot { opacity: 0.45; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 3D 倾斜卡片 */
[data-tilt] {
  transition: transform 200ms ease, box-shadow 300ms ease, border-color 300ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.system-card { position: relative; overflow: hidden; }
.system-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 209, 102, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.system-card:hover::after { opacity: 1; }
.system-card:hover { border-color: rgba(255, 209, 102, 0.5); box-shadow: 0 24px 70px rgba(239, 35, 60, 0.22); }
.scoreboard:hover { box-shadow: 0 36px 120px rgba(239, 35, 60, 0.34); }

/* 磁吸按钮 */
.magnetic { transition: transform 200ms cubic-bezier(.16,1,.3,1), box-shadow 300ms ease; will-change: transform; }
.btn-primary.magnetic:hover { box-shadow: 0 16px 44px rgba(255, 122, 0, 0.45); }
.btn { position: relative; overflow: hidden; }
.btn::before {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
}
.btn:hover::before { animation: sweep 700ms ease; }
@keyframes sweep { to { transform: translateX(120%) skewX(-20deg); } }

@media (prefers-reduced-motion: reduce) {
  .aurora-blob, .shimmer-text, .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 登录状态 / 会员内容锁标 */
.topbar > .nav { margin-left: auto; }
.auth-box { display: flex; align-items: center; gap: 14px; padding-left: 20px; border-left: 1px solid var(--line); white-space: nowrap; }
.auth-btn {
  padding: 7px 18px;
  border: 1px solid rgba(255, 209, 102, 0.5);
  color: var(--yellow);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}
.auth-btn:hover { background: var(--yellow); color: #050505; }
.auth-user { display: flex; flex-direction: column; color: var(--text); font-size: 0.86rem; font-weight: 800; line-height: 1.2; }
.auth-user small { color: var(--yellow); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; }
.auth-link { padding: 0; border: none; background: none; color: var(--muted); font: inherit; font-size: 0.86rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.auth-link:hover { color: var(--yellow); }
a.is-locked::after {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  margin-left: 5px;
  vertical-align: -0.05em;
  content: "";
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 1 1 8 0v2h1v8H3V7h1Zm2 0h4V5a2 2 0 1 0-4 0v2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 1 1 8 0v2h1v8H3V7h1Zm2 0h4V5a2 2 0 1 0-4 0v2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.8;
}

@media (max-width: 960px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar > .nav { margin-left: 0; }
  .auth-box { padding-left: 0; border-left: none; }
  .nav { flex-wrap: wrap; gap: 16px; }
  .mission { min-height: 60vh; }
  .system-grid, .team-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
  .score-row strong { font-size: 8rem; }
}

@media (max-width: 620px) {
  .brand span:last-child { display: none; }
  .hero { padding-top: 48px; }
  .system-grid, .team-grid, .timeline { grid-template-columns: 1fr; }
  .scoreboard, .system-card, .team-card, .join, .btn { clip-path: none; }
  h1 { font-size: clamp(3.4rem, 18vw, 5.5rem); }
}
