* {
  box-sizing: border-box;
}

:root {
  --bg: #fff9f2;
  --pink: #ff8fb1;
  --yellow: #ffd65a;
  --blue: #7fd6ff;
  --green: #8ee6a3;
  --purple: #b99cff;
  --text: #3b2f57;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 14px 36px rgba(116, 88, 168, 0.16);
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, #fff8ef 0%, #fefcff 100%);
  color: var(--text);
}

.bg-shapes::before,
.bg-shapes::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
}

.bg-shapes::before {
  width: 260px;
  height: 260px;
  top: -60px;
  left: -50px;
  background: rgba(255, 214, 90, 0.35);
}

.bg-shapes::after {
  width: 220px;
  height: 220px;
  right: -50px;
  top: 120px;
  background: rgba(127, 214, 255, 0.35);
}

.hero {
  padding: 54px 20px 36px;
  text-align: center;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 14px;
  color: #ff6f94;
  font-weight: 700;
}

h1 {
  font-size: clamp(34px, 5vw, 62px);
  margin: 18px 0 12px;
}

.hero-text {
  font-size: 18px;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.btn.primary {
  background: linear-gradient(135deg, #ff8fb1, #ffb366);
  color: #fff;
}

.btn.secondary {
  background: #fff;
  color: var(--text);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px 40px;
}

.section {
  margin-bottom: 32px;
}

.intro-card,
.tips-card {
  background: var(--card);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.section-head p,
.tips-note,
.learn-card p {
  color: #675a86;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.learn-card {
  background: var(--card);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.learn-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.math-card::before,
.pinyin-card::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  right: -45px;
  top: -45px;
  opacity: 0.22;
}

.math-card::before {
  background: var(--yellow);
}

.pinyin-card::before {
  background: var(--blue);
}

.emoji {
  font-size: 34px;
  margin-bottom: 10px;
}

.learn-card h3 {
  margin: 8px 0;
  font-size: 28px;
}

.speak-btn {
  border: none;
  background: linear-gradient(135deg, #7fd6ff, #8ee6a3);
  color: #2f3450;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

.speak-btn:active {
  transform: scale(0.98);
}

.footer {
  text-align: center;
  padding: 26px 16px 40px;
  color: #7b6d98;
}

ul {
  padding-left: 20px;
  line-height: 1.9;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 34px;
  }

  .intro-card,
  .tips-card,
  .learn-card {
    border-radius: 22px;
  }

  .learn-card h3 {
    font-size: 24px;
  }
}
