/* =====================================================
   叮铛英语 Echo English 官网样式
   品牌色取自 LOGO：明黄 #FFC53D / 宝蓝 #2B6BE0
   ===================================================== */
:root {
  --blue: #2B6BE0;
  --blue-dark: #1E4FBF;
  --blue-deep: #16357A;
  --yellow: #FFC53D;
  --yellow-light: #FFF3D6;
  --ink: #1F2430;
  --ink-2: #5A6472;
  --bg: #FFFFFF;
  --bg-tint: #F5F8FE;
  --line: #E6ECF7;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(30, 79, 191, .08);
  --shadow-lg: 0 20px 50px rgba(30, 79, 191, .14);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* 防御性：杜绝任何意外横向滚动 */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.container-narrow { width: min(760px, 92%); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; text-align: center;
  border-radius: 999px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--yellow) 0%, #FFB020 100%);
  color: var(--blue-deep);
  box-shadow: 0 8px 20px rgba(255, 176, 32, .35);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(255, 176, 32, .45); }
.btn-lg { padding: 16px 38px; font-size: 17px; }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-block { display: block; width: 100%; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(30, 79, 191, .06); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-avatar { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 19px; color: var(--blue); letter-spacing: 1px; }
.brand-text small { font-size: 11px; color: var(--blue); opacity: .75; letter-spacing: .5px; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  color: var(--ink); font-size: 15px; font-weight: 500; padding: 6px 0; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px; border-radius: 3px; background: var(--yellow);
  transition: width .25s;
}
.main-nav a:hover { text-decoration: none; color: var(--blue); }
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--blue); transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero（宣传片背景视频） ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-poster,
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  /* 左侧压白保证文案/表单可读，右侧透出宣传片画面 */
  background:
    linear-gradient(100deg,
      rgba(255, 255, 255, .96) 0%,
      rgba(255, 255, 255, .90) 40%,
      rgba(255, 255, 255, .55) 66%,
      rgba(247, 249, 253, .28) 100%),
    linear-gradient(to top, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 22%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 40px; padding: 64px 0 72px;
}
.hero-eyebrow {
  display: inline-block; background: rgba(255, 243, 214, .92); color: var(--blue-dark);
  font-size: 14px; font-weight: 600; padding: 7px 18px; border-radius: 999px; margin-bottom: 20px;
  max-width: 100%;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.22; letter-spacing: 1px; margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--blue); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 4px;
  height: 12px; background: rgba(255, 197, 61, .45); border-radius: 6px; z-index: -1;
}
.hero-sub { color: var(--ink-2); font-size: 17px; margin-bottom: 30px; }

/* 微信扫码预约卡（替代原手机号领课表单） */
.qr-card {
  display: flex; align-items: center; gap: 20px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 26px; max-width: 470px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.qr-img {
  flex-shrink: 0; width: 148px; height: auto;
  border-radius: 12px; border: 1px solid var(--line);
  background: #fff;
}
.qr-info strong { display: block; font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.qr-info p { font-size: 14px; color: var(--ink-2); line-height: 1.65; margin-bottom: 12px; }
.qr-info em { font-style: normal; color: #E4574D; font-weight: 700; }
.qr-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-tags span {
  font-size: 12.5px; font-weight: 600; color: var(--blue-dark);
  background: rgba(227, 237, 255, .9); border-radius: 999px; padding: 5px 12px;
}

/* Hero 视觉：吉祥物悬浮于宣传片之上 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-glow {
  position: absolute; inset: 4% 6%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .82), rgba(255, 255, 255, .38) 62%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
}
.hero-mascot { position: relative; z-index: 1; width: min(440px, 88%); filter: drop-shadow(0 24px 34px rgba(30, 79, 191, .18)); }
.float-badge {
  position: absolute; z-index: 2; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); white-space: nowrap; animation: floaty 4.5s ease-in-out infinite;
}
.badge-1 { top: 10%; left: -2%; animation-delay: 0s; }
.badge-2 { top: 42%; right: -3%; animation-delay: 1.2s; }
.badge-3 { bottom: 6%; left: 6%; animation-delay: 2.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .float-badge { animation: none; }
}

/* 宣传片声音开关 */
.video-sound {
  position: absolute; right: 28px; bottom: 22px; z-index: 2;
  background: rgba(255, 255, 255, .86); border: 1px solid var(--line);
  backdrop-filter: blur(6px); border-radius: 999px;
  padding: 9px 18px; font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--blue-dark); cursor: pointer; box-shadow: var(--shadow);
  transition: background .2s, color .2s;
}
.video-sound:hover { background: #fff; }
.video-sound.on { color: #C88A00; }

/* ===== 信任条 ===== */
.trust-bar { background: var(--blue-deep); color: #fff; padding: 30px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-item strong { display: block; font-size: 30px; color: var(--yellow); letter-spacing: 1px; }
.trust-item span { font-size: 14px; opacity: .85; }

/* ===== 通用 Section ===== */
.section { padding: 84px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: 1px; margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 16px; }
.hl { color: var(--blue); position: relative; }

/* ===== 优势卡片 ===== */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.adv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 28px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.adv-icon {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  font-size: 28px; margin-bottom: 20px;
}
.icon-blue { background: linear-gradient(135deg, #E3EDFF, #C9DBFB); }
.icon-yellow { background: linear-gradient(135deg, #FFF3D6, #FFE29A); }
.adv-card h3 { font-size: 19px; margin-bottom: 10px; }
.adv-card > p { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.tick-list li {
  position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink-2); margin-bottom: 9px;
}
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 17px; height: 17px; border-radius: 50%; background: var(--yellow-light);
  color: #C88A00; font-size: 11px; font-weight: 700; display: grid; place-items: center; margin-top: 5px;
}
.tick-list strong { color: var(--ink); }

/* ===== 外教卡片 ===== */
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teacher-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 22px; text-align: center; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-size: 36px; font-weight: 800; color: #fff;
  border: 4px solid #fff; box-shadow: 0 8px 20px rgba(30, 79, 191, .18);
}
.avatar-a { background: linear-gradient(135deg, #FFB020, #FF8A3D); }
.avatar-b { background: linear-gradient(135deg, #4D8DFF, #2B6BE0); }
.avatar-c { background: linear-gradient(135deg, #35C08E, #1E9E70); }
.avatar-d { background: linear-gradient(135deg, #9B6BFF, #6E46E0); }
.teacher-card h3 { font-size: 19px; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.country {
  font-size: 11.5px; font-weight: 600; color: #fff;
  background: var(--blue); padding: 2px 9px; border-radius: 999px; line-height: 1.5;
}
.t-cert {
  display: inline-block; background: var(--yellow-light); color: #C88A00;
  font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.teacher-card ul { text-align: left; }
.teacher-card li {
  font-size: 13.5px; color: var(--ink-2); padding: 7px 0 7px 20px;
  border-bottom: 1px dashed var(--line); position: relative;
}
.teacher-card li:last-child { border-bottom: none; }
.teacher-card li::before { content: "•"; position: absolute; left: 6px; color: var(--blue); font-weight: 700; }
.teacher-note { text-align: center; color: var(--ink-2); font-size: 13px; margin-top: 30px; }

/* ===== 课程体系 ===== */
.level-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 40px; }
.level-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.level-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.level-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
}
.level-card:nth-child(1)::before { background: var(--yellow); }
.level-card:nth-child(2)::before { background: var(--blue); }
.level-card:nth-child(3)::before { background: linear-gradient(90deg, var(--yellow), var(--blue)); }
.level-tag {
  display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 14px;
  border-radius: 999px; margin-bottom: 14px;
}
.tag-yellow { background: var(--yellow-light); color: #C88A00; }
.tag-blue { background: #E3EDFF; color: var(--blue-dark); }
.level-card h3 { font-size: 20px; margin-bottom: 10px; }
.level-card p { color: var(--ink-2); font-size: 15px; }

.material-band {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  border-radius: var(--radius-lg); color: #fff; padding: 40px 44px;
  display: flex; align-items: center; gap: 30px; justify-content: space-between; flex-wrap: wrap;
}
.material-text h3 { font-size: 22px; margin-bottom: 10px; }
.material-text p { opacity: .88; font-size: 15px; max-width: 560px; }
.material-badges { display: flex; flex-wrap: wrap; gap: 12px; max-width: 340px; }
.material-badges span {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
}

/* ===== 教学方法 ===== */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.method-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 24px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.method-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.method-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--blue-dark); }
.method-card h3 small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-top: 3px; }
.method-card p { font-size: 14.5px; color: var(--ink-2); }

/* ===== 领课 CTA ===== */
.section-cta {
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(255, 197, 61, .16), transparent 60%),
    radial-gradient(700px 320px at 88% 100%, rgba(43, 107, 224, .12), transparent 60%),
    var(--bg);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; list-style: none; counter-reset: step; margin-bottom: 44px; }
.steps li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 26px; text-align: center; box-shadow: var(--shadow); position: relative;
}
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px;
  border-radius: 50%; background: linear-gradient(135deg, var(--yellow), #FFB020);
  color: var(--blue-deep); font-size: 21px; font-weight: 800;
  box-shadow: 0 8px 18px rgba(255, 176, 32, .35);
}
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 14.5px; }
.trial-benefits {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 40px; text-align: center; max-width: 640px; margin: 0 auto;
}
.trial-benefits h3 { font-size: 21px; margin-bottom: 20px; }
.trial-benefits ul {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; text-align: left;
  margin-bottom: 26px; max-width: 440px; margin-inline: auto;
}
.trial-benefits li {
  background: var(--bg-tint); border-radius: 12px; padding: 13px 16px; font-size: 15px; font-weight: 600;
  position: relative; padding-left: 38px;
}
.trial-benefits li::before {
  content: "🎁"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
}

/* ===== 学员口碑 ===== */
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.story-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 30px 24px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stars { color: #FFB020; font-size: 17px; letter-spacing: 3px; margin-bottom: 12px; }
.story-card blockquote { font-size: 15.5px; color: var(--ink); margin-bottom: 14px; }
.story-card figcaption { font-size: 13.5px; color: var(--ink-2); }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 26px; box-shadow: var(--shadow); transition: border-color .25s;
}
.faq-item[open] { border-color: var(--blue); }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-arrow {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-tint);
  position: relative; transition: transform .3s, background .3s;
}
.faq-arrow::before, .faq-arrow::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--blue);
  border-radius: 2px; transform: translate(-50%, -50%);
}
.faq-arrow::before { width: 12px; height: 2px; }
.faq-arrow::after { width: 2px; height: 12px; }
.faq-item[open] .faq-arrow { transform: rotate(45deg); background: var(--yellow-light); }
.faq-item p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }

/* ===== 页脚 ===== */
.site-footer { background: var(--blue-deep); color: #fff; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { margin-bottom: 12px; }
.footer-brand strong { display: block; font-size: 18px; margin-bottom: 10px; }
.footer-brand p { font-size: 14px; opacity: .8; max-width: 340px; }
.footer-col h3 { font-size: 16px; margin-bottom: 16px; color: var(--yellow); }
.footer-col a { display: block; color: #fff; opacity: .82; font-size: 14.5px; padding: 5px 0; }
.footer-col a:hover { opacity: 1; color: var(--yellow); }
.footer-col p { font-size: 14px; opacity: .82; margin-bottom: 12px; }
.footer-col p strong { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); padding: 20px 0;
  font-size: 13px; opacity: .65; text-align: center;
}

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--blue); color: #fff; font-size: 19px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transform: translateY(14px); transition: .3s;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--blue-dark); }

/* ===== 滚动浮现（仅 JS 可用时启用，避免无 JS 时内容被隐藏） ===== */
.js-enabled .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js-enabled .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .qr-card { margin-inline: auto; }
  .hero-visual { order: -1; }
  .hero-mascot { width: min(320px, 70%); }
  .adv-grid, .level-track { grid-template-columns: 1fr 1fr; }
  .teacher-grid, .method-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 18px 5%; gap: 4px;
  }
  .main-nav.open a { padding: 12px 0; font-size: 16px; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero-inner { padding: 40px 0 52px; }
  /* 移动端不自动播背景视频：用海报图省流量 */
  .hero-video, .video-sound { display: none; }
  .hero-scrim {
    background: linear-gradient(to bottom, rgba(255,255,255,.72), rgba(255,255,255,.9) 55%, rgba(255,255,255,.96));
  }
  .hero h1 { font-size: 30px; }
  .qr-card { flex-direction: column; text-align: center; padding: 24px 20px; }
  .qr-tags { justify-content: center; }
  .hero-eyebrow { font-size: 12px; padding: 6px 14px; }
  .trust-item strong { font-size: 24px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid, .level-track, .teacher-grid, .method-grid, .steps, .story-grid { grid-template-columns: 1fr; }
  .trial-benefits ul { grid-template-columns: 1fr; }
  .material-band { padding: 30px 24px; }
  .badge-1 { left: 0; } .badge-2 { right: 0; }
  .float-badge { font-size: 12.5px; padding: 7px 13px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
