/* =========================================================
   学而思学习机 · 广州花都融创茂店 —— 落地页复刻样式
   风格：暖米白 · 学而思红 · 衬线标题 · 杂志感排版
   ========================================================= */

:root {
  --bg: #fffdfb;
  --bg-soft: #f6f1e9;
  --bg-cream: #f8f3ee;
  --card: #ffffff;
  --red: #b92931;
  --red-deep: #9a1f27;
  --red-soft: #fbefed;
  --red-mist: #fbeceb;
  --ink: #2d2929;
  --ink-soft: #8e8581;
  --ink-faint: #b3aaa4;
  --line: #ece3d9;
  --line-soft: #f2ece4;

  --font-serif: "Georgia", "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(45, 41, 41, 0.06);
  --shadow-hover: 0 16px 40px rgba(185, 41, 49, 0.10);
  --container: 1120px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.35; }

.section { padding: 96px var(--gutter); }
.section-intro { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-intro h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: 0.01em; }
.section-copy { color: var(--ink-soft); margin-top: 18px; font-size: 15px; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  font-weight: 600;
}

/* ---------- 按钮 ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}
.button span { transition: transform 0.25s ease; }
.button:hover span { transform: translateX(4px); }

.button.primary { background: var(--red); color: #fff; }
.button.primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(185, 41, 49, 0.28); }

.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button.ghost:hover { border-color: var(--red); color: var(--red); }

.button.light { background: #fff; color: var(--ink); }
.button.light:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); }

.button.outline { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.6); }
.button.outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.button.full { width: 100%; justify-content: center; }

.text-button {
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}
.text-button span { transition: transform 0.25s ease; }
.text-button:hover span { transform: translateX(4px); }
.text-button::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.text-button:hover::after { transform: scaleX(1); }

/* =========================================================
   顶部主视觉
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 96px;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--red-soft) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, var(--bg-soft) 0%, transparent 55%),
    var(--bg);
}
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(45,41,41,0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--container); width: 100%; margin: 0 auto; }

.eyebrow { font-size: 13px; letter-spacing: 0.18em; color: var(--red); font-weight: 600; margin-bottom: 30px; }

.hero-mark { font-family: var(--font-serif); font-size: 16px; line-height: 1.6; color: var(--ink); margin-bottom: 26px; }
.hero-mark span { display: block; font-size: 13px; letter-spacing: 0.3em; color: var(--ink-soft); margin-top: 4px; }

.hero h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.25; font-weight: 500; }
.hero h1 em { font-style: normal; color: var(--red); position: relative; }
.hero h1 em::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 4px; height: 12px;
  background: var(--red-mist); z-index: -1; border-radius: 2px;
}

.hero-copy { margin-top: 28px; max-width: 520px; color: var(--ink-soft); font-size: 16px; }

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

.store-line { margin-top: 44px; font-size: 13px; letter-spacing: 0.06em; color: var(--ink-faint); }

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--red);
  opacity: 0.12;
  pointer-events: none;
}
.orbit-one { width: 420px; height: 420px; right: -120px; top: -120px; }
.orbit-two { width: 260px; height: 260px; right: 40px; top: 40px; border-color: var(--ink); opacity: 0.07; }

/* =========================================================
   顾虑区
   ========================================================= */
.concerns-section { background: var(--bg-cream); }

.concern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.concern-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.concern-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon { font-size: 20px; color: var(--red); }
.concern-card h3 { font-size: 17px; margin: 16px 0 10px; }
.concern-card p { font-size: 14px; color: var(--ink-soft); }

/* =========================================================
   门店照片区
   ========================================================= */
.store-photo-section { padding: 0 var(--gutter) 96px; }
.store-photo-wrap {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.store-photo-wrap img { width: 100%; height: 460px; object-fit: cover; }
.store-photo-caption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 40px 44px;
  background: linear-gradient(to top, rgba(45, 41, 41, 0.82), transparent);
  color: #fff;
  width: 100%;
}
.store-photo-caption .kicker { color: #f6c8c5; }
.store-photo-caption h2 { font-size: 30px; margin-bottom: 10px; }
.store-photo-caption p { font-size: 14px; opacity: 0.85; }
.store-photo-caption .text-button { color: #fff; margin-top: 18px; }
.store-photo-caption .text-button::after { background: #fff; }

/* =========================================================
   产品区
   ========================================================= */
.product-section { background: var(--bg); }

.product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: var(--container);
  margin: 0 auto 28px;
  align-items: stretch;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.product-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.product-top p { font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); }
.recommended {
  font-size: 11px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #f3c9c7;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
}

.product-card h3 { font-size: 28px; }
.price { margin: 14px 0 4px; font-size: 34px; font-weight: 600; letter-spacing: 0.01em; }
.price small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-faint); letter-spacing: 0.1em; margin-top: 2px; }
.positioning { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }

.product-notes { margin-top: 24px; border-top: 1px solid var(--line-soft); padding-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.product-notes b { display: block; font-size: 12px; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 4px; }
.product-notes p { font-size: 13.5px; color: var(--ink-soft); }

.product-card .text-button { margin-top: auto; padding-top: 22px; }

.product-card.featured {
  border-color: var(--red);
  border-width: 2px;
  box-shadow: 0 0 0 1px var(--red), var(--shadow);
  position: relative;
}
.product-card.featured:hover { box-shadow: 0 0 0 1px var(--red), var(--shadow-hover); }

.asset-note { text-align: center; font-size: 13px; color: var(--ink-faint); max-width: var(--container); margin: 0 auto; }

/* =========================================================
   3 步选机参考
   ========================================================= */
.selector-wrap { background: var(--bg-cream); padding: 96px var(--gutter); }
.selector {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--card);
  border-radius: 20px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  box-shadow: var(--shadow);
}
.selector-intro h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.selector-intro p:last-child { color: var(--ink-soft); font-size: 15px; }

.quiz fieldset { border: none; margin-bottom: 22px; }
.quiz legend { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 12px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-row button {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  background: #fff;
  transition: all 0.2s ease;
}
.choice-row button:hover { border-color: var(--red); color: var(--red); }
.choice-row button.selected {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 600;
}
.choice-row button.tapped { transform: scale(0.94); }

.quiz-result {
  margin-top: 18px;
  background: var(--red-soft);
  border: 1px solid #f3c9c7;
  border-radius: var(--radius);
  padding: 22px 24px;
}
.quiz-result b { color: var(--red); font-size: 15px; }
.quiz-result p { font-size: 14px; color: var(--ink); margin-top: 8px; }
.quiz-result .result-actions { margin-top: 16px; }

/* =========================================================
   方法论区
   ========================================================= */
.method { text-align: center; max-width: 760px; margin: 0 auto; }
.method .kicker { margin-bottom: 14px; }
.method h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 22px; }
.method > p { color: var(--ink-soft); font-size: 15.5px; }

.service-list { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.service-list span {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13.5px;
  color: var(--ink);
}

/* =========================================================
   品牌对比区
   ========================================================= */
.brand-section { background: var(--bg); padding: 0 var(--gutter) 96px; }
.brand-card {
  max-width: var(--container);
  margin: 0 auto;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(185,41,49,0.05), transparent 60%),
    var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
}
.brand-card h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 16px; }
.brand-card > p { max-width: 640px; margin: 0 auto; color: var(--ink-soft); font-size: 15px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--bg-cream); }

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item.open { border-color: #e8bdb9; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15.5px;
  font-weight: 600;
  text-align: left;
}
.faq-q b {
  font-size: 22px;
  font-weight: 400;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}
.faq-item.open .faq-q b { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a p { padding: 0 24px 22px; color: var(--ink-soft); font-size: 14.5px; }

/* =========================================================
   最终 CTA + 页脚
   ========================================================= */
.final-cta {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 104px var(--gutter);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 20% -20%, rgba(255,255,255,0.14), transparent 60%);
}
.final-cta .kicker { color: #f6c8c5; }
.final-cta h2 { font-size: clamp(30px, 4.2vw, 44px); color: #fff; margin-bottom: 34px; }
.final-cta .hero-actions { justify-content: center; position: relative; z-index: 2; }

footer {
  background: #262220;
  color: #b3aaa4;
  text-align: center;
  padding: 56px var(--gutter) 64px;
}
footer strong { display: block; color: #efe9e2; font-family: var(--font-serif); font-weight: 500; font-size: 16px; }
footer > p { font-size: 13.5px; margin-top: 8px; }

.footer-contact {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: left;
}
.footer-contact img { width: 120px; height: 120px; border-radius: 8px; }
.footer-contact .placeholder-info { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.footer-contact .tiny { font-size: 12px; margin-top: 10px; opacity: 0.6; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 900px) {
  .concern-grid { grid-template-columns: repeat(2, 1fr); }
  .product-list { grid-template-columns: 1fr; max-width: 520px; }
  .selector { grid-template-columns: 1fr; padding: 40px 28px; }
  .hero { min-height: auto; }
}

@media (max-width: 560px) {
  .section { padding: 64px var(--gutter); }
  .concern-grid { grid-template-columns: 1fr; }
  .store-photo-wrap img { height: 380px; }
  .store-photo-caption { padding: 26px 24px; }
  .brand-card { padding: 40px 26px; }
  .hero { padding: 80px var(--gutter) 64px; }
}

/* =========================================================
   抽屉弹窗（预约 / 微信 / 成功页）
   ========================================================= */
[hidden] { display: none !important; }

.modal-backdrop {
  z-index: 20;
  background: rgba(31, 27, 26, 0.55);
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: fixed;
  inset: 0;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }

.modal-backdrop .modal {
  background: #fffdfb;
  border-radius: 8px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  padding: 34px 24px 28px;
  position: relative;
  overflow: auto;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal-backdrop.show .modal { transform: none; opacity: 1; }

.modal-close {
  color: #8e8581;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  position: absolute;
  top: 13px;
  right: 16px;
  z-index: 2;
}
.modal-close:hover { color: var(--red); }

.modal .kicker { margin-bottom: 16px; }
.modal h2 {
  font-size: 28px;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.005em;
  margin: 0;
}
.modal form { display: grid; gap: 14px; margin-top: 22px; }
.modal label {
  color: #5d5652;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  display: grid;
}
.modal input,
.modal select {
  color: #393330;
  background: #fff;
  border: 1px solid #ded5ce;
  border-radius: 3px;
  height: 45px;
  padding: 0 11px;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
}
.modal input:focus,
.modal select:focus { outline: none; border-color: var(--red); }
.modal form .button { margin-top: 4px; }

.form-note { color: #978d87; font-size: 11px; line-height: 1.6; margin-top: 14px; text-align: center; }

/* 微信抽屉二维码 */
.modal-copy { color: #766a64; font-size: 13px; line-height: 1.75; margin: 0 6px 18px; text-align: center; }
.qr-placeholder {
  background: #fff;
  border: 1px solid #eee5de;
  width: 190px;
  height: 190px;
  margin: 24px auto 17px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
}
.qr-placeholder img { object-fit: cover; width: 100%; height: 100%; display: block; }

/* 企业微信咨询卡片（重新设计版） */
.wechat-card {
  margin: 24px auto 20px;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f0e6de;
  box-shadow: 0 12px 32px rgba(185, 41, 49, 0.10), 0 2px 8px rgba(31, 27, 26, 0.05);
}
.wechat-card-head {
  padding: 16px 18px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fffdfb 0%, #fbf3ec 100%);
  border-bottom: 1px solid #f3eae3;
}
.wechat-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
}
.wechat-person { display: flex; flex-direction: column; gap: 3px; }
.wechat-person strong { font-size: 15.5px; color: #2d2929; font-family: var(--font-serif); letter-spacing: 0.5px; }
.wechat-person span { font-size: 12px; color: #978d87; }
.wechat-qr {
  padding: 22px 22px 4px;
  display: flex;
  justify-content: center;
}
.wechat-qr img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #f0e6de;
  display: block;
}
.wechat-card-tip { text-align: center; padding: 12px 16px 18px; color: #766a64; font-size: 12.5px; line-height: 1.7; }

/* 成功页 */
.thank-you { text-align: center; padding: 12px 0 6px; }
.thank-you .kicker { margin-bottom: 20px; }
.thank-you .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
}
.thank-you h2 { font-size: 23px; line-height: 1.5; margin-bottom: 12px; }
.thank-you > p { color: var(--ink-soft); font-size: 13px; margin-bottom: 26px; }
.thank-you .button { width: 100%; justify-content: center; }

/* 手机端：抽屉从底部弹出 */
@media (max-width: 560px) {
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-backdrop .modal {
    border-radius: 12px 12px 0 0;
    max-width: none;
    max-height: 76vh;
    transform: translateY(100%);
  }
  .modal-backdrop.show .modal { transform: none; }
}
