/* ============================================================
   暗夜誓约 · 至暗之夜大秘境赛事
   美学方向：Dark Sanctum — 奢华暗黑奇幻
   光明（太阳井金）vs 虚空（暗紫辉光）
   ============================================================ */

:root {
  /* 虚空底色 */
  --void-black: #0A0612;
  --void-deep: #1A0D2E;
  --void-mid: #2D1B4E;
  /* 虚空紫辉光 */
  --void-purple: #6B3FA0;
  --void-glow: #A064F0;
  /* 太阳井金（克制点睛） */
  --gold: #C9A227;
  --gold-bright: #F0C040;
  --gold-light: #FFE9A0;
  /* 正向 */
  --green: #2ECC71;
  /* 文字 */
  --text: #E8E0F0;
  --text-dim: #9a8fb0;

  --serif-cn: "Noto Serif SC", Georgia, "Songti SC", serif;
  --serif-en: "Cinzel", "Noto Serif SC", Georgia, serif;
  --sans: "Noto Sans SC", system-ui, -apple-system, "PingFang SC", sans-serif;

  --hairline: linear-gradient(90deg, transparent, var(--gold), transparent);
  --glass-bg: rgba(26, 13, 46, 0.45);
  --glass-border: rgba(201, 162, 39, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--void-black);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  /* 深空径向氛围光，固定不随滚动 */
  background-image:
    radial-gradient(ellipse 60% 50% at 15% -5%, rgba(160, 100, 240, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(201, 162, 39, 0.06), transparent 55%);
  background-attachment: fixed;
}

::selection { background: rgba(240, 192, 64, 0.3); color: var(--gold-light); }

/* ---------- 全局胶片噪点叠加 ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 6, 18, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
}
.nav__brand {
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold-light);
  letter-spacing: 3px;
  text-shadow: 0 0 18px rgba(240, 192, 64, 0.35);
}
.nav__brand span { color: var(--text-dim); font-size: 0.85rem; font-weight: 400; }
.nav__menu { display: flex; gap: 2rem; }
.nav__menu a {
  position: relative;
  color: var(--text); text-decoration: none;
  font-size: 0.95rem; letter-spacing: 1px;
  padding: 0.2rem 0;
  transition: color 0.25s var(--ease);
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-bright);
  transition: width 0.3s var(--ease);
}
.nav__menu a:hover { color: var(--gold-bright); }
.nav__menu a:hover::after { width: 100%; }
.nav__toggle {
  display: none; background: none; border: none;
  color: var(--gold-bright); font-size: 1.6rem; cursor: pointer;
  line-height: 1;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
  --hero-img: url('/img/ka-against-void.jpg');
  background:
    radial-gradient(ellipse 70% 60% at 50% 38%, rgba(45, 27, 78, 0.9), transparent 70%),
    linear-gradient(160deg, var(--void-black) 0%, var(--void-deep) 55%, var(--void-mid) 100%);
  background-size: cover; background-position: center;
}
/* 官方大图铺底（缺图时上面渐变兜底） */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-img, none);
  background-size: cover; background-position: center;
  opacity: 0.9;
}
/* 太阳井圣光焦点 — 呼吸脉动 */
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 233, 160, 0.18), rgba(160, 100, 240, 0.05) 28%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 52%, rgba(10, 6, 18, 0.62), transparent 75%),
    linear-gradient(0deg, var(--void-black) 4%, rgba(10, 6, 18, 0.45) 50%, rgba(10,6,18,0.25) 100%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* 虚空漂浮微粒 */
.hero__particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__particles span {
  position: absolute; bottom: -10%;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--void-glow);
  box-shadow: 0 0 8px 2px rgba(160, 100, 240, 0.7);
  opacity: 0;
  animation: drift 14s linear infinite;
}
.hero__particles span:nth-child(1)  { left: 8%;  animation-delay: 0s;   animation-duration: 16s; }
.hero__particles span:nth-child(2)  { left: 18%; animation-delay: 3s;   animation-duration: 13s; width: 2px; height: 2px; }
.hero__particles span:nth-child(3)  { left: 27%; animation-delay: 6s;   animation-duration: 18s; }
.hero__particles span:nth-child(4)  { left: 36%; animation-delay: 1.5s; animation-duration: 15s; background: var(--gold-light); box-shadow: 0 0 8px 2px rgba(255,233,160,0.6); }
.hero__particles span:nth-child(5)  { left: 45%; animation-delay: 8s;   animation-duration: 12s; width: 2px; height: 2px; }
.hero__particles span:nth-child(6)  { left: 54%; animation-delay: 4s;   animation-duration: 17s; }
.hero__particles span:nth-child(7)  { left: 63%; animation-delay: 9s;   animation-duration: 14s; background: var(--gold-light); box-shadow: 0 0 8px 2px rgba(255,233,160,0.5); }
.hero__particles span:nth-child(8)  { left: 72%; animation-delay: 2s;   animation-duration: 16s; width: 2px; height: 2px; }
.hero__particles span:nth-child(9)  { left: 81%; animation-delay: 6.5s; animation-duration: 13s; }
.hero__particles span:nth-child(10) { left: 90%; animation-delay: 10s;  animation-duration: 19s; }
.hero__particles span:nth-child(11) { left: 33%; animation-delay: 11s;  animation-duration: 15s; width: 2px; height: 2px; }
.hero__particles span:nth-child(12) { left: 68%; animation-delay: 5s;   animation-duration: 18s; }
@keyframes drift {
  0%   { opacity: 0; transform: translateY(0) translateX(0); }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-110vh) translateX(30px); }
}

.hero__content { position: relative; z-index: 3; padding: 1.5rem; max-width: 880px; }
.hero__eyebrow {
  font-family: var(--serif-en);
  font-weight: 600;
  color: var(--void-glow);
  letter-spacing: 0.5em;
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  margin-bottom: 1.5rem;
  text-indent: 0.5em;
  opacity: 0; animation: rise 0.9s var(--ease) 0.1s forwards;
}
.hero__title {
  font-family: var(--serif-cn);
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  color: var(--gold-light);
  line-height: 1.1;
  letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
  text-shadow:
    0 0 30px rgba(240, 192, 64, 0.45),
    0 0 60px rgba(160, 100, 240, 0.25),
    0 2px 6px #000;
  opacity: 0; animation: rise 0.9s var(--ease) 0.35s forwards;
}
.hero__slogan {
  font-family: var(--serif-cn);
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  letter-spacing: 0.06em;
  margin-bottom: 2.6rem;
  opacity: 0; animation: rise 0.9s var(--ease) 0.6s forwards;
}
.hero .btn--gold { opacity: 0; animation: rise 0.9s var(--ease) 0.85s forwards; }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 滚动提示 */
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; width: 22px; height: 36px;
  border: 1px solid rgba(201, 162, 39, 0.5); border-radius: 12px;
  opacity: 0; animation: rise 0.9s var(--ease) 1.2s forwards;
}
.hero__scroll span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: var(--gold-bright);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  position: relative;
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer; border: none;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
/* 扫光 */
.btn::before {
  content: ""; position: absolute; top: 0; left: -130%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.6s var(--ease);
}
.btn:hover::before { left: 130%; }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-bright) 45%, var(--gold));
  color: var(--void-black);
  box-shadow: 0 0 24px rgba(240, 192, 64, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 6px 36px rgba(240, 192, 64, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

.btn--void {
  background: linear-gradient(180deg, var(--void-glow), var(--void-purple) 60%, #4a2a72);
  color: var(--gold-light);
  box-shadow: 0 0 24px rgba(160, 100, 240, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn--void:hover { transform: translateY(-3px); box-shadow: 0 6px 36px rgba(160, 100, 240, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

/* ============================================================
   Section 通用
   ============================================================ */
.section { max-width: 1140px; margin: 0 auto; padding: 6rem 1.5rem; position: relative; }
/* 区块全宽官方美术背景 + 深色蒙版压暗，保证内容可读 */
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; width: 100vw; height: 100%;
  transform: translateX(-50%);
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(10,6,18,0.92) 0%, rgba(10,6,18,0.82) 50%, rgba(10,6,18,0.95) 100%),
    var(--section-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#tournament { --section-bg: url("/img/zone-silvermoon-1.jpg"); }
#history    { --section-bg: url("/img/zone-voidstorm-2.jpg"); }
#offline    { --section-bg: url("/img/zone-eversong.jpg"); }
#join       { --section-bg: url("/img/ka-stand-as-one.jpg"); }
.section__eyebrow {
  font-family: var(--serif-en);
  font-weight: 600;
  text-align: center;
  color: var(--void-glow);
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  text-indent: 0.4em;
  margin-bottom: 0.6rem;
}
.section__title {
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--gold-bright);
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  text-shadow: 0 0 24px rgba(240, 192, 64, 0.28);
}
.section__title::after {
  content: ""; display: block; width: 120px; height: 1px;
  margin: 1rem auto 0; background: var(--hairline);
}

.subsection {
  margin-bottom: 2.2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2.2rem;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.subsection:hover {
  border-color: rgba(240, 192, 64, 0.5);
  box-shadow: 0 8px 40px rgba(160, 100, 240, 0.15), 0 0 0 1px rgba(240, 192, 64, 0.1);
}
.subsection h3 {
  font-family: var(--serif-cn); font-weight: 700;
  color: var(--gold-light); margin-bottom: 0.9rem;
  font-size: 1.5rem; letter-spacing: 0.05em;
}
.subsection__hint { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.4rem; }
.subsection p strong { color: var(--gold-light); font-weight: 600; }

.rules-list { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.8rem; }
.rules-list li { display: flex; align-items: center; gap: 0.7rem; color: var(--text); }
.rules-list li em { color: var(--text-dim); font-style: italic; font-family: var(--serif-en); margin: 0 0.2rem; }
.role-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.role-dot.role-T { background: #4a9eff; box-shadow: 0 0 8px rgba(74, 158, 255, 0.7); }
.role-dot.role-H { background: var(--green); box-shadow: 0 0 8px rgba(46, 204, 113, 0.7); }
.role-dot.role-D { background: #ff6b6b; box-shadow: 0 0 8px rgba(255, 107, 107, 0.7); }

/* ============================================================
   表单
   ============================================================ */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 640px; }
.form > div:nth-last-child(2), .form > div:last-child, .form > button { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.form input, .form select {
  width: 100%; padding: 0.75rem 0.9rem;
  background: rgba(10, 6, 18, 0.6);
  border: 1px solid rgba(107, 63, 160, 0.5);
  border-radius: 6px;
  color: var(--text); font-family: var(--sans); font-size: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.form input::placeholder { color: rgba(154, 143, 176, 0.5); }
.form input:focus, .form select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(10, 6, 18, 0.85);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15), 0 0 16px rgba(201, 162, 39, 0.25);
}
.form__roles { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.form__roles label {
  display: flex; align-items: center; gap: 0.45rem;
  color: var(--text); cursor: pointer; font-size: 0.95rem; margin: 0;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(107, 63, 160, 0.4); border-radius: 20px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form__roles label:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.08); }
.form__roles input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; }
.form__msg { margin-top: 1.2rem; min-height: 1.4rem; font-size: 0.95rem; letter-spacing: 0.03em; }
.form__msg.ok { color: var(--green); text-shadow: 0 0 12px rgba(46, 204, 113, 0.4); }
.form__msg.err { color: #ff6b6b; }

/* ============================================================
   队伍卡片
   ============================================================ */
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 1.8rem; }
.team-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(107, 63, 160, 0.45);
  border-radius: 12px; padding: 1.4rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(160, 100, 240, 0.2); }
.team-card.full {
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.18);
}
.team-card.full:hover { border-color: var(--gold-bright); box-shadow: 0 12px 44px rgba(240, 192, 64, 0.32); }
.team-card.mobile { border-style: dashed; border-color: rgba(154, 143, 176, 0.5); }
.team-card h4 {
  font-family: var(--serif-cn); font-weight: 700;
  color: var(--gold-light); margin-bottom: 1rem;
  font-size: 1.2rem; letter-spacing: 0.05em;
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}
.team-card .slot {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0; font-size: 0.95rem;
  border-bottom: 1px solid rgba(107, 63, 160, 0.18);
}
.team-card .slot:last-child { border-bottom: none; }
.team-card .role-T { color: #4a9eff; }
.team-card .role-H { color: var(--green); }
.team-card .role-D { color: #ff6b6b; }
.team-card .gap { color: var(--text-dim); font-style: italic; }

/* ============================================================
   历届活动
   ============================================================ */
.year-tabs { display: flex; gap: 0.9rem; justify-content: center; margin-bottom: 2.6rem; flex-wrap: wrap; }
.year-tabs button {
  padding: 0.55rem 1.6rem;
  background: transparent;
  border: 1px solid rgba(107, 63, 160, 0.5);
  color: var(--text);
  font-family: var(--serif-en); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.05em;
  border-radius: 22px; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.year-tabs button:hover { border-color: var(--gold); color: var(--gold-light); }
.year-tabs button.active {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--void-black); border-color: var(--gold);
  box-shadow: 0 0 18px rgba(240, 192, 64, 0.4);
}
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.event-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 192, 64, 0.45);
  box-shadow: 0 14px 44px rgba(160, 100, 240, 0.2);
}
.event-card img { width: 100%; height: 180px; object-fit: cover; display: block; filter: saturate(0.9) brightness(0.95); }
.event-card .body { padding: 1.3rem; }
.event-card h4 { font-family: var(--serif-cn); font-weight: 700; color: var(--gold-light); margin-bottom: 0.4rem; font-size: 1.25rem; }
.event-card .date { color: var(--void-glow); font-family: var(--serif-en); font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.event-card p:last-child { color: var(--text-dim); font-size: 0.95rem; }

/* ============================================================
   线下时间线
   ============================================================ */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), var(--void-glow), transparent);
}
.timeline-item {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 1.4rem 1.6rem; margin-bottom: 1.8rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.timeline-item::before {
  content: ""; position: absolute; left: -2rem; top: 1.6rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px var(--gold-bright); transform: translateX(-4px);
}
.timeline-item:hover { transform: translateX(4px); border-color: rgba(240, 192, 64, 0.4); box-shadow: 0 8px 32px rgba(160, 100, 240, 0.15); }
.timeline-item h4 { font-family: var(--serif-cn); font-weight: 700; color: var(--gold-light); font-size: 1.2rem; margin-bottom: 0.5rem; }
.timeline-item h4 .date { color: var(--void-glow); font-family: var(--serif-en); font-size: 0.85rem; font-weight: 600; margin-left: 0.6rem; letter-spacing: 0.06em; }
.timeline-item p { color: var(--text-dim); }
.timeline-item img { width: 100%; border-radius: 8px; margin-top: 0.9rem; }

/* ============================================================
   加入我们 / footer
   ============================================================ */
.join__content {
  max-width: 720px; margin: 0 auto; text-align: center;
  font-size: 1.1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 3rem 2rem;
}
.join__content p { margin-bottom: 1.2rem; }
.join__contact strong { color: var(--gold-light); }
.join__content .btn { margin-top: 0.8rem; }

.footer {
  text-align: center; padding: 2.5rem 1rem;
  color: var(--text-dim); font-size: 0.85rem; letter-spacing: 0.03em;
  border-top: 1px solid rgba(107, 63, 160, 0.25);
}

/* ============================================================
   滚动入场（JS 由后续任务接 .visible）
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .teams, .events-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__menu { gap: 1.4rem; }
}

@media (max-width: 768px) {
  .nav { padding: 0.9rem 1.2rem; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10, 6, 18, 0.96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .nav__menu.open { max-height: 320px; }
  .nav__menu a { padding: 0.95rem 1.5rem; border-top: 1px solid rgba(107, 63, 160, 0.2); width: 100%; }
  .nav__menu a::after { display: none; }

  .section { padding: 4rem 1.1rem; }
  .subsection { padding: 1.5rem; }
  .form { grid-template-columns: 1fr; }
  .teams, .events-grid { grid-template-columns: 1fr; }
  .team-card.mobile { /* 移动端机动队，draw.js 可加 .mobile 标识 */ }
}

/* 队伍卡移动端紧凑变体（draw.js 可切换） */
.team-card.mobile .slot,
.team-card .slot { word-break: break-word; }

/* ============================================================
   尊重减弱动效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__eyebrow, .hero__title, .hero__slogan, .hero .btn--gold, .hero__scroll { opacity: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
