/* ============================================================
   MirAI·骑士智能 宣传站 — AI 科技风设计系统
   深空蓝黑底 + 科技青霓虹 + 玻璃拟态 + 传奇风写实配图
   ============================================================ */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1a;
  --bg-3: #0f1626;
  --glass: rgba(15, 22, 38, 0.62);
  --glass-strong: rgba(15, 22, 38, 0.85);
  --line: rgba(34, 211, 238, 0.14);
  --line-strong: rgba(34, 211, 238, 0.38);
  --line-soft: rgba(148, 163, 184, 0.12);
  --cyan: #22d3ee;
  --blue: #38bdf8;
  --violet: #8b5cf6;
  --gold: #f5b942;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --red: #f87171;
  --green: #34d399;
  --sans: "Noto Sans SC", sans-serif;
  --tech: "Orbitron", "Noto Sans SC", monospace;
  --max: 1200px;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 全局网格 + 辉光氛围 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 15% 0%, rgba(34, 211, 238, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(139, 92, 246, 0.07), transparent 70%),
    radial-gradient(ellipse 60% 45% at 50% 105%, rgba(34, 211, 238, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

section, header, footer, .marquee, main { position: relative; z-index: 3; }

::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

.tech { font-family: var(--tech); letter-spacing: 0.14em; }

/* ============ 通用组件 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue) 55%, var(--violet));
  color: #04121a;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35), 0 8px 24px -8px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.55), 0 14px 32px -8px rgba(56, 189, 248, 0.55);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
}

.btn-ghost:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
}

.btn-sm { padding: 8px 18px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 17px 38px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  position: relative;
}

.glass::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 220, 255, 0.4), transparent);
  pointer-events: none;
}

/* ============ 顶部导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 7, 13, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }

.logo-core {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 0 16px rgba(250, 192, 0, 0.28);
  flex: none;
}

.logo-text {
  font-family: var(--tech);
  font-weight: 900;
  font-size: 17px;
  color: var(--text);
  letter-spacing: 0.1em;
}

.logo-text em { font-style: normal; color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 26px; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--cyan); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-auth { display: flex; align-items: center; flex: none; }

/* 用户下拉 */
.nav-user { position: relative; }

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-user-btn:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(34, 211, 238, 0.25); }

.nav-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #04121a;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-username { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
}

.nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }

.nav-menu a, .nav-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover, .nav-menu button:hover { background: rgba(34, 211, 238, 0.1); color: var(--cyan); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-burger span {
  width: 22px; height: 2px;
  background: var(--cyan);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  padding: 160px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -2; }

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.4) 55%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.4) 55%, transparent 95%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, transparent 30%, var(--bg) 95%),
    linear-gradient(180deg, rgba(5,7,13,0.3), transparent 40%, var(--bg) 96%);
}

.hero-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero-inner { max-width: 900px; text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  background: rgba(34, 211, 238, 0.06);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 34px;
  letter-spacing: 0.08em;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.3; } }

.hero-title {
  font-weight: 900;
  font-size: clamp(48px, 8.6vw, 100px);
  line-height: 1.14;
  letter-spacing: 0.06em;
}

.hero-title .line { display: block; }

.hero-title .neon {
  background: linear-gradient(120deg, #a5f3fc 0%, var(--cyan) 35%, var(--blue) 60%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(34, 211, 238, 0.35));
}

.hero-sub {
  margin-top: 26px;
  font-size: clamp(9px, 1.3vw, 12px);
  color: var(--dim);
}

.hero-desc {
  margin: 22px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 16.5px;
  font-weight: 300;
}

.hero-desc strong { color: var(--cyan); font-weight: 700; }

.hero-actions {
  margin-top: 42px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin: 60px auto 0;
  display: flex;
  justify-content: center;
  max-width: 560px;
  padding: 6px;
}

.hstat {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hstat + .hstat { border-left: 1px solid var(--line-soft); }

.hstat b {
  font-family: var(--tech);
  font-size: 21px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hstat span { font-size: 12.5px; color: var(--dim); }

/* ============ 滚动关键词条 ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 26, 0.6);
  overflow: hidden;
  padding: 15px 0;
}

.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }

.marquee-track span {
  font-weight: 500;
  font-size: 14px;
  color: var(--dim);
  white-space: nowrap;
  letter-spacing: 0.16em;
}

.marquee-track i {
  font-style: normal;
  color: var(--cyan);
  margin: 0 24px;
  font-size: 10px;
  vertical-align: middle;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ 通用分区 ============ */
.section { padding: 120px 24px; max-width: var(--max); margin: 0 auto; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }

.section-tag { font-size: 11px; color: var(--cyan); margin-bottom: 18px; }

.section-title {
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.28;
  letter-spacing: 0.04em;
}

.section-sub { margin-top: 18px; color: var(--muted); font-size: 15.5px; font-weight: 300; }

/* ============ 痛点对比 ============ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: stretch;
}

.compare-card { padding: 36px 34px; transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease; }

.compare-card:hover { transform: translateY(-4px); }

.compare-card.old { border-color: rgba(248, 113, 113, 0.22); }
.compare-card.old:hover { box-shadow: 0 24px 60px -24px rgba(248, 113, 113, 0.25); }

.compare-card.new { border-color: var(--line-strong); }

.compare-card.new:hover {
  border-color: var(--cyan);
  box-shadow: 0 24px 60px -24px rgba(34, 211, 238, 0.35);
}

.compare-card h3 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.cc-icon {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  flex: none;
}

.old .cc-icon { background: rgba(248, 113, 113, 0.12); color: var(--red); }
.new .cc-icon { background: rgba(52, 211, 153, 0.12); color: var(--green); }

.compare-card ul { list-style: none; }

.compare-card li {
  padding: 9px 0 9px 22px;
  position: relative;
  color: var(--muted);
  font-size: 15px;
  border-bottom: 1px dashed var(--line-soft);
}

.compare-card li:last-child { border-bottom: none; }

.compare-card li::before { content: "▸"; position: absolute; left: 0; color: var(--dim); }

.new li::before { content: "◆"; color: var(--cyan); font-size: 10px; top: 13px; }
.new li { color: var(--text); }

.cc-verdict {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-weight: 700;
  font-size: 16px;
}

.old .cc-verdict { color: var(--red); }
.new .cc-verdict { color: var(--cyan); }

.compare-vs { display: flex; align-items: center; justify-content: center; }

.compare-vs span {
  font-family: var(--tech);
  font-size: 13px;
  color: var(--cyan);
  width: 62px; height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-2);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.25);
}

/* ============ 核心功能 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.fcard {
  padding: 32px 28px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.fcard::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(34, 211, 238, 0.06), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.fcard:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.8), 0 0 50px -18px rgba(34, 211, 238, 0.3);
}

.fcard:hover::after { left: 130%; }

.fcard-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--cyan);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.fcard:hover .fcard-icon { transform: scale(1.06); box-shadow: 0 0 24px rgba(34, 211, 238, 0.35); }

.fcard-icon svg { width: 26px; height: 26px; }

.fcard h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }

.fcard p { color: var(--muted); font-size: 14.5px; font-weight: 300; }

.fcard-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.fcard-tags span {
  font-size: 11.5px;
  color: var(--dim);
  border: 1px solid var(--line-soft);
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.fcard:hover .fcard-tags span { color: var(--cyan); border-color: var(--line-strong); }

/* ============ 技术亮点 ============ */
.tech-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin-bottom: 26px;
  padding: 0;
}

.tstat { padding: 34px 20px; text-align: center; display: flex; flex-direction: column; gap: 6px; }

.tstat + .tstat { border-left: 1px solid var(--line-soft); }

.tstat b {
  font-family: var(--tech);
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.tstat span { font-size: 13px; color: var(--dim); }

.tech-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.titem { padding: 26px 24px; transition: border-color 0.3s ease, transform 0.3s ease; }

.titem:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.titem h4 { font-size: 16px; margin-bottom: 10px; font-weight: 700; }

.titem h4::before { content: "◆ "; color: var(--cyan); font-size: 10px; vertical-align: 2px; }

.titem p { font-size: 13.5px; color: var(--muted); font-weight: 300; }

/* ============ 工作流 ============ */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }

.flow::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 6%; right: 6%;
  border-top: 2px dashed var(--line-strong);
  z-index: 0;
}

.fstep { z-index: 1; padding: 30px 26px; transition: transform 0.3s ease, border-color 0.3s ease; }

.fstep:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.fstep-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px; height: 46px;
  padding: 0 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #04121a;
  font-family: var(--tech);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.4);
}

.fstep h4 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }

.fstep p { color: var(--muted); font-size: 14px; font-weight: 300; }

/* ============ 素材商城预告 ============ */
.market-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 52px;
}

.market-shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(139, 92, 246, 0.3);
  display: block;
}

.market-text .section-title { font-size: clamp(26px, 3.4vw, 36px); }

.market-list { list-style: none; margin-top: 26px; }

.market-list li { padding: 8px 0 8px 26px; position: relative; font-size: 15px; }

.market-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ============ 版本规划 ============ */
.road-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.rcard { padding: 34px 30px; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; opacity: 0.75; }

.rcard:hover { transform: translateY(-4px); opacity: 1; }

.rcard.current {
  opacity: 1;
  border-color: var(--line-strong);
  box-shadow: 0 0 50px -16px rgba(34, 211, 238, 0.3);
}

.rcard-ver { font-size: 10px; color: var(--dim); margin-bottom: 18px; }

.rcard.current .rcard-ver { color: var(--cyan); }

.rcard h3 { font-size: 21px; margin-bottom: 20px; font-weight: 700; }

.rcard ul { list-style: none; }

.rcard li { padding: 7px 0 7px 20px; position: relative; color: var(--muted); font-size: 14px; }

.rcard li::before { content: "▸"; position: absolute; left: 0; color: var(--dim); }

.rcard.current li::before { content: "◆"; color: var(--cyan); font-size: 9px; top: 11px; }
.rcard.current li { color: var(--text); }

/* ============ 下载 CTA ============ */
.dl-inner {
  text-align: center;
  padding: 90px 40px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(34, 211, 238, 0.09), transparent 65%),
    radial-gradient(ellipse 50% 70% at 80% 100%, rgba(139, 92, 246, 0.08), transparent 65%),
    var(--glass);
  overflow: hidden;
}

.dl-title {
  font-weight: 900;
  font-size: clamp(34px, 5.2vw, 56px);
  letter-spacing: 0.05em;
  background: linear-gradient(120deg, #a5f3fc, var(--cyan) 40%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.3));
}

.dl-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--line); padding: 48px 24px 56px; margin-top: 40px; }

.footer-inner { max-width: var(--max); margin: 0 auto; text-align: center; }

.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }

.footer-line { color: var(--muted); font-size: 13.5px; }

.footer-disclaimer { color: var(--dim); font-size: 12.5px; margin-top: 8px; }

/* ============ 滚动渐入 ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

.hero-title .line:nth-child(1) { transition-delay: 0.05s; }
.hero-title .line:nth-child(2) { transition-delay: 0.18s; }
.hero-sub.reveal { transition-delay: 0.3s; }
.hero-desc.reveal { transition-delay: 0.4s; }
.hero-actions.reveal { transition-delay: 0.5s; }
.hero-stats.reveal { transition-delay: 0.62s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Toast ============ */
.toast-box {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  max-width: 80vw;
}

.toast.show { opacity: 1; transform: none; }
.toast-success { border-color: rgba(52, 211, 153, 0.5); color: var(--green); }
.toast-error { border-color: rgba(248, 113, 113, 0.5); color: var(--red); }
.toast-info { border-color: var(--line-strong); color: var(--cyan); }

/* ============ 登录/注册页 ============ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 24px 60px;
  position: relative;
  overflow: hidden;
}

.auth-bg { position: absolute; inset: 0; z-index: 0; }

.auth-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.auth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 40%, rgba(5, 7, 13, 0.2), var(--bg) 90%),
    linear-gradient(180deg, rgba(5,7,13,0.5), rgba(5,7,13,0.85));
}

.auth-card {
  width: min(460px, 100%);
  padding: 40px 38px;
  z-index: 1;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 60px -18px rgba(34, 211, 238, 0.2);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  text-decoration: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(5, 7, 13, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 30px;
}

.auth-tab {
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--sans);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.18));
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.15) inset;
}

.login-method-tabs { margin-bottom: 18px; }

.auth-form { display: none; }
.auth-form.active { display: block; }

.form-item { margin-bottom: 18px; }

.form-item label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.form-input, .form-row input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(5, 7, 13, 0.55);
  color: var(--text);
  font-size: 15px;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus, .form-row input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), 0 0 18px rgba(34, 211, 238, 0.12);
}

.form-input::placeholder { color: var(--dim); }

.form-row { display: flex; gap: 10px; }

.form-row .form-input { flex: 1; }

.code-btn {
  flex: none;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(34, 211, 238, 0.06);
  color: var(--cyan);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
}

.code-btn:hover:not([disabled]) { background: rgba(34, 211, 238, 0.14); }
.code-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.form-check input { margin-top: 4px; accent-color: var(--cyan); }

.form-check a { color: var(--cyan); text-decoration: none; }
.form-check a:hover { text-decoration: underline; }

.form-error {
  display: none;
  padding: 11px 15px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  color: var(--red);
  font-size: 13.5px;
  margin-bottom: 18px;
}

.form-error.show { display: block; }

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 13px;
}

.auth-links a, .auth-links button {
  color: var(--dim);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--sans);
  transition: color 0.2s ease;
  padding: 0;
}

.auth-links a:hover, .auth-links button:hover { color: var(--cyan); }

/* ============ 个人中心 ============ */
.page-main { padding: 110px 24px 80px; max-width: var(--max); margin: 0 auto; min-height: 80vh; }

.page-head { margin-bottom: 40px; }

.page-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; letter-spacing: 0.04em; }

.page-sub { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

.center-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.profile-card { padding: 34px 28px; text-align: center; }

.profile-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #04121a;
  font-size: 34px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.4);
}

.profile-name { font-size: 21px; font-weight: 900; }

.profile-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 13px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  background: rgba(34, 211, 238, 0.07);
}

.profile-meta {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  text-align: left;
}

.profile-meta p {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
  padding: 6px 0;
}

.profile-meta p b { color: var(--text); font-weight: 500; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }

.balance-card { margin-top: 24px; padding: 26px 26px; }

.balance-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.balance-head span { font-size: 13px; color: var(--muted); }

.balance-num {
  font-family: var(--tech);
  font-size: 34px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(245, 185, 66, 0.3);
}

.balance-num small { font-size: 15px; color: var(--dim); margin-left: 4px; }

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 16px;
}

.recharge-opt {
  padding: 12px 6px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(5, 7, 13, 0.4);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.recharge-opt small { display: block; font-size: 11px; color: var(--dim); font-weight: 400; }

.recharge-opt:hover, .recharge-opt.sel {
  border-color: var(--gold);
  background: rgba(245, 185, 66, 0.07);
  box-shadow: 0 0 16px rgba(245, 185, 66, 0.18);
}

.panel-card { padding: 30px 32px; min-height: 420px; }

.panel-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.panel-tab {
  padding: 10px 18px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  position: relative;
  transition: color 0.2s ease;
}

.panel-tab::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.panel-tab.active { color: var(--cyan); }
.panel-tab.active::after { opacity: 1; }

.panel-page { display: none; }
.panel-page.active { display: block; }

.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--dim);
}

.empty-state svg {
  width: 52px; height: 52px;
  margin-bottom: 18px;
  color: var(--dim);
  opacity: 0.6;
}

.empty-state h4 { color: var(--muted); font-size: 16px; margin-bottom: 8px; font-weight: 700; }

.empty-state p { font-size: 13.5px; }

.center-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ 素材商城 ============ */
.mall-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.mall-search {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.mall-search input { padding-left: 42px; }

.mall-search svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--dim);
  pointer-events: none;
}

.mall-cats { display: flex; gap: 8px; flex-wrap: wrap; }

.mall-category-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(15, 22, 38, 0.34);
}

.mall-filter-heading { display: flex; align-items: baseline; gap: 12px; padding-bottom: 4px; }
.mall-filter-heading strong { color: var(--text); font-size: 15px; }
.mall-filter-heading span, .mall-filter-help { color: var(--dim); font-size: 12px; }
.mall-filter-help { margin: 9px 0 0; }
.mall-filter-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 12px; }
.mall-filter-summary strong { color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.mall-filter-clear, .mall-filter-reset { font: inherit; color: var(--cyan); cursor: pointer; }
.mall-filter-clear { padding: 5px 9px; border: 1px solid var(--line-soft); border-radius: 6px; background: rgba(34, 211, 238, .06); overflow-wrap: anywhere; }
.mall-filter-reset { padding: 5px 3px; border: 0; background: transparent; }
.mall-category-filter button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.mall-map-size-filter {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.mall-map-size-filter[hidden] { display: none; }
.mcard-map-size { color: var(--cyan); font-size: 12px; margin-bottom: 10px; }

.mall-cat-level {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mall-cat-level + .mall-cat-level {
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.mall-map-size-filter + .mall-cat-level {
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.mall-cat-label {
  padding-top: 8px;
  color: var(--dim);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.mall-cat-options { display: flex; gap: 8px; flex-wrap: wrap; }

.cat-chip {
  padding: 8px 17px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(15, 22, 38, 0.5);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.22s ease;
}
.mall-category-filter .cat-chip { border-radius: 8px; }

.cat-chip:hover { color: var(--cyan); border-color: var(--line-strong); }

.cat-chip.active {
  color: #04121a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}

.mall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mcard {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
  display: flex;
  flex-direction: column;
}

.mcard:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.85), 0 0 44px -14px rgba(34, 211, 238, 0.28);
}

.mcard-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.96));
}

@media (max-width: 640px) {
  .mall-cat-level { grid-template-columns: 1fr; gap: 7px; }
  .mall-map-size-filter { grid-template-columns: 1fr; gap: 7px; }
  .mall-cat-label { padding-top: 0; }
}

.mcard-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
  transition: transform 0.5s ease;
  display: block;
}

.mcard:hover .mcard-img img { transform: none; }

.mcard-cat {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(5, 7, 13, 0.75);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}

.mcard-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }

.mcard-name { font-size: 16px; font-weight: 700; }

.mcard-desc {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--dim);
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.mcard-foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mcard-price {
  font-family: var(--tech);
  font-size: 18px;
  font-weight: 900;
  color: var(--gold);
}

.mcard-price small { font-size: 11px; color: var(--dim); font-weight: 400; margin-right: 2px; }

.mcard-buy {
  padding: 7px 15px;
  font-size: 12.5px;
  border-radius: 8px;
}

.mall-empty { grid-column: 1 / -1; }

/* 详情弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 9, 0.7);
  backdrop-filter: blur(8px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-mask.open { opacity: 1; pointer-events: auto; }

.modal {
  width: min(880px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-mask.open .modal { transform: none; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: rgba(5, 7, 13, 0.7);
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover { color: var(--cyan); border-color: var(--cyan); }

.modal-grid { display: grid; grid-template-columns: 1.1fr 1fr; }

.modal-img { min-height: 320px; }

.modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-body { padding: 36px 34px; }

.modal-cat {
  display: inline-block;
  padding: 3px 13px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  margin-bottom: 14px;
}

.modal-name { font-size: 26px; font-weight: 900; }

.modal-desc { margin-top: 14px; color: var(--muted); font-size: 14.5px; font-weight: 300; }

.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.modal-tags span {
  font-size: 12px;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  background: rgba(34, 211, 238, 0.06);
  padding: 4px 12px;
  border-radius: 999px;
}

.modal-foot {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-price {
  font-family: var(--tech);
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(245, 185, 66, 0.3);
}

.modal-price small { font-size: 13px; color: var(--dim); font-weight: 400; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-list { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow::before { display: none; }
  .market-inner { grid-template-columns: 1fr; padding: 36px; gap: 36px; }
  .road-track { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .mall-grid { grid-template-columns: repeat(3, 1fr); }
  .center-grid { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-img { min-height: 240px; }
}

@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 7, 13, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .nav-links a:last-child { border-bottom: none; }

  .hero { padding: 126px 18px 70px; }
  .hstat b { font-size: 17px; }

  .section { padding: 80px 18px; }
  .section-head { margin-bottom: 44px; }

  .compare-grid { grid-template-columns: 1fr; }
  .compare-vs span { width: 52px; height: 52px; font-size: 11px; }

  .feature-grid, .tech-list, .flow { grid-template-columns: 1fr; }
  .tech-stats { grid-template-columns: 1fr; }
  .tstat + .tstat { border-left: none; border-top: 1px solid var(--line-soft); }
  .dl-inner { padding: 64px 24px; }
  .dl-actions .btn { width: 100%; }

  .mall-grid { grid-template-columns: repeat(2, 1fr); }
  .page-main { padding: 96px 16px 60px; }
  .auth-card { padding: 30px 22px; }
  .recharge-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 14px; gap: 10px; }
  .nav-logo { gap: 8px; }
  .logo-text em { display: none; }
  .mall-grid { grid-template-columns: 1fr; }
}
