/* 英语觉醒官网 — 氛围与动效 */

.page-bg {
  background-color: #f8f9fc;
  background-image:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(99, 102, 241, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 5%, rgba(236, 72, 153, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(59, 130, 246, 0.08), transparent 55%);
}

.hero-glow {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 200deg at 50% 50%, rgba(99, 102, 241, 0.12), rgba(59, 130, 246, 0.08), rgba(236, 72, 153, 0.1), rgba(99, 102, 241, 0.12));
  filter: blur(48px);
  animation: glow-spin 18s linear infinite;
  pointer-events: none;
}

@keyframes glow-spin {
  to { transform: rotate(360deg); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-device {
  animation: float-y 5s ease-in-out infinite;
}

.stat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.15);
}

.stat-card--blue { background: linear-gradient(135deg, #fff 0%, #eff6ff 100%); }
.stat-card--violet { background: linear-gradient(135deg, #fff 0%, #f5f3ff 100%); }
.stat-card--emerald { background: linear-gradient(135deg, #fff 0%, #ecfdf5 100%); }

#module-filters {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#module-filters::-webkit-scrollbar {
  display: none;
}

.module-filter {
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.module-filter.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.module-filter:not(.is-active):hover {
  border-color: #93c5fd;
  color: #2563eb;
  background: rgba(239, 246, 255, 0.8);
}

.module-drawer {
  border-left: 3px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.module-drawer[data-category="学习闭环"] { --cat-color: #f97316; }
.module-drawer[data-category="AI陪练"] { --cat-color: #3b82f6; }
.module-drawer[data-category="词汇基础"] { --cat-color: #eab308; }
.module-drawer[data-category="发音听力"] { --cat-color: #14b8a6; }
.module-drawer[data-category="词汇游戏"] { --cat-color: #a855f7; }
.module-drawer[data-category="句子训练"] { --cat-color: #ec4899; }
.module-drawer[data-category="语法系统"] { --cat-color: #6366f1; }
.module-drawer[data-category="复习沉淀"] { --cat-color: #ef4444; }
.module-drawer[data-category="沉浸输入"] { --cat-color: #78716c; }
.module-drawer[data-category="成长档案"] { --cat-color: #8b5cf6; }

.module-drawer[open],
.module-drawer.is-highlight {
  border-left-color: var(--cat-color, #3b82f6);
  box-shadow: 0 12px 40px -8px rgba(15, 23, 42, 0.12);
}

.module-drawer .cat-tag {
  color: var(--cat-color, #2563eb);
}

.module-drawer.is-highlight {
  animation: drawer-pulse 0.6s ease;
}

@keyframes drawer-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.25); }
  70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 12px 40px -8px rgba(15, 23, 42, 0.12); }
}

.download-section {
  background: linear-gradient(180deg, transparent 0%, rgba(239, 246, 255, 0.6) 50%, transparent 100%);
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #64748b;
  transition: color 0.2s;
}

.beian-link:hover {
  color: #0f172a;
}

.beian-link svg {
  flex-shrink: 0;
}
