/**
 * SNB mirror — universal H5 (mobile) layout
 * Loaded on all pages via snb-base.css @import or snb-mirror-overrides.css
 */

@media (max-width: 768px) {
  /* ── Base column ── */
  body[data-snb-mirror="1"] .content,
  .content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* ── Inner page header (con_top) ── */
  .content .con_top {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    padding-bottom: 12px;
    margin-top: 8px;
  }

  .content .con_top .t_title {
    height: auto !important;
    float: none !important;
  }

  .content .con_top .t_title .titles,
  .content .con_top .t_title .about_navs {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 0;
    width: 100% !important;
    height: auto !important;
    float: none !important;
    margin-top: 16px;
    padding: 0 4px;
  }

  .content .con_top .t_title .titles .t1,
  .content .con_top .t_title .titles .t2,
  .content .con_top .t_title .titles .t3,
  .content .con_top .t_title .about_navs a,
  .content .con_top .t_title .about_navs .n_name,
  .content .con_top .t_title .about_navs .n_line {
    float: none !important;
  }

  .content .con_top .t_title .titles .t1 {
    font-size: 22px;
  }

  .content .con_top .t_title .about_navs .n_name {
    white-space: nowrap;
    font-size: 13px;
    height: auto;
    line-height: 1.5;
  }

  .content .con_top .t_title .about_navs .n_line {
    margin: 0 8px;
    height: 14px;
    flex-shrink: 0;
  }

  /* ── Product / honor grids (conitem) ── */
  .content .coninfo {
    width: 100% !important;
    float: none !important;
    margin-top: 16px;
    margin-bottom: 24px;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 8px;
    box-sizing: border-box;
  }

  .content .coninfo .conitem,
  .content .coninfo .snb-product-card {
    width: calc(50% - 6px) !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column;
    box-sizing: border-box;
  }

  .content .coninfo .conitem:nth-child(4n + 1),
  .content .coninfo .conitem:nth-child(2n + 1) {
    margin-left: 0 !important;
  }

  .content .coninfo .conitem .conimgs,
  .content .coninfo .conitem .conimgs .zzimg,
  .content .coninfo .conitem .zzname,
  .content .coninfo .conitem .zzbtn {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    float: none !important;
    height: auto !important;
  }

  .content .coninfo .conitem .conimgs {
    margin-top: 12px;
    height: auto !important;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .content .coninfo .conitem .conimgs .zzimg {
    max-width: 100% !important;
    max-height: 140px;
    width: auto !important;
    height: auto !important;
  }

  .content .coninfo .conitem .zzname {
    padding: 8px 10px;
    line-height: 1.4;
    white-space: normal;
    text-overflow: unset;
    overflow: visible;
    font-size: 14px;
  }

  .content .coninfo .conitem .zzbtn {
    margin: 10px auto 14px !important;
    width: auto !important;
    min-width: 88px;
    min-height: 36px;
    line-height: 36px;
    display: inline-block !important;
  }

  .content .coninfo .snb-product-actions {
    padding-bottom: 12px;
  }

  /* ── News list ── */
  .content .coninfo .jointopimg {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    float: none !important;
    margin-bottom: 12px;
  }

  .content .coninfo .newitem {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    margin-top: 0;
    box-sizing: border-box;
  }

  .content .coninfo .newitem .newthumb {
    width: 100% !important;
    height: auto !important;
    float: none !important;
  }

  .content .coninfo .newitem .newthumb img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
  }

  .content .coninfo .newitem .newsright {
    width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
    float: none !important;
  }

  .content .coninfo .newitem .newsright .newstitle {
    float: none !important;
    line-height: 1.45;
    margin-top: 0;
    font-size: 16px;
  }

  .content .coninfo .newitem .newsright .dinfo,
  .content .coninfo .newitem .newsright .newcon {
    float: none !important;
    width: 100% !important;
    line-height: 1.6;
  }

  /* ── News article ── */
  .content .title {
    font-size: 20px !important;
    line-height: 1.45 !important;
    height: auto !important;
    margin-top: 20px;
    padding: 0 4px;
    float: none !important;
  }

  .content .newsinfo {
    height: auto !important;
    line-height: 1.6;
    padding: 0 8px;
  }

  .content .newscontent,
  .content .newscontent .con,
  .content .newscontent .othernews {
    width: 100% !important;
    float: none !important;
    height: auto !important;
    box-sizing: border-box;
  }

  .content .newscontent .con {
    padding: 16px 0;
    word-break: break-word;
    overflow-x: auto;
  }

  .content .newscontent .con p,
  .content .newscontent .con img,
  .content .coninfo_con p,
  .content .coninfo_con img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* ── About / develop content blocks ── */
  .content .coninfo .coninfo_t_title {
    width: 100% !important;
    float: none !important;
    text-indent: 1em;
    font-size: 16px;
    height: auto;
    line-height: 1.5;
    padding: 10px 0;
  }

  .content .coninfo .coninfo_con {
    width: 100% !important;
    float: none !important;
    padding: 0 4px 24px;
    word-break: break-word;
    overflow-x: auto;
  }

  .content .coninfo .coninfo_con p,
  .content .coninfo .coninfo_con .lf_title {
    width: 100% !important;
    float: none !important;
    line-height: 1.65;
  }

  /* ── Contact subpage (inside .content) ── */
  .content .contact {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    margin-top: 16px;
    padding-bottom: 24px;
    background-size: cover;
  }

  .content .contact .containfo {
    width: 100% !important;
    height: auto !important;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin-top: 12px;
  }

  .content .contact .containfo .contactitem {
    width: 100% !important;
    max-width: 360px;
    height: auto !important;
    float: none !important;
    margin-top: 0 !important;
  }

  .content .contact .containfo .contactitem .ctname,
  .content .contact .containfo .contactitem .ctval {
    float: none !important;
    height: auto;
    line-height: 1.5;
    word-break: break-word;
  }

  /* ── Message / form pages ── */
  .content .liuyan,
  .content .liuyanform,
  .content .contactform {
    width: 100% !important;
    float: none !important;
  }

  .content input[type="text"],
  .content input[type="email"],
  .content input[type="tel"],
  .content textarea,
  .content select {
    max-width: 100%;
    font-size: 16px;
  }

  /* ── Pagination ── */
  .content .pageinfo {
    width: 100% !important;
    height: auto !important;
    text-align: center;
    float: none !important;
    margin: 16px 0;
    line-height: 1.8;
  }

  /* ── Tables ── */
  .content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ── Generic images ── */
  .content img {
    max-width: 100%;
    height: auto;
  }

  /* ── Product detail (topinfo) — reinforce ── */
  .content .topinfo {
    width: 100% !important;
    float: none !important;
    margin-top: 16px;
  }

  .content .topinfo .left,
  .content .topinfo .right {
    width: 100% !important;
    float: none !important;
  }

  .content .topinfo .left p,
  .content .topinfo .left .lf_title {
    width: 100% !important;
    float: none !important;
    line-height: 1.65;
    word-break: break-word;
  }

  .content .topinfo .right {
    height: auto !important;
    margin-top: 16px;
  }

  .content .topinfo .right ul li {
    height: auto !important;
  }

  /* ── Very narrow: single column products ── */
}

@media (max-width: 400px) {
  .content .coninfo .conitem,
  .content .coninfo .snb-product-card {
    width: 100% !important;
  }
}
