/* =========================================================
   H2O2 · 过氧化氢 — Mindustry 服务器门户
   极简风格 / 亮暗跟随系统 / Bootstrap 5 + Element Plus
   ========================================================= */

/* ---------- 字体 ---------- */
/* 西文：Darktech LDR；图标/未知字符：fontello 图标字体 */
@font-face {
  font-family: "Darktech";
  src: url("/assets/fonts/tech.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "H2O2 Icons";
  src: url("/assets/fonts/icon.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ---------- 主题变量 ---------- */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --text: #171a20;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, 0.1);
  --line-2: rgba(15, 23, 42, 0.06);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.07);
  --tile: #eef1f5;
  --header-bg: rgba(247, 248, 250, 0.82);
  --header-scrim: linear-gradient(90deg, rgba(247, 248, 250, 0.93) 0%, rgba(247, 248, 250, 0.8) 48%, rgba(247, 248, 250, 0.6) 100%);
  --hero-scrim: linear-gradient(102deg, rgba(247, 248, 250, 0.97) 0%, rgba(247, 248, 250, 0.93) 34%, rgba(247, 248, 250, 0.66) 64%, rgba(247, 248, 250, 0.4) 100%);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 34px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 -28px 70px rgba(16, 24, 40, 0.1);
  --radius: 14px;
  --header-h: 64px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "H2O2 Icons", system-ui, sans-serif;

  --el-color-primary: #2563eb;
  --el-border-radius-base: 9px;
  --el-font-family: var(--font);
  --el-tag-border-radius: 6px;
}

html.dark {
  --bg: #0b0d11;
  --surface: #12151a;
  --surface-2: #171b22;
  --text: #e7ebf0;
  --muted: #98a2b3;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.06);
  --accent: #6ea2ff;
  --accent-soft: rgba(110, 162, 255, 0.1);
  --tile: #1a1f27;
  --header-bg: rgba(11, 13, 17, 0.82);
  --header-scrim: linear-gradient(90deg, rgba(11, 13, 17, 0.95) 0%, rgba(11, 13, 17, 0.85) 48%, rgba(11, 13, 17, 0.68) 100%);
  --hero-scrim: linear-gradient(102deg, rgba(11, 13, 17, 0.97) 0%, rgba(11, 13, 17, 0.93) 34%, rgba(11, 13, 17, 0.68) 64%, rgba(11, 13, 17, 0.44) 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 -30px 80px rgba(0, 0, 0, 0.55);

  --el-color-primary: #5b95ff;
  --el-bg-color: var(--surface);
  --el-bg-color-overlay: var(--surface);
  --el-bg-color-page: var(--bg);
  --el-text-color-primary: var(--text);
  --el-text-color-regular: var(--text);
  --el-border-color: var(--line);
  --el-border-color-light: var(--line);
  --el-fill-color-blank: var(--surface);
  --el-fill-color-light: var(--surface-2);
}

/* ---------- 基础 ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

img[src*="/icons/"] {
  image-rendering: pixelated;
}

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

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app-loading #app {
  visibility: hidden;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1160px;
  padding-inline: 24px;
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.hint.center {
  text-align: center;
}

.w-100 {
  width: 100%;
}

/* Element Plus 微调 */
.el-button {
  font-weight: 600;
}

.el-dialog {
  border-radius: 16px;
}

.el-dialog__header {
  margin-right: 0;
}

.el-progress-bar__outer {
  background-color: var(--surface-2) !important;
}

.el-skeleton__item {
  background: var(--surface-2);
}

/* ---------- 全局过渡 ---------- */
a,
button,
.brand,
.brand-badge,
.main-nav a,
.online-pill,
.menu-btn,
.dot,
.tile,
.tile img,
.panel,
.feature,
.event,
.product,
.tier,
.metric,
.steps li,
.sponsor-list li,
.footer__logo,
.el-tag,
.el-button,
.el-input__wrapper,
.el-select__wrapper,
.el-input-number {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform, filter;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 吸顶导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  overflow: hidden;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: 0;
  background:
    var(--header-scrim),
    url("/assets/official/screen-4.jpg") center 42% / cover no-repeat;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(var(--nav-x, 0px), var(--nav-y, 0px), 0) scale(1.06);
  transition: clip-path 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, clip-path;
}

.site-header.is-stuck::before {
  clip-path: inset(0 0 0 0);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  overflow: visible;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.3s;
}

.brand:hover .brand-badge {
  transform: translateY(-1px) scale(1.06);
}

.brand-badge img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 8px rgba(8, 12, 20, 0.28));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: auto;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.86rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.2s, transform 0.2s;
}

.main-nav a.is-active {
  color: var(--text);
}

.main-nav a.is-active::after {
  opacity: 1;
  transform: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa4b2;
}

.dot.is-on {
  background: #12b981;
  box-shadow: 0 0 0 3px rgba(18, 185, 129, 0.14);
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- 首屏 ---------- */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 56px) 0 64px;
  overflow: hidden;
  background: var(--bg);
}

.hero__photo {
  position: absolute;
  inset: 0;
  background: url("/assets/official/screen-3.jpg") center / cover no-repeat;
  transform: scale(1.05);
  transition: filter 0.3s ease;
}

html.dark .hero__photo {
  filter: brightness(0.72) saturate(1.06);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 44%, var(--bg) 94%),
    var(--hero-scrim),
    radial-gradient(54% 46% at 82% 16%, var(--accent-soft), transparent 72%),
    radial-gradient(40% 40% at 4% 92%, var(--accent-soft), transparent 70%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  opacity: 0.32;
}

.hero__bg::before {
  content: "";
  position: absolute;
  top: -16%;
  right: -8%;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 68%);
  filter: blur(6px);
}

.hero__orbit {
  position: absolute;
  top: 50%;
  right: 4vw;
  z-index: 1;
  width: min(40vw, 440px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.55;
}

.hero__ring {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--line);
  border-radius: 50%;
}

.hero__ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.hero__ring--1 {
  inset: 10%;
  border-color: var(--line-2);
}

.hero__ring--2 {
  inset: 26%;
}

.hero__ring--3 {
  inset: 40%;
  border-color: var(--line-2);
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.12);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__cn {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.42em;
}

.hero__lead {
  max-width: 520px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__addr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.8rem;
}

.hero__addr code,
.server__foot code {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 0.8rem;
}

.hero__content {
  position: relative;
  max-width: 660px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.meta-item b {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, var(--muted));
}

/* ---------- 首屏动效 ---------- */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes glowDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-5%, 7%, 0) scale(1.16);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 56px 56px;
  }
}

@keyframes cueSlide {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.72);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.65;
  }
}

@keyframes onlinePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(18, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(18, 185, 129, 0);
  }
}

/* ---------- 首屏元素动画 ---------- */
.hero__photo {
  animation: heroZoom 26s ease-in-out infinite alternate;
}

.hero__bg::before {
  animation: glowDrift 18s ease-in-out infinite alternate;
}

.hero__bg::after {
  animation: gridDrift 26s linear infinite;
}

.hero__ring--1 {
  animation: orbitSpin 64s linear infinite;
}

.hero__ring--2 {
  animation: orbitSpin 46s linear infinite reverse;
}

.hero__ring--3 {
  animation: orbitSpin 34s linear infinite;
}

.hero__content > * {
  animation: riseIn 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__content > *:nth-child(1) {
  animation-delay: 0.05s;
}

.hero__content > *:nth-child(2) {
  animation-delay: 0.12s;
}

.hero__content > *:nth-child(3) {
  animation-delay: 0.2s;
}

.hero__content > *:nth-child(4) {
  animation-delay: 0.28s;
}

.hero__content > *:nth-child(5) {
  animation-delay: 0.36s;
}

.hero__content > *:nth-child(6) {
  animation-delay: 0.44s;
}

.hero__meta {
  animation: riseIn 0.9s 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.scroll-cue {
  animation: fadeIn 1.2s 1s both;
}

.scroll-cue span {
  animation: cueSlide 2.4s ease-in-out infinite;
}

.eyebrow__dot {
  animation: dotPulse 2.8s ease-in-out infinite;
}

.dot.is-on {
  animation: onlinePulse 2.2s ease-out infinite;
}

/* ---------- 上滑内容层 ---------- */
.sheet {
  position: relative;
  z-index: 2;
  border-radius: 20px 20px 0 0;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  transition: background-color 0.25s ease;
}

.section {
  padding: 72px 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section + .section {
  border-top: 1px solid var(--line-2);
}

.db-alert {
  padding-top: 20px;
}

.section-head {
  max-width: 560px;
  margin-bottom: 30px;
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- 通用面板 ---------- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: var(--tile);
}

.tile--dark {
  background: #101318;
}

.tile img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.tile--dark img {
  width: 26px;
  height: 26px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.74rem;
}

.meta time {
  font-variant-numeric: tabular-nums;
}

/* ---------- 公告 ---------- */
.feature {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s;
}

.feature:hover {
  border-color: var(--line);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.feature:hover .feature__media img {
  transform: scale(1.05);
}

html.dark .feature__media img {
  filter: brightness(0.9);
}

.feature__pin {
  position: absolute;
  top: 12px;
  left: 12px;
}

.feature__body {
  padding: 20px 22px 24px;
}

.feature__body h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.feature__body p {
  color: var(--muted);
  font-size: 0.88rem;
}

.news-list {
  height: 100%;
  padding: 2px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.news-list li {
  padding: 16px 0;
}

.news-list li + li {
  border-top: 1px solid var(--line-2);
}

.news-list h4 {
  margin: 8px 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
}

.news-list p {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- 赛事 ---------- */
.event {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
}

.event:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.event__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.event__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.event:hover .event__media img {
  transform: scale(1.05);
}

html.dark .event__media img {
  filter: brightness(0.9);
}

.event__mode {
  position: absolute;
  top: 12px;
  left: 12px;
}

.event__seats {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(10, 13, 18, 0.7);
  color: #fff;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.event__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 9px;
  padding: 16px 18px 20px;
}

.event__body time {
  color: var(--muted);
  font-size: 0.74rem;
}

.event__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.event__body p {
  flex: 1;
  color: var(--muted);
  font-size: 0.82rem;
}

.event__prize {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.78rem;
}

.event__prize img {
  width: 16px;
  height: 16px;
}

/* ---------- 服务器状态 ---------- */
.server {
  padding: clamp(20px, 3vw, 28px);
}

.server__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
}

.server__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.server__body {
  padding: 22px 0;
}

.server__map {
  margin: 4px 0 14px;
  font-size: 1.35rem;
  font-weight: 700;
}

.server__players {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.server__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 0.78rem;
}

.server__foot .muted {
  margin-left: auto;
  font-size: 0.74rem;
}

.metric {
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.metric b {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.steps li:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.steps span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}

/* ---------- 商城 ---------- */
.product {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
}

.product:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.product__icon {
  margin-bottom: 2px;
}

.product__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.product .el-tag {
  align-self: flex-start;
}

.product h3 {
  font-size: 0.92rem;
  font-weight: 700;
}

.product p {
  flex: 1;
  color: var(--muted);
  font-size: 0.78rem;
}

.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

.price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.price img {
  width: 15px;
  height: 15px;
}

/* ---------- 赞助 ---------- */
/* 贡献等级卡片使用 Darktech 西文，赞助墙保持正文字体 */
.tier {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px;
  font-family: "Darktech", "SimHei", "黑体", "Microsoft YaHei", "H2O2 Icons", sans-serif;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
}

.tier:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tier.is-hot {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.tier.is-hot:hover {
  box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow);
}

.tier__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tier h3 {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tier__level {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.tier__price {
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.tier__price span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.tier__price--text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tier__note {
  margin-top: auto;
  padding: 9px 12px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.tier ul {
  display: grid;
  gap: 6px;
  margin: 6px 0 12px;
}

.tier li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.tier li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.tier .el-button {
  margin-top: auto;
}

.sponsor-wall {
  margin-top: 24px;
  padding: 22px;
}

.sponsor-wall__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sponsor-wall__head h3 {
  font-size: 1rem;
  font-weight: 700;
}

.sponsor-wall__head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.sponsor-wall__head b {
  color: var(--accent);
  font-size: 0.95rem;
}

.sponsor-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 10px;
}

.sponsor-list li:hover {
  background: var(--surface-2);
}

.sponsor-list li + li {
  border-top: 1px solid var(--line-2);
}

.sponsor-list__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.sponsor-list__main b {
  font-size: 0.86rem;
}

.sponsor-list__main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-list .amount {
  color: var(--text);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.sponsor-list .muted {
  font-size: 0.7rem;
}

/* ---------- 置底大图 ---------- */
.closing {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 58vh;
  overflow: hidden;
  background: #05070a;
}

.closing__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.closing__img {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}

html.dark .closing__img {
  filter: brightness(0.84);
}

.closing__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 13, 0.04) 0%, rgba(5, 8, 13, 0.52) 58%, rgba(5, 8, 13, 0.88) 100%),
    linear-gradient(90deg, rgba(5, 8, 13, 0.62), transparent 64%);
}

.closing__inner {
  position: relative;
  z-index: 2;
  padding-top: 88px;
  padding-bottom: 54px;
  color: #fff;
}

.closing .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.closing .eyebrow__dot {
  background: #7dd3fc;
}

.closing h2 {
  max-width: 620px;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.closing__note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
}

.closing__btn {
  margin-top: 22px;
  --el-button-text-color: #fff;
  --el-button-bg-color: transparent;
  --el-button-border-color: rgba(255, 255, 255, 0.42);
  --el-button-hover-text-color: #fff;
  --el-button-hover-bg-color: rgba(255, 255, 255, 0.14);
  --el-button-hover-border-color: #fff;
}

/* ---------- 页脚 ---------- */
.footer {
  padding: 30px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s;
}

.footer__brand:hover .footer__logo {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.footer__logo img {
  width: 112px;
  height: auto;
}

.footer p {
  flex: 1;
  min-width: 240px;
  color: var(--muted);
  font-size: 0.74rem;
}

.theme-note {
  color: var(--muted);
  font-size: 0.72rem;
}

/* ---------- 弹窗 ---------- */
.dialog-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.dialog-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.dialog-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  color: var(--muted);
  font-size: 0.76rem;
}

.form-error {
  color: #e5484d;
  font-size: 0.76rem;
}

/* ---------- 移动端抽屉 ---------- */
.drawer {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
}

.drawer-nav {
  display: grid;
  margin-top: 22px;
}

.drawer-nav a {
  padding: 12px 2px;
  border-bottom: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 0.94rem;
}

.drawer-nav a.is-active {
  color: var(--accent);
  font-weight: 600;
}

.drawer-foot {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

/* ---------- 滚动渐显 ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199.98px) {
  .hero__orbit {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .main-nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    padding-top: calc(var(--header-h) + 44px);
    min-height: auto;
  }

  .hero__meta {
    gap: 28px;
    margin-top: 36px;
  }

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

@media (max-width: 767.98px) {
  body {
    font-size: 14px;
  }

  .container {
    padding-inline: 18px;
  }

  .section {
    padding: 56px 0;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.4rem);
  }

  .hero__lead {
    font-size: 0.92rem;
  }

  .hero__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
  }

  .scroll-cue {
    display: none;
  }

  .closing {
    min-height: 52vh;
  }

  .closing__inner {
    padding-top: 64px;
    padding-bottom: 42px;
  }

  .news-list {
    padding: 0 16px;
  }

  .server__foot .muted {
    margin-left: 0;
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .brand-text small {
    display: none;
  }

  .online-pill {
    display: none;
  }

  .hero__actions .el-button {
    flex: 1;
  }

  .hero__addr {
    align-items: flex-start;
  }

  .feature__body {
    padding: 16px 18px 20px;
  }

  .product {
    padding: 14px;
  }

  .product__foot {
    flex-wrap: wrap;
  }
}

/* ---------- 用户 / 登录 / 用户中心 ---------- */
.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.user-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-soft);
  transform: translateY(-1px);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6ea2ff);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.user-avatar--lg {
  width: 44px;
  height: 44px;
  font-size: 1.05rem;
}

.user-name {
  max-width: 110px;
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-btn {
  font-weight: 600;
}

.dialog-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
}

/* ---------- 批准码 ---------- */
.login-panel {
  display: grid;
  gap: 14px;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.login-tabs button {
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.login-tabs button:hover {
  color: var(--text);
}

.login-tabs button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.approval {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.approval__label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.approval__code {
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 1.75rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  line-height: 1.2;
}

.approval__actions {
  display: flex;
  gap: 8px;
}

.approval__state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.approval__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9e63;
  animation: approvalPulse 1.6s infinite;
}

.approval__state.is-error {
  color: #d9534f;
}

@keyframes approvalPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(47, 158, 99, 0.45);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 6px rgba(47, 158, 99, 0);
  }
}

.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.84rem;
}

.pay-row b {
  font-size: 0.95rem;
  color: var(--accent);
}

.user-center {
  display: grid;
  gap: 14px;
}

.user-center__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.user-center__profile > div {
  display: grid;
}

.user-center__profile b {
  font-size: 0.98rem;
}

.user-center__profile .muted {
  font-size: 0.76rem;
}

.user-center__total {
  margin-left: auto;
  text-align: right;
}

.user-center__total span {
  color: var(--muted);
  font-size: 0.72rem;
}

.user-center__total b {
  color: var(--accent);
  font-size: 1rem;
}

.user-center__title {
  margin: 4px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.mini-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-size: 0.8rem;
}

.mini-list time {
  color: var(--muted);
  font-size: 0.72rem;
}

.user-center__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
}

.drawer-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 12px;
}

.drawer-user > div {
  display: grid;
}

.drawer-user b {
  font-size: 0.88rem;
}

.drawer-user .muted {
  font-size: 0.72rem;
}

/* ---------- 公告详情 / 富文本 ---------- */
.is-clickable {
  cursor: pointer;
}

.feature.is-clickable,
.news-list li.is-clickable {
  transition: transform 0.25s, border-color 0.25s, background-color 0.25s;
}

.feature.is-clickable:hover {
  transform: translateY(-3px);
}

.news-list li.is-clickable:hover h4 {
  color: var(--accent);
}

.link-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.78rem;
}

.rich-body {
  max-height: 58vh;
  overflow: auto;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.75;
}

.rich-body > *:first-child {
  margin-top: 0;
}

.rich-body h1,
.rich-body h2,
.rich-body h3 {
  margin: 1.1em 0 0.5em;
  line-height: 1.35;
}

.rich-body p {
  margin: 0.6em 0;
}

.rich-body img {
  max-width: 100%;
  border-radius: 10px;
}

.rich-body a {
  color: var(--accent);
  text-decoration: underline;
}

.rich-body ul,
.rich-body ol {
  padding-left: 1.4em;
}

.rich-body blockquote {
  margin: 0.8em 0;
  padding: 8px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
}

.news-dialog .dialog-head .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

/* ---------- 赛事状态与报名 ---------- */
.event__status {
  position: absolute;
  top: 44px;
  left: 12px;
}

.event__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.event__state {
  font-size: 0.74rem;
  font-weight: 600;
}

.event__state.is-upcoming {
  color: #d99a16;
}

.event__state.is-live {
  color: #2f9e63;
}

.event__state.is-ended {
  color: var(--muted);
}

@media (max-width: 640px) {
  .user-name {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
