/* =====================================================================
   portal.css - 官网重构增量样式(在 site.css 之后加载)
   只承载"动态数据渲染需要的新组件", 不改动设计稿原有样式:
   1. 语义化页脚(内容来自后台, 无法用固定坐标图层排版)
   2. 底部语言切换器(国旗 + 下拉切换效果)
   3. 下拉滚动加载(产品/文档/FAQ/证书)
   4. 产品列表一级/二级分类筛选区
   5. 富文本内容块(产品详情/单页面/解决方案)
   6. 在线咨询表单校验错误提示
   ===================================================================== */

/* ---------- 1. 语义化页脚 ---------- */
.site-footer{position:relative;color:#fff;background:#040707;overflow:hidden}
.site-footer::before{content:"";position:absolute;inset:0;background:url("images/813bbe9fc4d2edf75d79291e.webp") center/cover no-repeat;opacity:.55;pointer-events:none}
.site-footer::after{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,transparent,#ffffff2e,transparent)}
.site-footer-inner{position:relative;z-index:1;max-width:1680px;margin:0 auto;padding:60px 6.25cqw 0}
.site-footer-grid{display:grid;grid-template-columns:auto repeat(4,1fr);gap:40px 4cqw}
.site-footer-brand img{width:142px;height:auto}
.site-footer h4{font-size:17px;font-weight:400;margin-bottom:22px;color:#fff}
.site-footer h4 a{color:#fff}
.site-footer-col ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.site-footer-col a{font-size:13px;color:#ffffffb3;line-height:1.7;transition:color .2s}
.site-footer-col a:hover{color:#fff}
.site-footer-contact{font-size:13px;color:#ffffffb3;line-height:2.1}
.site-footer-contact a{color:inherit}
.site-footer-contact a:hover{color:#fff}
.site-footer-qr{display:flex;gap:10px;margin-top:18px}
.site-footer-qr img{width:72px;height:72px;object-fit:cover}
.site-footer-bar{position:relative;z-index:1;margin-top:45px;border-top:1px solid #ffffff26;padding:18px 6.25cqw;display:flex;align-items:center;gap:24px;flex-wrap:wrap;font-size:13px;color:#ffffff8c}
.site-footer-bar .bar-links{display:flex;align-items:center;gap:14px}
.site-footer-bar .bar-links a{color:inherit;transition:color .2s}
.site-footer-bar .bar-links a:hover{color:#fff}
.site-footer-bar .bar-links i{font-style:normal;color:#ffffff45}
.site-footer-bar .copyright{font-family:Arial,sans-serif;font-weight:300}
@media(min-width:801px){.site-footer-bar{justify-content:space-between}}

/* ---------- 2. 语言切换器(国旗 + 下拉) ---------- */
.lang-switcher{position:relative;margin-left:auto}
.lang-btn{display:flex;align-items:center;gap:10px;background:transparent;border:0;color:inherit;font-size:13px;padding:6px 2px;cursor:pointer;white-space:nowrap}
.lang-btn .lang-flag{width:23px;height:16px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px #ffffff33;flex-shrink:0}
.lang-btn .lang-flag--fallback{display:grid;place-content:center;background:var(--blue);color:#fff;font-size:9px;font-weight:700;letter-spacing:.5px}
.lang-btn .lang-arrow{display:inline-block;transition:transform .25s;font-size:10px;line-height:1}
.lang-switcher.is-open .lang-arrow{transform:rotate(-90deg)}
.lang-menu{position:absolute;right:0;bottom:calc(100% + 10px);min-width:190px;background:#fff;color:var(--ink);border-radius:8px;box-shadow:0 18px 50px #0b1c302e;padding:8px;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .22s,transform .22s,visibility .22s;z-index:20}
.lang-switcher.is-open .lang-menu{opacity:1;visibility:visible;transform:none}
.lang-menu li{list-style:none}
.lang-menu a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:6px;font-size:13px;color:var(--ink);transition:background .18s,color .18s}
.lang-menu a:hover{background:#eaf3fb;color:var(--blue)}
.lang-menu a.is-current{background:var(--blue);color:#fff}
.lang-menu .lang-flag{width:23px;height:16px;object-fit:cover;border-radius:2px;flex-shrink:0;box-shadow:0 0 0 1px #00000014}
.lang-menu .lang-flag--fallback{display:grid;place-content:center;background:#e8eff6;color:#51636f;font-size:9px;font-weight:700}
.lang-menu a.is-current .lang-flag--fallback{background:#ffffff33;color:#fff}
.lang-menu .lang-check{margin-left:auto;font-size:12px;opacity:0}
.lang-menu a.is-current .lang-check{opacity:1}
.site-footer .lang-switcher{color:#fff}

/* ---------- 3. 下拉滚动加载 ---------- */
.load-more-sentinel{width:100%;min-height:1px}
.load-more-status{grid-column:1/-1;text-align:center;padding:34px 0;color:#8b96a0;font-size:14px}
.load-more-status .spinner{display:inline-block;width:22px;height:22px;border:3px solid #d8e6f2;border-top-color:var(--blue);border-radius:50%;animation:portal-spin .8s linear infinite;vertical-align:-6px;margin-right:10px}
@keyframes portal-spin{to{transform:rotate(360deg)}}
.load-more-status.is-end::before{content:none}
.load-more-error{color:#c2564d}

/* ---------- 4. 产品列表筛选区(一级/二级分类) ---------- */
.filter-group-label{font-size:12px;color:#8b96a0;margin:0 0 8px;letter-spacing:1px}
.flange-filters.filter-group--sub{border-top:1px dashed #e7e9ed}
.result-count{margin:0}
.product-grid.catalogue-grid{min-height:200px}

/* ---------- 5. 富文本内容块 ---------- */
.rich-content{color:#4d5964;font-size:clamp(14px,1vw,18px);line-height:2}
.rich-content h1,.rich-content h2,.rich-content h3,.rich-content h4{color:var(--ink);line-height:1.6;margin:1.4em 0 .6em}
.rich-content h1{font-size:1.6em}.rich-content h2{font-size:1.4em}.rich-content h3{font-size:1.2em}
.rich-content h2:first-child,.rich-content h3:first-child,.rich-content p:first-child{margin-top:0}
.rich-content p{margin:.6em 0}
.rich-content img{max-width:100%;height:auto;margin:10px auto}
.rich-content ul,.rich-content ol{padding-left:1.6em;margin:.6em 0}
.rich-content a{color:var(--blue);text-decoration:underline}
.rich-content table{border-collapse:collapse;width:100%;margin:12px 0}
.rich-content td,.rich-content th{border:1px solid #e2e7ec;padding:8px 12px}

/* 产品特性区块(桌面双列富文本) */
.feature-panel{padding:5cqw 6.25cqw}
.feature-panel .rich-content{max-width:1200px;margin:0 auto}

/* ---------- 6. 在线咨询表单校验提示 ----------
   表单布局整体由 site.css 的 #inquiry-form 规则承担(固定画布绝对定位),
   这里只补校验态: 输入框红框 + 汇总提示条(绝对定位于按钮下方, 不挤动画布) */
#inquiry-form input.is-invalid,#inquiry-form textarea.is-invalid{box-shadow:inset 0 0 0 1px #d24b40}
#inquiry-form .form-alert{position:absolute;left:0;right:0;top:32.2cqw;margin:0;font-size:.83cqw;line-height:1.6;padding:.6cqw .8cqw;display:none;text-align:center}
#inquiry-form .form-alert.is-visible{display:block}
#inquiry-form .form-alert.is-error{background:#fdeeec;color:#b3423a}
#inquiry-form .primary-button[disabled]{opacity:.6;cursor:not-allowed}
@media(max-width:800px){
  #inquiry-form .form-alert{position:static;margin:0 0 12px;font-size:12px}
}

/* ---------- 7. 文档/证书动态列表(桌面+移动通用) ---------- */
/* 文档卡片按设计稿 support.html #documents 实现:
   白色斜切卡(6fa8c06f 520x200) + 右上分类标签 + 彩色文件图标切图(31x40, PDF红/XLS绿/其他蓝)
   + 切图下载按钮(45284f90 24x24); 区块置于全宽浅蓝背景带(07b1cfc7)内 */
.doc-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.05cqw;margin-top:3cqw}
.doc-card{position:relative;display:flex;align-items:center;gap:1.05cqw;aspect-ratio:520/200;background:url("images/6fa8c06f65c3cf2f30d76645.webp") center/cover;padding:0 2.4cqw 0 2.6cqw;text-align:left;transition:box-shadow .25s,transform .25s}
.doc-card:hover{box-shadow:0 14px 32px #10243b1f;transform:translateY(-4px)}
.doc-card .doc-tag{position:absolute;top:1.05cqw;right:1.4cqw;background:#e3f1fd;color:var(--blue);font-size:max(11px,.73cqw);line-height:1;padding:.45cqw .7cqw;border-radius:3px;white-space:nowrap}
.doc-card .doc-file-icon{position:relative;width:1.62cqw;min-width:30px;aspect-ratio:31/40;background:center/cover no-repeat;flex-shrink:0}
.doc-card .doc-file-icon--pdf{background-image:url("images/d7eea0260e78dd457a8138ce.webp")}
.doc-card .doc-file-icon--xls{background-image:url("images/78e8ee60453b544648ba1284.webp")}
.doc-card .doc-file-icon--md{background-image:url("images/9026951794e3311602e5443f.webp")}
.doc-card .doc-file-icon i{position:absolute;left:50%;bottom:14%;transform:translateX(-50%);font:700 max(8px,.52cqw)/1 Arial,sans-serif;font-style:normal;color:#fff;letter-spacing:.5px}
.doc-card .doc-info{min-width:0;flex:1}
.doc-card .doc-title{display:block;font-size:max(15px,1.25cqw);line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
.doc-card .doc-meta{display:block;font-size:max(12px,.73cqw);color:#8b96a0;margin-top:.55cqw}
.doc-card .doc-download-ico{width:1.25cqw;min-width:22px;aspect-ratio:1;margin-left:auto;flex-shrink:0;transition:transform .2s}
.doc-card:hover .doc-download-ico{transform:translateY(3px)}
/* 浅蓝背景带(intro + 卡片 + 查看全部), 对齐设计稿 y=251..907 的背景层 */
.doc-band{background:url("images/07b1cfc761ad63642b96be1f.webp") center/cover;padding:5cqw 6.25cqw 6cqw;margin-top:2.6cqw}
.doc-band .intro{margin:0 auto 4.5cqw}
.doc-band .doc-list{margin-top:0}
.doc-band .doc-band-more{text-align:center;margin-top:3.1cqw}
@media(max-width:800px){
  .doc-band{padding:40px 22px 45px;margin-top:24px}
  .doc-list{grid-template-columns:1fr;gap:14px}
  .doc-card{aspect-ratio:auto;padding:18px 16px;gap:14px}
  .doc-card .doc-tag{top:12px;right:12px;font-size:11px;padding:4px 8px}
  .doc-card .doc-file-icon{width:26px}
  .doc-card .doc-title{font-size:14px}
  .doc-card .doc-meta{font-size:11px;margin-top:5px}
  .doc-band .doc-band-more{margin-top:28px}
}

.cert-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 2.4cqw;margin-top:3.5cqw}
.cert-grid .certificate{background:transparent;border:0;padding:0;text-align:center;cursor:zoom-in}
.cert-grid .certificate img{width:100%;aspect-ratio:340/479;object-fit:cover;box-shadow:0 14px 34px #10243b17;transition:transform .3s,box-shadow .3s}
.cert-grid .certificate:hover img{transform:translateY(-6px);box-shadow:0 22px 44px #10243b26}
.cert-grid .certificate span{display:block;font-size:14px;line-height:1.8;margin-top:16px;color:var(--ink)}
@media(max-width:800px){.cert-grid{grid-template-columns:1fr 1fr;gap:25px 18px;margin-top:32px}.cert-grid .certificate span{font-size:11px}}

/* ---------- 8. 通用区块容器(替代固定坐标图层的动态内容区) ---------- */
/* 宽度对齐设计稿 120px 边距(1680/1920 = 87.5%) */
.flow-section{width:87.5%;max-width:1680px;margin:5cqw auto}
.flow-section--narrow{width:86%;max-width:1500px}
@media(max-width:800px){.flow-section{width:auto;margin:0;padding:0 22px 50px}.flow-section--narrow{width:auto;padding:0 22px 50px}}

/* 方案核心优势(解决方案页: 2x2 背景图卡片, 对齐设计稿 solutions.html #solution-benefits) */
.benefit-cards{display:grid;grid-template-columns:1fr 1fr;gap:1.05cqw;margin-top:3.2cqw}
.benefit-cards article{aspect-ratio:790/240;background:url("images/afe89734d701c7d7b74d6228.webp") center/cover;padding:3.1cqw 2cqw 0 4.16cqw}
.benefit-cards h3{font-size:max(20px,1.5625cqw);font-weight:700;line-height:1.35;margin-bottom:1cqw}
.benefit-cards p{font-size:max(13px,.9375cqw);font-weight:300;line-height:1.66;color:var(--ink);max-width:33.3cqw}
@media(max-width:800px){
  .benefit-cards{grid-template-columns:1fr 1fr;gap:14px;margin-top:35px}
  .benefit-cards article{aspect-ratio:auto;background:none;padding:0}
  .benefit-cards h3{font-size:17px;margin-bottom:12px}
  .benefit-cards p{font-size:12px;line-height:1.9;color:#6c7882;max-width:none}
}

/* 方案案例卡片 */
.case-list{display:grid;gap:70px;margin-top:3.2cqw}
.case-card{display:grid;grid-template-columns:1fr 1fr;gap:3cqw;align-items:start}
.case-card:nth-child(even){direction:rtl}
.case-card>*{direction:ltr}
.case-card .case-pic{position:relative}
.case-card .case-pic img{width:100%;aspect-ratio:720/600;object-fit:cover}
.case-card .case-tag{position:absolute;left:20px;top:20px;background:var(--blue);color:#fff;font-size:14px;padding:6px 16px}
.case-card h3{font-size:clamp(20px,1.875vw,36px);line-height:1.6;margin-bottom:18px}
.case-card .case-intro{color:#4d5964;font-size:clamp(13px,.94vw,18px);line-height:2}
.case-card .rich-content{margin-top:18px}
.case-card .rich-content h3{font-size:clamp(15px,1.25vw,24px);color:var(--blue)}
@media(max-width:800px){
  .case-list{gap:0;margin-top:0}
  .case-card{display:block}
  .case-card:nth-child(even){direction:ltr}
  .case-card .case-pic img{aspect-ratio:6/5}
  .case-card h3{font-size:21px;margin:25px 0 15px}
}

/* 发展历程(桌面双列时间轴, 复用移动 timeline 视觉) */
.history-wrap{margin-top:3.5cqw}
.history-item{display:grid;grid-template-columns:110px 1fr;gap:24px;padding:30px 0;border-bottom:1px solid #e6e9ed}
.history-item b{font:30px Arial,sans-serif;color:var(--blue);line-height:1.2}
.history-item h3{font-size:clamp(16px,1.25vw,24px);margin-bottom:10px}
.history-item p{color:#6c7780;font-size:clamp(13px,.94vw,16px);line-height:1.95}
@media(max-width:800px){.history-wrap{margin-top:0}}

/* 优势网格(首页"核心优势": 开放四栏 + 顶部横线 + 列间竖分隔线, 对齐设计稿 index.html #advantages) */
/* 四列宽度按设计稿还原(列起点 120/582/1031/1480, 间距 462/449/449),
   竖分隔线位于两列内容的中间位置(设计稿 x=511/960/1409)而非列边界 */
.adv-grid{display:grid;grid-template-columns:462fr 449fr 449fr 320fr;margin-top:5cqw;border-top:1px solid #e8ebee}
.adv-grid article{padding:4cqw 7.4cqw 0 0;min-height:26.8cqw;display:flex;flex-direction:column}
.adv-grid article:last-child{padding-right:0}
.adv-grid article + article{position:relative}
.adv-grid article + article::before{content:"";position:absolute;left:-3.7cqw;top:0;height:100%;width:1px;background:#e8ebee}
/* 图标区: 固定高度容器(容纳最高图标 165px) + 图标垂直居中。
   图标按原始像素尺寸等比缩放(1920 画布下 100cqw/1920 = 1px),
   以保持四个图标的相对大小与中心对齐 —— 与设计稿的位置和大小一致 */
.adv-grid .adv-icon-box{height:8.6cqw;min-height:120px;display:flex;align-items:center;margin-bottom:2.4cqw}
.adv-grid .benefit-icon{width:calc(var(--iw) / 1920 * 100cqw);height:calc(var(--ih) / 1920 * 100cqw);max-width:100%;object-fit:contain}
.adv-grid h3{font-size:max(20px,1.5625cqw);font-weight:400;line-height:1.2;margin-bottom:1.55cqw}
.adv-grid p{font-size:max(13px,.8333cqw);font-weight:300;line-height:1.875;color:var(--ink)}
@media(max-width:800px){
  .adv-grid{grid-template-columns:1fr 1fr;gap:30px 22px;margin-top:35px;border-top:0}
  .adv-grid article,.adv-grid article + article{padding:0;min-height:0;border-left:0}
  .adv-grid .adv-icon-box{height:64px;min-height:0;margin-bottom:14px}
  .adv-grid .benefit-icon{width:auto;height:auto;max-height:64px;max-width:100%}
  .adv-grid h3{font-size:17px;margin-bottom:12px}
  .adv-grid p{font-size:12px;line-height:1.9;color:#6c7882}
}

/* 联系我们(关于页) */
.contact-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:2cqw;margin-top:3.2cqw}
.contact-strip article{padding:30px;background:#f6f9fc}
.contact-strip h3{font-size:clamp(16px,1.25vw,24px);margin-bottom:12px}
.contact-strip p,.contact-strip a{font-size:clamp(12px,.94vw,16px);line-height:2;color:#6c7882;display:block;overflow-wrap:anywhere}
.contact-strip a:hover{color:var(--blue)}
.contact-map{width:100%;aspect-ratio:1920/800;object-fit:cover;margin-top:3cqw}
@media(max-width:800px){.contact-strip{grid-template-columns:1fr;gap:16px;margin:32px 0}.contact-map{margin:0 -22px -50px;width:calc(100% + 44px);min-height:220px}}

/* 首页品牌产品区标题 */
.brand-heading{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}
.brand-heading .brand-name{color:var(--blue);font-family:Arial,"Microsoft YaHei",sans-serif}
/* 首页产品区标题内的品牌名(设计稿 SLF 区为蓝色 Arial 字样) */
.marquee-heading-title .brand-name{color: rgba(0, 156, 222, 1);
    font-weight: 700;
    text-align: center;
    opacity: 1;
    white-space: nowrap;}

/* 首页核心优势/公司简介(桌面流式布局) */
/* 公司简介上方的数据条: 高度与字号按设计稿还原
   (设计稿: 顶线 y=80, 数字 y=171 字号60行高60, 标签 y=259 字号40行高40, 底线 y=401;
    区域总高 321px @1920 —— 换算为上留白 91px、数字与标签间距 28px、下留白 102px) */
.stats-strip{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;padding:4.74cqw 0 5.31cqw;border-top:1px solid #c3bebe;border-bottom:1px solid #c3bebe}
.stats-strip b{display:block;font-family:Arial,"Microsoft YaHei",sans-serif;font-size:3.125cqw;line-height:3.125cqw;font-weight:400}
/* 单位符号按设计稿区分字号: % / -wk 为 0.5em(30px), + 为 0.8333em(50px) */
.stats-strip b span{font-size:.5em}
.stats-strip b span.stat-plus{font-size:.8333em}
.stats-strip p{font-size:2.0833cqw;line-height:2.0833cqw;margin-top:1.4583cqw}
.company-wrap{display:grid;grid-template-columns:1fr 1fr;gap:4cqw;align-items:start;margin-top:4cqw}
.company-wrap .company-pic img{width:100%;aspect-ratio:5/4;object-fit:cover}
.company-wrap h2{font-size:clamp(20px,1.875vw,36px);line-height:1.6;margin-bottom:24px}
.company-wrap .divider{width:60px;height:2px;background:var(--blue);margin-bottom:26px}
.company-wrap .rich-content{max-height:none}
.company-wrap .primary-button{margin-top:30px}
@media(max-width:800px){
  /* 移动端字号参考 site.css 移动版 .stats 的设定 */
  .stats-strip{padding:20px 0 35px}
  .stats-strip b{font-size:32px;line-height:1.2}
  .stats-strip p{font-size:13px;line-height:1.8;margin-top:6px}
  .company-wrap{display:block}
}

/* 首页 CTA 区块(动态, 替代固定图层) */
.cta-band{position:relative;background:linear-gradient(#142030c7,#071624c2),url("images/ec1a5e8c9f7c67f619b86d3f.webp") center/cover;color:#fff;text-align:center;padding:100px 24px}
.cta-band h2{font-size:clamp(24px,3.1vw,60px);font-weight:700}
.cta-band .en-sub{font-family:Arial,"Microsoft YaHei",sans-serif;font-size:clamp(12px,1.25vw,24px);margin-top:14px;color:#ffffffcc}
.cta-band .cta-copy{font-size:clamp(14px,1.25vw,24px);line-height:1.9;margin:36px auto;max-width:1080px;color:#e8edf2}
.cta-band .primary-button{margin:0 auto}

/* ---------- 9. 补充组件 ---------- */

/* 技术支持页"专业技术团队"三项服务标签 */
.team-services{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin:0 0 34px}
.team-services span{background:#ffffff1a;border:1px solid #ffffff33;color:#fff;padding:12px 22px;font-size:clamp(13px,1vw,16px)}

/* 服务流程画布步骤位: STEP 灰字 + 蓝色编号(基线对齐) */
.step-num{display:flex;align-items:baseline;gap:.95cqw}
.step-num span{font:300 max(14px,1.5625cqw)/1 Arial,sans-serif;color:#9aa4ad;letter-spacing:1px}
.step-num b{font:700 max(30px,2.6cqw)/1 Arial,sans-serif;color:var(--blue)}

/* 产品列表二级分类分组容器(随一级分类联动显示/隐藏) */
.level2-group{display:inline-flex;gap:.9375cqw;flex-wrap:wrap}
.level2-group[hidden]{display:none}
@media(max-width:800px){.level2-group{gap:5px}}

/* 产品详情相册缩略图: 选中/悬停样式直接复用 site.css 的 .gallery-control
   (hover 与 [aria-pressed=true] 均为蓝色内描边 + 浅蓝底), 此处无需额外定义 */

/* 页脚栅格: 品牌 + N 个栏目 + 联系方式, 窄屏换行 */
@media(max-width:1280px){
  .site-footer-grid{grid-template-columns:repeat(3,1fr)}
  .site-footer-brand{grid-column:1/-1}
}
@media(max-width:800px){
  .site-footer-grid{grid-template-columns:1fr 1fr;gap:34px 22px}
  .site-footer-brand,.site-footer-contact{grid-column:1/-1}
  .site-footer-inner{padding:45px 22px 0}
  .site-footer h4{margin-bottom:16px}
}

/* ---------- 10. 视觉校准(对照设计稿反馈) ---------- */

/* 1. 首页产品跑马灯的轨道宽度与时长改由 portal.js 按实测像素写入行内样式:
      纯 CSS 的 width:max-content 需要按 cqw 解析卡宽, 火狐/360 在算 max-content 时
      拿不到 cqw, 轨道宽度会算成 0, -50% 的位移随之变成 0(卡片不动)。详见 portal.js。 */

/* 2. 咨询 CTA 区块按设计稿两种形态重做:
      默认   = 详情/解决方案页 600 高, 浅底黑字(底图 576aba116d)
      --photo= 首页 880 / 团队 903 高, 照片底白字 */
.cta-band{position:relative;background:url("images/576aba116d2603f7f6b53506.webp") center/cover;color:var(--ink);text-align:center;padding:5.2cqw 24px 5.7cqw;min-height:31.25cqw}
.cta-band h2{font-size:max(26px,3.125cqw);font-weight:700}
.cta-band .en-sub{font-family:Arial,"Microsoft YaHei",sans-serif;font-size:max(12px,1.25cqw);margin-top:1.05cqw;color:#687480}
.cta-band .cta-copy{font-size:max(13px,1.25cqw);line-height:1.5;margin:5.2cqw auto 0;max-width:1280px;color:var(--ink)}
.cta-band .primary-button{margin:5.2cqw auto 0}
.cta-band--photo{background:var(--photo-veil,url("images/a475fa0ce8bfdc7f18e6b64f.webp")) center/cover,var(--photo-bg,url("images/ec1a5e8c9f7c67f619b86d3f.webp")) center/cover,#000;color:#fff;min-height:45.8cqw;padding-top:6.25cqw}
.cta-band--photo h2{color:#fff}
.cta-band--photo .en-sub{color:#ffffffcc}
.cta-band--photo .cta-copy{font-size:max(14px,1.5625cqw);line-height:2;color:#eef2f6;margin-top:4.2cqw}
.cta-band--photo .primary-button{margin-top:6.2cqw;background:url("images/8c9acb4ac26e7f0e6a2ec452.webp") center/cover;color:#fff;width:min(20.8cqw,400px);min-height:4.16cqw}

/* 4. 公司简介标题下横线: 灰色通栏细线 + 左侧 60px 蓝色短线叠加(设计稿 about/index #company) */
.company-wrap .divider{position:relative;width:100%;height:2px;background:#e8ebee;margin-bottom:1.35cqw}
.company-wrap .divider::before{content:"";position:absolute;left:0;top:0;width:60px;height:2px;background:var(--blue)}

/* 5. 页脚栅格修正: logo | 4个栏目(1fr) | 联系方式, 6 列不再换行 */
.site-footer-grid{grid-template-columns:auto repeat(4,1fr) auto;align-items:start;gap:40px 3.2cqw}
@media(max-width:1280px){
  .site-footer-grid{grid-template-columns:repeat(3,1fr)}
  .site-footer-brand{grid-column:1/-1}
}
@media(max-width:800px){
  .site-footer-grid{grid-template-columns:1fr 1fr;gap:34px 22px}
  .site-footer-brand,.site-footer-contact{grid-column:1/-1}
}

/* 品牌分类较多时拆两列(设计稿 Maoze产品 为双列, SLF产品 保持单列) */
/* 品牌分类列: 分类名不换行 */
.site-footer-col li a{white-space:nowrap}

/* 版权栏三段布局: 左链接 | 居中版权 | 右语言切换(设计稿 y=378 三段) */
.site-footer-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}
.site-footer-bar .bar-links{justify-self:start}
.site-footer-bar .copyright{justify-self:center}
.site-footer-bar .lang-switcher{justify-self:end;margin-left:0}
@media(max-width:800px){
  .site-footer-bar{grid-template-columns:1fr;justify-items:center;gap:12px}
  .site-footer-bar .bar-links{justify-self:center}
}

/* 页脚二维码(设计稿 contact 列下方两张 80x80) */
.site-footer-qr img{width:4.16cqw;min-width:64px;height:auto;aspect-ratio:1;object-fit:cover}

/* ---------- 11. 第二轮视觉校准 ---------- */

/* 2. 首页 CTA 照片底遮罩变淡(设计稿照片清晰明亮, 仅轻微压暗保证白字可读) */
.cta-band--photo{background:var(--photo-veil,url("images/a475fa0ce8bfdc7f18e6b64f.webp")) center/cover,var(--photo-bg,url("images/ec1a5e8c9f7c67f619b86d3f.webp")) center/cover,#000;color:#fff}

/* 3. 在线咨询表单: 布局整体由 site.css 的 #inquiry-form 固定画布规则承担(已换回原生 id),
      校验态补充规则见上方第 6 节; axios 提交由 portal.js 捕获阶段拦截 site.js 跳转实现 */

/* 6. 区块标题设计稿形态: 蓝色小竖条(标题下方) + 英文副题两侧横线(af5b855e 242x1) */
.section-heading--lined h2::after{content:"";display:block;width:5px;height:21px;background:var(--blue);margin:.35em auto 0}
.section-heading--lined p{display:flex;align-items:center;justify-content:center;gap:24px}
.section-heading--lined p::before,.section-heading--lined p::after{content:"";width:clamp(60px,12.6cqw,242px);height:1px;background:#d9dfe5;flex-shrink:0}

/* 6. 解决方案页引导语(设计稿: banner 下方、大标题上方的黑色居中段落) */
.flow-intro{color:var(--ink);font-size:clamp(14px,1.25vw,24px);line-height:1.9;text-align:center;max-width:1180px;margin:0 auto 5.2cqw}

/* 8. 发展历程(桌面: 中轴左右交错 + 白色卡片, 卡片带阴影和指向中轴的小三角,
      年份蓝色大字在卡片内侧; 区块浅蓝底; 移动端沿用竖排; 对齐设计稿 about.html #history) */
#history.flow-section{width:100%;max-width:none;background:#f5f8fc;padding:5cqw 6.25cqw;margin:5cqw 0}
/* 双列交错(grid: 奇数卡入左列/偶数卡入右列, 行距收紧), 偶数卡视觉下移半个卡位
   (translateY 不占布局, 形成设计稿的紧凑衔接交错) */
.history-wrap{position:relative;display:grid;grid-template-columns:1fr 1fr;column-gap:9.2cqw;row-gap:7.4cqw}
/* 中轴线/节点直接复用设计稿切图(ab65f95b 1px 竖线、f1c51a9c 43px 蓝点圈), 像素级还原 */
.history-wrap::before{content:"";position:absolute;left:50%;top:6px;bottom:6px;width:1px;background:url("images/ab65f95ba145b152d1bb44da.webp") repeat-y center/1px 100%}
.history-item{display:block;width:auto;background:#fff;border-radius:10px;box-shadow:0 12px 34px #10243b14;padding:2.1cqw 2.6cqw 2.3cqw;position:relative;align-self:start}
.history-item:nth-child(odd){grid-column:1}
.history-item:nth-child(even){grid-column:2;transform:translateY(9.8cqw)}
/* 卡片朝向中轴一侧的大三角(设计稿约 36px 高) */
.history-item::before{content:"";position:absolute;top:2.4cqw;border-top:1cqw solid transparent;border-bottom:1cqw solid transparent}
.history-item:nth-child(odd)::before{right:-.92cqw;border-left:.92cqw solid #fff}
.history-item:nth-child(even)::before{left:-.92cqw;border-right:.92cqw solid #fff}
/* 中轴节点: 设计稿切图 635e3a0f(32x32 蓝点圈, 5 个节点位均用它) */
.history-item::after{content:"";position:absolute;top:2.55cqw;width:1.67cqw;min-width:22px;aspect-ratio:1;background:url("images/635e3a0f28dd1a214a53f65d.webp") center/contain no-repeat}
.history-item:nth-child(odd)::after{right:calc(-4.6cqw - .7cqw)}
.history-item:nth-child(even)::after{left:calc(-4.6cqw - .7cqw)}
.history-item b{display:block;font:700 max(28px,2.1cqw)/1.3 Arial,sans-serif;color:var(--blue);margin-bottom:.8cqw}
.history-item:nth-child(odd) b{text-align:right}
.history-item h3{font-size:max(17px,1.35cqw);margin-bottom:.8cqw}
.history-item p{color:#6c7780;font-size:max(13px,.94cqw);line-height:1.95}
@media(max-width:800px){
  #history.flow-section{background:none;padding:0;border-radius:0}
  .history-wrap{display:block}
  .history-wrap::before{left:0}
  .history-item,.history-item:nth-child(odd),.history-item:nth-child(even){width:auto;margin-left:0;padding:0 0 30px 22px;background:none;border-radius:0;box-shadow:none;transform:none}
  .history-item:nth-child(odd) b{text-align:left}
  .history-item::before,.history-item:nth-child(odd)::before,.history-item:nth-child(even)::before{content:none}
  .history-item::after,.history-item:nth-child(odd)::after,.history-item:nth-child(even)::after{left:-27px;right:auto;top:8px;width:9px;min-width:0;box-shadow:none;border:2px solid #dbefff}
  .history-item b{font-size:27px;margin-bottom:0}
}

/* 8. 联系我们(设计稿: 开放三列带图标 + 全宽地图) */
.contact-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:2cqw;margin-top:3.2cqw;text-align:center}
.contact-strip article{padding:0;background:none}
.contact-strip .contact-ico{height:2cqw;min-height:26px;width:auto;margin:0 auto .9cqw;display:block}
.contact-strip h3{font-size:max(18px,1.5625cqw);font-weight:400;margin-bottom:1.1cqw}
.contact-strip p,.contact-strip a{font-size:max(13px,.94cqw);line-height:2;color:#6c7882;display:block;overflow-wrap:anywhere}
.contact-strip small{display:block;font-size:max(11px,.73cqw);color:#89939b;margin-top:.4cqw}
@media(max-width:800px){
  .contact-strip{grid-template-columns:1fr;gap:26px;text-align:left;margin:32px 0}
  .contact-strip .contact-ico{margin:0 0 8px}
}

/* ---------- 12. 技术支持"专业技术团队"区块(对齐设计稿 support.html #team) ----------
   结构: 白底标题区(蓝竖条+英文+左右线) -> 纯蓝背景块(e3309140) ->
         intro 白字 -> 三列白色描线图标+标题+副文案 -> 白底斜切按钮 */
.team-section{margin-top:5cqw}
.team-section .section-heading{margin-bottom:2.6cqw}
.team-band{background:url("images/e33091408ebf1493923ec6c2.webp") center/cover;padding:4.2cqw 6.25cqw 4.7cqw}
.team-intro{color:#fff;font-size:max(14px,1.25cqw);line-height:1.9;text-align:center;max-width:1280px;margin:0 auto 4cqw}
/* 三列按设计稿内容宽度(x=224..1696)居中排布, 图标约 137px 高 */
.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2cqw;max-width:1472px;margin:0 auto}
.team-grid article{display:flex;align-items:center;gap:1.7cqw;color:#fff;padding:0 1cqw}
.team-grid .team-ico{height:6.9cqw;min-height:96px;width:auto;flex-shrink:0}
.team-grid h3{font-size:max(18px,1.5625cqw);font-weight:400;margin-bottom:.55cqw}
.team-grid p{font-size:max(12px,.94cqw);color:#ffffffd9;line-height:1.7}
/* 按钮对齐设计稿 3a468eac: 300x80 白底斜切, 显式宽度防块级拉伸 */
.team-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;width:min(15.6cqw,300px);min-height:4.16cqw;padding:0 1.9cqw;background:#fff;color:var(--blue);font-size:max(14px,1.25cqw);clip-path:polygon(0 0,100% 0,100% calc(100% - 11px),calc(100% - 11px) 100%,0 100%);transition:transform .2s,box-shadow .2s}
.team-btn:hover{transform:translateY(-2px);box-shadow:0 12px 30px #ffffff40}
.team-band .team-btn{display:flex;margin:4cqw auto 0}
@media(max-width:800px){
  .team-section .section-heading{margin-bottom:24px}
  .team-band{padding:45px 22px 50px}
  .team-intro{font-size:13px;margin-bottom:32px}
  .team-grid{grid-template-columns:1fr;gap:18px}
  .team-grid article{padding:0}
  .team-grid .team-ico{height:44px;min-height:0}
  .team-grid h3{font-size:16px}
  .team-grid p{font-size:12px}
  .team-band .team-btn{margin-top:32px}
}

/* ---------- 13. SLF 产品列表页卡片选中态(按品牌区分) ----------
   SLF 产品列表页(/products/slf): 整卡品牌蓝底 + 文案变白, 产品图大小不变并轻微向上错位。
   其他列表页(/products、/products/maoze)不适用本组规则, 保持设计稿原版选中态。
   覆盖 site.css 中为"选中时图片缩小"配套的一组样式:
     - .is-selected .product-picture img  : 原把图片缩到 53.7% 并右移/上移
     - .is-selected .product-copy p       : 原把分类名上移以填补缩小后的空白
     - .is-selected .product-copy::before : 原在分类名左侧画一条白色竖线
   位移的过渡动画来自 site.css 既有的 .product-picture img{transition:transform .45s} */
body[data-page="products"][data-brand="slf"] .catalogue--products .product-card.is-selected .product-picture img,
body[data-page="products"][data-brand="slf"] .catalogue--products .product-card.is-selected:hover .product-picture img,
body[data-page="products"][data-brand="slf"] .catalogue--products .product-card.is-selected:focus-visible .product-picture img{
  width:var(--picture-width,87%);
  min-width:48%;
  max-height:100%;
  height:auto;
  margin-top:0;
  /* 选中时向上轻微错位(取值同设计稿悬停位移量 .95cqw) */
  transform:translateY(-.95cqw);
  object-fit:contain;
}
body[data-page="products"][data-brand="slf"] .catalogue--products .product-card.is-selected .product-copy p{
  margin-top:0;
  margin-bottom:.39167cqw;
}
body[data-page="products"][data-brand="slf"] .catalogue--products .product-card.is-selected .product-copy::before{
  content:none;
}

/* 选中态图片容器对齐: site.css 的 .is-selected 会改为顶部对齐(配合图片缩小),
   本需求图片不缩小, 故保持与未选中一致的垂直居中 */
body[data-page="products"][data-brand="slf"] .catalogue--products .product-card.is-selected .product-picture{
  align-items:center;
}

/* =====================================================================
   产品详情内容区块(按静态设计稿 product-detail.html 原样)
   设计稿三个内容区块(产品特性/尺寸结构图/订购示例)的标题区为白底, 只有:
     40px 粗体中文标题 + 标题装饰图(902b3828, 左缩 40 单位, 压在标题文字之下)
     + 标题下方 1px 分隔线(设计稿 726f9738 为 #ddd 实色, 这里用 1px 底线等价实现)
     + 分隔线下方 24px 英文副标题(设计稿: Arial, 距标题顶 78 单位)
     正文从分隔线下约 87 单位开始
   区块自身不加底色: 产品特性用设计稿的品牌蓝底条(#0163ba)承载静态四项,
   技术参数表沿用设计稿自带样式(.spec-section > .section-heading 的 ::after 分隔线)。
   .detail-block 只负责把内容按设计稿的 x=160 内缩对齐(与技术参数表标题对齐)。
   ===================================================================== */
.detail-block{width:100%;max-width:none;padding:3.125cqw 8.333cqw 4.167cqw;margin:2cqw 0}
.detail-heading{position:relative;margin-bottom:2.083cqw}
.detail-heading h2{position:relative;z-index:1;font-size:2.0833cqw;line-height:2.5cqw;font-weight:700;color:var(--ink)}
.detail-heading .heading-deco{position:absolute;left:2.0833cqw;top:.47cqw;width:16.25cqw;height:1.875cqw;pointer-events:none}
.detail-heading .heading-line{position:absolute;left:0;top:3.906cqw;width:100%;height:1px;background:#ddd;pointer-events:none}
.detail-heading .heading-sub{margin-top:1.5625cqw;font-size:1.25cqw;line-height:1.25cqw;font-family:Arial,"Microsoft YaHei",sans-serif;color:var(--ink)}
.detail-block .diagram{margin:0 auto;width:100%}
.detail-block .rich-content{max-width:1200px;margin:0 auto}
/* 产品介绍在概览区(移动端跟随型号按钮下方) */
.detail-intro-mobile{margin-top:18px;font-size:14px;line-height:1.9;color:#4d5964}
/* 产品特性静态四项: 蓝底条上的竖分隔线与顶部细线
   (设计稿竖线图 e08b5341 在资源目录中缺失, 用半透明白线等价实现) */
.benefit-divider{background:rgba(255,255,255,.3)}
.benefit-topline{background:rgba(0,0,0,.2)}

@media(max-width:800px){
  .detail-block{padding:0 22px 50px;margin:26px 0}
  .detail-heading{margin-bottom:22px;text-align:center}
  .detail-heading h2{font-size:25px;line-height:1.5}
  .detail-heading .heading-deco,.detail-heading .heading-line{display:none}
  .detail-heading .heading-sub{margin-top:8px;font-size:12px;line-height:1.5;color:#929292}
  .detail-block .diagram{margin-top:0}
}

/* =====================================================================
   首页产品区: 默认高亮卡片
   data-marquee-default 指定第 N 张卡片初始即选中(无需悬停),
   取值与各自的 :hover 态完全一致, 因此鼠标移开/移入都不会跳变。
   ===================================================================== */
.marquee-card.is-default-active{
  background:url("images/f96516403b01e5c4baa19cf6.webp") -1.40625cqw 0/100% 100% no-repeat;
  color:#fff;
  transform:translateY(-4.21875cqw);
}
.marquee-card.is-default-active .marquee-picture{left:5.6%;top:-21.9%;width:111%;height:62.5%}
.marquee-card.is-default-active .marquee-picture img{transform:translateY(-.78cqw) scale(1.025);mix-blend-mode:normal}
.marquee-card.is-default-active .marquee-copy{top:47%}
.marquee-card.is-default-active .marquee-copy small{display:block;color:#d9efff}
.marquee-card.is-default-active .marquee-copy strong{margin-top:3.6458cqw;font-weight:700}
.marquee-card.is-default-active .marquee-copy::before{content:"";position:absolute;left:.46875cqw;top:1.6667cqw;width:1px;height:3.125cqw;background:#fff;opacity:.55}
.marquee-card.is-default-active>b{opacity:1;transform:rotate(90deg) scale(1)}

/* SLF 默认高亮: 卡片本身不动, 仅底部蓝色信息块淡入 + 文案转白(同 SLF 悬停态) */
#slf-products .marquee-card.is-default-active{
  background:url("images/931f50d18ae9e5fd4a60519b.webp") 0 0/100% 100% no-repeat;
  transform:none;
  color:#fff;
}
#slf-products .marquee-card.is-default-active::before{opacity:1}
#slf-products .marquee-card.is-default-active .marquee-picture{left:12%;top:6%;width:76%;height:44%}
#slf-products .marquee-card.is-default-active .marquee-picture img{transform:none}
#slf-products .marquee-card.is-default-active .marquee-copy{left:14.8%;top:70%}

/* =====================================================================
   SLF 区改为静态展示 4 张(不滚动)
   关掉跑马灯动画与轨道克隆后, 把整条轨道等比缩小铺满可视区 ——
   4 张卡片(28.125 + 0.78125*2 = 29.6875cqw/张)原本需要 118.75cqw,
   可视区仅 93.75cqw(left:6.25cqw 起), 故整体缩放 0.7895 并下移,
   使行中心与设计稿滚动条带的位置一致; 等比缩放可保持卡片比例与字号关系。
   ===================================================================== */
#slf-products .marquee-track{
  animation:none;
  transform-origin:left top;
  transform:translateY(3.84cqw) scale(.7895);
}

/* =====================================================================
   MOAZE 产品列表页选中/悬停态: 完全对齐首页 MAOZE 卡片(高亮 + 动画)
   同名元素对应关系: .product-picture ≈ .marquee-picture, .product-copy ≈ .marquee-copy,
   .product-plus ≈ .marquee-card>b。位移量/过渡时长与缓动全部取自首页卡片那组样式。

   两点必要改动:
     1) 卡片默认的裁切(overflow:hidden + clip-path)会把"飞出去"的产品图切掉,
        选中时解除; 蓝色底改用首页那张自带切角造型的卡片底图, 形状因此不变。
     2) 首页卡片的产品图/文案本来就是绝对定位, 百分比位移才能平滑过渡;
        列表卡片原本是流式布局(position 变更无法过渡), 故把默认态也改为绝对定位,
        取值按当前实际排布(图在上、文案在下)折算, 保证未悬停时外观与原来一致。
   仅作用于非 SLF 的品牌列表(/products、/products/maoze); SLF 列表另有专属选中态。
   ===================================================================== */
/* --- 默认态: 沿用列表卡片原有排布(绝对定位以便悬停时平滑过渡)
       高度/内边距不在此重写, 由 site.css 原有断点规则决定(桌面 70%、窄屏 58%),
       这里只补 position 与位置, 保证未悬停时外观与原来完全一致 --- */
body[data-page="products"]:not([data-brand="slf"]) .catalogue--products .product-card .product-picture{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:70%;
  transition:left .48s cubic-bezier(.22,.61,.36,1),top .48s cubic-bezier(.22,.61,.36,1),width .48s cubic-bezier(.22,.61,.36,1),height .48s cubic-bezier(.22,.61,.36,1);
}
body[data-page="products"]:not([data-brand="slf"]) .catalogue--products .product-card .product-copy{
  position:absolute;
  left:0;
  top:70%;
  bottom:0;
  width:100%;
  margin-top:0;
  transition:top .48s cubic-bezier(.22,.61,.36,1),color .3s;
}
body[data-page="products"]:not([data-brand="slf"]) .catalogue--products .product-card .product-picture img{
  transition:transform .52s cubic-bezier(.2,.72,.22,1),mix-blend-mode .3s ease,width .48s cubic-bezier(.22,.61,.36,1);
}
body[data-page="products"]:not([data-brand="slf"]) .catalogue--products .product-card .product-plus{
  transition:opacity .35s ease,transform .35s ease;
}

/* --- 选中/悬停态: 蓝色切角底交给 ::before 绘制, 卡片本体放开裁切,
       这样产品图能上移越出卡片上边界, 而蓝色块的形状/颜色与原来完全一致 ---
   卡片原来的裁切来自两处, 都会挡住"出头"的图:
     overflow:hidden        —— 卡片盒裁切
     clip-path:polygon(...) —— 右下角切角(切角是蓝色造型的一部分, 必须保留)
   因此把蓝色造型整体挪到 ::before 上(带切角), 卡片本体改为不裁切。
   ::before 在树中位于内容之前, 所以图片/文案依然绘制在蓝底之上。 */
body[data-page="products"]:not([data-brand="slf"]) .catalogue--products .product-card.is-selected{
  background:transparent;
  overflow:visible;
  clip-path:none;
}
body[data-page="products"]:not([data-brand="slf"]) .catalogue--products .product-card.is-selected::before{
  content:"";
  position:absolute;
  inset:0;
  background:var(--blue);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%);
}
/* 产品图: 保持常态尺寸不被缩小(静态页选中态会缩到 53.7%, 这里覆写回常态的 87%),
   并整体上移 -1.61458cqw(设计稿的位移量, 约卡高的 5.5%)越出卡片上边界 —— 幅度刻意取小 */
body[data-page="products"]:not([data-brand="slf"]) .catalogue--products .product-card.is-selected .product-picture img,
body[data-page="products"]:not([data-brand="slf"]) .catalogue--products .product-card.is-selected:hover .product-picture img,
body[data-page="products"]:not([data-brand="slf"]) .catalogue--products .product-card.is-selected:focus-visible .product-picture img{
  width:var(--picture-width,87%);
  height:auto;
  max-width:100%;
  max-height:100%;
  margin-top:-1.61458cqw;
  transform:none;
  object-fit:contain;
  mix-blend-mode:normal;
  transition:transform .45s cubic-bezier(.2,.7,.2,1),margin-top .45s cubic-bezier(.22,.61,.36,1),mix-blend-mode .3s ease;
}

/* MAOZE 列表卡片窄屏(≤800px): 与 site.css 的窄屏断点保持一致(图片区 58%) */
@media(max-width:800px){
  body[data-page="products"]:not([data-brand="slf"]) .catalogue--products .product-card .product-picture{
    height:58%;
  }
  body[data-page="products"]:not([data-brand="slf"]) .catalogue--products .product-card .product-copy{
    top:58%;
  }
}

/* =====================================================================
   首页 MAOZE 产品卡片高亮态: 与静态页(/html/index.html)完全一致
   静态页实测(悬停时): 图片区 left:5.6% top:-21.9% width:111% height:62.5%,
   图片 translateY(-.78cqw) scale(1.025), 图上边界越出卡片约 25% 卡高, 卡片上浮 4.21875cqw。
   这些值就是上面 .marquee-card.is-default-active 那一组(以及 site.css 的 :hover 那组)的取值,
   本站此前为"收窄出头"加的覆盖已删除 —— 现在默认高亮与悬停高亮都按静态页取值,
   两者数值一致, 鼠标移入移出不会跳变。
   ===================================================================== */

/* =====================================================================
   14. 产品详情相册缩略图行(居中 + 超过 4 张横向滚动)
   主图 480 见方, 位于 x=160..640 / y=180..660; 缩略图行与主图左边界对齐、同宽 480,
   排在主图下方: 主图底边(660)到小图顶边(670)留 10 的间距
   —— 画布单位, 1440 宽的窗口下约 7px(设计稿原本只有 8, 大小图贴得太近)。
   行内排布沿用设计稿刻度: 每张热区 104 见方、相邻间距 8(即排布刻度 112),
   图片 88 居中放在热区内, 框与图之间因此留出 8 的内间距。
   4 张时内容宽 104*4 + 8*3 = 440 ≤ 480, 由 justify-content:center 居中;
   超过 4 张时内容宽于 480, 该行横向滚动(原生滚动条隐藏, 由 portal.js 补
   滚轮/拖拽滚动)。内层轨道宽度取 max-content 并兜底 min-width:100%,
   溢出的部分完全落在可滚动区间内, 不会出现"居中把左侧挤到滚不到"的问题。
   ===================================================================== */
.detail-gallery{
  position:absolute;
  left:calc(160 * var(--u));
  top:calc(650 * var(--u));
  width:calc(480 * var(--u));
  height:calc(104 * var(--u));
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.detail-gallery::-webkit-scrollbar{display:none}
.detail-gallery.is-scrollable{cursor:grab}
.detail-gallery.is-dragging{cursor:grabbing}
.detail-gallery-track{display:flex;align-items:center;justify-content:center;gap:calc(8 * var(--u));width:max-content;min-width:100%;height:100%}
/* 重置 site.css 的 .layer/.hotspot 绝对定位: 缩略图改为行内排列 */
.detail-gallery-track .gallery-control{position:relative;left:auto;top:auto;flex:0 0 calc(104 * var(--u));width:calc(104 * var(--u));height:calc(104 * var(--u));display:grid;place-items:center;padding:0;border:0;background:transparent;transition:box-shadow .25s,background .25s}
.detail-gallery-track .gallery-control img{width:calc(88 * var(--u));height:calc(88 * var(--u));max-width:none;object-fit:contain;mix-blend-mode:multiply;pointer-events:none}

/* 移动端相册: 同样按 4 张一屏排布, 超过 4 张横向滚动(原 .mobile-gallery button 宽度 25%
   会被 flex 压缩, 图片数量一多每张就变得很小; 改成固定 4 分栏后保持大小并可滚动);
   不足 4 张时居中, safe 不被支持时退回普通居中(safe 仅在溢出时才起作用, 不影响本例)。 */
.mobile-gallery{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-ms-overflow-style:none;justify-content:center;justify-content:safe center;padding-bottom:2px}
.mobile-gallery::-webkit-scrollbar{display:none}
.mobile-gallery button{flex:0 0 calc((100% - 30px) / 4);width:auto}

/* =====================================================================
   15. 产品详情主图改为等比显示(点击缩略图换图后不再被拉伸)
   主图栏位是设计稿的 480 见方, 而 site.css 的 .graphic 统一是 object-fit:fill,
   后台产品图的原始比例各不相同(实测 113x200 的竖图、1312x1016 的横图都有),
   被 fill 塞进正方框就会明显变形(点竖版缩略图后尤其明显)。改为 contain:
   图始终等比缩放并居中, 框位与其它图层坐标都不变。
   ===================================================================== */
#product-overview .desktop-layout [data-main-product]{object-fit:contain}
