/* custom/overrides.css — 自定义覆盖样式（预留）
   后续微调样式在这里写，不改核心组件 */

/* ---------- 全站统一服务边界段 ---------- */
.boundary-block { max-width: 880px; }
.boundary-list {
  list-style: none;
  margin: 0;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.boundary-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.8;
  padding: 6px 0;
}
.boundary-item + .boundary-item { border-top: 1px dashed var(--line); }
.boundary-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 11px;
}

/* ---------- 首页三层版面（纵向堆叠） ---------- */
.plans-grid { grid-template-columns: 1fr; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; gap: var(--space-3); }
.plan-title {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--fs-h3);
  color: var(--fg);
}
.plan-num {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--accent);
}
.plan-fit { font-size: 14px; color: var(--body); }
.plan-fit strong { color: var(--fg); font-weight: 600; }
.plan-card .plan-includes {
  font-size: 13px;
  color: var(--accent);
  padding: var(--space-2) 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.plan-desc { font-size: 14.5px; color: var(--body); line-height: 1.8; }
.plan-cta {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.plan-cta a {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
}
.plan-cta a:hover { border-color: var(--primary); }
.plan-note {
  max-width: 720px;
  margin: var(--space-5) auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--meta);
  line-height: 1.8;
}

/* ---------- 同层快钱条 ---------- */
.quick-bar-wrap { padding-top: var(--space-4); }
.quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
}
.quick-bar-title { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.quick-bar-desc { font-size: 14px; color: var(--body); line-height: 1.8; }
.quick-bar-cta { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 760px) {
  .quick-bar { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .quick-bar-cta { width: 100%; text-align: center; }
}

/* ---------- 服务档位（四档 + 增值服务 + 报价规则） ---------- */
.tier-grid { align-items: stretch; }
.pricing-note {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 6px;
}
.pricing-list { margin-top: var(--space-3); }
.pricing-item.nowrap span { white-space: nowrap; }
.pricing-config {
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.pricing-config strong { color: var(--fg); }
.pricing-price { font-weight: 700; font-size: 30px; }
.pricing-suffix { font-size: 14px; }
.pricing-featured .pricing-qi { color: var(--accent); opacity: .8; }
.tier-unified {
  margin-top: var(--space-5);
  background: hsl(32 40% 96% / .5);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5);
}
.tier-unified-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--space-3);
}
.tier-unified-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier-unified-list li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.7;
}
.tier-unified-label {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--accent);
}
.tier-extra, .tier-note { margin-top: var(--space-5); padding: var(--space-5) var(--space-6); }
.tier-extra-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--space-3);
}
.tier-extra-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier-extra-list li {
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}
.tier-extra-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.tier-note p { font-size: 13.5px; color: var(--body); line-height: 1.8; margin-bottom: 8px; }
.tier-note p:last-child { margin-bottom: 0; }
.tier-deliver {
  margin-top: var(--space-5);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: hsl(32 40% 96% / .6);
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5);
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.8;
}
.tier-deliver-label {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- 品控三卡（答疑 / 审查 / 诊断，纵向上下布局） ---------- */
.st-grid { grid-template-columns: 1fr; align-items: stretch; }
.st-card { display: flex; flex-direction: column; gap: var(--space-3); text-align: left; }
.st-title { font-size: 18px; color: var(--fg); text-align: left; }
.st-fit { font-size: 14px; color: var(--body); line-height: 1.7; }
.st-fit strong { color: var(--fg); }
.st-items { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.st-items li {
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}
.st-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.st-item-label { font-weight: 600; color: var(--fg); margin-bottom: 2px; }
.st-price { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.st-price-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: hsl(213 40% 96% / .7);
  border: 1px solid var(--line);
  color: var(--primary);
  font-weight: 600;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.st-note { font-size: 13px; color: var(--muted); line-height: 1.7; }
.st-card .btn { margin-top: auto; align-self: flex-end; }
/* 品控服务说明：圆点列表 */
.st-unified .tier-unified-list li { position: relative; padding-left: 16px; }
.st-unified .tier-unified-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- 体系两路径 ---------- */
.paths-grid { align-items: stretch; }
.path-card { display: flex; flex-direction: column; gap: var(--space-3); }
.path-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .03em;
}
.path-title { font-size: 17px; color: var(--fg); }
.path-fit { font-size: 14px; color: var(--body); line-height: 1.7; }
.path-fit strong { color: var(--fg); }
.path-body { font-size: 14px; color: var(--body); line-height: 1.8; }
.path-price {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.path-entry { margin-top: auto; padding-top: var(--space-3); text-align: right; }
.path-entry a { font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.path-entry a:hover { text-decoration: underline; }
.path-aside {
  margin-top: var(--space-5);
  text-align: center;
  font-size: 13px;
  color: var(--meta);
}
.path-aside a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* 体系页定价三卡（覆盖原 grid-4） */
.pricing-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- 移动端吸底四宫格 ---------- */
.mobile-tabbar { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: 62px; }
  .mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58px;
    z-index: 800;
    background: var(--card, #fff);
    border-top: 1px solid var(--line, #e6e1d8);
    box-shadow: 0 -4px 16px rgba(15, 20, 26, .08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--meta, #7a7266);
    text-decoration: none;
    font-size: 11px;
    line-height: 1;
  }
  .mobile-tabbar a svg { color: currentColor; }
  .mobile-tabbar a.active { color: var(--primary, #2b7fb8); }
  /* 悬浮按钮避让四宫格 */
  .float-btns { bottom: 76px; }
}

/* ---------- 关注乐更文化整块（视频/课程页底部按钮与免责声明之间） ---------- */
.follow-us-section { margin-top: 48px; text-align: center; }
.follow-eyebrow { color: var(--accent); font-size: 16px; font-weight: 500; letter-spacing: .05em; margin: 0 0 16px; }
.follow-title { color: var(--fg); font-size: 36px; font-weight: 700; line-height: 1.25; margin: 0 0 40px; }
.follow-us-card { max-width: 320px; margin: 0 auto; background: var(--card); border-top: 3px solid var(--accent); border-radius: 24px; padding: 40px 30px; box-shadow: 0 10px 40px rgba(0,0,0,.06); }
.follow-us-card img { width: 200px; max-width: 100%; border-radius: 8px; display: block; margin: 0 auto; }
.follow-us-card p { margin: 20px 0 0; color: var(--fg); font-size: 16px; font-weight: 500; }
.follow-slogan { margin-top: 40px; color: var(--accent); font-size: 20px; font-weight: 500; }

@media (max-width: 760px) {
  .follow-us-section { margin-top: 36px; }
  .follow-title { font-size: 26px; margin-bottom: 28px; }
  .follow-us-card { padding: 28px 20px; border-radius: 20px; }
  .follow-us-card img { width: 170px; }
  .follow-slogan { margin-top: 28px; font-size: 18px; }
}

/* ---------- 移动端适配修复（20261118）：首屏单列居中 / 横向兜底 / 抽屉收窄 ---------- */
@media (max-width: 760px) {
  /* 横向溢出兜底：杜绝整页横向滚动 */
  html, body { overflow-x: hidden; }

  /* 背景视频首屏：内层容器强制单列、文字居中、头像置顶；满屏高度 */
  .hero,
  .hero:has(.hero-bg-video) > .container {
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero:has(.hero-bg-video) > .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-4);
    align-items: center;
    align-content: center;
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }
  .hero:has(.hero-bg-video) .hero-text { text-align: center; }
  .hero:has(.hero-bg-video) .hero-visual { order: -1; margin-bottom: var(--space-3); }
  .hero:has(.hero-bg-video) .hero-ctas { justify-content: center; flex-wrap: wrap; }
  .hero:has(.hero-bg-video) .hero-trust { margin-left: auto; margin-right: auto; }

  /* 头像收窄，保证首屏一屏放下 */
  .hero-avatar { width: 150px; height: 150px; border-radius: 32px; padding: 8px; }
  .hero-avatar img { border-radius: 24px; }
  .case-hero .hero-avatar,
  .case-hero .hero-avatar img { border-radius: 50%; }

  /* 标题：中文按标点/词边界折行，仅超长兜底断词；多行均分避免孤字 */
  h1, h2, h3, h4 { word-break: normal; overflow-wrap: break-word; line-break: strict; text-wrap: balance; }
  .hero h1 { font-size: clamp(22px, 6vw, 26px); line-height: 1.28; }
  .section-head h2 { font-size: clamp(21px, 5vw, 24px); line-height: 1.3; }
  .hero .hero-lead { font-size: 15px; line-height: 1.7; }
  .hero .hero-trust { font-size: 12.5px; line-height: 1.7; }
  .section-head .section-sub { font-size: 15px; line-height: 1.7; }

  /* 抽屉收窄到 1/3 屏宽，字号同步缩小 */
  .drawer { width: 33.333%; max-width: 180px; padding: var(--space-4) var(--space-3); }
  .drawer a { font-size: 14px; padding: 12px 10px; }
}

/* ---------- 首屏背景视频：就绪淡入，海报背景兜底（20261118） ---------- */
.hero-bg-video-el { opacity: 0; transition: opacity .4s ease; }
.hero-bg-video-el.is-ready { opacity: 1; }

/* ---------- 数据背书条 stats_bar：桌面横排 / 移动端三栏同行 ---------- */
.stats-bar { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-sans); font-size: 56px; font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 8px; }
.stat-sep { color: var(--line); }

/* ---------- 样板页合作双栏卡：桌面两栏 / 移动端单列 ---------- */
.collab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1024px; margin: 0 auto; }

@media (max-width: 760px) {
  .stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; flex-wrap: nowrap; }
  .stat-num { font-size: 42px; }
  .stat-label { font-size: 12px; }
  .stat-sep { display: none; }

  .collab-grid { grid-template-columns: 1fr; gap: 20px; }
  .collab-card { padding: 20px !important; }
}

/* ---------- 我的故事：三卡片上图下文并列，复用 .card 方格水印 ---------- */
.story-grid { align-items: stretch; }
.story-card { padding: 0; display: flex; flex-direction: column; }
.story-card-img { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.story-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-card-body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.story-card-body .card-num { margin-bottom: var(--space-2); }
.story-card-body h3 { margin-bottom: var(--space-2); }
.story-card-body p { font-size: 15px; }

/* ---------- 本轮移动端修复（20261118）：服务卡按钮居中 / 首卡两按钮同行自适应 ---------- */
@media (max-width: 760px) {
  .plan-cta { justify-content: center; gap: 10px; }
  .plan-cta a { flex: 0 1 auto; white-space: nowrap; padding: 8px 12px; font-size: 13px; }
  .st-card .btn { align-self: center; }
}

