/* ============================================================
   方案 A · 秩序精修
   原则：不动布局、不动板块、不换图，只做「统一与秩序」
   1) 杂色（蓝/绿）收敛为品牌橙 + 中性灰
   2) 章节标题、圆角、间距、悬浮三套统一
   3) Hero 与按钮做轻量精修
   ============================================================ */


/* ---------- 1. 色系统一：蓝/绿 → 橙 + 中性灰 ---------- */
.fm-sc-num,.fm-sc-suffix{color:#fd560f !important}
.fm-cc-subtitle,.fm-news-subtitle{color:#fd560f !important;font-size:.75rem !important;
  font-weight:600 !important;letter-spacing:.14em;text-transform:uppercase}
.fm-prod-subtitle,.fm-ship-subtitle,.fm-lv-subtitle{color:#8a94a6 !important}
.fm-faq-arrow::before,.fm-faq-arrow::after{background:#fd560f !important}
.fm-lv-link{color:#fd560f !important}
.fm-lv-link:hover{color:#e64d0c !important}

/* ---------- 2. 章节标题体系 ---------- */
.module-title{font-size:1.9rem !important;font-weight:700 !important;letter-spacing:-.02em;
  color:#1b1b1b !important;margin-bottom:1rem !important;line-height:1.25}
.module-title::after{content:"";display:block;width:36px;height:3px;background:#fd560f;
  border-radius:2px;margin:14px auto 0}

/* ---------- 3. 模块垂直节奏统一（原 20~48px 混杂 → 56px） ---------- */
.fm-cc,.fm-sc,.fm-prod,.fm-ship,.fm-lv,.fm-faq,.fm-news,.module-product{
  padding-top:56px !important;padding-bottom:56px !important}

/* ---------- 4. 卡片统一：圆角 12 / 细边 / 同一悬浮 ---------- */
.fm-cc-card,.fm-prod-item,.fm-ship-item,.fm-news-card{
  border:1px solid #ececec !important;border-radius:12px !important;box-shadow:none !important;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease !important}
.fm-cc-card:hover,.fm-prod-item:hover,.fm-ship-item:hover,.fm-news-card:hover{
  transform:translateY(-4px) !important;box-shadow:0 14px 30px rgba(17,24,39,.09) !important;
  border-color:#e0e0e0 !important}
.fm-faq-item{border:1px solid #ececec !important;border-radius:12px !important}
.fm-lv-frame{border-radius:12px !important}

/* ---------- 5. Hero 轻量精修 ---------- */
.fm-ic{min-height:340px}
.fm-ic-overlay{background:linear-gradient(180deg,rgba(9,23,38,.42) 0%,rgba(9,23,38,.74) 100%) !important;
  padding:82px 0 !important}
.fm-ic-title{font-size:clamp(2rem,3.1vw,2.7rem) !important;letter-spacing:-.02em;line-height:1.18;
  margin-bottom:12px !important}
.fm-ic-subtitle{font-size:1.1rem !important;margin-bottom:28px !important}
.fm-ic-btn{border-radius:8px !important;padding:13px 36px !important}
.fm-ic-btn-primary{box-shadow:0 10px 24px rgba(253,86,15,.3)}
.fm-ic-btn-outline{border-width:1.5px !important}

/* ---------- 6. 产品卡统一外层（首页轮播与列表页同规则） ---------- */
.product-wrap{background:#fff;border:1px solid #efefef;border-radius:12px;
  padding:10px 10px 14px;transition:transform .25s ease,box-shadow .25s ease}
.product-wrap:hover{transform:translateY(-4px);box-shadow:0 12px 26px rgba(17,24,39,.09)}
.product-wrap .image{border-radius:8px;overflow:hidden}
.product-wrap .product-name{font-size:.92rem !important;font-weight:600 !important;color:#1b1b1b !important}

/* ---------- 7. 数据带 ---------- */
.fm-sc-num,.fm-sc-suffix{font-weight:700 !important;letter-spacing:-.03em}
.fm-sc-label{color:#4b5563 !important}

/* ---------- 8. 顶栏 / 页脚细节 ---------- */
header .top-wrap{background:#f5f6f8 !important}
.header-content{border-bottom:1px solid #ededed}
footer .services-wrap{border-bottom:1px solid #ededed}

/* ---------- 9. 响应式 ---------- */
@media (max-width:991px){
  .module-title{font-size:1.4rem !important}
  .module-title::after{margin-top:10px}
  .fm-ic-overlay{padding:52px 0 !important}
  .fm-ic-title{font-size:1.65rem !important}
  .fm-cc,.fm-sc,.fm-prod,.fm-ship,.fm-lv,.fm-faq,.fm-news,.module-product{
    padding-top:36px !important;padding-bottom:36px !important}
}

/* ============================================================
   10~14：内容补强（工厂实拍 / 证书墙）与问题修正
   ============================================================ */

/* ---- 10. 压缩相邻区块的重复留白（原 56+56 → 44+44） ---- */
.module-item{margin-bottom:0 !important}
.module-item .mb-5,.module-item .mb-md-5{margin-bottom:0 !important}
.fm-cc,.fm-sc,.fm-prod,.fm-ft,.fm-cert,.fm-ship,.fm-lv,.fm-faq,.fm-news,.module-product{
  padding-top:44px !important;padding-bottom:44px !important}

/* ---- 11. 生产流程卡：顶部实拍图 ---- */
.fm-prod-item{padding:0 !important;display:flex;flex-direction:column;overflow:hidden}
.fm-prod-photo{width:100%;aspect-ratio:4/3;background:#f2f3f5;overflow:hidden}
.fm-prod-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.fm-prod-item:hover .fm-prod-photo img{transform:scale(1.04)}
.fm-prod-item .fm-prod-name{padding:14px 14px 0 !important;margin:0 !important}
.fm-prod-item .fm-prod-desc{padding:6px 14px 16px !important;margin:0 !important}

/* ---- 12. 工厂实景画廊 ---- */
.fm-ft{background:#f7f8fa}
.fm-ft-head{max-width:760px;margin:0 auto 26px;text-align:center}
.fm-ft-eyebrow{font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;color:#fd560f;
  font-weight:600;margin-bottom:6px}
.fm-ft-sub{color:#6b7280;font-size:.92rem;margin:0}
.fm-ft-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.fm-ft-item{position:relative;margin:0;border-radius:12px;overflow:hidden;background:#e9ecef}
.fm-ft-item img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:4/3}
.fm-ft-wide{grid-column:span 2}
.fm-ft-wide img{aspect-ratio:16/9}
.fm-ft-item figcaption{position:absolute;left:0;right:0;bottom:0;padding:30px 14px 12px;
  color:#fff;font-size:.84rem;font-weight:500;letter-spacing:.01em;
  background:linear-gradient(transparent,rgba(10,20,30,.72))}
.fm-ft-stats{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);
  margin:22px 0 0;padding:0;background:#fff;border:1px solid #ececec;border-radius:12px}
.fm-ft-stats li{text-align:center;padding:18px 10px;border-left:1px solid #f0f0f0}
.fm-ft-stats li:first-child{border-left:0}
.fm-ft-stats b{display:block;font-size:1.55rem;font-weight:700;color:#1b1b1b;line-height:1.1}
.fm-ft-stats b small{font-size:.8rem;margin-left:2px;color:#fd560f;font-weight:600}
.fm-ft-stats span{display:block;font-size:.78rem;color:#6b7280;margin-top:4px}

/* ---- 13. 证书墙 ---- */
.fm-cert{background:#fff;border-top:1px solid #f1f1f1;border-bottom:1px solid #f1f1f1}
.fm-cert-eyebrow{font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;color:#fd560f;
  font-weight:600;margin-bottom:6px}
.fm-cert-sub{color:#6b7280;font-size:.92rem;margin:0 0 26px}
.fm-cert-list{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:14px;
  margin:0;padding:0}
.fm-cert-list li{display:flex;flex-direction:column;align-items:center;gap:7px;
  padding:22px 10px 18px;border:1px solid #ececec;border-radius:12px;background:#fff;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.fm-cert-list li:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(17,24,39,.07);
  border-color:#e0e0e0}
.fm-cert-seal{width:56px;height:56px;border-radius:50%;border:2px solid #fd560f;color:#fd560f;
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.78rem;
  letter-spacing:.02em;background:#fff7f3}
.fm-cert-list b{font-size:.9rem;color:#1b1b1b;line-height:1.2}
.fm-cert-desc{font-size:.74rem;color:#8a94a6;text-align:center;line-height:1.4}

/* ---- 14. 产品卡文字溢出修复（三行标题撑破卡片底边） ---- */
.product-wrap{display:flex;flex-direction:column;height:100%;overflow:hidden}
.product-wrap>.image{flex:0 0 auto}
.product-wrap .product-bottom-info{flex:1 1 auto;display:flex;flex-direction:column;padding-top:8px}
.product-wrap .product-name{height:auto !important;max-height:2.9em;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  text-overflow:ellipsis;line-height:1.45 !important;font-size:.9rem !important}

@media (max-width:991px){
  .fm-ft-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .fm-ft-wide{grid-column:span 2;grid-row:auto}
  .fm-ft-wide img{aspect-ratio:16/9}
  .fm-ft-stats{grid-template-columns:repeat(2,1fr)}
  .fm-ft-stats li:nth-child(3){border-left:0}
  .fm-ft-stats li:nth-child(n+3){border-top:1px solid #f0f0f0}
  .fm-cert-list{grid-template-columns:repeat(2,1fr)}
  .fm-ft,.fm-cert{padding-top:36px !important;padding-bottom:36px !important}
}

/* ---- 15. 轮播「进度条」错版修复（原本绝对定位压在卡片下沿） ---- */
.swiper-pagination.rectangle{position:static !important;margin:16px auto 0 !important;
  width:fit-content !important;height:auto !important;display:flex;justify-content:center;
  gap:6px;text-align:center;line-height:0}
.swiper-pagination.rectangle .swiper-pagination-bullet{width:24px !important;height:4px !important;
  border-radius:2px !important;background:#dfe3e8 !important;opacity:1 !important;
  margin:0 !important;transition:background .2s ease}
.swiper-pagination.rectangle .swiper-pagination-bullet-active{background:#fd560f !important}

/* ---- 16. 出口市场地图 ---- */
.fm-gf{background:#fff;padding:44px 0}
.fm-gf-body{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:28px;align-items:center}
.fm-gf-map{position:relative;border-radius:12px;overflow:hidden;background:#fff;border:1px solid #f0f0f0}
.fm-gf-map img{width:100%;display:block}
.fm-gf-pin{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;gap:6px;
  font-size:.72rem;font-weight:600;color:#1b1b1b;white-space:nowrap;background:rgba(255,255,255,.92);
  padding:3px 9px;border-radius:99px;box-shadow:0 2px 8px rgba(17,24,39,.12)}
.fm-gf-pin i{width:7px;height:7px;border-radius:50%;background:#fd560f;display:block;
  box-shadow:0 0 0 3px rgba(253,86,15,.18)}
.fm-gf-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.fm-gf-list li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  padding:12px 14px;border:1px solid #efefef;border-radius:10px}
.fm-gf-list b{font-size:.9rem;color:#1b1b1b;white-space:nowrap}
.fm-gf-list span{font-size:.8rem;color:#6b7280;text-align:right}

/* ---- 17. 集装箱装柜照片墙 ---- */
.fm-cl{background:#f7f8fa;padding:44px 0}
.fm-cl-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.fm-cl-grid figure{position:relative;margin:0;border-radius:10px;overflow:hidden;background:#e9ecef}
.fm-cl-grid img{width:100%;height:100%;object-fit:cover;aspect-ratio:3/4;display:block;
  transition:transform .5s ease}
.fm-cl-grid figure:hover img{transform:scale(1.05)}
.fm-cl-grid figcaption{position:absolute;left:0;right:0;bottom:0;padding:22px 8px 8px;
  color:#fff;font-size:.66rem;letter-spacing:.02em;
  background:linear-gradient(transparent,rgba(10,20,30,.72))}

@media (max-width:991px){
  .fm-gf-body{grid-template-columns:1fr}
    .fm-cl-grid{grid-template-columns:repeat(3,1fr)}
  .fm-gf-pin{font-size:.6rem;padding:2px 6px}
  .fm-gf,.fm-cl{padding-top:36px !important;padding-bottom:36px !important}
}
@media (max-width:576px){
  .fm-cl-grid{grid-template-columns:repeat(2,1fr)}
  .fm-gf-pin{display:none}
  .fm-gf-list li{flex-direction:column;align-items:flex-start;gap:2px}
  .fm-gf-list span{text-align:left}
}

/* ---- 18. 产品卡 hover：不再上移（避免顶边被 swiper 裁切），边框始终可见 ---- */
.product-wrap:hover{transform:none !important;border-color:#dcdfe4 !important;
  box-shadow:0 12px 26px rgba(17,24,39,.10) !important}

/* ---- 19. 页面自带底部操作栏时，隐藏全站询盘条，避免双底栏叠层 ---- */
@media (max-width:768px){
  body.page-product .fm-mobile-cta,
  body.page-cart .fm-mobile-cta,
  body.page-checkout .fm-mobile-cta{display:none !important}
  body.page-product{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px)) !important}
  body.page-product .product-btns{flex-wrap:nowrap;gap:8px;max-height:none}
  body.page-product .product-btns>a.btn,
  body.page-product .product-btns>button.btn{flex:1;margin:0 !important;padding:10px 8px;
    font-size:.95rem;white-space:nowrap}
}
/* 购物车/结算底栏在 <992px 固定，同样隐藏询盘条 */
@media (max-width:991.98px){
  body.page-cart .fm-mobile-cta,
  body.page-checkout .fm-mobile-cta{display:none !important}
  /* 询盘条高度 + iPhone 安全区，避免遮挡页面底部内容 */
  body{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px)) !important}
  body.page-cart{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px)) !important}
  body.page-checkout{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px)) !important}
}

/* ---- 20. 新字标较长：放宽页头 Logo 宽度，避免显示过小 ---- */
.header-content .logo img{max-width:280px}
@media (max-width:767.98px){
  .header-content .logo img{max-width:190px}
}

/* ---- 21. 产品详情富文本：正文与图片最大 800px 居中 ---- */
.page-product .product-description .rich-text-editor-content{max-width:800px;margin-left:auto;margin-right:auto}
.page-product .product-description .rich-text-editor-content img{max-width:100%;height:auto;display:block;margin-left:auto;margin-right:auto}


