/* ============================================================
   X英语学园 · Landing Page
   黄蓝卡通儿童风格 · 简洁现代
   ============================================================ */

:root {
  --yellow: #ffc83d;
  --yellow-light: #ffe08a;
  --yellow-deep: #f5a623;
  --blue: #3a82f6;
  --blue-dark: #2563eb;
  --blue-light: #eaf4ff;
  --blue-soft: #d6e8ff;
  --navy: #1d2a3b;
  --text: #3f4f61;
  --muted: #748597;
  --white: #ffffff;
  --soft: #f3f8ff;
  --shadow-sm: 0 6px 18px rgba(37, 99, 235, 0.08);
  --shadow-md: 0 14px 34px rgba(37, 99, 235, 0.14);
  --shadow-lg: 0 24px 60px rgba(37, 99, 235, 0.18);
  --radius: 24px;
  --radius-lg: 16px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  padding: 13px 30px;
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.4);
}
.btn-primary:hover {
  background: var(--yellow-deep);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(245, 166, 35, 0.5);
}
.btn-ghost {
  background: var(--white);
  color: var(--blue-dark);
  padding: 13px 28px;
  border: 2px solid var(--blue-soft);
}
.btn-ghost:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.btn-lg { font-size: 17px; padding: 16px 36px; }
.btn-block { width: 100%; }
.btn-nav { padding: 10px 24px; font-size: 15px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-color: #eef3f9;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand img { height: 38px; }
.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 28px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--blue-dark); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--navy);
  transition: 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 通用区块 ---------- */
.section { padding: 100px 0; position: relative; }
.section-soft { background: var(--soft); }

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
}
.kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--blue-dark);
  background: var(--blue-light);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 36px;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 17px; }

h2 { font-weight: 800; }
h3 { font-weight: 800; color: var(--navy); }

/* ---------- 装饰元素 ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
}
.blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 224, 138, 0.7), rgba(255, 224, 138, 0));
  top: -120px; right: -100px;
}
.blob-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(214, 232, 255, 0.9), rgba(214, 232, 255, 0));
  bottom: -120px; left: -120px;
}
.blob-3 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  top: -160px; left: -140px;
}
.deco {
  position: absolute;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}
.deco-star1 { color: var(--yellow); font-size: 30px; top: 130px; left: 8%; animation: float 5s ease-in-out infinite; }
.deco-star2 { color: var(--blue-soft); font-size: 44px; top: 60%; right: 6%; animation: float 6s ease-in-out infinite; }
.deco-cloud { color: #fff; font-size: 70px; top: 22%; right: 14%; opacity: 0.9; animation: float 8s ease-in-out infinite; }
.deco-star3 { color: var(--yellow-light); font-size: 38px; bottom: 16%; right: 10%; animation: float 6s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

.pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
  background: var(--white);
  border: 2px solid var(--blue-soft);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.pill-light {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 90px;
  background: linear-gradient(180deg, #eaf4ff 0%, #f8fbff 70%, #ffffff 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-text h1 {
  font-size: 54px;
  line-height: 1.25;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-text h1 .hl {
  color: var(--blue-dark);
  position: relative;
  white-space: nowrap;
}
.hero-text h1 .hl::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 6px;
  height: 14px;
  background: var(--yellow);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.85;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero-points {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.hero-points li {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-points .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 200, 61, 0.25);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art > img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.float-card strong { display: block; font-size: 14px; color: var(--navy); }
.float-card small { font-size: 12px; color: var(--muted); }
.fc-emoji {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--blue-light);
}
.float-card-1 { top: 16%; left: -6%; animation: float 5.5s ease-in-out infinite; }
.float-card-2 { bottom: 14%; right: -4%; animation: float 6.5s ease-in-out infinite; }
.float-card-2 .fc-emoji { background: var(--yellow-light); }

/* ---------- 数据条 ---------- */
.stats {
  margin: -46px auto 0;
  position: relative;
  z-index: 5;
}
.stats-grid {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 20px;
}
.stat {
  text-align: center;
  border-right: 1px dashed #e3ecf6;
}
.stat:last-child { border-right: none; }
.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
}
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- 功能特色 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 2px solid #eef3f9;
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-soft);
}
.feat-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feat-icon svg { width: 32px; height: 32px; }
.ic-yellow { background: var(--yellow-light); }
.ic-yellow svg { fill: var(--yellow-deep); }
.ic-blue { background: var(--blue-light); }
.ic-blue svg { fill: var(--blue-dark); }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--muted); }

/* ---------- 玩中学 ---------- */
.play-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.play-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.play-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.play-img {
  overflow: hidden;
  background: var(--blue-light);
}
.play-img img {
  width: 100%;
  transition: transform 0.5s var(--ease);
}
.play-card:hover .play-img img { transform: scale(1.06); }
.play-body { padding: 22px 24px 26px; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.tag-yellow { background: var(--yellow-light); color: var(--yellow-deep); }
.tag-blue { background: var(--blue-light); color: var(--blue-dark); }
.play-body h3 { font-size: 20px; margin-bottom: 8px; }
.play-body p { font-size: 15px; color: var(--muted); }

/* ---------- 展示区 ---------- */
.showcase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.showcase img { width: 100%; }
.showcase-tags {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 40px 30px 26px;
  background: linear-gradient(180deg, transparent, rgba(29, 42, 59, 0.78));
}
.showcase-tags span {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---------- 左右分栏 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-reverse .split-img { order: 2; }
.split-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 6px solid var(--white);
}
.split-text h2 {
  font-size: 34px;
  color: var(--navy);
  line-height: 1.35;
  margin: 14px 0 14px;
}
.split-text > p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 22px;
}
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
.check-list li i {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  position: relative;
  margin-top: 3px;
}
.check-list li i::after {
  content: "";
  position: absolute;
  left: 8px; top: 5px;
  width: 6px; height: 11px;
  border: solid var(--navy);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.section-parent {
  background: linear-gradient(180deg, #f3f8ff, #eaf4ff);
}

/* ---------- 预约留资 ---------- */
.reserve {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  overflow: hidden;
}
.reserve-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.reserve-text h2 {
  font-size: 38px;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 16px;
}
.reserve-text > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin-bottom: 24px;
}
.reserve-benefits { display: flex; flex-direction: column; gap: 12px; }
.reserve-benefits li {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.reserve-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-lg);
}
.reserve-form h3 {
  font-size: 24px;
  margin-bottom: 22px;
  text-align: center;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}
.field input,
.field select {
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
  padding: 13px 16px;
  border: 2px solid #e6edf5;
  border-radius: 14px;
  background: var(--soft);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.field.invalid input,
.field.invalid select { border-color: #ff6b6b; background: #fff5f5; }
.err {
  display: block;
  color: #ff5a5a;
  font-size: 12.5px;
  margin-top: 5px;
  min-height: 4px;
}
.agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 4px;
}
.agree input { margin-top: 3px; accent-color: var(--blue); flex: none; }
.reserve-form .btn { margin-top: 14px; }
.form-note {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--white);
  border: 2px solid #eef3f9;
  border-radius: 18px;
  padding: 4px 24px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq-item[open] {
  border-color: var(--blue-soft);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--muted);
  font-size: 15px;
  padding-bottom: 20px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--navy);
  color: #c4d0dd;
  padding: 60px 0 26px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img {
  height: 40px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: 14px; color: #93a3b3; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: #a9b6c4;
  margin-bottom: 9px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--yellow); }
.footer-contact { font-size: 14px; color: #a9b6c4; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  font-size: 13px;
  color: #7c8b9b;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(40px);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 200;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 滚动揭示动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text h1 { font-size: 42px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art > img { max-width: 320px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .play-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stat:nth-child(2) { border-right: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse .split-img { order: 0; }
  .reserve-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .container { padding: 0 20px; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 24px; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .btn-nav { display: none; }
  .hero { padding: 120px 0 70px; }
  .hero-text h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .section-head h2 { font-size: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .play-grid { grid-template-columns: 1fr; }
  .reserve-text h2 { font-size: 28px; }
  .split-text h2 { font-size: 26px; }
  .reserve-form { padding: 30px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .float-card-1 { left: 0; }
  .float-card-2 { right: 0; }
  .deco-cloud { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
