/* 成都少年英才教育 · 习惯养成 App 官网 */
:root {
  --bg-deep: #010612;
  --bg-navy: #0a1628;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(232, 197, 71, 0.18);
  --gold: #e8c547;
  --gold-light: #f5e6a8;
  --cyan: #26c6da;
  --cyan-dark: #00838f;
  --orange: #f67809;
  --text: #eef2f7;
  --text-muted: rgba(238, 242, 247, 0.68);
  --gradient-hero: linear-gradient(135deg, #010612 0%, #0a1628 40%, #132238 70%, #1a2744 100%);
  --gradient-gold: linear-gradient(90deg, #b8922a, #e8c547, #f5e6a8);
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* 导航 */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(1, 6, 18, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-gold);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(232, 197, 71, 0.25);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--gradient-gold);
  color: #1a1200 !important;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 28px rgba(232, 197, 71, 0.3);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: rgba(38, 198, 218, 0.15);
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  bottom: -80px;
  left: -60px;
  background: rgba(232, 197, 71, 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-gold);
  color: #1a1200;
  box-shadow: 0 12px 40px rgba(232, 197, 71, 0.35);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 手机 mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone {
  width: 280px;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(145deg, #2a2a2e, #0d0d10);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateY(-8deg) rotateX(4deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(4deg) translateY(-12px); }
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1628, #010612);
  min-height: 520px;
  padding: 24px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-header {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.phone-title {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ff5252, #ff9800, #ffc107, #66bb6a, #26c6da, #5c6bc0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  margin-bottom: 24px;
}

.phone-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.phone-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-dot {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
}

.phone-card h4 {
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.phone-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.phone-timer {
  text-align: center;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(232, 197, 71, 0.3);
  border-radius: 16px;
  background: rgba(232, 197, 71, 0.05);
}

.phone-timer-num {
  font-size: 2.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.phone-timer-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 通用区块 */
section {
  padding: 100px 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-desc {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* 特性网格 */
.features {
  background: var(--bg-navy);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(232, 197, 71, 0.4);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-icon.cyan { background: rgba(38, 198, 218, 0.15); }
.feature-icon.gold { background: rgba(232, 197, 71, 0.15); }
.feature-icon.orange { background: rgba(246, 120, 9, 0.15); }

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* 流程 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 20px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(232, 197, 71, 0.35);
  margin-bottom: 12px;
}

.step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 场景 */
.scenarios {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-navy));
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.scenario-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.scenario-item span {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.scenario-item h4 {
  margin-bottom: 6px;
}

.scenario-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 关于 */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-panel {
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(38, 198, 218, 0.08), rgba(232, 197, 71, 0.06));
}

.about-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--gold-light);
}

.about-panel p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.about-list {
  list-style: none;
  margin-top: 24px;
}

.about-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.about-list li strong {
  color: var(--text);
  margin-right: 8px;
}

/* CTA */
.cta {
  text-align: center;
  padding: 80px 0;
  background: radial-gradient(ellipse at center, rgba(232, 197, 71, 0.08), transparent 70%);
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* 页脚 */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: #00040c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 360px;
}

.footer h5 {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer ul {
  list-style: none;
}

.footer li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 动画 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* 响应式 */
@media (max-width: 900px) {
  .nav-links { display: none; }

  .hero-grid,
  .about-grid,
  .feature-grid,
  .steps,
  .scenario-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid { text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .phone-wrap { margin-top: 40px; }
  .phone { transform: none; animation: none; }

  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; align-items: center; }
}
