/* ===========================================================
   AnAgents 量化研学平台 · 炫酷动画版样式
   =========================================================== */

/* -------- 设计变量 -------- */
:root {
  --bg: #0A0F1C;
  --bg-2: #0D1526;
  --bg-3: #111C34;
  --panel: rgba(26, 38, 62, 0.55);
  --panel-strong: rgba(32, 48, 78, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #E8EEF7;
  --text-soft: #A7B3C7;
  --text-mute: #6B7A94;

  --primary: #EF4444;
  --primary-hover: #FF5A5A;
  --primary-glow: rgba(239, 68, 68, 0.45);
  --accent: #3B82F6;
  --accent-2: #22D3EE;
  --accent-3: #A855F7;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --container: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body { position: relative; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ===========================================================
   背景炫酷动画 · 极光光晕 + 网格
   =========================================================== */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora-item {
  position: absolute;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: float 18s ease-in-out infinite;
}
.aurora-1 {
  top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.55), transparent 60%);
  animation-duration: 22s;
}
.aurora-2 {
  top: 180px; right: -180px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.45), transparent 60%);
  animation-duration: 26s;
  animation-delay: -4s;
}
.aurora-3 {
  bottom: -220px; left: 30%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 60%);
  animation-duration: 30s;
  animation-delay: -8s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(80px, -60px) scale(1.08); }
  66%      { transform: translate(-60px, 40px) scale(0.95); }
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.7;
}

.site { position: relative; z-index: 2; }

/* ===========================================================
   通用组件：按钮
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-ghost {
  color: var(--text-soft);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent-2);
  background: rgba(34, 211, 238, 0.06);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}
.btn-primary {
  background: linear-gradient(135deg, #EF4444 0%, #F45B5B 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.5);
}
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-ico { font-size: 16px; }

.btn-pulse {
  position: relative;
  animation: pulseBreath 2.8s ease-in-out infinite;
}
.btn-pulse::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.5), transparent);
  filter: blur(8px);
  z-index: -1;
  opacity: 0.8;
}
@keyframes pulseBreath {
  0%, 100% { box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35), 0 0 0 0 rgba(239, 68, 68, 0.35); }
  50%      { box-shadow: 0 10px 28px rgba(239, 68, 68, 0.55), 0 0 0 8px rgba(239, 68, 68, 0); }
}

.btn-tool { position: relative; }
.tool-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ===========================================================
   顶部导航
   =========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 28, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: transform .2s ease;
}
.nav-logo:hover { transform: translateY(-1px); }
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.logo-text { font-size: 16px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-menu a {
  padding: 9px 16px;
  font-size: 14px;
  color: var(--text-soft);
  border-radius: 8px;
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.nav-menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-menu a.is-active {
  color: var(--text);
  background: rgba(59, 130, 246, 0.08);
}
.nav-menu a.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px var(--accent-2);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text-soft);
  border-radius: 2px;
}

/* ===========================================================
   Hero 首屏
   =========================================================== */
.hero {
  padding: 56px 0 64px;
  text-align: center;
  position: relative;
  /* 首屏不参与 reveal 滚动动画，必须立即显示 */
  opacity: 1 !important;
  transform: none !important;
}
/* 首屏内部子元素也立即显示 */
.hero .hero-tags,
.hero .hero-title,
.hero .hero-sub,
.hero .hero-badges,
.hero .hero-cta {
  opacity: 1 !important;
  transform: none !important;
}
.hero-tags { margin-bottom: 24px; }
.tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.tag-glow {
  background: rgba(34, 211, 238, 0.06);
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--accent-2);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}
.hero-title {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 18px;
  line-height: 1.15;
}
.shimmer {
  background: linear-gradient(90deg, #FFFFFF 0%, #C8D4E8 30%, #FFD9D9 55%, #C8D4E8 75%, #FFFFFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-soft);
  font-size: 16px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.badge {
  font-size: 13px;
  color: var(--text-soft);
  padding: 9px 16px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.badge:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.badge-glow { box-shadow: 0 4px 14px rgba(59, 130, 246, 0.08); }

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 900px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}

/* ===========================================================
   区域标题
   =========================================================== */
.section-head { text-align: center; margin-bottom: 40px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  padding: 5px 14px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  margin-bottom: 16px;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.05);
}
.section-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #FFFFFF 0%, #B8C6DE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-mute);
}

/* ===========================================================
   功能模块详解
   =========================================================== */
.modules { padding: 64px 0; }
.modules-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.modules-menu { display: flex; flex-direction: column; gap: 8px; }
.module-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  text-align: left;
  position: relative;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.module-item:hover {
  transform: translateX(4px);
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.3);
}
.module-item.is-active {
  background: var(--panel-strong);
  border-color: var(--accent-2);
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.12), inset 0 0 0 1px rgba(34, 211, 238, 0.15);
}
.module-item.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-2);
}
.mi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-mute);
  flex-shrink: 0;
}
.module-item.is-active .mi-dot { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.mi-title { font-size: 14px; font-weight: 500; color: var(--text); }
.mi-sub { font-size: 12px; color: var(--text-mute); margin-left: auto; }

.modules-panel { min-height: 360px; }
.panel-card {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
  transition: border-color .2s ease;
}
.panel-glow {
  position: relative;
  overflow: hidden;
}
.panel-glow::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: 0.6;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-strong);
  margin-bottom: 22px;
}
.panel-ico { font-size: 22px; }
.panel-title { font-size: 18px; font-weight: 600; }
.panel-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--primary);
  background: rgba(239, 68, 68, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 500;
}
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-soft);
  padding: 9px 0;
  transition: transform .2s ease, color .2s ease;
}
.panel-list li:hover { transform: translateX(4px); color: var(--text); }
.list-ico {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.panel-footer {
  margin-top: 22px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.panel-content-enter { animation: panelFade .45s ease both; }
@keyframes panelFade {
  from { opacity: 0; transform: translateY(8px) scale(0.995); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ===========================================================
   技术实力卡片
   =========================================================== */
.tech { padding: 64px 0; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tech-card {
  padding: 24px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.tech-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.4), transparent);
  opacity: 0.7;
}
.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.12);
}
.tech-num { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; letter-spacing: 0.5px; }
.tech-label { font-size: 13px; color: var(--accent-2); margin-bottom: 10px; font-weight: 500; }
.tech-desc { font-size: 13px; color: var(--text-mute); line-height: 1.7; }

/* ===========================================================
   快速上手
   =========================================================== */
.quickstart { padding: 64px 0 88px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.step {
  padding: 22px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.step-glow:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}
.step-ico {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.1));
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.step-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.step-sub { font-size: 12px; color: var(--text-mute); line-height: 1.6; }

.cta-card {
  margin-top: 12px;
  padding: 44px 32px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(239, 68, 68, 0.06));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  top: -50%; left: 50%;
  width: 600px; height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.12), transparent 60%);
  pointer-events: none;
}
.cta-ico { margin-bottom: 16px; position: relative; }
.cta-img {
  width: 56px; height: 56px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
  display: inline-block;
}
.cta-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; position: relative; }
.cta-sub { font-size: 14px; color: var(--text-soft); margin-bottom: 22px; position: relative; }

/* ===========================================================
   页脚
   =========================================================== */
.footer {
  background: linear-gradient(180deg, transparent, rgba(13, 21, 38, 0.8));
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 14px;
}
.foot-desc {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 22px;
  max-width: 340px;
  line-height: 1.7;
}
.foot-qr {
  width: 120px; height: 120px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.qr-inner { color: #333; font-size: 12px; letter-spacing: 1px; text-align: center; }

.foot-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
  padding-left: 10px;
}
.foot-title::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 3px; height: 14px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}
.foot-col ul li {
  font-size: 13px;
  color: var(--text-soft);
  padding: 5px 0;
  line-height: 1.7;
  transition: color .2s ease, transform .2s ease;
}
.foot-col ul li a:hover { color: var(--accent-2); }
.foot-col ul li:hover { transform: translateX(3px); }

.foot-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-mute);
  flex-wrap: wrap;
}

/* ===========================================================
   小程序码模态框
   =========================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 20px;
  background: linear-gradient(180deg, #142038 0%, #0E1828 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(34, 211, 238, 0.08);
  animation: modalIn .4s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}
.modal-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--primary), transparent);
  opacity: 0.9;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 20px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all .2s ease;
  z-index: 2;
  line-height: 1;
  display: grid;
  place-items: center;
}
.modal-close:hover {
  color: var(--text);
  border-color: var(--primary);
  background: rgba(239, 68, 68, 0.1);
  transform: rotate(90deg);
}

.modal-inner { padding: 36px 32px 32px; text-align: center; }
.modal-logo { margin-bottom: 14px; }
.modal-logo .logo-img {
  width: 44px; height: 44px;
  border-radius: 10px;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--text-soft); margin-bottom: 22px; }

.qr-box { margin-bottom: 20px; }
.qr-frame {
  position: relative;
  width: 220px; height: 220px;
  margin: 0 auto 14px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 0 3px rgba(34, 211, 238, 0.15);
  overflow: hidden;
}
.qr-content { position: relative; z-index: 2; width: 100%; height: 100%; }
.qr-img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.qr-scanline {
  position: absolute;
  left: 14px; right: 14px;
  top: 14px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  border-radius: 2px;
  box-shadow: 0 0 14px var(--accent-2);
  animation: scan 2.4s ease-in-out infinite;
  z-index: 3;
}
@keyframes scan {
  0%   { top: 14px; opacity: 0.4; }
  50%  { opacity: 1; }
  100% { top: calc(100% - 17px); opacity: 0.4; }
}

.qr-frame::before,
.qr-frame::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--accent-2);
  z-index: 3;
}
.qr-frame::before {
  top: 6px; left: 6px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 6px;
}
.qr-frame::after {
  bottom: 6px; right: 6px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 6px;
}

.qr-caption { text-align: center; }
.qr-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.qr-hint { font-size: 12px; color: var(--text-mute); line-height: 1.6; max-width: 260px; margin: 0 auto; }

/* ===========================================================
   入场动画
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===========================================================
   响应式
   =========================================================== */
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modules-grid { grid-template-columns: 240px 1fr; }
  .hero-title { font-size: 40px; }
}

@media (max-width: 768px) {
  .hero { padding: 56px 0 64px; }
  .hero-title { font-size: 30px; letter-spacing: 0; }
  .hero-sub { font-size: 15px; }

  .nav-menu { display: none; }
  .nav-toggle { display: inline-flex; }

  .modules { padding: 48px 0; }
  .modules-grid { grid-template-columns: 1fr; gap: 12px; }
  .modules-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 8px;
    scrollbar-width: thin;
  }
  .modules-menu::-webkit-scrollbar { height: 4px; }
  .modules-menu::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
  .module-item { flex-shrink: 0; min-width: 170px; padding: 12px 14px; }
  .module-item.is-active::before { display: none; }
  .mi-sub { display: none; }

  .panel-grid { grid-template-columns: 1fr; gap: 0; }
  .panel-card { padding: 20px; }

  .tech-grid, .steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .section-title { font-size: 22px; }
  .cta-card { padding: 32px 20px 28px; }
}

@media (max-width: 480px) {
  .tech-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-actions .btn-ghost { font-size: 13px; padding: 8px 12px; }
  .hero-title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-item, .btn-pulse, .tool-dot, .shimmer, .qr-scanline { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn-primary:hover { transform: none; }
  .tech-card:hover, .step:hover, .module-item:hover { transform: none; }
}
