/* ============================================================
   首页落地页样式（[ht_landing] 短代码输出）v1.1
   设计体系：ink #1c2430 / cream #f7f2ea / terracotta #b8442e
             正文 #5b6675 / 边框 #e6e9ee / 暖米底 #faf8f5
   配色原则：terracotta 是唯一品牌强调色；红/橙/绿/蓝只用于「声调」语义
   ============================================================ */

.ht-landing {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", sans-serif;
  color: #1c2430;
  line-height: 1.6;
}
.ht-container { max-width: min(1280px, 92vw); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.ht-section { padding: 68px 0; }
.ht-section-alt { background: #faf8f5; }
.ht-h1 { font-size: 42px; line-height: 1.18; font-weight: 700; margin: 0 0 18px; letter-spacing: -.015em; }
.ht-h2 { font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.ht-h3-note { font-size: 15px; color: #5b6675; }
.ht-sub { font-size: 15px; color: #5b6675; margin: 0 0 30px; }
.ht-lead { font-size: 17px; line-height: 1.65; margin: 0 0 26px; max-width: 46ch; }

/* 防御：wpautop 注入的空元素不应占格 */
.ht-landing br { display: none; }
.ht-landing p:empty { display: none; }
.ht-landing .ht-grid > p { display: contents; }

/* ---------- Hero：深墨底 ---------- */
.ht-hero { background: #1c2430; padding: 76px 0 68px; }
.ht-hero-inner { display: flex; gap: 52px; align-items: center; flex-wrap: wrap; }
.ht-hero-copy { flex: 1 1 380px; }
.ht-h1, .ht-hero .ht-h1 { color: #f7f2ea; }
.ht-hero .ht-lead { color: #b9b3ab; }
.ht-eyebrow {
  display: inline-block; border: 1px solid rgba(247,242,234,.28); color: #e8ded1;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 99px; margin-bottom: 20px;
}
.ht-trust { font-size: 13px; color: #8d877f; margin: 18px 0 0; }
.ht-hero-card { flex: 0 0 300px; }
.ht-demo .hanzi-card { width: 100%; max-width: 100%; flex: none; }

/* ---------- Buttons ---------- */
.ht-btn {
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  font-size: 15px; padding: 12px 22px; border-radius: 99px; text-decoration: none;
  /* 透明边框占位：ghost 变体有 1.5px 实边，若不预留，同一行里实心按钮会比描边按钮矮 3px */
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.ht-btn-primary { background: #b8442e; color: #fff; }
.ht-btn-primary:hover { background: #8f3222; color: #fff; }
.ht-btn-ghost { background: #fff; color: #1c2430; border: 1.5px solid #d7dbe1; }
.ht-btn-ghost:hover { border-color: #b8442e; color: #b8442e; }
.ht-hero .ht-btn-ghost { background: transparent; color: #f7f2ea; border-color: rgba(247,242,234,.42); }
.ht-hero .ht-btn-ghost:hover { background: rgba(247,242,234,.1); border-color: #f7f2ea; color: #fff; }
.ht-btn-light { background: #fff; color: #b8442e; }
.ht-btn-light:hover { background: #fbeae6; }
.ht-btn-block { width: 100%; box-sizing: border-box; }
.ht-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 课程卡 ---------- */
.ht-courses-head { margin-bottom: 26px; }
.ht-grid { display: grid; gap: 18px; }
.ht-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ht-course {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid #e6e9ee; border-radius: 14px; padding: 22px 20px;
  text-decoration: none; color: inherit;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ht-course:hover, .ht-course:focus-within { border-color: #b8442e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28,36,48,.07); }
.ht-course p { margin: 0; }
.ht-course-cn { font-size: 21px; font-weight: 700; font-family: "Noto Serif SC", "Songti SC", serif; color: #1c2430; }
/* 注意：没有给标题留徽章让位。试过 padding-right:50px，窄屏（<1220）标题会被挤成两行，
   那一行卡片就比其他卡高 24px，「N cards」随之错位——比徽章轻微压字更难接受。 */
.ht-course-en { font-size: 13px; color: #6b7482; margin: 3px 0 12px; letter-spacing: .01em; }
.ht-course-tag { font-size: 14px; color: #5b6675; flex: 1 1 auto; }

/* 卡片右侧留白填充：六门课各配一个示例词，声调用站内语义色（1红 2橙 3绿 4蓝 轻声灰），
   音节下方标声调序号（轻声用中点表示，没有序号）。
   示例块高度只有 ≈28px（17px 音节 + 1px + 10px 序号），刻意压紧：
   它一变高就会把 tag 与「N cards」之间的间距重新撑大（这是之前被指出的老问题）。 */
.ht-course-tag.has-demo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ht-course-tag.has-demo .ht-tag-text { flex: 0 1 auto; }
.ht-tone-demo { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; }
.ht-tone-row { display: inline-flex; gap: 6px; }
.ht-tone {
  display: inline-flex; flex-direction: column; align-items: center;
  font-size: 17px; font-weight: 700; line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* 声调序号。10px 是能看清又不抢戏的下限，再小会糊成一团 */
.ht-tone small {
  font-size: 10px; font-weight: 700; line-height: 1;
  opacity: .7; margin-top: 1px;
}
.ht-tone.t1 { color: #d0453b; }
.ht-tone.t2 { color: #e08a2e; }
.ht-tone.t3 { color: #3d9970; }
.ht-tone.t4 { color: #2f6fb2; }
.ht-tone.tn { color: #8a94a3; }
/* 「N cards · 2 lessons」与右侧说明同一行：左卡片数、右付费/门槛说明。
   说明放在这一行而不是示例词下面，是为了让示例块只占 28px，避免重开间距。 */
.ht-course-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 4px 12px; flex-wrap: wrap;
  font-size: 13px; color: #b8442e; font-weight: 700; margin-top: 6px;
}
.ht-tone-note { font-size: 11px; line-height: 1.2; color: #6b7482; white-space: nowrap; }
.ht-course-link {
  display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700;
  color: #b8442e; position: relative; z-index: 2;
}
/* 整卡可点 */
.ht-course-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ht-badge {
  position: absolute; top: 15px; right: 15px; background: #eaf3de; color: #3b6d11;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px;
}

/* ---------- 卡片解剖：你 + 好 = 你好 ---------- */
.ht-demo-band { display: block; }
.ht-eq { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.ht-op {
  font-size: 30px; font-weight: 600; line-height: 1;
  color: #b8442e; opacity: .5; user-select: none; text-align: center;
}
.ht-demo-card { flex: 0 0 260px; min-width: 0; display: flex; }
.ht-demo-card > .hanzi-card { width: 100%; height: 100%; }
.ht-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.ht-point { display: flex; gap: 12px; align-items: flex-start; }
.ht-point h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 4px; }
.ht-point p { font-size: 14px; color: #5b6675; margin: 0; max-width: 52ch; }
.ht-dot { flex: 0 0 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.ht-dot-1 { background: #d0453b; }
.ht-dot-2 { background: #e08a2e; }
.ht-dot-3 { background: #3d9970; }
.ht-dot-4 { background: #2f6fb2; }

/* ---------- 三步 ---------- */
.ht-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ht-step { background: #fff; border: 1px solid #e6e9ee; border-radius: 14px; padding: 24px 22px; }
.ht-step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; background: #fbeae6; color: #b8442e; font-size: 22px; font-weight: 700;
  margin-bottom: 14px;
}
.ht-step h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.ht-step p { font-size: 14px; color: #5b6675; margin: 0; }

/* ---------- 价格 ---------- */
/* 层级：一张主推（深墨底）+ 两张陪衬（白底）。三张卡原本同权重，
   读者的目光会在 $12 和白卡之间分散；现在只有一张卡在「发光」。 */
.ht-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #b8442e; margin: 0 0 10px;
}
.ht-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.ht-price {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid #e6e9ee; border-radius: 16px; padding: 26px 24px 22px;
}
.ht-price-featured {
  background: #1c2430; border-color: #1c2430; color: #f7f2ea;
  box-shadow: 0 16px 40px rgba(28, 36, 48, .16);
}
.ht-price-tag {
  position: absolute; top: -12px; left: 24px; background: #b8442e; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  padding: 4px 11px; border-radius: 99px;
}
.ht-price-name { font-size: 12px; font-weight: 700; color: #6b7482; text-transform: uppercase; letter-spacing: .08em; }
.ht-price-featured .ht-price-name { color: #a9b3c1; }
.ht-price-amount { font-size: 40px; font-weight: 700; line-height: 1.15; margin: 8px 0 0; letter-spacing: -.02em; }
.ht-price-list { font-size: 17px; font-weight: 400; color: #8a94a3; text-decoration: line-through; margin-left: 6px; letter-spacing: 0; }
.ht-price-featured .ht-price-list { color: #7c8797; }
.ht-price-desc { font-size: 13.5px; line-height: 1.5; color: #5b6675; margin: 6px 0 0; }
.ht-price-featured .ht-price-desc { color: #b9b3ab; }
.ht-price-featured .ht-price-desc strong { color: #f7f2ea; }
/* 「学完之后能说出什么」：把 186 个字翻译成读者能想象的生活场景。
   放在卡片上方而不是塞进主推卡 —— 塞进卡里会让主推卡高出 143px，
   另外两张白卡底部就会空出 165px 的洞（1100px 宽时更是 259px）。 */
.ht-outcome { margin: 0 0 28px; }
.ht-outcome-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #8a94a3; margin: 0 0 10px;
}
.ht-outcome-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ht-outcome-list li {
  display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap;
  background: #fff; border: 1px solid #e6e9ee; border-radius: 10px; padding: 8px 13px;
  font-size: 12.5px; color: #5b6675;
}
.ht-outcome-list b {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 17px; font-weight: 700; color: #1c2430;
}
/* 清单吃满剩余高度：三张卡的按钮因此落在同一水平线上 */
.ht-price-items {
  flex: 1 1 auto; list-style: none; margin: 18px 0 22px; padding: 16px 0 0;
  border-top: 1px solid #eef0f4; color: #3d4756;
  display: flex; flex-direction: column; gap: 9px;
  font-size: 13.5px; line-height: 1.5;
}
.ht-price-featured .ht-price-items { border-top-color: rgba(247, 242, 234, .14); color: #ded7cc; }
.ht-price-items li { position: relative; padding-left: 22px; }
.ht-price-items li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: #b8442e; font-size: 13px; font-weight: 700; line-height: 1.55;
}
.ht-price-featured .ht-price-items li::before { color: #e08a72; }
/* 深色底上需要更亮的按钮，否则品牌色沉进背景 */
.ht-price-featured .ht-btn-primary { background: #c14a32; }
.ht-price-featured .ht-btn-primary:hover { background: #a83c28; }
.ht-price-micro { font-size: 12px; color: #8a94a3; text-align: center; margin: 10px 0 0; }
.ht-price-featured .ht-price-micro { color: #9aa3b0; }
.ht-price-foot { font-size: 12.5px; color: #8a94a3; text-align: center; margin: 26px 0 0; }

/* ---------- FAQ ---------- */
/* 不再单独设 max-width：继承 .ht-container，避免 max-width:none 变成全视口铺满 */
.ht-faq { border-top: 1px solid #e6e9ee; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.ht-faq-item { border-bottom: 1px solid #e6e9ee; padding: 16px 2px; }
.ht-faq-item summary {
  cursor: pointer; font-size: 15.5px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.ht-faq-item summary::-webkit-details-marker { display: none; }
.ht-faq-item summary::after { content: "+"; color: #b8442e; font-size: 20px; font-weight: 400; line-height: 1; }
.ht-faq-item[open] summary::after { content: "\2212"; }
.ht-faq-item p { font-size: 14px; color: #5b6675; margin: 10px 0 0; max-width: 66ch; }

/* ---------- CTA 条 ---------- */
.ht-cta-band { background: #b8442e; color: #fff; padding: 52px 0; }
.ht-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ht-cta-text { font-size: 21px; font-weight: 700; }

/* ---------- 老师介绍 ---------- */
.ht-teacher-inner { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: center; }
.ht-teacher-photo-wrap { position: relative; }
.ht-teacher-photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 20px; box-shadow: 0 16px 40px rgba(28,36,48,.16);
  background: #eef1f5; display: block;
}
.ht-teacher-copy { text-align: left; }
.ht-left { text-align: left; }
.ht-teacher-name { font-size: 22px; font-weight: 700; color: #1c2430; margin: 0 0 4px; }
.ht-teacher-cred { display: block; font-size: 14px; font-weight: 600; color: #b8442e; margin-top: 4px; }
.ht-teacher-bio { font-size: 16px; line-height: 1.7; color: #5b6675; margin: 16px 0 0; max-width: 52ch; }
.ht-teacher-sign { margin: 18px 0 0; font-size: 20px; color: #1c2430; }
.ht-teacher-note {
  display: inline-block; margin-top: 14px; font-size: 12px; color: #9aa3af;
  border: 1px dashed #cfd5dd; border-radius: 8px; padding: 4px 10px;
}

/* ---------- 学员评价 ---------- */
.ht-reviews { background: #f6f8fb; }
.ht-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.ht-review {
  background: #fff; border: 1px solid #e6e9ee; border-radius: 16px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 14px;
}
.ht-review-stars { color: #f5a623; font-size: 15px; letter-spacing: 2px; }
.ht-review-quote { font-size: 15px; line-height: 1.65; color: #2b3340; margin: 0; flex: 1; }
.ht-review-author { display: flex; align-items: center; gap: 12px; }
.ht-review-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px;
  background: #dfe4ea; color: #6b7482; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.ht-review-name { font-size: 14px; font-weight: 700; color: #1c2430; }
.ht-review-meta { font-size: 12px; color: #8a94a3; }

/* ---------- 响应式 ---------- */
/* 三列卡片在 1120px 以下内宽不足（tag 文字 + 四声卡 ≈271px），
   隐藏四声演示，避免与说明文字挤成两行。 */
@media (max-width: 1120px) {
  .ht-tone-demo { display: none; }
  /* 示例词隐藏后，释义就没有了参照对象，一并隐藏；免费卡的门槛提示与此无关，保留 */
  .ht-tone-note.is-gloss { display: none; }
}
/* 三段式在中等宽度改为「两卡并排 + 说明在下」 */
@media (max-width: 1100px) {
  .ht-points { grid-template-columns: 1fr 1fr; }
}
/* 价格区降到两列会剩一张孤零零占半行，所以直接单列。
   1080 而非 900：三列要每卡内宽 ≥330px 才不折行，低于此数清单文字会被拆得很碎。 */
@media (max-width: 1080px) {
  .ht-pricing { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 26px; }
}
@media (max-width: 900px) {
  .ht-faq { grid-template-columns: 1fr; column-gap: 0; }
  .ht-teacher-inner { grid-template-columns: 1fr; gap: 24px; }
  .ht-teacher-photo-wrap { max-width: 280px; }
  .ht-review-grid { grid-template-columns: 1fr 1fr; }
  .ht-grid-3, .ht-steps { grid-template-columns: 1fr 1fr; }
  .ht-h1 { font-size: 34px; }
  .ht-hero { padding: 56px 0 48px; }
  .ht-demo-band { gap: 28px; }
}
@media (max-width: 620px) {
  .ht-grid-3, .ht-steps, .ht-pricing { grid-template-columns: 1fr; }
  .ht-review-grid { grid-template-columns: 1fr; }
  .ht-outcome-list { gap: 7px; }
  .ht-outcome-list li { padding: 6px 10px; font-size: 11.5px; gap: 6px; }
  .ht-outcome-list b { font-size: 15px; }
  .ht-price { padding: 22px 20px 18px; }
  .ht-price-amount { font-size: 34px; }
  .ht-price-items { gap: 7px; margin: 14px 0 18px; padding-top: 13px; }
  .ht-section { padding: 46px 0; }
  .ht-h1 { font-size: 28px; }
  .ht-hero-card { flex: 1 1 100%; }
  /* 手机上等式竖向排列：你 / + / 好 / = / 你好
     align-items:stretch 让三张卡等宽铺满（否则 center 会按各自内容宽度收窄，
     你好 卡会明显比单字卡窄） */
  .ht-eq { flex-direction: column; gap: 10px; align-items: stretch; }
  .ht-demo-card { flex: 0 0 auto; width: 100%; }
  .ht-points { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; }
  /* 单列布局下标题换成两行不会造成左右错位，才敢给徽章让位，避免压住最后一个字 */
  .ht-badge + .ht-course-cn { padding-right: 52px; }
  /* 单列其实是放得下示例词的：把 1120px 那档的隐藏撤销，
     再把两处间隙收窄（12→8、6→5）腾出约 16px，手机用户第一眼就能看到汉字。
     flex-wrap 兜底：真放不下时示例块整块换到下一行（margin-left:auto 保证仍靠右），
     单列布局下换行不会造成卡片之间错位。 */
  .ht-tone-demo { display: flex; margin-left: auto; }
  .ht-tone-note.is-gloss { display: inline; }
  .ht-course-tag.has-demo { gap: 8px; flex-wrap: wrap; }
  .ht-tone-row { gap: 5px; }
}

/* 窄屏（≤385px）示例词再收一档：375px 时不做处理只剩 2.5px 余量，
   换任何字体都会挤到换行。音节 17→15、间隙 5→4 / 8→6 后可拿回约 20px。 */
@media (max-width: 385px) {
  .ht-tone { font-size: 15px; }
  .ht-tone-row { gap: 4px; }
  .ht-course-tag.has-demo { gap: 6px; }
}

/* 减弱动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
