/* 速运通整站手机 / 平板自适应修正。只改样式，不改功能。不改 style.css。 */

/* 1) 阿拉伯语等 RTL 下，营业时间「09:00–18:00」会被排成「18:00–09:00」。
      unicode-bidi:plaintext 按文字自身方向显示，数字区间保持从早到晚。 */
html[dir=rtl] .stats span,
html[dir=rtl] [data-i="stat3"],
html[dir=rtl] [data-i="cs_hours"],
html[dir=rtl] [data-i="ct_hours"],
html[dir=rtl] [data-i="en3d"],
html[dir=rtl] footer,
html[dir=rtl] footer p,
html[dir=rtl] footer span,
html[dir=rtl] footer li,
html[dir=rtl] .cs-line,
html[dir=rtl] .hours{
  unicode-bidi:plaintext;
}

/* 2) 页脚客服行在窄屏上 white-space:nowrap 会挤出视口，改为可折行。 */
@media(max-width:760px){
  footer .cs-line{white-space:normal;overflow-wrap:anywhere}
  footer .fgrid{grid-template-columns:1fr 1fr;gap:24px 16px}
}

/* 3) 宽表格：由最近的包裹层横向滑动，不改 table 的 display，以免打乱行列。 */
@media(max-width:760px){
  .wrap:has(table), .card:has(table){
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    max-width:100%;
  }
}

/* 4) 768 顶栏：汉堡 + 语言/国家 +「立即下单」略紧，略收间距并允许收缩。 */
@media(max-width:768px){
  .nav{gap:6px}
  .nav-end{gap:6px;min-width:0}
  .nav .logo{min-width:0;overflow:hidden}
  .logo span, .logo b, .logo{text-overflow:ellipsis}
}

/* 5) 地图、表单、图片在窄屏不撑出。 */
@media(max-width:760px){
  #map, .map, .leaflet-container{
    max-width:100%;
    width:100%;
  }
  input, select, textarea{max-width:100%}
  .ogrid, .two, .grid.two{grid-template-columns:1fr}
}

/* 6) 390 再收一点区块内边距，避免卡片贴边。 */
@media(max-width:420px){
  .wrap{padding-inline:16px}
  .card, .box, .panel{max-width:100%}
}
