/* 简易通 · 方案详情页移动适配
   引入方式：各详情页 <head> 末尾 <link rel="stylesheet" href="../../css/mobile-detail.css">
   作用范围：只修正窄屏（≤820px）下的断行、挤压、横向溢出；桌面版保持原设计。 */

html{-webkit-text-size-adjust:100%;}
img,svg,video{max-width:100%;}

@media (max-width:820px){

  body{overflow-x:hidden;}

  /* ---------- 标题：按视口收敛，避免 390 宽断行破词 ---------- */
  h1,.hero h1,.banner h1{
    font-size:clamp(21px,6.2vw,30px)!important;
    line-height:1.35!important;
    word-break:break-word;
  }
  .solution-title{font-size:clamp(19px,5vw,26px)!important;line-height:1.4!important;}
  .section-title,.sec-title,.title{
    font-size:clamp(19px,5.2vw,25px)!important;
    line-height:1.4!important;
  }
  h2{font-size:clamp(18px,4.8vw,24px)!important;}
  h3{font-size:clamp(16px,4.1vw,20px)!important;}
  p,li{font-size:clamp(14px,3.9vw,16px);}

  /* ---------- 容器与留白：左右各留 16px，段落内边距收紧 ---------- */
  .container{padding-left:16px!important;padding-right:16px!important;}
  .banner,.hero{padding:36px 18px!important;}
  .section{padding:44px 16px!important;}
  .block,.card,.adv-card,.benefit-card,.use-case-card,.data-card,.func-item{
    padding:20px 18px!important;
    border-radius:12px!important;
  }
  .block,.section{margin-bottom:18px;}

  /* ---------- 多列网格统一压成单列 ---------- */
  .func-grid,.adv-grid,.adv-box,.grid,.grid-2,.data-grid,
  .benefits-grid,.use-cases-grid,.two-col,.func-list{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  .stats{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:14px!important;
  }
  /* 横向流程改纵向 */
  .workflow-steps,.step-box,.deploy-list,.adv-flow{display:block!important;}
  .workflow-step,.arch-step,.step,.flow-box,.deploy-list>*{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    width:100%!important;
    margin-bottom:14px!important;
  }
  .step-num,.step-number,.arch-step .num{
    margin:0 0 8px!important;
  }
  /* 卡片内部对齐：居中改左对齐，长文更好读 */
  .card{text-align:left!important;}
  .card .icon{margin-bottom:6px!important;}

  /* ---------- 导航：横向滑动，不再竖排占掉半屏 ---------- */
  .nav-links,.nav-wrap{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    gap:18px!important;
    padding:8px 12px 6px!important;
    justify-content:flex-start!important;
    align-items:center!important;
    min-width:0!important;
    flex:1 1 auto!important;
  }
  .logo{font-size:14px!important;white-space:nowrap!important;flex:0 0 auto!important;}
  .logo img{max-height:28px;}
  .logo-icon{width:24px!important;height:24px!important;font-size:18px!important;}
  .nav-links::-webkit-scrollbar,.nav-wrap::-webkit-scrollbar{display:none;}
  .nav-links li{margin:0!important;list-style:none;}
  .nav-links a{margin:0!important;white-space:nowrap!important;font-size:14px!important;}
  .nav-wrap>*{white-space:nowrap!important;font-size:13.5px!important;}

  /* 页面顶部结构块（car_key 的 tab 也走这里） */
  .solution-tabs{gap:6px!important;}
  .solution-tabs .tab{padding:10px 12px!important;font-size:14px!important;}
  .solution-header{padding:34px 16px 26px!important;}

  /* ---------- 表格：字号收小、允许换行、宽度锁死 ---------- */
  table{width:100%!important;table-layout:auto!important;}
  .hardware-table,.param-table{display:block;overflow-x:auto;}
  th,td{
    font-size:12.5px!important;
    padding:8px 10px!important;
    line-height:1.55!important;
    word-break:break-word;
  }

  /* ---------- mermaid / 内嵌图：不超出屏幕，允许横向查看 ---------- */
  .mermaid{overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .mermaid svg{max-width:100%!important;height:auto!important;}

  /* ---------- 按钮：可点面积 ≥ 44px ---------- */
  .btn,.cta a,.cta button{
    min-height:44px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:11px 20px!important;
  }
  .cta{display:flex!important;flex-direction:column!important;gap:10px;align-items:stretch!important;}
  .cta a,.cta button{width:100%!important;}
  .badge-group,.tag-group{gap:8px!important;justify-content:flex-start!important;}

  /* 页脚 */
  .footer-content,.footer-links,.footer{
    flex-direction:column!important;
    align-items:center!important;
    text-align:center!important;
    gap:10px!important;
  }
}

/* ---------- 返回官网：独立页面的兜底导航（所有宽度可用） ---------- */
.jyt-back{
  position:fixed;right:14px;bottom:16px;z-index:999;
  display:inline-flex;align-items:center;gap:6px;
  padding:10px 14px;border-radius:999px;
  background:rgba(10,21,34,.9);color:#fff!important;
  font-size:13px;line-height:1;text-decoration:none!important;
  box-shadow:0 6px 18px rgba(0,0,0,.22);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
.jyt-back:hover{background:#0E7C86;color:#fff!important;}
@media (max-width:820px){
  .jyt-back{bottom:14px;right:12px;font-size:12.5px;padding:10px 12px;}
}
