/* 成都少年英才教育 · 习惯训练营 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);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(1, 6, 18, 0.92);
  border-bottom-color: rgba(232, 197, 71, 0.28);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.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);
  animation: brandPulse 4.5s ease-in-out infinite;
}

/* 志愿产品线品牌图（与小程序 icon 一致） */
.brand-mark-img {
  background: #fff;
  padding: 4px;
  overflow: hidden;
  animation: brandPulseZy 4.5s ease-in-out infinite;
}

.brand-mark-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-cta-volunteer {
  background: linear-gradient(90deg, #1565c0, #26c6da) !important;
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(38, 198, 218, 0.35);
}

.nav-cta-habit {
  background: var(--gradient-gold);
  color: #1a1200 !important;
}

.nav-cta-muted {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
  cursor: default;
  pointer-events: none;
}

/* 双产品矩阵：入口分流，避免志愿与习惯混为一谈 */
.product-matrix {
  padding: 72px 0 48px;
  border-bottom: 1px solid rgba(38, 198, 218, 0.12);
}

.product-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.product-matrix-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}

.product-matrix-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-matrix-card--volunteer {
  border-color: rgba(38, 198, 218, 0.35);
}

.product-matrix-card--volunteer:hover {
  border-color: rgba(38, 198, 218, 0.65);
}

.product-matrix-card--habit {
  border-color: rgba(232, 197, 71, 0.35);
}

.product-matrix-card--habit:hover {
  border-color: rgba(232, 197, 71, 0.55);
}

.product-matrix-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(38, 198, 218, 0.15);
  color: var(--cyan);
}

.product-matrix-badge--habit {
  background: rgba(232, 197, 71, 0.15);
  color: var(--gold-light);
}

.product-matrix-logo {
  border-radius: 14px;
}

.product-matrix-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.product-matrix-card h3 {
  font-size: 1.25rem;
  margin: 0;
}

.product-matrix-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin: 0;
}

.product-matrix-link {
  font-weight: 600;
  color: var(--cyan);
  font-size: 0.9rem;
}

.product-matrix-card--habit .product-matrix-link {
  color: var(--gold-light);
}

.product-zone {
  padding: 72px 0;
}

.product-zone--volunteer {
  background: linear-gradient(180deg, rgba(21, 101, 192, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(38, 198, 218, 0.15);
}

.product-zone--habit {
  border-top: 3px solid rgba(232, 197, 71, 0.35);
}

.product-zone-head {
  margin-bottom: 40px;
}

.section-tag-volunteer::before {
  background: var(--cyan) !important;
}

.feature-icon.volunteer {
  background: rgba(38, 198, 218, 0.12);
  border: 1px solid rgba(38, 198, 218, 0.35);
}

.steps-volunteer {
  margin-top: 48px;
}

.cta-volunteer {
  background: linear-gradient(135deg, #0d47a1 0%, #00838f 50%, #010612 100%);
}

.cta-volunteer h2 {
  color: #fff;
}

.cta-wechat-hint {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--gold-light);
}

.volunteer-inline-cta {
  margin-top: 28px;
}

.cta-volunteer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.product-zone--volunteer .section-desc a {
  color: var(--cyan);
  font-weight: 600;
}

.cta-habit {
  background: var(--gradient-hero);
}

.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);
}

@media (max-width: 720px) {
  .nav-inner {
    height: 56px;
  }
}

/* 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);
  animation: glowDrift 10s ease-in-out infinite alternate;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  bottom: -80px;
  left: -60px;
  background: rgba(232, 197, 71, 0.12);
  animation: glowDrift 12s ease-in-out infinite alternate-reverse;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(245, 230, 168, 0.85);
  box-shadow: 0 0 12px rgba(38, 198, 218, 0.55);
  animation: sparkFloat 6s ease-in-out infinite;
  opacity: 0;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: badgeBlink 2.2s ease-in-out infinite;
}

.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 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);
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.btn-disabled:hover {
  transform: none;
}

.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;
  animation: timerPulse 2.8s ease-in-out infinite;
}

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

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

.section-tag {
  position: relative;
  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.35s ease, transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.feature-card:hover {
  border-color: rgba(232, 197, 71, 0.45);
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(38, 198, 218, 0.08);
}

.feature-card:hover .feature-icon {
  transform: scale(1.06);
}

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

.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;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--gold, #E8C547);
  text-decoration: underline;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--gold, #E8C547);
  text-decoration: underline;
}

/* 动画 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.reveal-hero.visible {
  animation: heroRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section-tag.visible::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transform-origin: left;
  animation: lineDraw 0.7s ease forwards;
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(232, 197, 71, 0.25); }
  50% { box-shadow: 0 8px 28px rgba(38, 198, 218, 0.28), 0 0 0 1px rgba(232, 197, 71, 0.2); }
}

@keyframes brandPulseZy {
  0%, 100% { box-shadow: 0 8px 24px rgba(38, 198, 218, 0.28); }
  50% { box-shadow: 0 8px 28px rgba(21, 101, 192, 0.35), 0 0 0 1px rgba(38, 198, 218, 0.25); }
}

@keyframes glowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, -18px, 0) scale(1.06); }
}

@keyframes sparkFloat {
  0% { opacity: 0; transform: translateY(10px) scale(0.6); }
  20% { opacity: 0.9; }
  80% { opacity: 0.55; }
  100% { opacity: 0; transform: translateY(-28px) scale(1); }
}

@keyframes badgeBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--cyan); }
  50% { opacity: 0.45; box-shadow: 0 0 6px var(--cyan); }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes lineDraw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes timerPulse {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 18px rgba(38, 198, 218, 0.45); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

/* 响应式 */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .product-matrix-grid { grid-template-columns: 1fr; }

  .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; }
}
