/* ============================================================
   中超 16 队 · 技能分发页
   设计系统：深色运动科技风 / 金色描边 / 队色点缀
   ============================================================ */

:root {
  --bg: #070B14;
  --bg-2: #0A1020;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #F3F6FC;
  --muted: #9AA5BA;
  /* #6C7890 on #070B14 = 4.43:1 未达 AA；调亮至 5.37:1 */
  --muted-2: #7A869E;
  --gold: #D4AF37;
  --gold-2: #F1DA8A;
  --green: #38D39F;
  --amber: #F5B544;
  --red: #FF5A6E;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --font: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }

/* ---------- 背景层 ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(720px 520px at 12% 6%, rgba(0, 71, 171, 0.30), transparent 60%),
    radial-gradient(680px 480px at 88% 0%, rgba(230, 0, 18, 0.18), transparent 60%),
    radial-gradient(760px 560px at 78% 62%, rgba(0, 160, 64, 0.13), transparent 62%),
    radial-gradient(640px 520px at 18% 86%, rgba(212, 175, 55, 0.10), transparent 60%),
    linear-gradient(180deg, #070B14 0%, #080D18 50%, #060A12 100%);
  filter: saturate(1.1);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
  pointer-events: none;
}

/* ---------- 通用容器 ---------- */
.wrap { width: min(calc(100% - 48px), var(--maxw)); margin-inline: auto; }
.section { padding: 92px 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px;
}
.section-kicker::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.section-title { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.2; }
.section-sub { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; max-width: 640px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 34px; height: 38px; flex: 0 0 auto; filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; letter-spacing: 0.02em; }
.brand-text span { font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.16em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 13.5px; color: var(--muted); transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-2); font-size: 13px; font-weight: 600;
  transition: all 0.2s ease;
}
.header-cta:hover { background: rgba(212, 175, 55, 0.16); border-color: rgba(212, 175, 55, 0.7); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { padding: 78px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 56px; }
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.30);
  background: rgba(212, 175, 55, 0.06);
}
.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1.06; letter-spacing: -0.035em; font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #FFFFFF 10%, #F1DA8A 48%, #D4AF37 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 22px 0 0; max-width: 590px; color: var(--muted); font-size: 15.5px; line-height: 1.85; }
.hero-sub b { color: #D9E2F2; font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 650; cursor: pointer;
  border: 1px solid transparent; transition: all 0.22s ease; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-gold { background: linear-gradient(135deg, #E8CB6A, #C9A227); color: #151003; box-shadow: 0 12px 30px -12px rgba(212, 175, 55, 0.6); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(212, 175, 55, 0.75); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn.is-disabled { opacity: 0.42; filter: saturate(0.55); pointer-events: none; cursor: not-allowed; }

.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 44px; max-width: 560px; }
.stat { padding: 14px 14px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.04em; }

/* 轨道视觉 */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.orbit { position: relative; width: min(430px, 86vw); aspect-ratio: 1; }
.orbit-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.orbit-ring.r2 { inset: 12%; border-style: dashed; border-color: rgba(212, 175, 55, 0.16); }
.orbit-ring.r3 { inset: 27%; border-color: rgba(255, 255, 255, 0.06); }
.orbit::after {
  content: ""; position: absolute; inset: 20%; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 68%);
  filter: blur(18px);
}
.orbit-dot {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--c); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05), 0 0 16px var(--c);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 3.6s ease-in-out infinite;
  animation-delay: var(--d);
}
.orbit-dot:hover { transform: translate(-50%, -50%) scale(1.55); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 0 26px var(--c); }
.orbit-core { position: absolute; inset: 31%; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55)); }
.orbit-core svg { width: 100%; height: 100%; animation: float 7s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 功能卡 ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  position: relative; padding: 24px 22px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.feature::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.65), transparent);
  opacity: 0.55;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(212, 175, 55, 0.10); border: 1px solid rgba(212, 175, 55, 0.22); color: var(--gold-2);
  margin-bottom: 16px;
}
.feature-icon svg { width: 21px; height: 21px; }
.feature h3 { margin: 0 0 8px; font-size: 15.5px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ---------- 球队区 ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); min-width: 260px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.search-box:focus-within { border-color: rgba(212, 175, 55, 0.55); background: rgba(255, 255, 255, 0.06); }
.search-box svg { width: 16px; height: 16px; color: var(--muted-2); flex: 0 0 auto; }
.search-box input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 13.5px; }
.search-box input::placeholder { color: var(--muted-2); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-size: 12.5px; transition: all 0.2s ease;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { background: rgba(212, 175, 55, 0.12); border-color: rgba(212, 175, 55, 0.5); color: var(--gold-2); font-weight: 600; }

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

.team-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 22px 20px 18px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line); overflow: hidden; cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  opacity: 0; transform: translateY(14px);
}
.team-card.in { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease; }
.team-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--team), var(--team-dark));
  opacity: 0.9;
}
.team-card::after {
  content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -80px;
  border-radius: 50%; background: var(--team); opacity: 0.10; filter: blur(26px);
  transition: opacity 0.3s ease;
}
.team-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 24px 48px -24px var(--team); }
.team-card:hover::after { opacity: 0.20; }

.team-top { display: flex; align-items: center; gap: 14px; }
.team-badge { width: 62px; flex: 0 0 auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45)); transition: transform 0.3s ease; }
.team-card:hover .team-badge { transform: translateY(-3px) rotate(-2deg); }
.team-badge svg { display: block; width: 100%; height: auto; }
.team-id { min-width: 0; }
.team-id h3 { margin: 0; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-id p { margin: 5px 0 0; font-size: 11px; color: var(--muted-2); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.team-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status.soon { color: var(--amber); }
.status.live { color: var(--green); }
.team-foot-left { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-tag {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-2); font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.card-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); transition: color 0.2s ease; }
.team-card:hover .card-link { color: var(--gold-2); }
.card-link svg { width: 14px; height: 14px; }

.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- 安装步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(212, 175, 55, 0.10); border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--gold-2); font-family: var(--mono); font-size: 13px; font-weight: 700;
}
.step h3 { margin: 0 0 8px; font-size: 15.5px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

/* ---------- 说明 ---------- */
.notice {
  padding: 26px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-left: 3px solid var(--gold);
}
.notice h3 { margin: 0 0 10px; font-size: 15px; color: var(--gold-2); }
.notice p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 42px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-inner p { margin: 0; color: var(--muted-2); font-size: 12px; line-height: 1.7; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--text); }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal-panel {
  position: relative; width: min(520px, 100%); max-height: 88vh; overflow: auto;
  border-radius: 22px; padding: 28px;
  background: linear-gradient(180deg, #101828, #0A101D);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  animation: modalIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted);
}
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.modal-close svg { width: 16px; height: 16px; }
.modal-head { display: flex; align-items: center; gap: 16px; padding-right: 40px; }
.modal-head .team-badge { width: 70px; }
.modal-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.modal-head p { margin: 5px 0 0; color: var(--muted-2); font-size: 12px; letter-spacing: 0.04em; }
.modal-body { margin-top: 22px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spec { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.spec span { display: block; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; }
.spec b { display: block; margin-top: 5px; font-size: 14px; font-weight: 600; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 150px; height: 42px; font-size: 13px; }
.modal-note { margin: 16px 0 0; font-size: 11.5px; color: var(--muted-2); line-height: 1.7; }

/* 待发布状态提示：把「现在还没有技能」说清楚，不让访客去找不存在的入口 */
.pending-note {
  margin: 14px 0 0; padding: 11px 14px; border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.06);
  color: var(--muted); font-size: 12.5px; line-height: 1.75;
}

/* 小程序码内嵌展示：白底衬图，保证深色页面下二维码可扫 */
.qr-block {
  display: flex; align-items: center; gap: 14px; margin-top: 18px;
  padding: 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.qr-frame {
  flex: 0 0 auto; width: 108px; height: 108px; padding: 6px;
  border-radius: 10px; background: #FFFFFF; display: grid; place-items: center;
}
.qr-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qr-copy b { display: block; font-size: 13px; color: var(--text); }
.qr-copy span { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }
@media (max-width: 420px) {
  .qr-block { flex-direction: column; align-items: flex-start; }
}

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .orbit { width: min(340px, 78vw); }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .section { padding: 68px 0; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  .team-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .header-cta span { display: none; }
  .hero { padding-top: 46px; }
  .hero h1 { font-size: 2.2rem; }
  .spec-grid { grid-template-columns: 1fr; }
}

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