/* 手机专用元素：桌面一律不显示（模板里已输出，靠这里隐藏） */
.banner-mt { display: none; }
.pdmn-cb, .pdmn-btn, .pdmn-panel { display: none; }

/* 手机端自适应（≤900px）——2026-11-14 v2
   只在小屏生效，不影响桌面；关键：resetcommon.css 里 body{min-width:1200px} 必须归零 */

@media (max-width: 1279px) {
  /* ================= 全局 ================= */
  html, body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }
  body { font-size: 15px !important; line-height: 1.7; }
  img { max-width: 100%; }
  .blk-main, .content, .contentt, .pf-main, .pf-wrap, .guide, .case, .news, .about, .product,
  .wrapper, .container, .wrap, .cas-tit, .news-con, .news-tit {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    float: none !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 浮动的左右栏（fl/fr/blk-sm）在窄屏会互相挤压、被挤到屏幕外 */
  .fl, .fr, .blk-sm, .blk-lg, .blk-md, .plc_left, .plc_right, .left, .right {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  /* ================= 头部：改为常规流，不再绝对定位压住横幅 ================= */
  .head {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    background: #07338a;
  }
  .head, .head1, .hea-top, .rig { height: auto !important; min-height: 0 !important; overflow: visible !important; }
  .head1 { position: relative !important; width: 100% !important; min-width: 0 !important; }
  .hea-top { display: block !important; padding: 10px 14px 0 !important; width: 100% !important; box-sizing: border-box; }
  .logo { float: none !important; display: block !important; width: auto !important; }
  .logo .t_logo { display: inline-block; }
  .logo .t_logo img { height: 42px !important; width: auto !important; }
  .logo h2 { display: none !important; }              /* 标语在小屏省略，省空间 */
  .rig { float: none !important; width: 100% !important; min-width: 0 !important; }
  .rig-top {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    font-size: 13px !important;
    padding: 6px 0 0 !important;
    height: auto !important;
  }
  .rig-top span { font-size: 13px !important; }
  .lang-switch { display: none !important; }

  /* 导航：横向滚动，一行显示 */
  .menu { width: 100% !important; margin-top: 4px !important; height: auto !important; overflow: visible !important; }
  .menu ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
    margin: 0;
  }
  .menu ul::-webkit-scrollbar { display: none; }
  .menu ul > li { flex: 0 0 auto !important; float: none !important; }
  .head .menu, .hea-top .menu, .rig .menu { height: auto !important; min-height: 42px !important; }
  .menu ul, .head .menu ul, .head1 .menu ul, .hea-top .menu ul, .rig .menu ul { height: auto !important; min-height: 40px !important; }
  .menu ul > li > a {
    display: block;
    line-height: 1.6 !important;
    padding: 8px 11px 10px !important;
    font-size: 14px !important;
    white-space: nowrap;
  }
  /* 二级下拉：小屏不展开（点进去看栏目列表即可） */
  .menu ul > li:hover > ul, .menu ul > li > .nav-con, .nav-con { display: none !important; }

  /* ================= 横幅 ================= */
  .banner, .home-banner, .banner.home-banner, .banner.home-banner.slick-slider {
    width: 100% !important; height: 210px !important; min-height: 0 !important; max-height: 210px !important; overflow: hidden !important;
  }
  .banner .slick-list, .banner .slick-track, .banner .slick-slide { height: 210px !important; }
  .banner img, .home-banner img,
  .banner.home-banner img, .banner .slick-slide img {
    object-position: left center !important;
    width: 100% !important;
    height: 210px !important;
    object-fit: cover;
    object-position: center;
  }
  .banner .slick-dots { bottom: 8px !important; }

  /* 内页横幅：手机不显示烤着字的桌面图，改用统一底图 + 真实文字标题（永不裁字） */
  .banner:not(.home-banner) {
    position: relative !important;
    height: 150px !important; min-height: 0 !important; max-height: 150px !important;
    overflow: hidden !important;
    background: #07338a url(/static/upload/image/20261114/m-banner-bg.jpg) center / cover no-repeat !important;
  }
  .banner:not(.home-banner) > img { display: none !important; }
  .banner:not(.home-banner)::after {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 80%;
    background: linear-gradient(90deg, rgba(6,40,110,.90) 0%, rgba(6,40,110,.60) 55%, rgba(6,40,110,0) 100%);
  }
  .banner-mt {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    z-index: 3; display: block; max-width: 78%;
    color: #fff; font-size: 25px; font-weight: 700; letter-spacing: 1px;
    line-height: 1.3; text-shadow: 0 2px 10px rgba(0,0,0,.45);
  }
  .banner-mt:empty { display: none; }
  .banner-mt::after {
    content: ""; display: block; width: 36px; height: 3px; margin-top: 9px;
    background: #ffb300; border-radius: 2px;
  }

  /* 面包屑小屏压成一行 */
  .guide, .position, .breadcrumb, .p5_prod_crumb { font-size: 13px !important; }

  /* ================= 首页模块 ================= */
  .guide, .case, .news, .about, .product {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 26px !important;
    padding-bottom: 26px !important;
    background-size: cover !important;
    background-position: center !important;
  }
  h1 { font-size: 21px !important; line-height: 1.45 !important; }
  h2 { font-size: 20px !important; line-height: 1.45 !important; }
  h3 { font-size: 16px !important; }
  p, li { font-size: 15px !important; line-height: 1.75 !important; }

  /* 多列 → 单列 */
  .news-con, .news-con > div, .news-con > ul > li,
  .case .content > div, .case .content > ul > li,
  .guide .contentt > div, .pf-main > div, .pf-main > ul > li,
  .product .content > div, .product .content > ul > li,
  .cas-list > li, .case-list > li, .cs-list > li {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 14px !important;
  }
  .cas-list, .case-list, .cs-list { display: block !important; }

  /* 站内搜索 */
  .pd-homesearch-wrap { width: 100% !important; max-width: 100% !important; margin: 16px auto 18px !important; padding: 0 14px !important; box-sizing: border-box; }
  .pd-homesearch { display: flex !important; }
  .pd-homesearch input { padding: 12px 10px !important; font-size: 14px !important; }
  .pd-homesearch button { padding: 0 16px !important; font-size: 15px !important; letter-spacing: 0 !important; }
  .pd-homesearch-hot { justify-content: flex-start !important; transform: none !important; font-size: 13px !important; gap: 8px !important; }

  /* ================= 产品详情 ================= */
  .p5_prod_body, .p5_prod_gallery, .p5_prod_specs, .p5_prod_overview {
    display: block !important; width: 100% !important; float: none !important;
  }
  .p5_prod_mainimg img { width: 100% !important; height: auto !important; }
  .p5_prod_title { font-size: 19px !important; line-height: 1.5 !important; width: auto !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; }
  .p5_prod_body > *, .p5_prod_gallery, .p5_prod_specs { max-width: 100% !important; box-sizing: border-box; margin-left: 0 !important; margin-right: 0 !important; }
  .p5_prod_overview { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; padding-left: 16px !important; padding-right: 16px !important; }
  .p5_prod_thumbs { overflow-x: auto; white-space: nowrap; }
  table { max-width: 100% !important; }
  .pd-spec-wrap, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ================= 搜索结果 ================= */
  .sr-list { grid-template-columns: 1fr !important; gap: 12px !important; }
  .sr-card { padding: 12px !important; gap: 10px !important; width: 100% !important; box-sizing: border-box !important; min-width: 0 !important; overflow: hidden; }
  .sr-card .sr-body { min-width: 0 !important; flex: 1 1 auto !important; }
  .sr-card h3, .sr-card p, .sr-card span, .sr-card div { overflow-wrap: anywhere; word-break: break-word; }
  .sr-card img { width: 84px !important; height: 66px !important; }
  .sr-card h3 { font-size: 15px !important; }
  .sr-head { font-size: 14px !important; }

  /* ================= 页脚 ================= */
  .footer, .foot { width: 100% !important; }
  .footer .content > div, .foot .content > div { width: 100% !important; margin-bottom: 16px !important; }

  /* ================= 悬浮客服：小屏收起，只留右下角气泡 ================= */
  .my-kefu, .my-kefu-main, .my-kefu-tel-main { display: none !important; }

  /* 其它写死宽度 */
  [style*="width:1200px"], [style*="width: 1200px"],
  [style*="width:1000px"], [style*="width: 1000px"] { width: 100% !important; }



  /* 首页 新闻&问答：手机端标题不竖排、卡片改上下结构 */
  .news .news-tit { display: block !important; }
  .news .news-tit h2 { font-size: 22px !important; white-space: nowrap !important; margin: 0 0 12px !important; }
  .news .news-nav { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 8px !important; width: 100% !important; }
  .news .news-nav a { flex: 0 0 auto !important; width: auto !important; white-space: nowrap !important; }
  .news .news-nav a { padding: 7px 10px !important; font-size: 12.5px !important; line-height: 1.4 !important; }
  .news .news-con .left dl { display: flex !important; flex-direction: column !important; height: auto !important; }
  .news .news-con .left dl dt { flex: 0 0 auto !important; width: 100% !important; height: 168px !important; }
  .news .news-con .left dl dt img { width: 100% !important; height: 168px !important; object-fit: cover !important; }
  .news .news-con .left dl dd { width: 100% !important; flex: 1 1 auto !important; padding: 14px 16px !important; }
  .news .news-con .rig dl { height: auto !important; min-height: 76px !important; }
  .news .news-con .rig dl dt { flex: 0 0 56px !important; width: 56px !important; height: 56px !important; }

  /* 首页 新闻&问答：窄屏上下堆叠，分隔线改横线 */
  .news .news-con { display: block !important; gap: 0 !important; }
  .news .news-con .left { width: 100% !important; flex: none !important; margin: 0 0 26px 0 !important; }
  .news .news-con .rig {
    width: 100% !important; flex: none !important; min-width: 0 !important;
    border-left: 0 !important; padding-left: 0 !important;
    border-top: 1px solid #e8eef8 !important; padding-top: 22px !important;
  }
  .news .pd-colh { margin-bottom: 14px !important; }


  /* ================= 手机端去拥挤（2026-11-14） ================= */
  /* 1) 顶部导航条隐藏：汉堡菜单已有全部栏目，横滑条只露 3 项像被截断 */
  .head .menu, .head1 .menu { display: none !important; }
  .head, .head1 { padding-bottom: 10px !important; }

  /* 2) 搜索框：文字不挤、按钮不挤 */
  .pd-homesearch input { font-size: 14px !important; padding: 13px 12px !important; }
  .pd-homesearch button { padding: 0 18px !important; font-size: 15px !important; letter-spacing: 0 !important; }
  .pd-homesearch-hot { font-size: 12.5px !important; line-height: 1.8 !important; gap: 6px 10px !important; }
  .pd-homesearch-hot a { font-size: 12.5px !important; }

  /* 3) 合作客户 logo：绝对定位的圆标会飘到「新闻&问答」上，改静态网格 */
  .loop .content { display: block !important; }
  .loop .lop-left, .loop .lop-rig { width: 100% !important; float: none !important; position: static !important; }
  .loop .lop-rig {
    display: grid !important; grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important; margin: 20px 0 0 !important; height: auto !important; min-height: 0 !important;
  }
  .loop { height: auto !important; min-height: 0 !important; padding: 26px 0 32px !important; background-size: cover !important; }
  .loop .lop-rig em,
  .loop .lop-rig em.w1, .loop .lop-rig em.w2, .loop .lop-rig em.w3 {
    position: static !important; display: flex !important; align-items: center; justify-content: center;
    width: auto !important; height: 64px !important; left: auto !important; top: auto !important;
    margin: 0 !important; border-radius: 10px; box-shadow: none !important;
    background: #fff; padding: 8px !important; overflow: visible !important;
  }
  .loop .lop-rig em img {
    position: static !important; width: auto !important; max-width: 88% !important; max-height: 42px !important;
    transform: none !important; left: auto !important; top: auto !important;
  }

  /* 4) 产品分类：4 个挤一行 → 2×2（注意原规则是 .product .pro-nav，要同特异度才盖得住） */
  .product .pro-nav { height: auto !important; min-height: 0 !important; background-size: cover !important; padding: 16px 14px !important; margin-bottom: 18px !important; }
  .product .pro-nav ul { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .product .pro-nav ul li {
    width: auto !important; float: none !important; margin: 0 !important;
    border-right: 0 !important; padding: 12px !important;
    background: rgba(255,255,255,.10) !important; border-radius: 8px;
  }
  .product .pro-nav ul li h4 em { font-size: 14px !important; line-height: 1.35 !important; margin-left: 6px !important; }
  .product .pro-nav ul li p { padding-left: 0 !important; margin-top: 8px !important; }
  .product .pro-nav ul li p em a { font-size: 12.5px !important; line-height: 1.9 !important; }

  /* 4b) 产品轮播下方的小图标题：允许两行，不再只剩「Fiber Optic…」 */
  .pro-bot .swiper-slide em {
    font-size: 11.5px !important; line-height: 1.35 !important; white-space: normal !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; height: auto !important; min-height: 31px;
  }

  /* 5) 案例卡片标题不再超大 */
  .cas-list .swiper-slide h3, .cas-list h3 { font-size: 17px !important; line-height: 1.45 !important; }

  /* 6) 新闻/问答卡片之间给足间距 */
  .news-con .left dl { margin-bottom: 14px !important; }
  .news-con .rig dl { margin-bottom: 12px !important; }
  .news-con .rig dl:last-child { margin-bottom: 0 !important; }

  /* 7) 「走进湃德」正文：行距拉开，不再一整块密字 */
  .about .abo-last, .about .abo-last p {
    font-size: 15px !important; line-height: 2 !important; letter-spacing: .2px !important; text-align: justify;
  }
  .about .abo-last p { margin: 0 0 12px !important; }

  /* 8) 标题断行均衡 */
  h2 { text-wrap: balance; }

  /* ================= 汉堡菜单（≤900px） ================= */
  .pdmn-cb { display: none !important; }
  .pdmn-btn { display: none; }
  .head, .head1 { position: relative !important; }

  .pdmn-btn {
    display: flex !important; flex-direction: column; justify-content: center; gap: 5px;
    position: absolute; right: 8px; top: 10px; z-index: 300;
    width: 44px; height: 44px; padding: 11px; box-sizing: border-box;
    cursor: pointer; border-radius: 6px;
  }
  .pdmn-btn i {
    display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }
  .pdmn-cb:checked ~ .pdmn-btn i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .pdmn-cb:checked ~ .pdmn-btn i:nth-child(2) { opacity: 0; }
  .pdmn-cb:checked ~ .pdmn-btn i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .rig-top { padding-right: 54px !important; }

  .pdmn-panel {
    display: none; position: fixed; left: 0; right: 0; top: 0; bottom: 0;
    z-index: 250; background: #062666;
    padding: 76px 20px 28px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .pdmn-cb:checked ~ .pdmn-panel { display: block; }
  .pdmn-hd {
    color: rgba(255,255,255,.55); font-size: 13px; letter-spacing: 2px;
    padding: 0 4px 10px; border-bottom: 1px solid rgba(255,255,255,.15);
  }
  .pdmn-list { list-style: none; margin: 8px 0 0; padding: 0; }
  .pdmn-list li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .pdmn-list a {
    display: block; padding: 15px 4px; color: #fff; font-size: 17px;
    text-decoration: none; letter-spacing: .5px;
  }
  .pdmn-list a:active { background: rgba(255,255,255,.08); }
}

/* ============================================================
   2026-11-17 v3 自适应增强（手机 + 平板统一单列，桌面 ≥1280 不变）
   ============================================================ */

/* 平板（901–1279）：横幅高度介于手机与桌面之间，避免 210px 太扁 */
@media (min-width: 901px) and (max-width: 1279px) {
  .banner:not(.home-banner) { height: 320px !important; }
  .banner.home-banner img,
  .banner .slick-slide img { height: 400px !important; }
  /* 首页大横幅文案在左侧，居中裁剪会切字 */
  .banner.home-banner img,
  .banner .slick-slide img { object-position: left center !important; }
  .contentt, .blk-main, .head, .head1 { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
}

/* 手机细节修正 */
@media (max-width: 1279px) {
  /* 轮播圆点容器原来定宽 400，小屏两端被切 */
  .slick-dots {
    width: 100% !important;
    left: 0 !important;
    right: auto !important;
    padding: 0 10px;
    box-sizing: border-box;
  }
  /* 地图按钮 width:100% 没算 padding，横向溢出 11px */
  .map-cta { box-sizing: border-box; }
  .map-cta a { box-sizing: border-box; max-width: 100%; }
  .map-cta div { min-width: 0; }
  .map-cta p, .map-cta a { overflow-wrap: anywhere; }
}

/* 平板：产品详情图库居中放大，避免右半边留白 */
@media (min-width: 901px) and (max-width: 1279px) {
  .p5_prod_body { float: none !important; }
  .p5_prod_gallery { width: 100% !important; max-width: 680px !important; margin: 0 auto 24px !important; float: none !important; }
  .p5_prod_specs { width: 100% !important; float: none !important; }
  .p5_prod_mainimg img { width: 100% !important; height: auto !important; }
}

/* ============================================================
   2026-11-17 v5 产品中心：分类条单行横滑 + 滑动提示（≤1279）
   ============================================================ */
.pc-swipe-hint { display: none; }

@media (max-width: 1279px) {
  .p5_info_list_content_con .pc-bar {
    display: block !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
  }

  /* 五个分类胶囊不换行，横向滑动；右边缘渐隐提示还能滑 */
  .pc-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px !important;
    padding: 2px 0 6px !important;
    scroll-behavior: smooth;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent 100%);
  }
  .pc-tabs.at-end {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  .pc-tabs::-webkit-scrollbar { display: none; }

  .pc-tab {
    flex: 0 0 auto !important;
    height: 36px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    border-radius: 18px !important;
    white-space: nowrap;
  }

  /* 提示文案：还剩多长可滑时显示 */
  .pc-swipe-hint {
    display: flex !important;
    align-items: center;
    gap: 5px;
    margin: 0 0 8px !important;
    font-size: 12.5px;
    line-height: 1.6 !important;
    color: #98a2b3;
  }
  .pc-swipe-hint.is-hidden { display: none !important; }
  .pc-swipe-hint span {
    color: #0b4aa2;
    font-size: 14px;
    animation: pcHintNudge 1.6s ease-in-out infinite;
  }
  @keyframes pcHintNudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
  }

  .pc-sum {
    display: block !important;
    margin: 0 !important;
    font-size: 13px !important;
    color: #7c8699;
  }

  /* 细分品类同理，单行横滑 */
  .pc-subtabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pc-subtabs::-webkit-scrollbar { display: none; }
  .pc-subtabs .pc-subtab { flex: 0 0 auto !important; white-space: nowrap; }
}

/* 产品卡片：长型号不再顶出卡片，缩略图略矮，整体更紧凑 */
@media (max-width: 1279px) {
  .pc-bd { padding: 12px 14px 14px !important; }
  .pc-bd h3 {
    font-size: 15px !important;
    line-height: 22px !important;
    margin-bottom: 8px !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .pc-spec span { overflow-wrap: anywhere; }
  .pc-ex { font-size: 13px !important; line-height: 1.65 !important; }
  .pc-thumb { height: 190px !important; }
}

/* 细分品类条同样右侧渐隐，提示可横滑 */
@media (max-width: 1279px) {
  .pc-subtabs {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
    padding: 4px 0 2px !important;
    margin-bottom: 10px !important;
  }
  .pc-subtab { height: 30px !important; line-height: 30px !important; font-size: 13px !important; padding: 0 11px !important; }
}
