/* =========================================================
   全设备自适应（仅在窄屏生效，桌面保持原样）
   ========================================================= */
html, body { min-width: 0 !important; max-width: 100% !important; overflow-x: hidden !important; }
img { max-width: 100%; }

/* —— 桌面/平板：只保证不溢出，不改任何布局 —— */
@media (min-width: 769px) {
  html, body { min-width: 0 !important; }
}

/* —— 手机（≤768）：重排 —— */
@media (max-width: 768px) {
  html, body { min-width: 0 !important; width: 100% !important; }
  * { -webkit-tap-highlight-color: transparent; }
  .wlimit, .header .wlimit { width: 100% !important; max-width: 100% !important; padding: 0 12px !important; box-sizing: border-box !important; }

  .headerdiv .header { height: auto !important; padding: 8px 0 !important; }
  .headerdiv .header .navs { float: none !important; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100% !important; }
  .headerdiv .header .logo { float: none !important; height: 54px !important; width: 126px !important; background-size: contain !important; background-repeat: no-repeat; margin: 0 !important; }
  .headerdiv .header .allfenl { float: none !important; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
  .headerdiv .header .kuai { height: 34px !important; line-height: 34px !important; padding: 0 16px !important; font-size: 14px !important; }
  #ssk1 { height: auto !important; padding: 0 !important; flex-wrap: wrap; justify-content: flex-start !important; }
  #ssk1 input[name="key"] { flex: 1 1 200px; min-width: 0; height: 36px !important; font-size: 14px !important; }

  .type { padding: 8px 0 4px !important; }
  .type1 { display: flex !important; align-items: flex-start; flex-wrap: wrap; line-height: 1.8 !important; overflow: visible !important; }
  .type1 .all-type { float: none !important; margin: 4px 6px 0 0 !important; flex: 0 0 auto; font-size: 13px; }
  .type1 .uli { float: none !important; flex: 1 1 auto; width: auto !important; min-width: 0; }
  .type1 a { float: left; margin-top: 4px !important; padding: 0 6px !important; font-size: 13px; }

  .s-box { width: 48.5% !important; margin: 0 0.75% 12px !important; float: left !important; box-sizing: border-box; }
  .s-box .s-pic { width: 100% !important; height: auto !important; }
  .s-box .p-title { font-size: 12px !important; line-height: 1.45 !important; }
  .t-box p { font-size: 15px !important; }

  .dsh-hstage, .dsh-bn-abs, .dsh-bn-stage, .dsh-mq, .dsh-pick { display: none !important; }

  /* 详情页：单栏 + 下载面板置顶 */
  .middle > .wlimit { display: flex !important; flex-direction: column !important; width: 100% !important; }
  .m-l, .m-r { float: none !important; width: 100% !important; margin: 0 0 14px !important; }
  .m-r { order: -1 !important; }
  .m-l img { width: 100% !important; height: auto !important; }
  .bt { font-size: 15px !important; padding: 10px 0 !important; line-height: 1.5 !important; }
  .piao, .mould1 { padding: 12px !important; }
  .d-down, .d-coll, .dshBtn { height: 46px !important; line-height: 46px !important; }
  .user-say, .company-say { width: 100% !important; box-sizing: border-box; }
}
@media (max-width: 380px) {
  .s-box { width: 100% !important; margin: 0 0 12px !important; }
}

@media (max-width: 768px) {
  #ssk1 { height: auto !important; padding: 6px 8px !important; }
  #ssk1 input[name="key"] { height: 36px !important; line-height: 36px !important; font-size: 14px !important; }
  #ssk1 .search-btn, #ssk1 button, #ssk1 a.kuai { height: 36px !important; line-height: 36px !important; padding: 0 14px !important; font-size: 14px !important; }
  .headerdiv .header { padding: 6px 0 !important; }
}
