/*
 * 手机端补丁（≤768px，所有原站页与花色库/效果图页都加载，见 composables/useLegacyHead.ts；原站 skin 不改）。
 *
 * 原站（PHPCMS）只做了桌面版：页头七个导航项横排、页脚六列按百分比宽、各栏目页正文是固定比例的左右分栏，
 * 手机上全部挤成竖条并横向溢出。这里全部规则都在 `@media (max-width: 768px)` 里，桌面一像素不变
 * （test/parity 仍 0 像素差）；手机端不做逐像素比对，改截图验收。
 *
 * 页头：logo + 菜单按钮（chrome.ts 输出的 .navToggle，桌面隐藏），点开后导航竖排铺满，产品中心下的系列直接展开。
 * 页脚：四组链接两列排 → 联系方式 → 三个二维码一行。
 */
.header .navToggle { display: none; }
.mTabbar { display: none; }

@media (max-width: 768px) {
  /* ---------- 通用 ---------- */
  /* hidden 会让 body 变成滚动容器，吸顶页头失效；clip 不会。老浏览器不认 clip 时退回 hidden，只是页头不吸顶 */
  html, body { overflow-x: hidden; overflow-x: clip; }
  .content { width: auto; margin-left: 20px; margin-right: 20px; }
  img { max-width: 100%; }
  .title02 .title { width: auto; font-size: 28px; }
  .title02 .txt { font-size: 15px; }
  .pageTitle { margin-bottom: 24px; font-size: 18px; line-height: 26px; }
  .btnBlack { width: 44px; bottom: calc(68px + env(safe-area-inset-bottom)); }

  /* ---------- 底部导航栏（2026-11-13，chrome.ts renderMobileTabbar）：深色磨砂，和页头一套 ---------- */
  .mTabbar { position: fixed; z-index: 1200; left: 0; right: 0; bottom: 0; display: flex; padding: 0 4px env(safe-area-inset-bottom); background: rgba(14, 15, 17, .9); -webkit-backdrop-filter: blur(22px) saturate(1.35); backdrop-filter: blur(22px) saturate(1.35); box-shadow: 0 -1px 0 rgba(255, 255, 255, .06), 0 -6px 24px rgba(0, 0, 0, .16); }
  .mTabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 56px; color: rgba(255, 255, 255, .62); font-size: 11px; line-height: 1.2; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .mTabbar a.on { color: #c9ab80; }
  .mTabbar a:active { color: #fff; }
  .mTabbar svg { display: block; }
  /* 给底栏让出位置，页尾内容不被盖住 */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  /* 菜单展开时底栏让开 */
  body:has(.header.navOpen) .mTabbar { display: none; }
  /* /brand 是整屏分段，body 的下内边距不起作用，给最后一段的免责声明单独让位 */
  .hmBody .copyRight { padding-bottom: calc(28px + 56px + env(safe-area-inset-bottom)); }

  /* ---------- 页头 ---------- */
  .header { height: 60px; }
  .header .content { width: auto; margin: 0 16px; align-items: center; height: 60px; }
  .header .logo { width: auto; }
  .logo a { top: 0; height: 18px; }
  .topSearch { top: 10px; right: 44px; width: 40px; }
  .topSearch .searchBtn { right: 0; }
  .header .navToggle { display: block; position: absolute; right: -6px; top: 10px; width: 40px; height: 40px; line-height: 40px; text-align: center; color: #fff; z-index: 101; }
  .header .navToggle .iconfont { font-size: 22px; }
  .header.navOpen .navToggle .icon-menu:before { content: '\e602'; }  /* 展开时换成关闭图标（原站 iconfont 的 .navClose 同一字形） */
  .header .nav { display: none; position: absolute; left: -16px; right: -16px; top: 60px; margin: 0; padding: 8px 0 16px; background: #000; max-height: calc(100vh - 60px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .header.navOpen .nav { display: block; }
  .header .nav > li { display: block; padding: 0; }
  .header .nav > li > a { height: auto; padding: 14px 24px; line-height: 22px; font-size: 16px; border-radius: 0; }
  .header .nav li:hover > a { color: #fff; background: none; }
  .header .nav li.active > a { color: #ad9065; background: none; }
  .header .nav > li > a .iconfont { display: none; }
  .header .nav .subNav { display: block !important; position: static; width: auto; padding: 0 24px 6px 40px; background: none; }
  .header .nav .subNav li { padding: 0; border-bottom: none; }
  .header .nav .subNav li a { padding: 9px 0; text-align: left; font-size: 14px; color: #bbb; }
  .header .nav .subNav li i { margin-right: 8px; color: #777; }
  /* 全屏搜索层里那份页头只留 logo，导航由页面自己的页头负责 */
  .searchFixed .header .nav { display: none !important; }

  /* ---------- 页脚 ---------- */
  .footWrap { height: auto; }
  .footer { display: block; padding: 36px 0 140px; background-size: 200% auto; line-height: 30px; }
  .footer .content { width: auto; margin: 0 20px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 20px; }
  .footer .item, .footer .item:nth-child(n) { width: auto; }
  .footer .name { margin-bottom: 6px; }
  .footer .name a { font-size: 16px; }
  .footer .list li a { font-size: 13px; color: #bbb; }
  .footer .item:nth-child(4), .footer .item:nth-child(5) { grid-column: 1 / -1; }
  .footer .item:nth-child(4) .main { font-size: 13px; line-height: 24px; word-break: break-all; }
  .footer .item:nth-child(5) { display: flex; justify-content: space-between; padding-top: 8px; }
  .footer .item .box .tit { margin-top: 10px; font-size: 11px; line-height: 14px; }
  .copyRight { padding: 20px 0; font-size: 12px; }

  /* ---------- 内页横幅 ---------- */
  .pageBanner .content { left: 20px; right: 20px; margin: 0; }
  .pageBanner .content img { max-width: 100%; }

  /* ---------- 关于（/about） ---------- */
  .aboutDtl { padding-top: 30px; }
  .abtdtlMain, .abtCloum3, .advtBlock1, .catCloum, .advtCloum { display: block; }
  .abtdtlMain .left, .abtdtlMain .right, .advtBlock1 .leftPic, .advtBlock1 .right, .catCloum .left, .catCloum .right { width: auto; }
  .abtdtlMain .right { margin-top: 24px; }
  .abtdtlMain .main p { margin-top: 16px; font-size: 15px; text-align: left; }
  .abtCloum3 .cloum { width: auto; margin-top: 12px; }
  .aboutStroy { padding-top: 60px; min-height: 0; padding-bottom: 40px; background-size: cover; }
  .aboutStroy .title02 { margin-bottom: 30px; }
  .aboutStroy .next { margin-top: 40px; }
  .stroySwpCon { height: auto; min-height: 260px; padding-top: 20px; position: relative; }
  .stroySwpCon .detail { width: auto; font-size: 14px; }
  .stroySwpCon .detail p { margin-top: 12px; }
  .stroySwpMenu { width: 100%; font-size: 13px; }
  .aboutLiving { padding: 50px 0 30px; background-size: cover; }
  .aboutLiving .detail { font-size: 14px; }
  .aboutLiving .cloum3 { flex-direction: column; align-items: center; font-size: 18px; }
  .aboutLiving .cloum3 img { height: 240px; margin: 16px 0; }
  .aboutLiving .cloum3 .txt { padding-top: 0; }
  .verifyBox { height: auto; padding: 30px 16px; }
  .verifyBox .layui-form-label { width: auto; padding-left: 0; }
  .verifyBox .layui-input-inline, .verifyBox .layui-input { width: 100%; }
  .verifyBox .layui-form-item .layui-input-inline { margin: 0 0 10px; float: none; display: block; }

  /* ---------- 品牌优势（/advantage） ---------- */
  .advtWrap1 { padding: 30px 0; }
  .advtWrap1 .title02 .title { font-size: 24px; }
  .advtBlock1 .right { margin-top: 24px; }
  .greenLine { width: auto; }
  .advtWrap2 { background-size: cover; }
  .advtWrap2 .abtdtlMain { margin-bottom: 40px; }
  /* 数字叠在底图上：原图 584px 宽，四格内边距与字号按「内容宽 / 584」等比缩小 */
  .advtWrap2 .abtdtlMain .right { width: auto; height: auto; --k: calc((100vw - 40px) / 584); }
  .advtWrap2 .numbCloum .cloum { padding-left: calc(var(--k) * 110); padding-top: calc(var(--k) * 135); font-size: calc(var(--k) * 50); }
  .numbCloum .cloum:nth-child(2n+2) { padding-left: calc(var(--k) * 175); padding-top: calc(var(--k) * 145); }
  .numbCloum .cloum:nth-child(3), .numbCloum .cloum:nth-child(4) { padding-top: calc(var(--k) * 155); }
  .advtWrap2 .numbCloum .counter { font-size: calc(var(--k) * 110); }
  .advtWrap2 .numbCloum i { top: calc(var(--k) * -40); }
  .advtBrand { padding: 30px 0; }
  .advtBrand span { margin: 0 6px; }
  .advtBrand img { height: 36px; }
  /* 页尾「期待与您共创未来」横幅（优势页与花色详情页共用）：文字居中压在图上 */
  .advtFoot .content, .swatchDetail + .advtFoot .content { left: 20px; right: 20px; top: 50%; margin: 0; transform: translateY(-50%); font-size: 13px; line-height: 1.8; }
  .advtFoot .detail { font-size: 13px; line-height: 1.8; }
  .advtFoot .bgPic img { height: 150px; object-fit: cover; }
  .advtCloum { padding: 20px 0; }
  .advtCloum .itemTit, .advtCloum .itemMain, .advtCloum .itemPic, .advtCloum:nth-child(n) .itemMain { width: auto; margin: 0 0 12px; }
  .advtCloum .large { font-size: 26px; }

  /* ---------- 联系我们（/contact） ---------- */
  .contactWrap { padding: 30px 0; }
  .catCloum .left { margin-top: 24px; }
  .catCloum .inTit { padding-bottom: 12px; }
  .contactMain .tit, .contactMain .name { font-size: 16px; }
  .contactMain .item { word-break: break-all; }
  .mesgWrap { padding-bottom: 0; }
  .mesgWrap .content { position: relative; left: auto; top: auto; transform: none; padding: 30px 0; }
  .mesgWrap .left { width: auto; }
  .mesgMain .layui-form-label { width: 44px; padding: 9px 0; }
  .mesgMain .layui-input-block { margin-left: 52px; }
  .mesgMain .layui-btn-fluid { height: 54px; padding: 12px 20px; font-size: 18px; }

  /* ---------- 授权查询结果（/partner）：文字压在背景图上，图拉高到能装下文字 ---------- */
  .conAbsolute { top: 90px; }
  .resultTop { margin-top: 0; margin-bottom: 24px; font-size: 22px; }
  .resultTop .icon img { height: 40px; }
  .resultMain { font-size: 14px; }
  .conAbsolute + .fixedBg img { height: 740px; object-fit: cover; }  /* 图中央的树落到文字下方 */

  /* ---------- 首页：fullPage 在 ≤768px 退成普通滚动（home.ts 的 responsiveWidth），各屏高度随内容 ---------- */
  .index_main .section, .index_main .fp-tableCell { height: auto !important; }
  .index_main .fp-tableCell { display: block; }
  #fp-nav { display: none; }
  /* 原站各屏内容默认透明、靠 fullPage 翻到该屏时的动画显出来；手机是普通滚动，直接显示 */
  .homeAbout .title01, .homeAbout .detail, .homeAbout .btn-box, .futureCloum .item, .futureTop, .homeFuture .ftPic,
  .hmGodTop, .hmAdvtClm, .homeHonor .title01, .honorSwp, .section8 .footer, .section8 .copyRight, .prdSwpMenu, .prdSwpCon2 { opacity: 1; top: 0; }
  .homeSuit .box { left: 5%; opacity: 1; }
  /* 首屏横幅：原图 1920×1080，按原比例铺满宽度；页头压在图上方，横幅整体下移一个页头高 */
  /* 第一屏原本 overflow:hidden，会把展开的菜单裁在横幅底边；改由横幅自己裁（缩放动画不外溢） */
  .index_main .section1 { padding-top: 60px; background: #000; overflow: visible; }
  .index_main .section1 .index_banner { overflow: hidden; }
  .index_main .section1 .index_banner .item { height: 56.25vw; }
  .homeHonor .title01 { margin-bottom: 0; }
  .honorSwp { margin-top: 0; padding-top: 0; }
  .honorSwp .swiper-slide .name { font-size: 14px; }
  .honorSwp .swiper-slide .main { height: auto; line-height: 30px; }
  .title01 { padding: 30px 0 20px; line-height: 1.3; }
  .title01 .title { font-size: 26px; }
  .title01 .txt { font-size: 16px; }

  .homeAbout { padding: 30px 0; }
  .homeAbout .content { position: relative; left: auto; top: auto; margin: 0 20px; }
  .homeAbout .detail { width: auto; font-size: 14px; line-height: 1.8; }
  .homeAbout .detail p { margin-bottom: 16px; }
  .homeAbout .btn-box .btn-defaul { width: 72px; height: 72px; line-height: 72px; font-size: 16px; }
  .homeAbout .video-box, .homeAbout .video-box video { min-height: 0; height: 100%; object-fit: cover; }

  .homeFuture { padding: 30px 0; background-size: cover; }
  .homeFuture .content { padding: 16px; }
  .futureTop .tit { font-size: 12px; }
  .futureCloum { flex-wrap: wrap; margin-bottom: 16px; }
  .futureCloum .item, .futureCloum .item:nth-child(n) { width: 31%; padding-top: 0; margin-bottom: 10px; }
  .futureCloum .pic { border-radius: 8px; }
  .futureCloum .name { font-size: 13px; margin-top: 4px; }

  .homeAdvant { padding: 30px 0; }
  .hmGodTop { display: block; }
  .hmGodTop .left { width: auto; }
  .hmGodTop .left img { width: 80%; }
  .hmGodTop .left .name { font-size: 18px; }
  .hmGodTop .right { margin-top: 12px; font-size: 14px; }
  .hmAdvtClm { flex-wrap: wrap; }
  .hmAdvtClm .item { width: 48.5%; }
  .hmAdvtClm .item .block { margin-top: 10px; border-radius: 10px; }
  .hmAdvtClm .b-name, .hmAdvtClm .item .b-name { left: 12px; top: 12px; font-size: 13px; opacity: .7; }
  .hmAdvtClm .item:nth-child(2) .b-name, .hmAdvtClm .item:nth-child(4) .b-name { bottom: 12px; }
  .hmAdvtClm .b-name .tit { font-size: 20px; }

  .homePruduct { padding: 40px 0 30px; background-size: cover; }
  .homePruduct .content { width: auto; margin: 0 20px; }
  .prdSwpMenu { margin: 0; }
  .prdSwpCon2 .swiper-slide { box-shadow: 0 4px 16px rgba(0,0,0,.6); border-radius: 16px; }
  .prdSwpCon2 .swiper-slide .pic { border-radius: 16px; }
  .prdSwpCon2 .swiper-slide .pic { padding-bottom: 100%; }
  .prdSwpCon2 .swiper-slide-active .pic { padding-bottom: 120%; }
  .prdSwpCon2 .swiper-slide .topMore a { padding: 4px 16px; font-size: 14px; }
  .prdSwpCon2 .swiper-button-prev, .prdSwpCon2 .swiper-button-next { width: 40px; height: 40px; margin-top: 20px; }
  .prdSwpCon2 .swiper-button-prev { left: 38%; top: -60px; }
  .prdSwpCon2 .swiper-button-next { left: 52%; }

  .homeSuit { display: block; height: auto; }
  .homeSuit .cloum2 { width: auto; }
  .homeSuit .cloum2:first-child { height: 440px; }
  .homeSuit .bgPic img { width: 100%; object-fit: cover; }
  .homeSuit .box { width: 90%; top: 50%; margin-top: 0; transform: translateY(-50%); }
  .homeSuit .mediaBox { position: static; }
  .homeSuit .mediaBox img { width: 100%; height: auto; }

  .homeHonor { padding-bottom: 30px; }
  .section8 .footer { padding-bottom: 140px; }
}
