/* ============================================================
   东方心语家庭教育 — 全站样式
   ============================================================ */
:root {
  --bg: #FAF6EF;
  --paper: #FFFFFF;
  --ink: #22312D;
  --muted: #66756F;
  --brand: #1F4B43;
  --brand-deep: #14352F;
  --brand-soft: #E8F0EC;
  --accent: #C96F4A;
  --accent-deep: #B05A36;
  --accent-soft: #F8ECE2;
  --gold: #D9A05B;
  --line: #E7E0D3;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(34, 49, 45, .08);
  --shadow-lg: 0 18px 50px rgba(34, 49, 45, .14);
  --serif: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(34,49,45,.05); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, #2E6B5E 100%);
  color: #fff; display: grid; place-items: center; flex: none;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.logo-text small { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 400; color: var(--muted); letter-spacing: 2.5px; line-height: 1.3; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--ink); position: relative; padding: 6px 0; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 2px; background: var(--accent); border-radius: 2px;
  transition: width .25s, left .25s;
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; left: 0; }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 10px 22px !important; border-radius: 999px; transition: transform .25s, background .25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--paper); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 3px; color: var(--accent-deep);
  background: var(--accent-soft); border-radius: 999px; padding: 6px 16px; margin-bottom: 18px;
}
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px; font-size: 15.5px; font-weight: 600;
  cursor: pointer; border: none; transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(31,75,67,.25); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(201,111,74,.3); }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px;
  color: var(--brand); background: var(--brand-soft);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .5; transform: scale(1.35);} }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--accent-deep); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 10px;
  background: var(--accent-soft); z-index: -1; border-radius: 4px;
}
.hero-sub { color: var(--muted); font-size: 17.5px; margin: 22px 0 34px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-img { position: relative; }
.hero-img img {
  border-radius: 24px 24px 24px 4px;
  box-shadow: var(--shadow-lg);
  width: 100%; aspect-ratio: 3/2; object-fit: cover; object-position: 60% center;
}
.hero-chip {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--paper); border-radius: 14px; padding: 12px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.hero-chip .num { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--brand); }

/* ---------- 数据条 ---------- */
.stats { background: var(--brand); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 700; }
.stat b i { font-style: normal; color: var(--gold); font-size: 20px; margin-left: 2px; }
.stat span { font-size: 13.5px; opacity: .82; letter-spacing: 1px; }

/* ---------- 四大议题 ---------- */
.issues-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.issue-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.issue-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.issue-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 20px; background: var(--brand-soft);
}
.issue-card:nth-child(2) .issue-icon { background: var(--accent-soft); }
.issue-card:nth-child(3) .issue-icon { background: #F3EAD7; }
.issue-card:nth-child(4) .issue-icon { background: #E9EAF4; }
.issue-card h3 { font-size: 19px; margin-bottom: 10px; }
.issue-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- 课程卡片 ---------- */
.course-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.course-card {
  background: var(--paper); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-cover { position: relative; overflow: hidden; }
.course-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .6s; }
.course-card:hover .course-cover img { transform: scale(1.04); }
.tag-ribbon {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,.94); color: var(--brand);
  font-size: 12.5px; letter-spacing: 2px; padding: 5px 14px; border-radius: 999px; font-weight: 600;
}
.course-body { padding: 28px 28px 26px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 20.5px; line-height: 1.5; }
.course-body h3 .lecturer { color: var(--accent-deep); margin-right: 6px; }
.course-body p { font-size: 14.5px; color: var(--muted); margin: 14px 0 22px; flex: 1; }
.course-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 18px; }
.price { font-family: var(--serif); color: var(--accent-deep); font-weight: 700; }
.price .cur { font-size: 15px; }
.price .num { font-size: 30px; }
.course-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--brand); }
.course-more .arr { transition: transform .25s; }
.course-more:hover .arr { transform: translateX(4px); }

/* ---------- 专家团队 ---------- */
.mentor { display: grid; grid-template-columns: 400px 1fr; gap: 64px; align-items: center; }
.mentor-photo { position: relative; }
.mentor-photo img { border-radius: 24px 4px 24px 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.mentor-photo::before {
  content: ""; position: absolute; inset: 20px -20px -20px 20px;
  border: 2px solid var(--accent); border-radius: 24px 4px 24px 24px; z-index: -1; opacity: .4;
}
.mentor-info h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
.mentor-title { color: var(--accent-deep); font-size: 15px; letter-spacing: 1px; margin-bottom: 22px; }
.mentor-info > p { color: var(--muted); margin-bottom: 24px; }
.cred-list { display: grid; gap: 12px; margin-bottom: 30px; }
.cred-list li { display: flex; gap: 10px; font-size: 15px; align-items: flex-start; }
.cred-list .ck { color: var(--brand); font-weight: 700; flex: none; }

/* ---------- 服务流程 ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step-card {
  position: relative; background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--line); padding: 34px 24px 28px; text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num {
  counter-increment: step; width: 44px; height: 44px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 19px; font-weight: 700;
}
.step-num::before { content: counter(step); }
.step-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.step-card p { font-size: 13.8px; color: var(--muted); }

/* ---------- 家长心声 ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; transition: transform .3s, box-shadow .3s;
}
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.quote-mark { font-family: var(--serif); font-size: 46px; color: var(--accent); line-height: 1; opacity: .35; }
.quote-card p { font-size: 14.8px; color: var(--ink); margin: 10px 0 20px; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: none;
}
.quote-who b { display: block; font-size: 14.5px; }
.quote-who span { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand) 55%, #2E6B5E);
  border-radius: 28px; color: #fff; text-align: center;
  padding: 72px 8%; position: relative; overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06);
}
.cta-band::before { width: 300px; height: 300px; top: -120px; right: -80px; }
.cta-band::after { width: 200px; height: 200px; bottom: -90px; left: -60px; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.cta-band p { opacity: .85; margin-bottom: 32px; font-size: 16.5px; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- 页脚 ---------- */
.site-footer { background: #17211E; color: #C8D2CE; margin-top: 96px; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid h4 { color: #fff; font-size: 15.5px; margin-bottom: 18px; letter-spacing: 1px; }
.footer-grid p, .footer-grid li { font-size: 14px; opacity: .8; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a:hover { color: var(--gold); }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text small { color: #8FA39C; }
.footer-brand p { margin-top: 18px; max-width: 300px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: 13px; opacity: .55; }

/* ---------- 详情页 ---------- */
.page-hero { padding: 48px 0 56px; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--accent-deep); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }

.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.detail-main { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 44px 48px; }
.detail-cover { border-radius: 16px; overflow: hidden; margin-bottom: 34px; }
.detail-cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.detail-main h1 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.45; }
.detail-lecturer { color: var(--accent-deep); font-size: 15px; margin-top: 10px; letter-spacing: .5px; }
.detail-desc { color: var(--muted); margin: 20px 0 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.meta-pill {
  font-size: 13px; color: var(--brand); background: var(--brand-soft);
  padding: 6px 14px; border-radius: 999px;
}
.detail-block { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.detail-block h2 { font-size: 22px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.detail-block h2::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: var(--accent); }
.gain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gain-item { display: flex; gap: 10px; background: var(--bg); border-radius: 12px; padding: 16px 18px; font-size: 14.5px; align-items: flex-start; }
.gain-item .ck { color: var(--accent-deep); font-weight: 700; flex: none; }

.audience-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; font-size: 14.8px;
}
.audience-list .ico { flex: none; font-size: 18px; }

/* 大纲手风琴 */
.outline-acc { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head {
  width: 100%; background: var(--paper); border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px 22px; font-family: var(--sans); font-size: 15.5px; font-weight: 600; color: var(--ink); text-align: left;
}
.acc-head .acc-idx { font-family: var(--serif); color: var(--accent-deep); margin-right: 10px; }
.acc-head .chev { flex: none; transition: transform .3s; color: var(--muted); }
.acc-item.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-body-inner { padding: 2px 22px 20px 58px; color: var(--muted); font-size: 14.5px; }
.acc-body-inner li { padding: 5px 0; display: flex; gap: 8px; }
.acc-body-inner li::before { content: "·"; color: var(--accent); font-weight: 700; }
.acc-item.open .acc-body { max-height: 420px; }

/* FAQ */
.faq-acc .acc-head { font-size: 15px; }
.faq-acc .acc-body-inner { padding-left: 22px; }

/* 侧栏购买卡 */
.buy-card {
  position: sticky; top: 96px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 28px; box-shadow: var(--shadow);
}
.buy-price { display: flex; align-items: baseline; gap: 6px; color: var(--accent-deep); font-family: var(--serif); font-weight: 700; }
.buy-price .cur { font-size: 18px; }
.buy-price .num { font-size: 42px; line-height: 1; }
.buy-price .was { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: 14px; text-decoration: line-through; margin-left: 6px; }
.buy-tag { display: inline-block; font-size: 12.5px; color: #fff; background: var(--accent); border-radius: 999px; padding: 4px 12px; margin-top: 12px; }
.buy-card .btn { width: 100%; margin-top: 22px; }
.buy-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.buy-includes { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.buy-includes h4 { font-size: 14.5px; margin-bottom: 14px; }
.buy-includes li { display: flex; gap: 9px; font-size: 13.8px; color: var(--muted); padding: 5px 0; align-items: flex-start; }
.buy-includes .ck { color: var(--brand); flex: none; }
.guarantee { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; justify-content: space-around; font-size: 12.5px; color: var(--muted); }

/* 相关课程 */
.related-card {
  margin-top: 28px; background: var(--bg); border-radius: 16px; padding: 20px;
  display: flex; gap: 16px; align-items: center; transition: transform .3s, box-shadow .3s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.related-card img { width: 108px; height: 76px; object-fit: cover; border-radius: 10px; flex: none; }
.related-card h5 { font-size: 14.5px; line-height: 1.5; }
.related-card .go { font-size: 13px; color: var(--accent-deep); font-weight: 600; margin-top: 6px; display: inline-block; }

/* 讲师（详情页内嵌） */
.mentor-inline { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.mentor-inline img { width: 150px; height: 150px; border-radius: 20px; object-fit: cover; flex: none; box-shadow: var(--shadow); }
.mentor-inline h3 { font-size: 19px; }
.mentor-inline .mentor-title { margin: 4px 0 12px; }
.mentor-inline p { font-size: 14.5px; color: var(--muted); max-width: 560px; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .issues-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .course-list, .quote-grid { grid-template-columns: 1fr; }
  .mentor { grid-template-columns: 1fr; gap: 44px; }
  .mentor-photo { max-width: 380px; }
  .detail-grid { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .detail-main { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); padding: 18px 6% 26px; gap: 6px;
    box-shadow: 0 20px 40px rgba(34,49,45,.12); border-radius: 0 0 20px 20px;
    transform: translateY(-130%); transition: transform .35s; z-index: 99;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 4px; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: block; }
  .issues-grid, .steps-grid, .gain-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero-chip { left: 8px; }
}
