/* ============================================================
   灯塔志愿 · 手机端视觉层 v1（2026-12-05）
   叠加在 style.css 之上，只作用于 ≤768px，桌面端零改动
   目标：把"横向滑动的卡片堆"改回单列阅读流，统一间距/字号/点击区
   ============================================================ */
@media (max-width: 768px) {

  /* ---------- 0. 基线 ---------- */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  section.section { padding: 44px 0 !important; }
  section[id] { scroll-margin-top: 64px; }
  img { max-width: 100%; }
  .btn { min-height: 46px; }

  /* ---------- 1. 顶部导航 ---------- */
  .nav { padding: 8px 0 !important; }
  .nav-inner { min-height: 44px !important; gap: 8px !important; width: 100% !important; min-width: 0 !important; }
  .logo { font-size: 17px !important; min-width: 0 !important; }
  .logo .logo-mark { width: 28px !important; height: 28px !important; }
  .nav-actions { gap: 8px !important; margin-left: auto !important; flex: 0 0 auto !important; }
  #pointsChip { display: none !important; }
  .nav-actions .btn-gold { display: none !important; }  /* 导航只留 logo + 菜单，主 CTA 由首屏承担 */
  .nav-login { font-size: 13px !important; opacity: .82; }
  .nav-actions .btn,
  #navUpgradeBtn { padding: 8px 13px !important; font-size: 12.5px !important; border-radius: 999px !important; }
  .nav-toggle { display: block !important; padding: 4px 6px !important; }
  /* 首屏盖在深绿上 → 浅色；滚动后 → 米白底 + 深色字，保证任何情况下可读 */
  body.home .nav:not(.scrolled) .logo,
  body.home .nav:not(.scrolled) .nav-toggle { color: #FFF6E2 !important; }
  .nav.scrolled {
    background: rgba(250, 246, 236, .96) !important;
    box-shadow: 0 4px 18px rgba(11, 36, 25, .08) !important;
  }
  .nav.scrolled .logo,
  .nav.scrolled .nav-toggle,
  .nav.scrolled .nav-login { color: #0B2419 !important; }

  /* ---------- 2. 首屏 ---------- */
  .hero { padding: 76px 0 30px !important; }
  .hero > .container:first-child { padding-bottom: 0 !important; }
  .fresh-pill {
    display: inline-flex !important; align-items: center; gap: 5px;
    max-width: 100%; font-size: 10.5px !important;
    padding: 5px 10px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .hero .badge { font-size: 11px !important; padding: 5px 11px !important; }
  .hero h1 {
    font-size: 31px !important; line-height: 1.28 !important;
    letter-spacing: -.6px !important; margin: 14px 0 !important;
  }
  .hero .lead {
    font-size: 14px !important; line-height: 1.8 !important;
    color: rgba(255, 255, 255, .70) !important;
  }
  .hero .lead b { color: #F0E0B6; font-weight: 600; }
  .hero-cta { flex-direction: column !important; gap: 10px !important; margin: 22px 0 0 !important; }
  .hero-cta .btn { width: 100% !important; padding: 14px 18px !important; font-size: 15px !important; }
  .hero-cta .btn-outline { border-color: rgba(255, 255, 255, .24) !important; color: rgba(255, 255, 255, .84) !important; }
  .hero-stats {
    display: grid !important; grid-template-columns: repeat(3, 1fr) !important;
    gap: 0 !important; margin-top: 26px !important; padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .hero-stats > div { padding: 0 10px; border-left: 1px solid rgba(255, 255, 255, .10); }
  .hero-stats > div:first-child { padding-left: 0; border-left: 0; }
  .hero-stats .num { font-size: 24px !important; letter-spacing: -.5px; }
  .hero-stats .label { font-size: 11px !important; line-height: 1.45; margin-top: 2px; color: rgba(255, 255, 255, .55) !important; }
  .hero-visual { margin-top: 26px !important; max-width: 100% !important; }
  .hero-img-wrap { border-radius: 18px !important; box-shadow: 0 18px 40px rgba(0, 0, 0, .35) !important; }
  .hero-img-wrap img { aspect-ratio: 16 / 10; object-fit: cover; }
  .hero-float { display: none !important; }  /* 两张浮卡信息与下方内容重复，手机端减噪 */

  /* ---------- 3. 信任条：小胶囊横滑 ---------- */
  .trust-bar { padding: 12px 0 !important; }
  .trust-inner {
    display: flex !important; overflow-x: auto !important; gap: 8px !important;
    padding: 0 20px 4px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .trust-inner::-webkit-scrollbar { display: none; }
  .trust-item {
    flex: 0 0 auto !important; font-size: 11.5px !important; gap: 5px !important;
    padding: 6px 11px; background: var(--bg-soft); border-radius: 999px;
    color: var(--muted) !important; font-weight: 500 !important;
  }
  .trust-item .ti { font-size: 13px !important; }

  /* ---------- 4. 区块标题 ---------- */
  .section-head { margin-bottom: 22px !important; }
  .section-head .badge { font-size: 11px !important; padding: 5px 11px !important; margin-bottom: 12px !important; }
  .section-head h2 {
    font-family: var(--font-serif) !important;
    font-size: 22px !important; line-height: 1.45 !important;
    letter-spacing: -.2px !important; font-weight: 700 !important;
    text-wrap: balance;
  }
  .section-head p { font-size: 13px !important; line-height: 1.75 !important; margin-top: 8px !important; max-width: 30em; margin-left: auto; margin-right: auto; }

  /* ---------- 5. 工具箱：单列堆叠 ---------- */
  .tools-grid {
    display: flex !important; flex-direction: column !important;
    gap: 12px !important; overflow: visible !important; padding: 0 !important;
  }
  .tools-grid > * { flex: none !important; width: 100% !important; }
  .tool-card { padding: 18px 16px 8px !important; border-radius: 18px !important; }
  .tool-card .tc-row { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tc-head { gap: 10px !important; margin-bottom: 6px !important; }
  .tc-ico { width: 36px !important; height: 36px !important; font-size: 17px !important; border-radius: 11px !important; }
  .tc-head h3 { font-size: 16px !important; }
  .tc-head p { font-size: 11.5px !important; }
  .tc-row {
    padding: 11px 22px 11px 10px !important; margin: 0 !important;
    border-top: 1px solid rgba(11, 36, 25, .06); border-radius: 0 !important; min-height: 46px;
  }
  .tc-row:first-child { border-top: 0; }
  .tool-card-hot .tc-row { border-top-color: rgba(255, 255, 255, .09); }
  .tc-row b { font-size: 13.5px !important; }
  .tc-row > span { font-size: 11.5px !important; line-height: 1.55 !important; color: var(--muted) !important; }
  .tool-card-hot .tc-row > span { color: rgba(240, 231, 210, .62) !important; }
  .tool-card-hot .tc-row b { color: #F4ECDA !important; }

  /* ---------- 6. 流程：竖向步骤 ---------- */
  .steps {
    display: block !important; overflow: visible !important;
    padding: 0 !important; margin: 0 !important;
  }
  .step-card { padding: 16px !important; margin-bottom: 10px; border-radius: 16px !important; }
  .step-num {
    width: 26px !important; height: 26px !important; font-size: 13px !important;
    border-radius: 9px !important; margin-bottom: 10px !important;
  }
  .step-card h3 { font-size: 15.5px !important; margin-bottom: 6px !important; }
  .step-card p { font-size: 12.5px !important; line-height: 1.7 !important; }
  .ai-do-list { gap: 6px !important; margin-top: 8px !important; }
  .ai-do-list li { font-size: 12.5px !important; line-height: 1.6 !important; }
  .step-arrow { display: none !important; }

  /* ---------- 7. 方案演示 ---------- */
  .plan-demo { padding: 22px 16px !important; border-radius: 22px !important; }
  .plan-cols {
    display: block !important; overflow: visible !important;
    padding: 0 !important; margin-top: 18px !important;
  }
  .plan-col {
    width: 100% !important; padding: 14px !important;
    border-radius: 16px !important; margin-bottom: 10px;
  }
  .plan-col:last-child { margin-bottom: 0; }
  .plan-col .pc-head { margin-bottom: 6px !important; }
  .plan-col .pc-title { font-size: 16px !important; }
  .plan-col .pc-desc { font-size: 11.5px !important; margin: 0 0 10px !important; }
  .school-row { padding: 10px 12px !important; gap: 8px !important; margin-bottom: 8px !important; }
  .school-row .sn { font-size: 13px !important; }
  .school-row .sm { font-size: 11px !important; }
  .prob { font-size: 12px !important; }
  .prob-bar { width: 46px !important; }

  /* ---------- 8. 四定法 / Agent ---------- */
  .method-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .method-step { padding: 15px !important; border-radius: 14px !important; }
  .ms-name { font-size: 17px !important; }
  .ms-desc { font-size: 12px !important; }
  .method-quote { font-size: 14px !important; padding: 15px !important; margin-top: 14px !important; }
  .agent-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .agent-card { padding: 13px !important; border-radius: 14px !important; }
  .agent-ico { font-size: 18px !important; margin-bottom: 6px !important; }
  .agent-name { font-size: 13px !important; margin-bottom: 4px !important; }
  .agent-desc { font-size: 11px !important; line-height: 1.6 !important; color: #69776f !important; }
  .agent-foot { font-size: 12.5px !important; line-height: 1.8 !important; padding: 14px !important; }
  /* 暗色模式下 Agent 卡片文字补色（原样式只改了底色，标题仍是深绿） */
  html[data-theme="dark"] .agent-name { color: #F2EAD6 !important; }
  html[data-theme="dark"] .agent-desc { color: rgba(231, 238, 233, .66) !important; }
  html[data-theme="dark"] .agent-foot { background: rgba(240, 224, 182, .06) !important; color: #DCE6DF !important; }
  html[data-theme="dark"] .agent-foot b { color: #F0E0B6 !important; }

  /* ---------- 9. 定价：三卡竖排，完整展示权益 ---------- */
  .pricing-grid {
    display: flex !important; flex-direction: column !important;
    gap: 12px !important; overflow: visible !important; padding: 0 !important;
  }
  .pricing-grid > * { flex: none !important; width: 100% !important; }
  .price-card { padding: 22px 18px !important; border-radius: 18px !important; margin-top: 8px; }
  .price-card:first-child { margin-top: 12px; }
  .price-card.featured { transform: none !important; box-shadow: 0 12px 28px rgba(201, 164, 92, .22) !important; }
  .price-flag { top: -11px !important; font-size: 11px !important; padding: 4px 12px !important; }
  .price-name { font-size: 17px !important; }
  .price-for { font-size: 12px !important; }
  .price-amount { margin: 14px 0 2px !important; }
  .price-amount .val { font-size: 38px !important; }
  .price-amount .cur { font-size: 17px !important; }
  .price-amount .old { font-size: 13px !important; }
  .price-period { font-size: 12px !important; }
  .price-list { margin: 14px 0 16px !important; gap: 8px !important; }
  .price-list li { font-size: 12.5px !important; line-height: 1.6 !important; gap: 8px !important; }
  #vipCard .price-list li:nth-child(n+6) { display: flex !important; }
  .price-card .btn { width: 100% !important; }

  /* ---------- 10. 评价 ---------- */
  .reviews-grid { display: block !important; overflow: visible !important; padding: 0 !important; }
  .reviews-grid > * { width: 100% !important; margin-bottom: 10px; }
  .review-card { padding: 18px !important; border-radius: 16px !important; }
  .review-text { font-size: 13.5px !important; line-height: 1.75 !important; margin-bottom: 14px !important; }
  .stars { font-size: 13px !important; margin-bottom: 10px !important; }

  /* ---------- 11. FAQ ---------- */
  .faq-item { border-radius: 14px !important; margin-bottom: 8px !important; }
  .faq-q { padding: 15px 14px !important; font-size: 14px !important; min-height: 48px; gap: 10px !important; }
  .faq-q .fq-icon { width: 24px !important; height: 24px !important; font-size: 15px !important; }
  .faq-a p { font-size: 12.5px !important; line-height: 1.8 !important; }

  /* ---------- 12. 底部 CTA ---------- */
  .cta-band { padding: 26px 18px !important; border-radius: 20px !important; }
  .cta-band h2 { font-size: 22px !important; line-height: 1.42 !important; margin-bottom: 10px !important; }
  .cta-band p { font-size: 12.5px !important; line-height: 1.75 !important; margin-bottom: 18px !important; }
  .cta-btns { gap: 10px !important; }
  .cta-btns .btn { width: 100% !important; }

  /* ---------- 13. 页脚 ---------- */
  .footer { padding: 32px 0 20px !important; margin-top: 40px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 20px 14px !important; margin-bottom: 24px !important; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-desc { font-size: 11.5px !important; line-height: 1.8 !important; max-width: none !important; }
  .footer h4 { font-size: 12.5px !important; margin-bottom: 8px !important; }
  .footer ul { gap: 6px !important; }
  .footer ul li { font-size: 11.5px !important; line-height: 1.8 !important; }
  .footer-bottom { font-size: 10.5px !important; line-height: 1.7 !important; gap: 8px !important; }

  /* ---------- 14. 底部导航 ---------- */
  .mobile-tabbar { border-top: 1px solid rgba(11, 36, 25, .08) !important; }
  .mtb-item { font-size: 10.5px !important; }
  .mtb-ico { font-size: 19px !important; }
  body.has-tabbar { padding-bottom: 76px !important; }

  /* ---------- 15. 触感 ---------- */
  /* 手机端关掉逐条入场动画：避免慢机型/弱网下内容长时间半透明 */
  .reveal, .reveal-d1, .reveal-d2, .reveal-d3, .reveal-d4, .reveal-d5 {
    opacity: 1 !important; transform: none !important;
    animation: none !important; transition: none !important;
  }
  .btn:active, .price-card .btn:active, .hero-cta .btn:active { transform: scale(.985); }
  .card-hover:hover { transform: none !important; box-shadow: var(--shadow-sm) !important; }
  .tc-row:hover { background: transparent !important; }
}

/* 窄屏（≤360）再收一档 */
@media (max-width: 360px) {
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .hero h1 { font-size: 28px !important; }
  .section-head h2 { font-size: 22px !important; }
  .hero-stats .num { font-size: 21px !important; }
}

/* ===== 暗色模式下方法说明块对比度修正（2026-12-05） ===== */
@media (prefers-color-scheme: dark){
  .method-foot{
    color:#D8D1C0!important;
    background:rgba(212,175,106,.10)!important;
    border-left-color:#C9A85C!important;
  }
  .method-foot b{color:#F3D68A!important}
  .method-quote{color:#F3D68A!important}
  .ms-desc{color:#C9C3B4!important}
  .ms-agent{color:#D8C89A!important}
}

/* 暗色模式：退款承诺块 */
@media (prefers-color-scheme: dark){
  .price-guarantee{
    color:#CFC8B8!important;
    background:rgba(18,96,60,.20)!important;
    border-color:rgba(212,175,106,.22)!important;
  }
  .price-guarantee b{color:#F3D68A!important}
  .price-guarantee span{color:#A9A294!important}
}
