@charset "utf-8";
/* =========================================================
   傅氏兄弟 · 首页主题
   结构：旧站 13 板块 ｜ 配色：fushi.gdtianying.cn（工业蓝 + 红）
   主色 #0072d9 / #1878e9  强调红 #d81e06  灰阶 #333/#666/#999/#eee/#f9f9f9
   响应式宽屏：1500 / 980 / 640 断点
   ========================================================= */

:root{
  --blue:#0072d9;
  --blue-2:#1878e9;
  --blue-light:#e8f2fd;
  --red:#d81e06;
  --ink:#333;
  --ink-2:#666;
  --ink-3:#999;
  --line:#e6e6e6;
  --bg:#f7f9fc;
  --white:#fff;
  --index_news_col:3;
  /* 布局变量默认值：模板行内 style 覆盖；保持改造前视觉不变 */
  --prod_cols:4;--prod_cols_md:3;--prod_cols_sm:2;--prod_ratio:4/3;
  --roll_ratio:4/3;
  --case_cols:4;--case_cols_md:3;--case_cols_sm:2;--case_ratio:1/1;
  --qr_ratio:1;--cert_ratio:5/4;--env_ratio:5/4;--lt_ratio:16/9;
  /* 顶栏品牌区尺寸可后台配置：home_topbar 区域字段经行内 --* 变量注入（纯数字），calc(*1px) 转像素；空值回退到原视觉 */
  --brand_h:52;--brand_txt_b:19;--brand_txt_i:13;
  /* 图片填充方式（object-fit）默认值：模板行内 style 覆盖；fallback 保持改造前视觉 */
  --brand_fit:contain;--prod_fit:cover;--roll_fit:cover;--adv_fit:cover;--flow_fit:cover;
  --qr_fit:contain;--intro_fit:cover;--cert_fit:cover;--env_fit:cover;
  --np_fit:cover;--case_fit:cover;--lt_fit:cover;--code_fit:cover;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;color:var(--ink);font-size:15px;line-height:1.7;background:var(--white)}
img{max-width:100%;display:block;border:0}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
.wrap{width:min(1500px,92%);margin:0 auto}
.section{padding:64px 0}

/* ---------- 标题 ---------- */
.sec-title{text-align:center;margin-bottom:38px}
.sec-en{color:var(--blue);font-size:13px;letter-spacing:3px;text-transform:uppercase;font-weight:600}
.sec-title h2{font-size:30px;color:var(--ink);margin:6px 0 12px;font-weight:700}
.sec-line{display:block;width:52px;height:3px;background:var(--blue);margin:0 auto;border-radius:2px}

/* ---------- ⓪ 顶部信息条（仿旧站 top-main，位于 topbar 之上） ---------- */
.topbar{background:#fff;border-bottom:1px solid var(--line)}
.top-main{width:100%;background:#f5f5f5;border-bottom:1px solid var(--line);color:var(--ink-2);font-size:12px;position:relative;z-index:80}
.top-main-inner{min-height:37px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.top-left{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-right{display:flex;align-items:center;gap:0;flex:none}
.top-right li{white-space:nowrap}
.top-right li+li::before{content:'';display:inline-block;width:1px;height:12px;margin:0 10px;background:#ccc;vertical-align:-1px}
.top-right a{color:var(--ink-2);transition:color .2s}
.top-right a:hover{color:var(--blue)}

/* ---------- ① Logo + 热线（吸顶） ---------- */
.topbar-inner{height:auto; padding:24px 0;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px}
/* 后台 number 字段输出为纯数字（如 52），用 calc(*1px) 转成像素；空值时 var 回退仍为带单位的默认值 */
.brand img{height:calc(var(--brand_h,52) * 1px);width:auto;object-fit:var(--brand_fit,contain)}
.brand-txt{display:flex;flex-direction:column;line-height:1.35}
.brand-txt b{font-size:calc(var(--brand_txt_b,19) * 1px);color:var(--ink)}
.brand-txt i{font-style:normal;font-size:calc(var(--brand_txt_i,13) * 1px);color:var(--ink-2)}
.hotline{display:flex;align-items:center;gap:10px;text-align:left;line-height:1.25}
.hotline-icon{flex:none;font-size:44px;color:var(--blue);line-height:1}
.hotline-txt{display:flex;flex-direction:column;align-items:flex-start}
.hotline-txt span{font-size:18px;color:var(--ink-3)}
.hotline-txt strong{font-size:24px;color:var(--red);font-weight:700}
.nav-toggle{display:none;background:none;border:0;width:34px;height:34px;cursor:pointer}
.nav-toggle span{display:block;height:3px;background:var(--blue);margin:5px 0;border-radius:2px}

/* ---------- ② 主导航（吸顶） ---------- */
.mainnav{background:var(--blue);position:relative}
.mainnav .wrap{display:flex}
.nav-list{display:flex;flex:1;position:relative}
.nav-list>li{flex:1;position:relative;text-align:center}
/* 一级菜单栅格分隔线：用右侧伪元素做视觉区分，最后一项不显示；移动端改为顶部横线 */
.nav-list>li+li::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:1px;height:22px;background:rgba(255,255,255,.28)}
.nav-list>li>a{display:block;color:#fff;font-size:20px;padding:14px 4px;white-space:nowrap;transition:background .2s}
.nav-list>li.active>a,.nav-list>li:hover>a{background:var(--blue-2)}
.subnav{display:none;position:absolute;top:100%;left:50%;transform:translateX(-50%);min-width:100%;width:max-content;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.12);z-index:20;padding:6px 0}
.nav-list>li:hover .subnav,.nav-list>li .subnav.active{display:block}
.subnav li a{display:block;padding:9px 18px;color:var(--ink-2);font-size:14px;white-space:nowrap}
.subnav li a:hover{color:var(--blue);background:var(--blue-light)}
/* 三级导航：二级菜单项若为父级，右侧弹出三级子菜单 */
.subnav li.has-sub-3{position:relative}
.subnav-3{display:none;position:absolute;top:-6px;left:100%;min-width:100%;width:max-content;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.12);z-index:21;padding:6px 0;margin-left:1px}
.subnav li:hover>.subnav-3,.subnav li>.subnav-3.active{display:block}
.subnav-3 li a{padding-left:20px;padding-right:28px}
.subnav-3 li a:hover,.subnav-3 li.active>a{color:var(--blue);background:var(--blue-light)}
.sub-toggle{display:none}

/* ---------- ③ Banner ---------- */
.banner{position:relative;overflow:hidden}
.banner .swiper{width:100%;height:clamp(320px,42vw,540px)}
/* pboot:slide 输出的 banner 按第 1 张图比例定高（比例由用户上传的图决定，随断点切换 PC/小屏图）。
   --banner-ratio 由 swiper-init.js 实测「当前断点实际显示的图」写入；最大高度封顶为一屏 100vh。 */
.banner .swiper.is-banner-fit{height:auto;aspect-ratio:var(--banner-ratio,2.92769);max-height:100vh}
.banner .swiper-slide{background-size:cover;background-position:center;position:relative}
.slide-link{position:absolute;inset:0;z-index:2}
.slide-caption{position:absolute;left:0;right:0;bottom:16%;text-align:center;color:#fff;z-index:3;text-shadow:0 2px 12px rgba(0,0,0,.5)}
.slide-caption h2{font-size:clamp(24px,3.4vw,44px);font-weight:700}
.slide-caption p{font-size:clamp(14px,1.6vw,20px);margin-top:8px}

/* ---------- ④ 产品中心 ---------- */
.products{background:#fff}
/* ④ 产品中心：左菜单 + 右产品 两栏 */
.prod-box{display:flex;gap:24px;align-items:flex-start}
.prod-box>.pro-sidebar{flex:0 0 250px;min-width:0}
.prod-box>.pro-main{flex:1 1 auto;min-width:0}
/* 左侧竖排分类菜单：蓝色整版面板 + 白色卡片 + 蓝色圆角按钮，与产品详情侧栏一致 */
.prod-tabs{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;gap:0;margin-bottom:0;background:linear-gradient(180deg,#1769c9 0%,#0f57b3 100%);border:0;border-radius:8px;overflow:hidden;box-shadow:0 6px 22px rgba(9,64,140,.24)}
.prod-tabs-title{position:relative;text-align:center;color:#fff;padding:22px 16px 18px;overflow:hidden;background:linear-gradient(135deg,#0f5bb5 0%,#1f78d8 55%,#125fbe 100%)}
.prod-tabs-title::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(135deg,transparent 0 20px,rgba(255,255,255,.07) 20px 38px);pointer-events:none}
.prod-tabs-list{display:flex;flex-direction:column;gap:8px;margin:0 12px 12px;padding:8px 10px 10px;background:#fff;border-radius:8px;box-shadow:0 4px 16px rgba(6,48,110,.20)}
.prod-tab{border:0;border-radius:5px;background:linear-gradient(135deg,#1d74d6 0%,#155fc0 100%);color:#fff;padding:10px 13px;font-size:15px;font-weight:600;line-height:1.4;cursor:pointer;transition:.2s;text-align:left;box-shadow:0 2px 5px rgba(10,70,150,.18)}
.prod-tab:hover{color:#fff;background:linear-gradient(135deg,#2b86e6 0%,#1768c9 100%)}
.prod-tab.active{background:linear-gradient(135deg,#2b86e6 0%,#1768c9 100%);color:#fff;font-weight:600}
.prod-panels{min-width:0}
.prod-panel{display:none}
.prod-panel.active{display:block}
.prod-grid{display:grid;grid-template-columns:repeat(var(--prod_cols,4),1fr);gap:20px}
.prod-grid li{border:1px solid var(--line);border-radius:6px;overflow:hidden;transition:.25s;background:#fff}
.prod-grid li:hover{box-shadow:0 10px 26px rgba(0,114,217,.14);border-color:var(--blue);transform:translateY(-3px)}
.prod-img{aspect-ratio:var(--prod_ratio,4/3);overflow:hidden;background:#f5f7fa}
.prod-img img{width:100%;height:100%;object-fit:var(--prod_fit,cover);transition:transform .4s}
.prod-grid li:hover .prod-img img{transform:scale(1.05)}
.prod-grid h3{font-size:15px;font-weight:500;padding:12px 10px;text-align:center;color:var(--ink)}
.prod-grid li:hover h3{color:var(--blue)}
.prod-more{text-align:center;margin-top:26px}
.prod-more a{display:inline-block;padding:10px 34px;border:1px solid var(--blue);color:var(--blue);border-radius:4px;transition:.2s}
.prod-more a:hover{background:var(--blue);color:#fff}

/* ---------- ⑤ / ⑧ 横向滚动 ---------- */
.video-sec{background:var(--bg)}
.cases{background:#fff}
.roll-swiper .swiper-slide a{display:block;background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;transition:.25s}
.roll-swiper .swiper-slide a:hover{border-color:var(--blue);box-shadow:0 8px 20px rgba(0,0,0,.08)}
.roll-img{aspect-ratio:var(--roll_ratio,4/3);overflow:hidden}
.roll-img img{width:100%;height:100%;object-fit:var(--roll_fit,cover)}
.roll-swiper h3{font-size:14px;font-weight:500;padding:10px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roll-swiper .swiper-slide a:hover h3{color:var(--blue)}
/* 分页器（傅氏风格：蓝色圆点 / 激活态红色胶囊，无前后按钮） */
.swiper-pagination .swiper-pagination-bullet{width:15px!important;height:15px!important;background:var(--blue)!important;opacity:1!important;margin:0 5px!important;border-radius:20px!important;transition:.3s all ease-in-out!important;vertical-align:middle}
.swiper-pagination .swiper-pagination-bullet-active{background:#e5271d!important;width:26px!important}
.banner .swiper-pagination{bottom:18px!important}
.roll-swiper{padding-bottom:38px!important}
.roll-swiper .swiper-pagination{bottom:4px!important}

/* ---------- ⑥ / ⑨ 形象横幅 ---------- */
.image-band{position:relative;background:linear-gradient(120deg,#0072d9 0%,#0f6fd0 45%,#0a5bb0 100%);overflow:hidden}
.image-band.band-2{background:linear-gradient(120deg,#0a5bb0 0%,#0e63bb 50%,#003e86 100%)}
.band-inner{min-height:300px;display:flex;align-items:center;gap:50px;position:relative;z-index:2}
.band-portrait{flex:0 0 38%;max-width:420px}
.band-portrait img{border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.band-copy{color:#fff;flex:1}
.band-copy h2{font-size:clamp(22px,2.6vw,34px);line-height:1.45;font-weight:500}
.band-copy h2 b{color:#ffe27a}
.band-copy p{font-size:18px;margin:12px 0}
.band-copy span{display:inline-block;margin-top:10px;font-size:16px}
.band-copy span b{color:#ffe27a;font-size:22px}

/* ---------- ⑦ 四大优势 ---------- */
.advantage{background:var(--bg)}
.adv-list{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.adv-list li{display:flex;gap:20px;background:#fff;border:1px solid var(--line);padding:18px;border-radius:6px;transition:.25s}
.adv-list li:hover{border-color:var(--blue);box-shadow:0 8px 24px rgba(0,114,217,.1)}
.adv-img{flex:0 0 38%;max-width:230px}
.adv-img img{width:100%;height:100%;object-fit:var(--adv_fit,cover);border-radius:4px}
.adv-txt{position:relative;padding-top:6px}
.adv-no{position:absolute;right:0;top:-6px;font-size:40px;font-weight:700;color:var(--blue-light);z-index:0}
.adv-txt h3{position:relative;z-index:1;font-size:17px;color:var(--blue);margin-bottom:8px}
.adv-txt p{position:relative;z-index:1;font-size:13.5px;color:var(--ink-2);line-height:1.8}
.strength{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:40px;text-align:center}
.strength-item{background:var(--blue);color:#fff;padding:20px 8px;border-radius:6px}
.strength-item p{font-size:34px;font-weight:700;line-height:1.2}
.strength-item em{font-style:normal;font-size:13px;opacity:.92}

/* ---------- ⑩ 关于我们 ---------- */
.about-sec{background:#fff}
.about-box{display:flex;gap:44px;align-items:center}
.about-pic{flex:0 0 42%;max-width:500px}
.about-pic img{width:100%;border-radius:6px}
.about-txt{flex:1}
.about-txt h3{font-size:24px;color:var(--ink);margin-bottom:6px}
.about-txt h4{font-size:17px;color:var(--blue);font-weight:500;margin-bottom:16px}
.about-desc{font-size:14px;color:var(--ink-2);line-height:2}
.btn-primary{display:inline-block;margin-top:20px;background:var(--blue);color:#fff;padding:11px 32px;border-radius:4px;transition:.2s}
.btn-primary:hover{background:var(--red)}

/* ---------- ⑩-2 合作客户（pic+title，每项 fancybox 弹窗） ---------- */
.client-sec{background:#fff}
.client-list{display:grid;grid-template-columns:repeat(var(--client_cols,5),1fr);gap:18px}
.client-list li{background:#fff;border:1px solid var(--line);border-radius:6px;padding:18px 12px;text-align:center;transition:.25s}
.client-list li:hover{border-color:var(--blue);box-shadow:0 8px 24px rgba(0,114,217,.1);transform:translateY(-3px)}
.client-pic{display:block;width:100%;aspect-ratio:var(--client_ratio,3/2);overflow:hidden;background:#f5f7fa;border-radius:4px}
.client-pic img{width:100%;height:100%;object-fit:var(--client_fit,contain)}
.client-list h3{font-size:14px;color:var(--ink-2);font-weight:500;margin-top:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- ⑪ 服务流程 ---------- */
.service{background:var(--bg)}
/* 栅格列数支持后台三端配置（home_service），fallback 4/3/2 保持改造前视觉；about 页复用本类无变量时走 fallback */
.flow-list{display:grid;grid-template-columns:repeat(var(--flow_cols,4),1fr);gap:20px}
.flow-list li{text-align:center;background:#fff;border:1px solid var(--line);border-radius:6px;padding:22px 10px;position:relative;transition:.25s; overflow: hidden;}
.flow-list li:hover{border-color:var(--blue);transform:translateY(-3px)}
.flow-pic{width:64px;height:64px;margin:0 auto 12px;display:flex;align-items:center;justify-content:center;transition:transform .3s}
.flow-list li:hover .flow-pic{transform:scale(1.08)}
.flow-pic img{width:100%;height:100%;object-fit:var(--flow_fit,cover)}
.flow-list h3{font-size:15px;font-weight:500}

/* ---------- ⑫ 新闻 ---------- */
.news-sec{background:#fff}
.news-grid{display:grid;grid-template-columns:repeat(var(--index_news_col,3),1fr);gap:24px}
.news-col{border:1px solid var(--line);border-radius:6px;padding:20px 24px}
.news-hd{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid var(--blue);padding-bottom:12px;margin-bottom:8px}
.news-hd h3{font-size:19px;color:var(--blue)}
.news-hd a{font-size:13px;color:var(--ink-3)}
.news-hd a:hover{color:var(--red)}
.news-list li{border-bottom:1px dashed var(--line)}
.news-list li:last-child{border-bottom:0}
.news-list a{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:11px 0;font-size:14px}
.news-t{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.news-list a:hover .news-t{color:var(--blue)}
.news-list time{flex:0 0 auto;color:var(--ink-3);font-size:13px}

/* ---------- ⑬ 友情链接 ---------- */
.friendlink{background:#2b3440;color:#cfd6df;padding:22px 0}
.friendlink .wrap{display:flex;gap:16px;align-items:flex-start}
.friendlink>div>span{flex:0 0 auto;color:#fff}
.friendlink-list{display:flex;flex-wrap:wrap;gap:8px 22px}
.friendlink-list a{color:#cfd6df;font-size:13px}
.friendlink-list a:hover{color:#fff}

/* ---------- 页脚 ---------- */
.footer{background:#1d242e;color:#cfd6df}
.footer-main{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:34px;padding:48px 0 38px}
.footer-col h3{color:#fff;font-size:16px;margin-bottom:14px}
.footer-col p,.footer-col li{font-size:13px;line-height:2}
.footer-col ul li a:hover{color:#fff}
.footer-about .footer-company{color:#fff;font-size:26px;font-weight:700;line-height:1.45;letter-spacing:1px}
.footer-about span{color:#cfd6df}
.footer-kw{margin-top:10px;color:#8f99a6}
.footer-qr ul{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.footer-qr li{text-align:center}
.footer-qr img{width:100%;max-width:96px;aspect-ratio:var(--qr_ratio,1);object-fit:var(--qr_fit,contain);background:#fff;border-radius:4px;margin:0 auto}
.footer-qr p{text-align:center;margin-top:4px;font-size:12px;color:#cfd6df}
.copyright{border-top:1px solid #353e4a;padding:18px 0;text-align:center;font-size:13px;color:#8f99a6}
.copyright .wrap{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:center}
.copyright a{color:#8f99a6}

/* ---------- 返回顶部 ---------- */
.backtop{position:fixed;right:22px;bottom:36px;width:44px;height:44px;background:var(--blue);color:#fff;font-size:22px;display:flex;align-items:center;justify-content:center;border-radius:4px;z-index:999;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.backtop:hover{background:var(--red)}

/* ---------- 吸顶状态 ---------- */
.topbar.is-stuck{box-shadow:0 4px 16px rgba(0,0,0,.1)}
.mainnav.is-stuck{box-shadow:0 6px 18px rgba(0,0,0,.16)}

/* ---------- Tab 面板兼容（以防 loader CSS 未注入） ---------- */
[data-tab-panel]{display:none}
[data-tab-panel].active{display:block}

/* ---------- 关于我们内页 ---------- */
.inner-banner{height:260px;background-size:cover;background-position:center;position:relative;display:flex;align-items:center}
.inner-banner::before{content:'';position:absolute;inset:0;background:rgba(0,40,90,.55)}
.inner-banner-inner{position:relative;z-index:1;color:#fff}
.inner-banner h1{font-size:38px;font-weight:700;letter-spacing:2px}
.inner-banner p{margin-top:10px;font-size:15px;opacity:.9}
.sec-title.left{text-align:left;margin-bottom:22px}
.about-intro{background:var(--bg)}
.about-intro-grid{display:flex;gap:48px;align-items:flex-start}
.about-intro-pic{flex:0 0 46%;border-radius:6px;overflow:hidden}
.about-intro-pic img{width:100%;height:100%;object-fit:var(--intro_fit,cover);display:block}
.about-intro-txt{flex:1;min-width:0}
.about-content{font-size:15px;color:var(--ink-2);line-height:2}
.about-content p{margin-bottom:12px;text-indent:2em}
.about-strength-sec{background:var(--blue);padding:46px 0}
.about-strength-sec .strength{margin-top:0}
/* 荣誉资质 / 企业环境：复用首页服务流程 .flow-list 同款样式（pic+title，后台可增删），不再单独定义大图网格 */
/* 缩略图铺满卡片：宽 100%、高 = 宽 80%（aspect-ratio 5/4），不影响首页 64px 图标 */
.about-cert .flow-pic,.about-env .flow-pic{width:100%;height:auto;display:block;margin:0 0 14px;border-radius:4px;overflow:hidden}
.about-cert .flow-pic{aspect-ratio:var(--cert_ratio,5/4)}
.about-env .flow-pic{aspect-ratio:var(--env_ratio,5/4)}
.about-cert .flow-pic img{width:100%;height:100%;object-fit:var(--cert_fit,cover);display:block}
.about-env .flow-pic img{width:100%;height:100%;object-fit:var(--env_fit,cover);display:block}

/* ===== 新闻列表页（newslist.html）· 左图右文，仿 fushi ===== */
.news-page{background:var(--bg)}
.news-page-list{list-style:none;margin:0;padding:0;max-width:1500px;margin:0 auto}
.news-page-list li{display:flex;gap:24px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:18px;margin-bottom:16px;transition:.25s}
.news-page-list li:hover{border-color:var(--blue);box-shadow:0 6px 20px rgba(0,40,90,.07)}
.np-pic{flex:0 0 210px;width:210px;height:140px;border-radius:4px;overflow:hidden;background:#f2f5f8}
.np-pic img{width:100%;height:100%;object-fit:var(--np_fit,cover);display:block;transition:.3s}
.news-page-list li:hover .np-pic img{transform:scale(1.05)}
.np-body{flex:1;min-width:0;display:flex;flex-direction:column}
.np-title h3{font-size:18px;color:var(--ink);font-weight:600;line-height:1.4;margin:0 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.np-title:hover h3{color:var(--blue)}
.np-body time{font-size:12px;color:var(--ink-3);margin-bottom:8px}
.np-desc{font-size:14px;color:var(--ink-2);line-height:1.7;margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.np-more{align-self:flex-start;margin-top:auto;font-size:13px;color:var(--blue)}
.np-more:hover{color:var(--red)}
/* 分页条（PbootCMS {page:bar} 默认 class） */
.news-pager{text-align:center;margin-top:28px;line-height:34px}
.news-pager a,.news-pager span{display:inline-block;min-width:34px;height:34px;line-height:34px;padding:0 10px;margin:0 3px;border:1px solid var(--line);border-radius:3px;background:#fff;color:var(--ink-2);font-size:14px}
.news-pager a:hover{background:var(--blue);border-color:var(--blue);color:#fff}
.news-pager .page-num-current,.news-pager .page-current{background:var(--blue);border-color:var(--blue);color:#fff}

/* ===== 产品列表页 / 详情页（productlist.html / product.html）· 左菜单 + 右内容 ===== */
.pro-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px;align-items:start}
.pro-main{min-width:0}
/* 左侧产品分类菜单 */
/* 蓝色整版面板 + 中英标题 + 白色卡片 + 蓝色分组按钮 + 白底细线列表（参照设计图） */
.pro-sidebar{background:linear-gradient(180deg,#1769c9 0%,#0f57b3 100%);border:0;border-radius:8px;overflow:hidden;position:sticky;top:92px;box-shadow:0 6px 22px rgba(9,64,140,.24)}
/* 标题区：白色中文大字 + 英文小字，叠斜纹装饰 */
.ps-title{position:relative;text-align:center;color:#fff;padding:22px 16px 18px;overflow:hidden;background:linear-gradient(135deg,#0f5bb5 0%,#1f78d8 55%,#125fbe 100%)}
.ps-title::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(135deg,transparent 0 20px,rgba(255,255,255,.07) 20px 38px);pointer-events:none}
.ps-title-cn,.ps-title-en{position:relative;z-index:1;display:block}
.ps-title-cn{font-size:22px;font-weight:700;letter-spacing:3px;line-height:1.3;text-shadow:0 1px 3px rgba(0,0,0,.15)}
.ps-title-en{font-size:12px;letter-spacing:4px;opacity:.92;margin-top:5px;font-weight:400}
/* 白色圆角卡片承载分类列表 */
.ps-nav{margin:0 12px 12px;padding:8px 10px 10px;background:#fff;border-radius:8px;box-shadow:0 4px 16px rgba(6,48,110,.20);display:flex;flex-direction:column;gap:8px}
/* 一级：蓝色圆角按钮分组标题 */
.ps-nav>li{border:0}
.ps-nav>li.has-sub{display:block}
.ps-nav>li.has-sub>a{display:block}
.ps-nav>li>a{display:block;padding:10px 13px;color:#fff;font-size:15px;font-weight:600;line-height:1.4;background:linear-gradient(135deg,#1d74d6 0%,#155fc0 100%);border-radius:5px;transition:.2s;box-shadow:0 2px 5px rgba(10,70,150,.18);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ps-nav>li>a:hover,.ps-nav>li.active>a{background:linear-gradient(135deg,#2b86e6 0%,#1768c9 100%)}
/* 二级：默认全部展开，白底灰字 + 细线分隔 */
.ps-sub-toggle{display:none}
.ps-sub{display:block;width:100%;background:#fff;padding:2px 0 4px;box-shadow:none}
.ps-sub li+li{border-top:1px solid #f0f0f0}
.ps-sub li a{display:block;padding:10px 13px;color:#555;font-size:14px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ps-sub li a:hover,.ps-sub li.active>a{color:#1668c8;background:#f3f8fe}
.ps-toggle{display:none}
.ps-arrow{width:8px;height:8px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg);transition:transform .2s}
.ps-toggle.active .ps-arrow{transform:rotate(-135deg)}
/* 右侧详情 */
.pd-article{width:100%;max-width:none;margin:0}
.pd-title{font-size:26px;color:var(--ink);font-weight:700;text-align:center;line-height:1.5;margin:0 0 22px}
.pd-mainpic{text-align:center;margin-bottom:28px}
.pd-mainpic img{max-width:100%;height:auto;border:1px solid var(--line);border-radius:4px}
.pd-label{font-size:18px;font-weight:700;color:var(--ink);border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:18px}

/* ===== 案例/视频列表页（caselist.html）· 正方形图 + 单行标题 ===== */
.case-list{list-style:none;margin:0 auto;padding:0;max-width:1500px;display:grid;grid-template-columns:repeat(var(--case_cols,4),1fr);gap:20px}
.case-list li{min-width:0;background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;transition:.25s}
.case-list li:hover{border-color:var(--blue);box-shadow:0 6px 20px rgba(0,40,90,.07)}
.cl-pic{display:block;width:100%;aspect-ratio:var(--case_ratio,1/1);overflow:hidden;background:#f2f5f8}
.cl-pic img{width:100%;height:100%;object-fit:var(--case_fit,cover);display:block;transition:.3s}
.case-list li:hover .cl-pic img{transform:scale(1.05)}
/* 标题强制单行：父级 grid item 必须 min-width:0，否则长标题会把列撑开导致对不齐 */
.cl-title{display:block;width:100%;padding:12px 14px;font-size:15px;line-height:1.6;color:var(--ink);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cl-title:hover{color:var(--blue)}

/* ===== 新闻详情页（news.html）· 正文 + 同栏目最新文章 ===== */
.news-detail{background:#fff}
.nd-article{max-width:1500px;margin:0 auto}
.nd-title{font-size:26px;color:var(--ink);text-align:center;font-weight:700;line-height:1.5;margin:0 0 14px}
.nd-meta{text-align:center;color:var(--ink-3);font-size:13px;padding-bottom:18px;margin-bottom:22px;border-bottom:1px solid var(--line)}
.nd-meta span{padding:0 12px}
.nd-content{font-size:15px;color:var(--ink-2);line-height:2}
/* 正文图片：覆盖 CMS 编辑器写入的行内 width/height，仅限制最大宽度并保持原始宽高比 */
.nd-content img{max-width:100% !important;height:auto !important}
.nd-prevnext{margin-top:30px;padding-top:18px;border-top:1px solid var(--line);font-size:14px;color:var(--ink-2)}
.nd-prevnext p{margin:6px 0}
.nd-prevnext a{color:var(--blue)}
.nd-prevnext a:hover{color:var(--red)}
.news-latest{background:var(--bg)}
.latest-list{list-style:none;margin:0;padding:0;max-width:1500px;margin:0 auto;display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.latest-list li{display:flex;gap:16px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:14px;transition:.25s}
.latest-list li:hover{border-color:var(--blue)}
.lt-pic{flex:0 0 160px;width:160px;height:104px;border-radius:4px;overflow:hidden;background:#f2f5f8}
.lt-pic img{width:100%;height:100%;object-fit:var(--lt_fit,cover);display:block}
.lt-body{flex:1;min-width:0}
.lt-title h3{font-size:16px;color:var(--ink);font-weight:600;margin:0 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lt-title:hover h3{color:var(--blue)}
.lt-desc{font-size:13px;color:var(--ink-2);line-height:1.6;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lt-body time{font-size:12px;color:var(--ink-3)}

/* ===== 联系我们（contact.html） ===== */
.contact-intro{background:var(--bg)}
.contact-box{max-width:820px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:6px;padding:34px 42px;box-shadow:0 6px 24px rgba(0,40,90,.06)}
.contact-company{font-size:21px;font-weight:700;color:var(--ink);text-align:center;margin:0 0 26px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.contact-list{list-style:none;margin:0;padding:0}
.contact-list li{display:flex;align-items:center;gap:16px;padding:13px 6px;border-bottom:1px dashed var(--line);font-size:15px;color:var(--ink-2)}
.contact-list li:last-child{border-bottom:none}
.contact-list li>i.faifont{flex:0 0 36px;width:36px;height:36px;line-height:36px;text-align:center;font-size:21px;color:var(--blue);background:rgba(30,90,170,.08);border-radius:50%}
.contact-label{flex:0 0 74px;color:var(--ink);font-weight:600}
.contact-value{flex:1;min-width:0;word-break:break-all}
.contact-value a{color:var(--blue)}
.contact-value a:hover{text-decoration:underline}

/* ===== 在线留言（feedback.html）· form 声明式异步提交 ===== */
.feedback-box{max-width:820px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:6px;padding:36px 42px;box-shadow:0 6px 24px rgba(0,40,90,.06)}
.field-box{list-style:none;margin:0;padding:0}
.feedback-box .input{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}
.filedName{flex:0 0 130px;text-align:right;font-size:14px;color:var(--ink);padding-top:10px}
.filedName .required{color:var(--red);margin-left:2px}
.msg_input,.msg_textarea{flex:1;min-width:0;width:100%;padding:9px 12px;border:1px solid #d1d5db;border-radius:4px;font-size:14px;color:var(--ink);outline:none;transition:border-color .2s,box-shadow .2s}
.msg_input:focus,.msg_textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(30,90,170,.12)}
.msg_textarea{min-height:130px;resize:vertical}
.is-invalid{border-color:#ef4444 !important;box-shadow:0 0 0 3px rgba(239,68,68,.12) !important}
.code-wrap{flex:1;min-width:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.code-input{flex:0 0 160px;width:160px}
.code-img{width:100px;height:36px;border:1px solid var(--line);cursor:pointer;object-fit:var(--code_fit,cover)}
.code-tip{font-size:12px;color:var(--ink-3)}
.input_5{display:flex;gap:12px;padding-left:142px;margin-top:6px}
.login_btn{padding:10px 30px;border:0;border-radius:4px;background:var(--blue);color:#fff;font-size:15px;cursor:pointer;transition:opacity .2s}
.login_btn:hover{opacity:.85}
.login_btn:disabled{opacity:.6;cursor:not-allowed}
.reset_btn{background:#8a94a6}
.form-msg{width:100%;margin-top:12px;font-size:14px;min-height:20px}
.form-msg.ok{color:#16a34a}
.form-msg.error{color:#ef4444}

/* ================= 响应式 ================= */
@media(max-width:980px){
  .prod-box{gap:18px}
  .prod-box>.pro-sidebar{flex-basis:180px}
  .prod-grid{grid-template-columns:repeat(var(--prod_cols_md,3),1fr)}
  .case-list{grid-template-columns:repeat(var(--case_cols_md,3),1fr)}
  .client-list{grid-template-columns:repeat(var(--client_cols_md,3),1fr)}
  .flow-list{grid-template-columns:repeat(var(--flow_cols_md,3),1fr)}
  .footer-main{gap:24px}
  .footer-col{flex:1 1 calc(50% - 12px)}
  .pro-layout{grid-template-columns:1fr;gap:20px}
  .pro-sidebar{position:static}
  .adv-list{grid-template-columns:1fr}
  .strength{grid-template-columns:repeat(3,1fr)}
  .about-box{flex-direction:column;align-items:flex-start}
  .about-pic,.about-txt{width:100%;max-width:none;flex:none}
  .about-intro-grid{flex-direction:column;gap:24px}
  .about-intro-pic{flex:none;width:100%;max-height:380px}
  .nav-list>li>a{font-size:14px}
  .brand-txt i{display:none}
}
@media(max-width:640px){
  .section{padding:44px 0}
  /* ⓪ 顶部信息条：手机隐藏左侧标语，快捷链接居中 */
  .top-left{display:none}
  .top-main-inner{min-height:32px;justify-content:center}
  .top-right li+li::before{margin:0 7px}
  .topbar-inner{height:64px}
  .brand img{height:40px}
  /* ① 顶栏：移动端仅保留 LOGO 与汉堡按钮，隐藏品牌文字与热线 */
  .brand-txt,.hotline{display:none}
  .nav-toggle{display:block}
  /* ② 主导航：由 tab.js 切换 .active（按钮与菜单同步），蓝底白字同 fushi nav */
  /* 主导航吸顶偏移由 sticky-init.js 按 #topbar 实测高度写入（data-sticky-top-ref），移动端无需再手工覆写 */
  .mainnav .wrap{display:block;width:100%}
  .nav-list{display:none;flex-direction:column;background:var(--blue);width:100%}
  .nav-list.active{display:flex}
  .nav-list>li{text-align:left;border-top:1px solid rgba(255,255,255,.14)}
  .nav-list>li+li::before{display:none}
  .nav-list>li.has-sub{display:flex;flex-wrap:wrap;align-items:center}
  .nav-list>li.has-sub>a{flex:1;min-width:0;padding-right:6px}
  .nav-list>li>a{padding:13px 18px;color:#fff}
  .nav-list>li.active>a,.nav-list>li:hover>a{background:var(--blue-2)}
  .nav-toggle span{transition:transform .25s,opacity .2s}
  .nav-toggle.active span:nth-child(1){transform:translateY(8px) rotate(45deg)}
  .nav-toggle.active span:nth-child(2){opacity:0}
  .nav-toggle.active span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
  /* 移动端：独立展开按钮，点按钮只展开子栏目不跳转；点栏目名称仍正常跳转 */
  .sub-toggle{display:block;flex:0 0 46px;width:46px;height:46px;border:0;border-left:1px solid rgba(255,255,255,.16);background:none;position:relative;cursor:pointer}
  .sub-toggle::before,.sub-toggle::after{content:'';position:absolute;left:50%;top:50%;width:14px;height:2px;background:#fff;transform:translate(-50%,-50%);transition:transform .2s,opacity .2s}
  .sub-toggle::after{transform:translate(-50%,-50%) rotate(90deg)}
  .sub-toggle.active::after{opacity:0;transform:translate(-50%,-50%) rotate(0)}
  .subnav{position:static;transform:none;width:100%;min-width:0;box-shadow:none;background:var(--blue-2);padding:4px 0}
  .nav-list>li:hover .subnav{display:none}
  .nav-list>li .subnav.active{display:block}
  .subnav li a{color:#fff;padding:10px 30px}
  /* 三级导航：二级项改为 flex 容纳展开按钮，三级静态缩进显示 */
  .subnav li.has-sub-3{display:flex;flex-wrap:wrap;align-items:center}
  .subnav li.has-sub-3>a{flex:1;min-width:0}
  .subnav li:hover>.subnav-3{display:none}
  .subnav-3{position:static;transform:none;width:100%;min-width:0;box-shadow:none;background:var(--blue-2);margin-left:0;padding:0 0}
  .subnav li>.subnav-3.active{display:block}
  .subnav-3 li a{color:#fff;padding:10px 46px}
  .subnav-3 li.active>a{color:#fff;background:rgba(0,0,0,.12)}
  /* banner 高度由 is-banner-fit 的 aspect-ratio 按当前图比例接管（见文件头部规则），此处不再固定高度 */
  /* ④ 产品中心：手机回退为上下布局，菜单横向滚动 */
  .prod-box{flex-direction:column;gap:16px}
  .prod-box>.pro-sidebar,.prod-box>.pro-main{flex:0 0 auto;width:100%;min-width:0}
  .prod-tabs{display:block;background:none;border:0;border-radius:0;box-shadow:none}
  .prod-tabs-title{display:none}
  .prod-tabs-list{flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:8px;margin:0;padding:0 0 6px;background:none;border-radius:0;box-shadow:none}
  .prod-tab{flex:0 0 auto;padding:9px 16px;font-size:14px;white-space:nowrap;border:0;border-radius:5px;background:var(--blue);color:#fff;box-shadow:none}
  .prod-tab:hover{color:#fff;background:var(--blue-2)}
  .prod-tab.active{background:var(--blue-2);color:#fff;box-shadow:none}
  .prod-grid{grid-template-columns:repeat(var(--prod_cols_sm,2),1fr);gap:12px}
  /* ⑤/⑧ 横滚 swiper 每屏数量由模板 data-swiper-slides-per-view 控制（移动端 2） */
  /* ⑪ 服务流程 手机栅格列数由 home_service 的 flow_cols_sm 控制（默认 2） */
  .flow-list{grid-template-columns:repeat(var(--flow_cols_sm,2),1fr);gap:12px}
  /* ⑦ 四大优势：图文上下排列，避免左右各占一半过小 */
  .adv-list li{flex-direction:column;gap:14px}
  .adv-img{flex:none;width:100%;max-width:none;height:150px}
  .adv-img img{height:100%}
  .adv-no{font-size:34px}
  /* ⑫ 新闻 1 列：min-width:0 + overflow 防止长标题/日期撑破（flex 子项已在上方收敛） */
  .news-grid{grid-template-columns:1fr;min-width:0}
  .news-col{min-width:0;overflow:hidden}
  .strength{grid-template-columns:repeat(2,1fr)}
  .band-inner{flex-direction:column;padding:34px 0;text-align:center}
  .band-portrait,.band-copy{width:100%;max-width:none;flex:none}
  .friendlink .wrap{flex-direction:column;gap:8px}
  .footer-main{gap:24px}
  .footer-col{flex:1 1 100%}
  /* 页脚：移动端隐藏「网站导航」列，降低页脚高度 */
  .footer-site-nav{display:none}
  /* 关于我们内页 */
  .inner-banner{height:180px}
  .inner-banner h1{font-size:26px}
  .sec-title h2{font-size:25px}
  /* 新闻列表/详情移动端 */
  .news-page-list li{flex-direction:column;gap:12px;padding:12px}
  .np-pic{flex:none;width:100%;height:180px}
  .np-title h3{font-size:16px;white-space:normal}
  .news-pager a,.news-pager span{min-width:28px;height:30px;line-height:30px;padding:0 6px;font-size:12px;margin:0 2px}
  .nd-title{font-size:20px}
  .nd-content{font-size:14px}
  /* 产品页：分类子项按内容宽度自适应，flex-grow 均分剩余空间填充满整行，不限每行项数 */
  .pd-title{font-size:20px}
  /* 产品页左侧分类：移动端同样完整展示（中英标题 + 白卡片 + 蓝分组 + 白底列表） */
  .ps-title{display:block;padding:20px 14px 16px}
  .ps-toggle{display:none}
  .ps-nav{display:flex;flex-direction:column;gap:8px;margin:0 10px 10px;padding:8px}
  .ps-nav>li>a{padding:10px 12px}
  .ps-sub li a{padding:10px 12px}
  /* 案例/视频列表：窄屏 2 列，标题仍强制单行省略 */
  .case-list{grid-template-columns:repeat(var(--case_cols_sm,2),1fr);gap:12px}
  .client-list{grid-template-columns:repeat(var(--client_cols_sm,2),1fr);gap:12px}
  .cl-title{padding:9px 8px;font-size:13px}
  /* 最新文章：图片在上、文本在下分两行，整体做溢出截断 */
  .latest-list{grid-template-columns:1fr;gap:12px}
  .latest-list li{flex-direction:column;gap:0;padding:0;overflow:hidden;min-width:0}
  .lt-pic{flex:none;width:100%;height:auto;aspect-ratio:var(--lt_ratio,16/9);border-radius:0}
  .lt-body{width:100%;min-width:0;overflow:hidden;padding:12px}
  .lt-title{display:block;overflow:hidden}
  .lt-title h3{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .lt-desc{font-size:13px;-webkit-line-clamp:2;overflow:hidden}
  .lt-body time{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* 在线留言内页 */
  .feedback-box{padding:22px 16px}
  .feedback-box .input{flex-direction:column;gap:6px;margin-bottom:14px}
  .filedName{flex:none;text-align:left;padding-top:0}
  .code-input{flex:1 1 140px;width:auto}
  .input_5{padding-left:0}
  .login_btn{flex:1;padding:11px 10px}
  /* 联系我们内页 */
  .contact-box{padding:22px 18px}
  .contact-company{font-size:18px;margin-bottom:18px;padding-bottom:14px}
  .contact-list li{gap:10px;font-size:14px;padding:11px 0}
  .contact-list li>i.faifont{flex:0 0 30px;width:30px;height:30px;line-height:30px;font-size:18px}
  .contact-label{flex:0 0 60px}
  .backtop{right:14px;bottom:20px;width:40px;height:40px}
}
