/* 故人官网 · 移动端精修 M3
   只在 ≤760px 生效。纯白体系不变，只调比例、节奏、触感。 */

@media (max-width:760px){
  /* ── 基线 ── */
  html{-webkit-text-size-adjust:100%;scroll-padding-top:70px}
  body{overscroll-behavior-y:contain}
  a,button,summary{touch-action:manipulation}
  img,svg,canvas,video{max-width:100%}
  p,li{text-wrap:pretty}
  h1,h2,h3{text-wrap:balance}

  /* ── 顶栏压到 54，触摸目标 44 ── */
  header:not(.doc-hero){height:54px;padding-top:0;padding-bottom:0}
  header:not(.doc-hero) .brand{font-size:15px}
  .burger{width:44px;height:44px}

  /* ── 首屏：标题断崖、按钮全宽、事实四格改两列 ── */
  .hero{padding:96px var(--gut) 28px;min-height:auto;grid-template-rows:auto auto}
  .hero-kicker{font-size:10.5px;letter-spacing:.18em}
  .hero h1{font-size:clamp(34px,10.2vw,54px);letter-spacing:.05em;margin-left:.05em}
  .hero-line{font-size:15px;line-height:1.8;margin-top:14px}
  .hero-sub{font-size:14.5px;line-height:1.85;max-width:32em}
  .hero-act{display:flex;flex-direction:column;gap:10px;width:100%;max-width:340px;margin:24px auto 0}
  .hero-act .btn,.hero-act .btn-ghost{width:100%;justify-content:center;min-height:50px;font-size:15px}
  .hero-facts{padding-top:18px;gap:12px 0;font-size:11px}
  .hero-facts span{border-left:0;padding:0;width:50%;text-align:center;line-height:1.7}

  /* ── 段落节奏 ── */
  .sec{padding:48px 0}
  h2{font-size:clamp(24px,6.6vw,34px);line-height:1.32;letter-spacing:-.01em}
  .sec p{font-size:15px;line-height:1.92}

  /* ── 图版横带：一次停一张 ── */
  .band-track{gap:12px;scroll-snap-type:x mandatory;scroll-padding-left:var(--gut)}
  .pb{width:min(76vw,300px);scroll-snap-align:center}
  .pb img{height:auto;aspect-ratio:4/5}

  /* ── 页脚：一列品牌 + 两列链接 ── */
  footer{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
  .foot-top{grid-template-columns:1fr;gap:26px}
  .foot-cols{grid-template-columns:1fr 1fr;gap:22px 18px}
  .foot-bottom{flex-direction:column;gap:8px;font-size:11px;line-height:1.8}

  /* ── 全屏菜单：可滚、项高够点、底部安全区 ── */
  .mm{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:env(safe-area-inset-bottom)}
  .mm nav a{min-height:56px}
}

@media (max-width:480px){
  .hero h1{font-size:clamp(31px,9.6vw,44px)}
  .hero{padding-top:88px}
  .sec{padding:42px 0}
  .foot-cols{gap:20px 14px}
}

@media (hover:none){
  .pb:hover{transform:none;box-shadow:none}
  .pb:hover img{transform:none}
}

/* ── 副作用反馈：复制邮箱后的 toast（全端可用） ── */
.toast{position:fixed;left:50%;bottom:calc(26px + env(safe-area-inset-bottom));transform:translate(-50%,14px);background:#111315;color:#fff;font-size:13px;line-height:1;padding:13px 18px;border-radius:999px;opacity:0;pointer-events:none;transition:opacity .28s,transform .28s cubic-bezier(.16,1,.3,1);z-index:120;box-shadow:0 8px 28px rgba(0,0,0,.18);max-width:calc(100vw - 40px);text-align:center;font-family:var(--sans,inherit)}
.toast.on{opacity:1;transform:translate(-50%,0)}

@media (max-width:760px){
  /* 图带边缘渐隐：暗示还能往右滑 */
  .band-track{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 14px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 14px),transparent 100%)}

  /* 按下去要有回应 */
  .btn:active,.btn-ghost:active,.pb:active,.entry:active{transform:scale(.985);transition-duration:.12s}
}

@media (max-width:760px){
  /* 云 / 智能体子页首屏标题 */
  .yun-hero h1{font-size:clamp(30px,8.4vw,44px);line-height:1.24}
  .ag-hero h1{font-size:clamp(30px,8.6vw,44px);line-height:1.24}
}
/* ── 键盘可见焦点（全端） ── */
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid #D9480F;outline-offset:3px}

@media (max-width:760px){
  /* 协议页 / 404 页脚链接：两列排齐，不再掉行 */
  .footer-links{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
  .footer-links a{display:inline-flex;align-items:center;min-height:22px}
  .footer-beian{display:flex;flex-direction:column;gap:4px}

  /* 手机 404：内容和页脚同屏可见，不再把页脚推到下面 */
  .lost{min-height:auto;padding:72px 0 56px}
  .lost .code{font-size:clamp(64px,18vw,104px)}
}