/* ============================================================
   首页 · 马上过（雅思听说读写备考门户）
   理念：shortcut（真实/高频真题 + 答题技巧 + 录播课）→ 省钱·省时·省力
   视觉：白底为主 + 灰底带分段 + 主蓝只给重点 + 大字号落差 + 留白
   token：Arial+微软雅黑 / 主蓝 #1d4ed8 / 灰 #f6f8fc / 黑白
   ============================================================ */

:root {
  --hm-ink: #17202b;
  --hm-ink-2: #475569;
  --hm-ink-3: #94a3b8;
  --hm-line: #dbe2e9;
  --hm-line-2: #e5e7eb;
  --hm-brand: #1d4ed8;
  --hm-brand-soft: #eff6ff;
  --hm-brand-edge: #bfdbfe;
  --hm-highlight: #fff3b0;
  --hm-bg-soft: #f6f8fc;
}

/* ----- 4 主题色（按听说读写） ----- */
/* index hub 页：黑/灰/白（极简，门户页） */
body.theme-classic { --hm-brand: #17202b; --hm-brand-soft: #f1f5f9; --hm-brand-edge: #cbd5e1; }
/* 口语承接页：红 */
body.theme-speaking { --hm-brand: #dc2626; --hm-brand-soft: #fef2f2; --hm-brand-edge: #fecaca; }
/* 阅读承接页：蓝（默认） */
body.theme-reading { --hm-brand: #1d4ed8; --hm-brand-soft: #eff6ff; --hm-brand-edge: #bfdbfe; }
/* 听力承接页：绿 */
body.theme-listening { --hm-brand: #16a34a; --hm-brand-soft: #f0fdf4; --hm-brand-edge: #bbf7d0; }
/* 写作承接页：紫 */
body.theme-writing { --hm-brand: #7c3aed; --hm-brand-soft: #f5f3ff; --hm-brand-edge: #ddd6fe; }

body { background: #fff; }

.hm-page { width: 100%; }

/* 内容统一容器：窄屏留白、宽屏居中 */
.hm-inner {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
}

/* ----- 灰底带：整块背景分段，一眼看出"到第几段" ----- */
.hm-band {
  background: var(--hm-bg-soft);
  border-top: 1px solid var(--hm-line-2);
  border-bottom: 1px solid var(--hm-line-2);
}

/* ----- 通用标签（小蓝字 + 字距） ----- */
.hm-tag {
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  color: var(--hm-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
}
.hm-tag.center { text-align: center; }

.hm-h2 {
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--hm-ink);
  line-height: 1.3;
  margin: 0 0 20px;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ----- Hero：留白撑起来，大字号落差 ----- */
.hm-hero {
  text-align: center;
  padding: 80px 0 72px;
}
.hm-title {
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--hm-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 20px;
}
.hm-title .dot { color: var(--hm-brand); }
.hm-sub {
  margin: 0 auto 32px;
  max-width: 620px;
  color: var(--hm-ink-2);
  font-size: 16px;
  line-height: 1.85;
}
.hm-btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--hm-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.hm-btn:hover { background: #1e40af; }

/* ----- Hero 快速导航：听说读写 4 个入口按钮 ----- */
.hm-quicknav-label {
  text-align: center;
  font-size: 13px;
  color: var(--hm-ink-3);
  letter-spacing: 0.06em;
  margin: 0 0 18px;
}
.hm-quicknav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}
.hm-quicknav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px 18px;
  background: var(--hm-brand-soft);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.hm-quicknav-item:hover {
  background: var(--hm-brand);
  border-color: var(--hm-brand);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.22);
}
/* 首页 4 个入口按钮：各自科目主题色（点缀，不花） */
.hm-quicknav-item[data-subject="speaking"] { --hm-brand: #dc2626; --hm-brand-soft: #fef2f2; --hm-brand-edge: #fecaca; }
.hm-quicknav-item[data-subject="reading"]  { --hm-brand: #1d4ed8; --hm-brand-soft: #eff6ff; --hm-brand-edge: #bfdbfe; }
.hm-quicknav-item[data-subject="listening"]{ --hm-brand: #16a34a; --hm-brand-soft: #f0fdf4; --hm-brand-edge: #bbf7d0; }
.hm-quicknav-item[data-subject="writing"]  { --hm-brand: #7c3aed; --hm-brand-soft: #f5f3ff; --hm-brand-edge: #ddd6fe; }
/* 建设中（听力/写作）：保留主题色点缀（不置灰），但点击不跳转 */
.hm-quicknav-item.is-soon {
  cursor: default;
  background: var(--hm-brand-soft);
  border-color: var(--hm-brand-edge);
}
.hm-quicknav-item.is-soon:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  background: var(--hm-brand-edge);
  border-color: var(--hm-brand);
}
.hm-quicknav-item.is-soon .hm-quicknav-letter {
  background: #fff;
  border-color: var(--hm-brand);
  color: var(--hm-brand);
}
.hm-quicknav-item.is-soon:hover .hm-quicknav-letter {
  background: #fff;
  border-color: var(--hm-brand);
  color: var(--hm-brand);
}
.hm-quicknav-item.is-soon .hm-quicknav-name {
  color: var(--hm-brand);
}
.hm-quicknav-item.is-soon:hover .hm-quicknav-name {
  color: var(--hm-brand);
}
.hm-quicknav-soon-tag {
  font-size: 10px;
  color: var(--hm-brand);
  background: #fff;
  border: 1px solid var(--hm-brand-edge);
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 轻量 toast：点击\"建设中\"按钮时弹出 */
.hm-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 20px;
  background: var(--hm-ink);
  color: #fff;
  font-size: 14px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.2s, transform 0.2s;
}
.hm-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hm-toast strong { color: var(--hm-highlight); margin-right: 6px; }
.hm-quicknav-letter {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid var(--hm-brand);
  color: var(--hm-brand);
  border-radius: 12px;
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 20px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hm-quicknav-item:hover .hm-quicknav-letter {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.hm-quicknav-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--hm-brand);
  transition: color 0.15s;
}
.hm-quicknav-item:hover .hm-quicknav-name {
  color: #fff;
}

/* ----- 三省：无边框，开放排版，大数字锚点 ----- */
.hm-three { padding: 72px 0; }
.hm-three-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.hm-three-item { text-align: left; }
.hm-three-num {
  display: block;
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  color: var(--hm-brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.hm-three-title {
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--hm-ink);
  margin: 0 0 10px;
}
.hm-three-text {
  margin: 0;
  font-size: 14px;
  color: var(--hm-ink-2);
  line-height: 1.85;
  max-width: 320px;
}

/* ----- 方法：白底，开放排版，数字圆点 + 竖线分隔 ----- */
.hm-method { padding: 72px 0; }
.hm-method .hm-h2 { max-width: 640px; margin-left: auto; margin-right: auto; }
.hm-method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
}
.hm-step {
  padding: 0 36px;
  text-align: center;
}
.hm-step + .hm-step {
  border-left: 1px solid var(--hm-line-2);
}
.hm-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--hm-brand);
  color: #fff;
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
.hm-step h3 {
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--hm-ink);
  margin: 0 0 10px;
}
.hm-step p {
  margin: 0;
  font-size: 14px;
  color: var(--hm-ink-2);
  line-height: 1.8;
}

/* ----- 产品矩阵（灰底带上的白卡） ----- */
.hm-subjects { padding: 72px 0; }
.hm-subject {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(23, 32, 43, 0.04);
}
.hm-subject-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.hm-subject-letter {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hm-brand-soft);
  color: var(--hm-brand);
  border-radius: 12px;
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 22px;
  font-weight: 700;
}
.hm-subject-head h3 {
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--hm-ink);
  margin: 0 0 2px;
}
.hm-subject-head p {
  margin: 0;
  font-size: 14px;
  color: var(--hm-ink-2);
}
.hm-subject-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.hm-subject-list li a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 16px;
  background: var(--hm-brand-soft);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hm-brand);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.hm-subject-list li a::after {
  content: "→";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hm-brand);
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.15s, color 0.15s;
}
.hm-subject-list li a:hover {
  background: var(--hm-brand);
  border-color: var(--hm-brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.22);
}
.hm-subject-list li a:hover::after {
  color: #fff;
  transform: translateY(-50%) translateX(3px);
}
.hm-subject-list li a span {
  font-size: 12px;
  font-weight: 400;
  color: var(--hm-ink-3);
  padding-right: 22px;
  transition: color 0.15s;
}
.hm-subject-list li a:hover span {
  color: rgba(255, 255, 255, 0.82);
}
.hm-subject-soon {
  position: relative;
  background: #fff;
}
.hm-subject-soon .hm-subject-head h3 { color: var(--hm-ink-3); }
.hm-subject-soon .hm-subject-head p { color: var(--hm-ink-3); }
.hm-subject-soon .hm-subject-letter { background: var(--hm-bg-soft); color: var(--hm-ink-3); }
.hm-soon-tag {
  position: absolute;
  right: 30px;
  top: 34px;
  font-size: 12px;
  color: var(--hm-ink-3);
  background: var(--hm-bg-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ----- 证词区：真实口碑反馈墙（押题同款瀑布流，6 列密铺缩略图） ----- */
.hm-proof { padding: 0; }
.hm-proof > .hm-inner { padding: 72px 0; }
.hm-proof .hm-h2 { margin-bottom: 12px; }
.hm-wall-source {
  text-align: center;
  font-size: 13px;
  color: var(--hm-ink-3);
  margin: 0 auto 30px;
  letter-spacing: 0.02em;
  max-width: 620px;
}
.feedback-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: visible;
}
.feedback-tile {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
  break-inside: avoid;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feedback-tile:hover,
.feedback-tile:focus-visible {
  z-index: 50;
  transform: scale(1.5);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.5);
  outline: 3px solid #fff;
}
.feedback-tile img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .feedback-wall { grid-template-columns: repeat(2, 1fr); column-gap: 5px; gap: 5px; padding: 5px; }
  .feedback-tile { margin-bottom: 5px; }
  .feedback-tile:hover { transform: scale(1.6); }
}

/* ----- 承接页（每科分发页） ----- */
.ctr-page { width: 100%; }
.ctr-hero {
  text-align: center;
  padding: 64px 0 28px;
  background: var(--hm-bg-soft);
  border-bottom: 1px solid var(--hm-line-2);
}
.ctr-title {
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--hm-ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.ctr-sub {
  margin: 0 auto 22px;
  max-width: 540px;
  color: var(--hm-ink-2);
  font-size: 15px;
  line-height: 1.85;
}
.ctr-list { padding: 36px 0 64px; }
.ctr-card-section { padding: 56px 0 64px; }
.ctr-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: var(--hm-brand-soft);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  margin-bottom: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ctr-product:hover {
  background: var(--hm-brand);
  border-color: var(--hm-brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.22);
}
.ctr-product-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ctr-product-letter {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid var(--hm-brand);
  color: var(--hm-brand);
  border-radius: 12px;
  font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 20px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ctr-product:hover .ctr-product-letter {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.ctr-product-head h3 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 700;
  color: var(--hm-ink);
  transition: color 0.15s;
}
.ctr-product-head p {
  margin: 0;
  font-size: 13px;
  color: var(--hm-ink-2);
  transition: color 0.15s;
}
.ctr-product:hover .ctr-product-head h3,
.ctr-product:hover .ctr-product-head p { color: #fff; }
.ctr-product-arrow {
  font-size: 22px;
  color: var(--hm-brand);
  font-weight: 700;
  transition: color 0.15s, transform 0.15s;
}
.ctr-product:hover .ctr-product-arrow {
  color: #fff;
  transform: translateX(4px);
}
.ctr-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 24px;
  background: var(--hm-brand-soft);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  margin-bottom: 14px;
  color: var(--hm-brand);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.ctr-soon small {
  font-size: 13px;
  font-weight: 400;
  color: var(--hm-ink-2);
}

/* ----- 顶栏导航折叠规则：已统一挪到全局 styles.css ----- */
.site-nav .nav-link { color: #1f2937; }
.site-nav .nav-link.active { background: var(--hm-brand); }
.site-nav .nav-link.active:hover { background: var(--hm-brand); }

/* ----- 结尾 CTA（主蓝强调块，唯一大面积用色） ----- */
.hm-cta {
  background: var(--hm-brand);
  text-align: center;
  padding: 72px 0;
}
.hm-cta .hm-h2 { color: #fff; }
.hm-cta p {
  margin: 0 auto 28px;
  max-width: 480px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}
.hm-cta .hm-btn {
  background: #fff;
  color: var(--hm-brand);
}
.hm-cta .hm-btn:hover { background: #eff6ff; }

/* ----- 页脚 ----- */
.hm-footer {
  background: #0f172a;
  padding: 24px 0 32px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

/* ----- 响应式 ----- */
@media (max-width: 820px) {
  .hm-title { font-size: 40px; }
  .hm-three-row { grid-template-columns: 1fr; gap: 32px; }
  .hm-three-text { max-width: none; }
  .hm-method-steps { grid-template-columns: 1fr; gap: 32px; }
  .hm-step { padding: 0; }
  .hm-step + .hm-step { border-left: none; border-top: 1px solid var(--hm-line-2); padding-top: 32px; }
  .hm-subject-list { grid-template-columns: 1fr; }
  .hm-h2 { font-size: 23px; }
  .hm-hero { padding: 56px 0 48px; }
  .hm-three, .hm-method, .hm-subjects, .hm-proof { padding: 48px 0; }
  .hm-cta { padding: 48px 0; }
}
