/* ══ 杏和官网·门面手机端修复 · 🦞龙龙侠2 · 2026-10-16 ══
   叠加式修复，不改动原样式；一键回退＝移除各页对本文件的引用。 */

/* 1) 首页价格卡／培训行：窄屏竖排，取消 375px 最小宽（原溢出 855px） */
@media (max-width:720px){
  [style*="min-width:375px"]{ min-width:0 !important; }
  *:has(> [style*="min-width:375px"]){ flex-direction:column !important; align-items:stretch !important; }
}

/* 2) 板块·药膳茶 列表卡（原先为裸链接，宽 521px） */
.it{ display:flex !important; flex-wrap:wrap; align-items:center; gap:8px;
     max-width:100% !important; box-sizing:border-box; padding:10px 12px;
     border-bottom:1px solid #eee; text-decoration:none; color:inherit; }
.it .no{ flex:0 0 auto; color:#b8926a; font-weight:700; }
.it .tt{ flex:1 1 auto; min-width:0; white-space:normal !important;
         overflow-wrap:anywhere; word-break:break-word; }
.it .go{ flex:0 0 auto; color:#b8926a; }

/* 3) 长串／代码换行（知识能力库长括号串、头疗页 code 宽 606px） */
code,pre{ overflow-wrap:anywhere; word-break:break-word; }
p,li,dd,dt,td,th{ overflow-wrap:break-word; }

/* 5) 首页网格：窄屏改单列（价格网格 3 列、专家网格 4 列，原撑到 612px） */
@media (max-width:720px){
  .价格网格,.专家网格,
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns:repeat(5"]{ grid-template-columns:1fr !important; }
}

/* 4) 窄屏兜底：常见容器不超屏 */
@media (max-width:720px){
  .container,.wrap,.wrapper,main,article,section,.content,.card,.box,.panel,.grid,.row{
     max-width:100% !important; box-sizing:border-box !important; }
}

/* 6) 富文本：预格式换行、表格小屏可横滑（头疗页 code 宽 606px） */
pre{ white-space:pre-wrap !important; overflow-wrap:anywhere; word-break:break-word; }
code{ overflow-wrap:anywhere; word-break:break-word; }
@media (max-width:720px){
  table{ display:block !important; overflow-x:auto !important; max-width:100% !important; }
}
