/* ==========================================================================
   Emotion Rooms — 全站样式
   暖色调、疗愈感，面向美国老师与家长
   ========================================================================== */

:root {
  --cream:      #FDFBF7;
  --cream-2:    #F7F3EC;
  --ink:        #2B3833;
  --ink-soft:   #4A5A54;
  --muted:      #6E7D77;
  --sage:       #7C9A8E;
  --sage-dark:  #55796B;
  --sage-light: #E4EDE8;
  --terra:      #D08A6E;
  --terra-dark: #B9704F;
  --line:       #E7E1D6;
  --white:      #FFFFFF;
  --shadow:     0 1px 2px rgba(43,56,51,.04), 0 8px 24px rgba(43,56,51,.06);
  --shadow-lg:  0 2px 4px rgba(43,56,51,.05), 0 20px 48px rgba(43,56,51,.10);
  --radius:     14px;
  --radius-lg:  22px;
  --maxw:       1160px;
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
                "Songti SC", serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 布局 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,251,247,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-size: 21px; font-weight: 600;
  color: var(--ink); letter-spacing: -.01em; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(145deg, var(--sage-light), var(--sage));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 15px; color: var(--ink-soft); font-weight: 500;
  white-space: nowrap;
}
.nav a:hover { color: var(--sage-dark); text-decoration: none; }
.nav a.active { color: var(--sage-dark); }
.nav-cta {
  background: var(--sage-dark); color: var(--white) !important;
  padding: 9px 18px; border-radius: 999px; font-size: 14.5px;
}
.nav-cta:hover { background: var(--ink); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 22px; color: var(--ink); padding: 4px 8px;
}

@media (max-width: 900px) {
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: 10px; border-radius: 999px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(760px 380px at 82% -10%, rgba(124,154,142,.16), transparent 62%),
    radial-gradient(560px 320px at 8% 8%, rgba(208,138,110,.10), transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sage-dark); background: var(--sage-light);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(34px, 5.2vw, 52px);
  line-height: 1.14; letter-spacing: -.02em; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--sage-dark); }
.hero p.lead {
  font-size: 19px; color: var(--muted); line-height: 1.72;
  max-width: 540px; margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-size: 16px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease;
  font-family: inherit;
}
.btn-primary { background: var(--sage-dark); color: var(--white); }
.btn-primary:hover { background: var(--ink); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-dark); text-decoration: none; }
.btn-terra { background: var(--terra); color: var(--white); }
.btn-terra:hover { background: var(--terra-dark); text-decoration: none; transform: translateY(-1px); }

.hero-art {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-lg);
}
.hero-art .art-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.hero-art .art-row:last-child { border-bottom: 0; }
.hero-art .art-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: var(--sage-light); display: flex; align-items: center;
  justify-content: center; font-size: 20px;
}
.hero-art .art-t { font-size: 15px; font-weight: 600; }
.hero-art .art-d { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 52px 0 44px; }
}

/* ---------- 栏目卡片 ---------- */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-serif); font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.2; letter-spacing: -.015em; font-weight: 600; margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: .2s ease; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--sage); }
.card .card-ico {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
  background: var(--sage-light); display: flex; align-items: center;
  justify-content: center; font-size: 24px;
}
.card h3 {
  font-family: var(--font-serif); font-size: 20px; font-weight: 600;
  margin-bottom: 9px; letter-spacing: -.01em;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--sage-dark); text-decoration: none; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.65; flex: 1; }
.card .card-more {
  margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--sage-dark);
}

/* ---------- 文章列表 ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.post {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s ease;
}
.post:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-thumb {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--sage-light), #D9E6E0);
  display: flex; align-items: center; justify-content: center; font-size: 42px;
}
.post-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-cat {
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--terra-dark); margin-bottom: 10px;
}
.post h3 {
  font-family: var(--font-serif); font-size: 19px; line-height: 1.32;
  font-weight: 600; margin-bottom: 10px;
}
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--sage-dark); text-decoration: none; }
.post p { font-size: 14.5px; color: var(--muted); line-height: 1.62; flex: 1; }
.post-meta { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- 订阅区 ---------- */
.signup {
  background: linear-gradient(150deg, var(--sage-dark), #45685C);
  border-radius: var(--radius-lg); padding: 56px 44px; color: var(--white);
  text-align: center; position: relative; overflow: hidden;
}
.signup::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 260px at 85% -20%, rgba(255,255,255,.16), transparent 60%);
}
.signup > * { position: relative; }
.signup h2 {
  font-family: var(--font-serif); font-size: clamp(25px, 3.4vw, 34px);
  font-weight: 600; letter-spacing: -.015em; margin-bottom: 12px;
}
.signup p { color: rgba(255,255,255,.86); font-size: 17px; max-width: 520px; margin: 0 auto 30px; }
.signup-form {
  display: flex; gap: 12px; max-width: 500px; margin: 0 auto 14px; flex-wrap: wrap;
}
.signup-form input[type=email] {
  flex: 1; min-width: 220px; padding: 15px 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.14);
  color: var(--white); font-size: 16px; font-family: inherit; outline: none;
}
.signup-form input[type=email]::placeholder { color: rgba(255,255,255,.68); }
.signup-form input[type=email]:focus { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.2); }
.signup-form button {
  padding: 15px 30px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--white); color: var(--sage-dark); font-size: 16px;
  font-weight: 700; font-family: inherit; white-space: nowrap; transition: .18s ease;
}
.signup-form button:hover { background: var(--cream-2); transform: translateY(-1px); }
.signup .fine { font-size: 13px; color: rgba(255,255,255,.7); }
.form-note { font-size: 14.5px; margin-top: 10px; min-height: 22px; }

/* ---------- 内页 ---------- */
.page-head {
  padding: 56px 0 40px; border-bottom: 1px solid var(--line);
  background: var(--cream-2);
}
.page-head h1 {
  font-family: var(--font-serif); font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.16; letter-spacing: -.02em; font-weight: 600; margin-bottom: 14px;
  max-width: 820px;
}
.page-head p { color: var(--muted); font-size: 18px; max-width: 680px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--sage-dark); }

/* ---------- 文章头图 ---------- */
.post-hero { margin: 34px auto 0; }
.post-hero img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--sage-light);
}
.post-hero + .section { padding-top: 46px; }

/* 首页的宽幅品牌图片带 */
.img-band { margin: 0 auto; }
.img-band img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--sage-light);
}

/* ---------- 编号清单（文章内的编号列表组件） ---------- */
.numlist { counter-reset: numlist; list-style: none; margin: 0 0 10px; padding: 0; }
.numlist > li { counter-increment: numlist; position: relative; padding: 0 0 0 48px; margin-bottom: 24px; }
.numlist > li::before {
  content: counter(numlist); position: absolute; left: 0; top: -3px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--sage-light); color: var(--sage-dark);
  font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center;
}
.numlist > li > strong { color: var(--ink); }
.numlist > li p { margin: 8px 0 0; }

/* 文章内的小标签（分组标题） */
.part { display: inline-block; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase;
        font-weight: 700; color: var(--terra-dark); background: #FAECE7; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- 文章通用组件（原先每篇内联复制，现提为全局） ---------- */
.keyline { border-left: 3px solid var(--terra); padding: 2px 0 2px 18px; margin: 0 0 22px;
           font-size: 17px; color: var(--ink); }

table.cmp { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
table.cmp th, table.cmp td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp th { background: var(--cream-2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
table.cmp td:first-child { font-weight: 650; color: var(--ink); }
table.cmp tr:last-child td { border-bottom: 0; }

.steps { background: var(--cream-2); border-radius: 10px; padding: 14px 18px; margin: 0 0 16px; }
.steps ol { margin: 0 0 0 18px; }
.steps li { margin-bottom: 7px; color: var(--ink-soft); font-size: .95rem; }
.steps li:last-child { margin-bottom: 0; }

.faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: #fff; }
.faq-item summary { cursor: pointer; font-weight: 650; color: var(--ink); padding: 14px 0; font-size: 16.5px;
                    list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--sage-dark); font-weight: 400; font-size: 22px; line-height: 1; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 18px; color: var(--ink-soft); }

.prose { max-width: 760px; }
.prose h2 {
  font-family: var(--font-serif); font-size: 28px; font-weight: 600;
  letter-spacing: -.015em; margin: 44px 0 16px; line-height: 1.26;
}
.prose h3 {
  font-family: var(--font-serif); font-size: 21px; font-weight: 600;
  margin: 32px 0 12px; line-height: 1.3;
}
.prose p { margin-bottom: 18px; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose li { margin-bottom: 9px; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { border-bottom: 1px solid rgba(85,121,107,.3); }
.prose a:hover { text-decoration: none; border-bottom-color: var(--sage-dark); }
.prose img { border-radius: var(--radius); margin: 26px 0; border: 1px solid var(--line); }
.prose blockquote {
  border-left: 3px solid var(--sage); background: var(--sage-light);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0; color: var(--ink-soft);
}

.callout {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--terra);
  border-radius: var(--radius); padding: 24px 26px; margin: 32px 0;
}
.callout h4 {
  font-family: var(--font-serif); font-size: 18px; margin-bottom: 8px; font-weight: 600;
}
.callout p { font-size: 15.5px; margin-bottom: 14px; color: var(--muted); }

.toc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 36px;
}
.toc h4 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin-left: 20px; }
.toc li { margin-bottom: 7px; font-size: 15.5px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.72);
  padding: 56px 0 32px; margin-top: 72px; font-size: 15px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer .brand:hover { color: var(--white); }
.site-footer p { font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 320px; }
.site-footer h5 {
  color: var(--white); font-size: 13px; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 16px; font-weight: 700;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.72); font-size: 14.5px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(255,255,255,.5);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .signup { padding: 40px 24px; }
  .section { padding: 52px 0; }
}

/* ---------- 辅助 ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
  font-size: 13.5px; background: var(--white); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; color: var(--ink-soft);
}
.tag:hover { border-color: var(--sage); color: var(--sage-dark); text-decoration: none; }

.notice {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; font-size: 14.5px; color: var(--muted); line-height: 1.7;
}
.notice strong { color: var(--ink-soft); }

.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;
}

/* ---------- 分组连续编号列表 ----------
   用法：<div class="numgroups"> 包住若干 <h3> + <ol>，
   counter-reset 放在 wrapper 上，编号才会跨组连续 1→N。
   放在样式表末尾，确保盖过 .prose li 的默认样式。 */
.numgroups { counter-reset: numgroups; }
.numgroups h3 { margin-top: 34px; }
.numgroups ol { list-style: none; margin: 0 0 10px; padding: 0; }
.numgroups ol > li {
  counter-increment: numgroups; position: relative;
  padding: 0 0 0 48px; margin-bottom: 22px; color: var(--ink-soft);
}
.numgroups ol > li::before {
  content: counter(numgroups); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sage-light); color: var(--sage-dark);
  font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.numgroups ol > li > strong { color: var(--ink); }
.numgroups ol > li p { margin: 8px 0 0; }
