/* ============================================================
   启维 AI · 首页（浅色版）
   自包含：只被 index.html 引用；内页仍用 style.css
   - 浅色底 + 跟随鼠标的光斑与点阵视差
   ============================================================ */

:root {
  --bg: #f6f7f9;
  --bg-1: #ffffff;
  --bg-2: #eef2f7;
  --ink: #16233a;
  --soft: #5b6878;
  --faint: #7c8898;
  --ghost: #9aa5b4;
  --navy: #16233a;
  --blue: #2b6cb8;
  --cyan: #2f7f9e;
  --gold: #e0a93c;
  --gold-soft: #ffd166;
  --line: rgba(22, 35, 58, 0.1);
  --line-2: rgba(22, 35, 58, 0.18);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --serif-weight: 300; /* 全站宋体统一字重 */
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --wrap: 1180px;
  --shadow-sm: 0 1px 2px rgba(22, 35, 58, 0.05), 0 8px 20px -12px rgba(22, 35, 58, 0.18);
  --shadow-md: 0 2px 6px rgba(22, 35, 58, 0.05), 0 20px 44px -24px rgba(22, 35, 58, 0.26);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body.ld {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ld :where(h1, h2, h3, p, figure, blockquote, ul, ol) { margin: 0; padding: 0; }
.ld :where(ul, ol) { list-style: none; }
.ld a:not([class]) { color: inherit; }
.ld a { text-decoration: none; }
.ld button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.ld img { display: block; max-width: 100%; }
.ld ::selection { background: var(--gold-soft); color: #1a1207; }
.ld :focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }

.ld-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.ld-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

/* ---------- 通用文字 ---------- */
.ld-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.ld-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(43, 108, 184, 0.4);
}

.ld-h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: var(--serif-weight, 300);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.ld-p { color: var(--soft); font-size: 15px; line-height: 1.95; text-wrap: pretty; }
.ld-p + .ld-p { margin-top: 14px; }
.ld-p--strong { color: var(--ink); }

.ld-num {
  font-family: var(--mono);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(43, 108, 184, 0.45);
  letter-spacing: -2px;
}

/* ---------- 按钮 ---------- */
.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.ld-btn svg { width: 17px; height: 17px; }

.ld-btn--primary {
  background: linear-gradient(120deg, #f1f3f6, #c7cfd9);
  color: #15181e;
  border-color: #e8edf4;
  box-shadow: 0 6px 24px -16px rgba(135, 155, 181, 0.55);
}

.ld-btn--ghost { color: var(--navy); background: #fff; border-color: var(--line-2); }
.ld-btn:active { transform: scale(0.985); }
.ld-btn:focus-visible,
.ld-header__cta:focus-visible,
.ld-burger:focus-visible,
.ld-mood:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .ld-btn:hover { transform: translateY(-2px); }
  .ld-btn--primary:hover { background: linear-gradient(120deg, #f8fafc, #d5dce5); border-color: #eef2f7; }
  .ld-btn--ghost:hover { border-color: rgba(22, 35, 58, 0.32); box-shadow: var(--shadow-sm); }
}

/* ---------- 顶部导航 ---------- */
.ld-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.ld-header__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.ld-nav { display: flex; gap: 30px; margin-left: auto; }

.ld-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: #657285;
  padding: 6px 4px;
  transition: color 0.2s;
}

.ld-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: #29313d;
}

.ld-header__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #29313d;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.25s, transform 0.25s;
}
.ld-header__cta:active,
.ld-burger:active { transform: scale(.97); }

.ld-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.ld-burger span { width: 22px; height: 2px; border-radius: 2px; background: var(--navy); }

/* ---------- 首屏 ---------- */
.ld-hero {
  --mx: 0;
  --my: 0;
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(86px, 10vh, 104px) 0 clamp(8px, 1.2vh, 14px);
  overflow: hidden;
  isolation: isolate;
  background: #fbfcfd;
}

.ld-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* 独立的数据场画布，固定网格坐标，只由连续噪声调制明暗和尺寸 */
.ld-hero__datafield {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

/* 跟随鼠标的光斑 */
.ld-hero__glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(1080px, 120vw);
  aspect-ratio: 1 / 0.85;
  margin-left: -540px;
  margin-top: -330px;
  display: none;
  transform: translate3d(calc(var(--mx) * 46px), calc(var(--my) * 34px), 0);
  transition: transform 0.9s var(--ease);
  will-change: transform;
}

.ld-hero__grid {
  position: absolute;
  inset: -3% -2%;
  background-image: radial-gradient(rgba(22, 35, 58, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 62% 52% at 50% 34%, #000, transparent 76%);
  mask-image: radial-gradient(ellipse 62% 52% at 50% 34%, #000, transparent 76%);
  opacity: 0.32;
  transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * -9px), 0);
  transition: transform 0.9s var(--ease);
  will-change: transform;
}

.ld-hero__grid { display: none; }

.ld-hero__floor {
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  display: none;
}

.ld-hero__in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(8px, 1.1vh, 14px);
  margin-top: clamp(0px, calc(6vh - 50px), 14px);
}

.ld-hero__in > .ld-eyebrow {
  position: relative;
  top: 0;
}

/* ---------- 首屏的小维 ---------- */
.ld-pet {
  --qx: 0;
  --qy: 0;
  position: relative;
  width: clamp(300px, 55vh, 360px);
  aspect-ratio: 1 / 1;
  margin-bottom: clamp(2px, 0.8vh, 8px);
}

.ld-pet__halo {
  display: none;
}

.ld-pet__pool {
  display: none;
}

.ld-pet__hit {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 40% / 34%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: rotate(calc(var(--px, 0) * 4deg)) translate3d(calc(var(--px, 0) * 6px), calc(var(--py, 0) * 4px), 0);
  transition: transform 0.7s var(--ease);
  transform-origin: 50% 88%;
}

.ld-pet__hit:focus-visible { outline: 2px solid var(--blue); outline-offset: 10px; }

.ld-pet__float {
  display: block;
  width: 100%;
  height: 100%;
  animation: ld-bob 6.5s ease-in-out infinite;
}

.ld-pet__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 20px 30px rgba(22, 35, 58, 0.16));
}

.ld-pet__image {
  object-fit: contain;
}

/* 分层金属形象。外框、菱形和双眼使用同一响应式坐标系。 */
.ld-character {
  position: absolute;
  inset: 0;
  display: block;
  overflow: visible;
}

.ld-character__body,
.ld-character__diamond,
.ld-character__gaze,
.ld-character__eye {
  position: absolute;
  display: block;
}

.ld-character__body {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ld-character__gaze {
  inset: 0;
  --eye-x: 0px;
  --eye-y: 0px;
  pointer-events: none;
}

.ld-character__eye {
  width: 8%;
  height: 23%;
  overflow: visible;
  transform: translate3d(var(--eye-x), var(--eye-y), 0);
  transition: transform 120ms ease-out;
}

.ld-character__eye--left { left: 35%; top: 45%; }
.ld-character__eye--right { left: 58%; top: 45%; }

.ld-character__eye img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform-origin: 50% 50%;
}

.ld-character__gaze.is-blinking .ld-character__eye img {
  animation: ld-eye-blink 235ms cubic-bezier(.35, 0, .2, 1) both;
}

.ld-character__diamond {
  left: 42%;
  top: 22%;
  width: 16%;
  height: auto;
  transform-origin: 50% 50%;
  animation: ld-diamond-breathe 5.8s ease-in-out infinite;
}

@keyframes ld-eye-blink {
  0% { transform: scaleY(1); }
  20% { transform: scaleY(.65); }
  40%, 55% { transform: scaleY(.08); }
  80% { transform: scaleY(.75); }
  100% { transform: scaleY(1); }
}

@keyframes ld-diamond-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.025); }
}

/* 视线跟随：整组眼睛在脸内平移 */
.ld-pet__gaze {
  transform: translate(var(--gx, 0px), var(--gy, 0px));
  transition: transform 0.35s var(--ease);
}

/* 表情切换 */
.ld-pet__eyes,
.ld-mouth { display: none; }

.ld-pet[data-emotion="calm"] .ld-pet__eyes--round,
.ld-pet[data-emotion="curious"] .ld-pet__eyes--round,
.ld-pet[data-emotion="proud"] .ld-pet__eyes--round,
.ld-pet[data-emotion="happy"] .ld-pet__eyes--arc,
.ld-pet[data-emotion="sleepy"] .ld-pet__eyes--line,
.ld-pet[data-emotion="thinking"] .ld-pet__eyes--line { display: block; }

.ld-pet[data-emotion="calm"] .ld-mouth--calm,
.ld-pet[data-emotion="happy"] .ld-mouth--happy,
.ld-pet[data-emotion="curious"] .ld-mouth--curious,
.ld-pet[data-emotion="thinking"] .ld-mouth--thinking,
.ld-pet[data-emotion="sleepy"] .ld-mouth--sleepy,
.ld-pet[data-emotion="proud"] .ld-mouth--proud { display: block; }

.ld-pet[data-emotion="calm"] .ld-pet__eyes--round,
.ld-pet[data-emotion="curious"] .ld-pet__eyes--round {
  animation: ld-blink 7.4s infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.ld-pet__burst { position: absolute; inset: 0; pointer-events: none; }

.ld-pet__burst i {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
}

.ld-pet__burst.is-on i { animation: ld-burst 0.9s var(--ease) forwards; }
.ld-pet__burst i:nth-child(1) { --a: 0deg; }
.ld-pet__burst i:nth-child(2) { --a: 60deg; }
.ld-pet__burst i:nth-child(3) { --a: 120deg; }
.ld-pet__burst i:nth-child(4) { --a: 180deg; }
.ld-pet__burst i:nth-child(5) { --a: 240deg; }
.ld-pet__burst i:nth-child(6) { --a: 300deg; }

/* 星芒 */
.ld-pet__spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: ld-twinkle 3.6s ease-in-out infinite;
}

.ld-pet__spark path { filter: drop-shadow(0 0 7px rgba(43, 108, 184, 0.45)); }

/* ---------- 标题 ---------- */
.ld-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: var(--serif-weight, 300);
  line-height: 1.3;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ld-title span {
  background: linear-gradient(165deg, #26303c 15%, #8c939e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ld-title .ld-title--soft {
  background: linear-gradient(172deg, #46536a 0%, #77839a 58%, #9aa5b4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.ld-sub {
  color: var(--soft);
  font-size: clamp(13.5px, 1.2vw, 15px);
  line-height: 1.85;
}

.ld-hero__intro { max-width: 540px; }
.ld-hero__intro strong { display: block; color: var(--ink); font-weight: 600; }
.ld-hero__intro span { display: block; text-wrap: pretty; }

.ld-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* ---------- 心情坞 ---------- */
.ld-moods { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 0; }

/* 心情选择条放入首屏底部栏，替换左侧提示 */
.ld-moods {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 2vh, 22px);
  width: max-content;
  max-width: calc(100vw - 24px);
  align-items: flex-start;
  transform: translateX(-50%);
}

.ld-moods__label,
.ld-hero__hint { display: none; }

.ld-moods__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ghost);
}

.ld-moods__list {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.ld-moods__list::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(224, 169, 60, 0.55);
}

.ld-moods__list::-webkit-scrollbar { display: none; }

.ld-mood {
  display: grid;
  place-items: center;
  align-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  color: var(--faint);
  transition: color 0.3s, background 0.3s;
}

.ld-mood svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ld-mood[aria-pressed="true"] { color: var(--ink); background: rgba(22, 35, 58, 0.06); }

@media (hover: hover) and (pointer: fine) {
  .ld-mood:hover { color: var(--ink); }
}

.ld-moodline {
  min-height: 1.6em;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--faint);
  position: relative;
  top: 20px;
}

/* ---------- 首屏底部 ---------- */
.ld-hero__foot {
  /* 脱离文档流，贴住首屏底部，不再占用内容区的垂直空间 */
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(10px, 2vh, 22px);
  margin-top: 0;
  padding-top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.ld-hero__hint { display: inline-flex; align-items: center; gap: 8px; }

.ld-hero__hint i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: ld-pulse 2.8s ease-in-out infinite;
}

.ld-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.ld-hero__scroll span {
  display: block;
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, var(--line-2), transparent);
  position: relative;
  overflow: hidden;
}

.ld-hero__scroll span::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--blue);
  animation: ld-run 2.6s var(--ease) infinite;
}

/* ---------- 数据带 ---------- */
.ld-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding-block: 34px;
}

.ld-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.ld-stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: var(--serif-weight, 300);
  line-height: 1.1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.ld-stat__label { font-size: 12.5px; color: var(--faint); letter-spacing: 0.04em; }

/* ---------- 分区骨架 ---------- */
.ld-sec { position: relative; padding-block: clamp(76px, 10vh, 120px); }

.ld-sec__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 52ch;
  margin-bottom: clamp(32px, 4.6vw, 52px);
}

.ld-sec__head .ld-p { max-width: 44ch; }

/* ---------- 01 为什么 ---------- */
.ld-why { background: var(--bg); }

.ld-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  text-align: center;
}

.ld-why__body { max-width: 62ch; display: flex; flex-direction: column; gap: 16px; align-items: center; margin-inline: auto; }
.ld-why__body .ld-h2 { margin-top: 4px; }

/* ---------- 02 课程 ---------- */
.ld-courses { background: #fff; border-top: 1px solid var(--line); }
.ld-courses > .ld-wrap { text-align: center; }
.ld-courses .ld-sec__head {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.ld-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  /* 托盘已去掉：卡片直接落在页面背景上 */
  --lg-tint-strong: rgb(255 255 255 / 0.55);
}

.ld-card {
  display: block;
  min-width: 0;
  border: 0;
  border-radius: 20px;
  background: none;
  box-shadow: none;
  transition: transform 0.35s var(--ease);
}

/* 液态玻璃卡片本体（<lg-panel>） */
.ld-card__glass {
  width: 100%;
  height: 100%;
  padding: 22px 20px 20px;
  text-align: center;
  color: var(--ink);
}

.ld-card__glass .lg-panel__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.ld-card__num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ghost); }
.ld-card__title { font-family: var(--serif); font-size: 18px; font-weight: var(--serif-weight, 300); margin-top: 4px; }
.ld-card__desc { font-size: 13px; line-height: 1.75; color: var(--soft); }

.ld-card__tag {
  align-self: center;
  margin-top: auto;
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

@media (hover: hover) and (pointer: fine) {
  .ld-card:hover { transform: translateY(-3px); }
}

.ld-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--soft);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.ld-more span { transition: transform 0.3s var(--ease); }

/* ---------- 03 怎么上 ---------- */
.ld-how { background: var(--bg); border-top: 1px solid var(--line); }

.ld-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* 「一节课怎么上」也换成液态玻璃卡片，与四门课一致 */
.ld-step {
  display: block;
  min-width: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.ld-step__glass {
  width: 100%;
  height: 100%;
  padding: 24px 22px;
  color: var(--ink);
}

.ld-step__glass .lg-panel__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ld-step__num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ghost); }
.ld-step__title { font-family: var(--serif); font-size: 19px; font-weight: var(--serif-weight, 300); margin-top: 6px; }
.ld-step__desc { font-size: 13px; line-height: 1.8; color: var(--soft); }

/* ---------- 04 口碑 ---------- */
.ld-reviews { background: #fff; border-top: 1px solid var(--line); }

.ld-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.ld-quote {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.ld-quote__stars { color: var(--gold); letter-spacing: 0.2em; font-size: 13px; }
.ld-quote blockquote { font-size: 13.5px; line-height: 1.85; color: var(--soft); }
.ld-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.ld-quote figcaption b { display: block; font-size: 13px; font-weight: 600; }
.ld-quote figcaption em { font-style: normal; font-size: 11.5px; color: var(--ghost); }

.ld-av {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(160deg, #3d5a80, #22344d);
}

.ld-av.av-2 { background: linear-gradient(160deg, #4b6b8a, #2b3f56); }
.ld-av.av-3 { background: linear-gradient(160deg, #5a6b86, #33415a); }

/* ---------- 邀请 ---------- */
.ld-invite {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 11vh, 124px);
  border-top: 1px solid var(--line);
  text-align: center;
  background: var(--bg);
}

.ld-invite__glow {
  position: absolute;
  inset: auto 0 -40% 0;
  height: 90%;
  background: radial-gradient(46% 50% at 50% 50%, rgba(224, 169, 60, 0.16), transparent 72%);
  pointer-events: none;
}

.ld-invite__in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }

.ld-invite__title {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: var(--serif-weight, 300);
  line-height: 1.5;
  background: linear-gradient(172deg, #172033 8%, #46536a 62%, #7c8898 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.ld-invite__sub { color: var(--soft); font-size: clamp(13.5px, 1.2vw, 15px); }
.ld-invite__meta { color: var(--faint); font-size: 11.5px; letter-spacing: 0.06em; margin-top: 4px; }

/* ---------- 页脚 ---------- */
.ld-footer { background: var(--navy); color: #dbe2ec; padding-top: 38px; }

.ld-footer__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 32px;
  align-items: center;
  padding-bottom: 26px;
}

.ld-footer__brand { display: flex; align-items: center; gap: 12px; }
.ld-footer__brand p { font-size: 12.5px; color: #94a1b4; }
.ld-footer__nav { display: flex; gap: 20px; }
.ld-footer__nav a { font-size: 13px; color: #aab5c6; transition: color 0.3s; }
.ld-footer__contact { display: flex; flex-direction: column; gap: 4px; text-align: right; color: #94a1b4; font-size: 12px; }

.ld-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #7d8a9d;
}

/* ---------- 动画 ---------- */
@keyframes ld-bob {
  0%, 100% { transform: translateY(-1.4%); }
  50% { transform: translateY(1.8%); }
}

@keyframes ld-breathe {
  0%, 100% { opacity: 0.72; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes ld-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%, 96% { transform: scaleY(0.1); }
}

@keyframes ld-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes ld-run {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(320%); }
}

@keyframes ld-burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(0.4); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-84px) scale(1); }
}

@keyframes ld-twinkle {
  0%, 100% { opacity: 0.72; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes ld-glow {
  0%, 100% { opacity: 0.12; transform: scale(0.9); }
  50% { opacity: 0.24; transform: scale(1.15); }
}

/* ---------- 响应式 ---------- */
@media (width < 901px) {
  .ld-header.ld-header--float {
    background: #fff;
    border-bottom-color: var(--line);
  }
  .ld-header__in { height: 64px; gap: 8px; padding-inline: 16px; }
  .ld-nav { display: none; }
  .ld-burger { display: flex; flex: 0 0 44px; min-height: 44px; align-items: center; justify-content: center; }
  .ld-header__cta { flex: none; padding-inline: 14px; }

  .ld-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: calc(100% + 4px);
    left: 16px;
    right: 16px;
    max-height: calc(100dvh - 84px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-md);
  }

  .ld-nav.is-open a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; }
  .ld-nav.is-open a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
  .ld-nav.is-open a.active::after { display: none; }

  .ld-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-steps { grid-template-columns: minmax(0, 1fr); }
  .ld-quotes { grid-template-columns: minmax(0, 1fr); }
  .ld-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

  .ld-why__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ld-num { font-size: 44px; }

  .ld-footer__in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ld-footer__contact { text-align: left; }
}

@media (max-width: 640px) {
  .ld-footer__brand { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ld-hero { padding-top: clamp(96px, 15svh, 136px); padding-bottom: 90px; }
  .ld-hero__in { margin-top: 0; }
  .ld-hero__in > .ld-eyebrow { top: 0; }
  .ld-title { max-width: 100%; white-space: normal; text-wrap: balance; }

  /* 心情选择条放入首屏底部栏，替换左侧提示 */
  .ld-moods {
    position: absolute;
    left: 50%;
    bottom: clamp(10px, 2vh, 22px);
    width: max-content;
    max-width: calc(100vw - 24px);
    transform: translateX(-50%);
    align-items: flex-start;
  }

  .ld-moods__label,
  .ld-hero__hint { display: none; }

  .ld-pet { width: clamp(150px, 25svh, 210px); }
  .ld-hero__hint { display: none; }
  .ld-hero__foot { justify-content: center; }

  .ld-actions { width: 100%; max-width: 340px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ld-actions .ld-btn { justify-content: center; padding-inline: 8px; }

  .ld-moods__list { max-width: calc(100vw - 32px); }
  .ld-cards { grid-template-columns: minmax(0, 1fr); }

  .ld-invite__title br { display: none; }
  .ld-footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-transparency: reduce) {
  .ld-moods__list,
  .ld-nav.is-open {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --soft: #3f4b60;
    --faint: #4e5a6d;
    --line: rgba(22, 35, 58, 0.24);
    --line-2: rgba(22, 35, 58, 0.4);
  }
}

/* ---------- 背景里的淡字符（跟随鼠标 + 缓慢漂浮） ---------- */
.ld-hero__glyphs {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 100% 96% at 50% 46%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 96% at 50% 46%, #000 58%, transparent 100%);
}

@media (max-width: 700px) {
  .ld-hero__glyph { font-size: 9px !important; }
}
/* 矮屏（笔记本 768–840 高）：整体收一档，保证首屏仍是一屏 */
@media (max-height: 840px) and (min-width: 700px) {
  .ld-hero { padding-top: clamp(68px, 9vh, 88px); }

  .ld-hero__in { gap: 7px; }

  .ld-pet { width: clamp(300px, 45vh, 340px); }

  .ld-title { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.22; }

  .ld-sub { font-size: 13.5px; line-height: 1.8; }

  .ld-actions { margin-top: 0; }

  .ld-moods { gap: 6px; margin-top: 0; }

  .ld-moodline { font-size: 11.5px; }

  .ld-hero__foot { padding-top: 14px; }
}
/* 很高的屏幕才回到垂直居中 */
@media (min-height: 1000px) {
  /* 居中，但用底部留白把整体顶高约 70px */
  .ld-hero { justify-content: center; padding-bottom: 140px; }
}
/* ---------- 学习的新范式 ---------- */
.ld-model { background: #fff; border-top: 1px solid var(--line); }

.ld-model__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(34px, 4.6vw, 54px);
  border-bottom: 1px solid var(--line);
}

.ld-model__lead { display: flex; flex-direction: column; gap: 16px; }
.ld-model__lead .ld-h2 { font-size: clamp(32px, 4.4vw, 58px); }

.ld-model__copy { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.ld-model__copy p { color: var(--soft); font-size: 15px; line-height: 1.95; }

/* 汇聚示意 */
.ld-flow {
  position: relative;
  height: 270px;
  margin-top: clamp(28px, 4vw, 44px);
  color: rgba(22, 35, 58, 0.16);
}

.ld-flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; }

.ld-flow__sources {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 88px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.ld-flow__sources li {
  display: flex;
  align-items: center;
  font-size: 13.5px;
  color: var(--soft);
  letter-spacing: 0.02em;
}

.ld-flow__node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ld-flow__device {
  position: relative;
  display: block;
  width: 144px;
  height: 132px;
}

.ld-flow__body,
.ld-flow__eye {
  position: absolute;
  display: block;
}

.ld-flow__body {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ld-flow__eye {
  width: 8%;
  height: 23%;
  object-fit: fill;
}

.ld-flow__eye--left { left: 35%; top: 45%; }
.ld-flow__eye--right { left: 58%; top: 45%; }

.ld-flow__device::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 1%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(50% 50%, rgba(22, 35, 58, 0.12), transparent 72%);
  filter: blur(7px);
}

.ld-flow__node-cap {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--faint);
}

.ld-flow__out {
  position: absolute;
  left: calc(50% + 128px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ld-flow__out-kicker,
.ld-flow__out-sub { font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }

.ld-flow__quote {
  font-family: var(--serif); font-weight: var(--serif-weight, 300);
  font-size: clamp(20px, 2.2vw, 27px);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.ld-model__foot {
  margin-top: clamp(26px, 3.4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}

@media (max-width: 900px) {
  .ld-model__head { grid-template-columns: minmax(0, 1fr); gap: 18px; }

  .ld-flow { height: auto; display: flex; flex-direction: column; gap: 22px; }
  .ld-flow__lines { display: none; }
  .ld-flow__sources { position: static; width: auto; display: flex; gap: 18px; }
  .ld-flow__sources li { font-size: 13px; }
  .ld-flow__node { position: static; transform: none; }
  .ld-flow__device { width: 120px; height: 110px; }
  .ld-flow__out { position: static; transform: none; max-width: none; }
}

/* ---------- 2026-12-02：以下各屏背景换成 assets/bg-soft.jpg ---------- */
/* 固定整屏铺底：滚动时背景不跟着走，屏与屏之间不会出现接缝或错位 */
html {
  /* Mesh gradient：多层径向光晕叠在雾白底上，固定铺满视口，滚动不位移、无接缝 */
  background-color: #f7f9fc;
  background-image:
    /* 左上：淡蓝光晕 */
    radial-gradient(58% 52% at 6% 2%, rgba(196, 218, 246, 0.90) 0%, rgba(196, 218, 246, 0) 62%),
    /* 右上：暖白偏浅灰 */
    radial-gradient(46% 44% at 96% 4%, rgba(236, 231, 222, 0.85) 0%, rgba(236, 231, 222, 0) 62%),
    /* 右侧中上：浅灰雾，压住暖色，避免发黄 */
    radial-gradient(42% 42% at 78% 26%, rgba(226, 231, 238, 0.75) 0%, rgba(226, 231, 238, 0) 68%),
    /* 左中：极淡雾白提亮，保证中间大面积通透 */
    radial-gradient(50% 46% at 18% 44%, rgba(252, 253, 255, 0.95) 0%, rgba(252, 253, 255, 0) 70%),
    /* 底部：很浅的冰蓝过渡 */
    radial-gradient(96% 42% at 50% 100%, rgba(203, 224, 246, 0.92) 0%, rgba(203, 224, 246, 0) 78%),
    /* 底色：中间大面积雾白，越往下越冷一点 */
    linear-gradient(180deg, #fbfcfe 0%, #f8fafd 46%, #eef4fb 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body.ld { background: transparent; }

.ld-why,
.ld-courses,
.ld-model,
.ld-how,
.ld-reviews,
.ld-invite { background: transparent; }
/* 首屏也接同一张底图，避免与下面几屏出现色差（不想要就删这一行） */
.ld-hero { background: transparent; }

/* ============================================================
   Apple HIG 修正（2026-12-02）
   依据 accessibility.md › Vision / Mobility / Speech、typography.md、layout.md
   范围：首屏 .ld-hero 之内一律不改，改动只作用于其余区段与内页
   ============================================================ */

/* 1. 键盘焦点可见（accessibility.md › Speech：仅用键盘也能完整操作） */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid #2b6cb8;
  outline-offset: 3px;
  border-radius: 6px;
}
.ld-footer :where(a, button):focus-visible { outline-color: #9dc1ff; }

/* 2. 弱化文字提到 4.5:1（原 --faint #7c8898 = 3.60:1，--ghost #9aa5b4 = 2.50:1） */
:root {
  --faint: #5f6b7c; /* 5.41:1 on #fff · 5.05:1 on 页面底 */
  --ghost: #66717f; /* 4.96:1 on #fff · 4.63:1 on 页面底 */
}

/* 首屏把改前的颜色钉回去，保证一个像素都不变 */
.ld-hero .ld-eyebrow,
.ld-hero .ld-moodline,
.ld-hero .ld-hero__hint,
.ld-hero .ld-hero__scroll,
.ld-hero .ld-moods__label { color: #7c8898; }
.ld-hero .ld-card__num,
.ld-hero .ld-step__num { color: #9aa5b4; }

/* 3. 最小字号 11px（typography.md：小字不要低于下限） */
.ld-card__num,
.ld-step__num { font-size: 11px; letter-spacing: 0.16em; }

/* 4. 邀请标题渐变末端原 #7c8898 = 3.60:1，大字号也不足 4.5:1，收深一档 */
.ld-invite__title {
  background: linear-gradient(172deg, #172033 8%, #46536a 58%, #68758a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* 5. 触控目标（accessibility.md › Mobility：桌面 28×28，手机 44×44） */
.ld-more { min-height: 44px; }
.ld-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.ld-footer__bottom { color: #8895a8; } /* 原 #7d8a9d = 4.49:1，差一点 */
@media (max-width: 640px) {
  .ld-nav a { min-height: 44px; }
  .ld-footer a { min-height: 44px; }
}
/* 页脚链接补足最小可点宽度（原 26px 宽，桌面下限 28×28） */
.ld-footer a { padding-inline: 6px; margin-inline: -6px; }
/* 手机端页脚链接补到 44×44 */
@media (max-width: 640px) {
  .ld-footer a { min-width: 44px; justify-content: center; }
  .ld-nav a { min-width: 44px; }
}

/* 首屏顶栏不再铺白底：只保留模糊，玻璃胶囊与 LOGO 直接浮在页面背景上 */
.ld-header--float {
  background: transparent;
  border-bottom-color: transparent;
}

/* 顶栏完全透明：无底色、无模糊（按需求） */
.ld-header--float {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* 玻璃胶囊的质感：顶部高光边 + 底部细阴影，让它像一块玻璃而不是白块 */


/* ============================================================
   玻璃胶囊身后的一层彩色光斑
   液玻璃折射的是「身后的像素」，白底上折射出来还是白，所以给胶囊正后方放一块
   蓝 / 金 / 青的柔光，只覆盖胶囊范围，透明顶栏本身不变。
   ============================================================ */


/* 玻璃层与文字压在光斑之上 */


/* ============================================================
   <lg-navbar> 版本（带滑动玻璃指示器）
   ============================================================ */

@media (min-width: 901px) {
  .ld-navbar { display: inline-flex; }
  .ld-header .ld-nav { display: none; }
}


/* ============================================================
   主导航：<lg-navbar>（Liquid Glass 玻璃胶囊 + 滑动指示器）
   ============================================================ */
.ld-navbar {
  --lg-on-glass: var(--ink);
  --lg-tint: rgba(255, 255, 255, 0.30);
  --lg-tint-strong: rgba(255, 255, 255, 0.46);
  --lg-indicator: rgba(255, 255, 255, 0.74);
  --lg-text: var(--ink);
  --lg-accent: var(--blue);
  margin-left: auto;
  margin-right: 10px;
  padding: 4px 6px;
  display: none;
}

@media (min-width: 901px) {
  .ld-navbar { display: inline-flex; }
  .ld-header .ld-nav,
  .site-header .nav { display: none; }
}

.ld-navbar > a {
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

/* 冬令营页首屏是深色：胶囊调白，保证深色文字的对比度 */
.ld-navbar--solid {
  --lg-tint: rgba(255, 255, 255, 0.74);
  --lg-tint-strong: rgba(255, 255, 255, 0.88);
  --lg-indicator: rgba(255, 255, 255, 0.96);
}

/* ============================================================
   心情坞改用 <lg-navbar>：滑动玻璃指示器停在当前心情上
   ============================================================ */
.ld-moods__nav {
  --lg-on-glass: var(--ink);
  --lg-text: var(--ink);
  --lg-tint: rgba(255, 255, 255, 0.55);
  --lg-tint-strong: rgba(255, 255, 255, 0.72);
  --lg-indicator: rgba(255, 255, 255, 0.95);
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
}

.ld-moods__nav > button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.ld-moods__nav > button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 旧的选择条隐藏，选中态交给玻璃指示器 */
.ld-moods__list { display: none; }
.ld-mood[aria-pressed="true"] { background: transparent; }

/* 让 navbar 的「副本层」和我们的按钮尺寸对齐，否则指示器会盖住图标、副本图标又错位 */
.ld-moods__nav .lg-nav__copy {
  padding: 8px 12px;
  gap: 8px;
  align-items: center;
}
.ld-moods__nav .lg-nav__copy > span {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 20px;
}
.ld-moods__nav .lg-nav__copy svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 手机上心情坞压在「往下看」上方，胶囊调实一点，避免文字透上来 */
@media (max-width: 640px) {
  .ld-moods__nav {
    --lg-tint: rgba(255, 255, 255, 0.86);
    --lg-tint-strong: rgba(255, 255, 255, 0.94);
    --lg-indicator: #ffffff;
  }
}

/* 手机上心情坞占据首屏底部，把「往下看」让出来，避免叠字 */
@media (max-width: 640px) {
  .ld-hero__foot { display: none; }
}

/* 首页「家长口碑」也统一成同一套玻璃卡 */
.ld-quote {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(22, 35, 58, 0.06),
    0 18px 44px -28px rgba(22, 35, 58, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  backdrop-filter: blur(14px) saturate(1.12);
}

/* 增强磨砂：首页口碑卡与玻璃卡片的颗粒感 */
.ld-quote, .ld-card__glass, .ld-step__glass, lg-panel.camp-day {
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  position: relative;
  isolation: isolate;
}
.ld-quote::after, .ld-card__glass::after, .ld-step__glass::after, lg-panel.camp-day::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: soft-light;
  z-index: 1;
}

/* 「一节课怎么上」的标题块水平居中（与四门课一致） */
.ld-how > .ld-wrap { text-align: center; }
.ld-how .ld-sec__head {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}
.ld-how .ld-sec__head .ld-p { margin-inline: auto; }

/* 四门课卡片图标 */
.ld-card__icon {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 2px;
  filter: drop-shadow(0 8px 16px rgba(43, 108, 184, 0.18));
}


/* ============================================================
   移动端原生感基线（mobile-native skill）
   每条都对应一个「这看起来像网页」的破绽
   ============================================================ */
html {
  -webkit-tap-highlight-color: transparent; /* 去掉 iOS/Android 点击时的灰蓝闪块 */
  -webkit-text-size-adjust: 100%;           /* 横屏不放大字号 */
  overscroll-behavior: none;                /* 阻止下拉刷新抢走滚动 */
}

button, a, [role="button"], summary {
  touch-action: manipulation;               /* 去掉 300ms 点击延迟 */
}

button, [role="button"], summary {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;              /* 长按不弹复制/分享菜单 */
}

/* 输入框 16px：iOS 聚焦时不再缩放页面 */
input, textarea, select { font-size: 16px; }

/* 顶部固定栏与底部元素避开刘海/home 指示条 */
.site-header, .ld-header { padding-top: env(safe-area-inset-top, 0px); }
.ld-footer, .site-footer { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }

/* 横向轮播自己处理横向手势，纵向留给页面 */
.carousel, .carousel__viewport { touch-action: pan-y; }


/* 触屏没有 hover：把所有顶层 :hover 规则关进能力查询，避免点完还停在悬停态 */
@media (hover: hover) and (pointer: fine) {
.ld-nav a.active,
.ld-nav a:hover { color: #29313d; }
.ld-header__cta:hover { background: #1c232d; }
.ld-more:hover { color: var(--navy); border-color: rgba(43, 108, 184, 0.35); }
.ld-more:hover span { transform: translateX(3px); }
.ld-footer__nav a:hover { color: #fff; }
/* ---------- 偏好降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ld-pet__float,
  .ld-pet__halo,
  .ld-pet__spark,
  .ld-pet__glow,
  .ld-hero__hint i,
  .ld-hero__scroll span::after,
  .ld-pet[data-emotion="calm"] .ld-pet__eyes--round,
  .ld-pet[data-emotion="curious"] .ld-pet__eyes--round { animation: none !important; }

  .ld-pet__burst.is-on i { animation: none; opacity: 0; }

  .ld-hero__glow,
  .ld-hero__grid,
  .ld-pet__hit { transform: none !important; transition: none !important; }

  .ld-btn,
  .ld-card,
  .ld-more,
  .ld-mood,
  .ld-header__cta { transition-duration: 120ms; }

  .ld-card:hover,
  .ld-btn:hover,
  .ld-more:hover span { transform: none !important; }
}
.ld-navbar > a:hover { text-decoration: none; }
}

/* 三步卡片图标 */
.ld-step__icon {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
  margin: 0 auto 6px;
  filter: drop-shadow(0 10px 20px rgba(43, 108, 184, 0.16));
}
