@charset "utf-8";
/* 稳定修复版：修复错位、乱码式竖排、友情链接撑高；保留模板标签与调用逻辑 */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font:14px/1.8 "Microsoft YaHei","PingFang SC",Arial,sans-serif;color:#1f2937;background:#f3f6fb;min-width:1200px;-webkit-text-size-adjust:none}
a{color:#1f2937;text-decoration:none;transition:.22s}
a:hover{color:#0b63ce}
ul,ol,li,dl,dt,dd,p,h1,h2,h3,h4{margin:0;padding:0}
li{list-style:none}
img{border:0;vertical-align:middle;max-width:100%}
.clear{clear:both;height:0;font-size:0;overflow:hidden}
.fr{float:right}
.inner{width:1200px;margin:0 auto;position:relative}

/* 顶部 */
.site-header{background:#fff;position:relative;z-index:50;box-shadow:0 4px 22px rgba(15,23,42,.08)}
.header-inner{height:86px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;flex-direction:column}
#web_logo{font-size:28px;font-weight:800;color:#0f172a;line-height:1.25;letter-spacing:.5px}
.brand-sub{font-size:13px;color:#64748b;margin-top:4px}
.header-contact{text-align:right;font-size:13px;color:#64748b}
.header-contact strong{display:block;color:#0b63ce;font-size:21px;line-height:1.4;font-family:Arial;margin-top:2px}

/* 导航 */
.main-nav{height:56px;background:#0f3775}
.nav-list{height:56px;display:flex;align-items:center;justify-content:center}
.nav-list>li{position:relative;height:56px;line-height:56px;margin:0 1px}
.nav-list>li.line{display:none}
.nav-list>li>a.nav{display:block;height:56px;line-height:56px;padding:0 22px;color:#fff;font-size:15px;font-weight:600;white-space:nowrap}
.nav-list>li:hover>a.nav,.nav-list>li.navdown>a.nav{background:#1d64d8;color:#fff}
.nav-list .nav-cta{background:#1d64d8}
.nav-list dl{display:none;position:absolute;left:0;top:56px;min-width:150px;background:#fff;border-radius:0 0 8px 8px;box-shadow:0 14px 36px rgba(15,23,42,.14);overflow:hidden;z-index:99}
.nav-list li:hover dl{display:block}
.nav-list dl dd a{display:block;line-height:40px;padding:0 16px;white-space:nowrap;color:#334155;border-bottom:1px solid #eef2f7}
.nav-list dl dd a:hover{background:#f3f7ff;color:#0b63ce}

/* Banner */
.hero{position:relative;height:510px;background:#0f172a;overflow:hidden}
.hero-bg,.hero-bg #banner,.hero-bg #ifocus,.hero-bg #ifocus_pic,.hero-bg #ifocus_piclist,.hero-bg #ifocus_piclist ul,.hero-bg #ifocus_piclist li{height:510px;width:100%;overflow:hidden}
.hero-bg img{width:100%;height:510px;object-fit:cover;opacity:.76}
.hero:after{content:"";position:absolute;left:0;top:0;right:0;bottom:0;background:linear-gradient(90deg,rgba(15,23,42,.88),rgba(15,23,42,.48),rgba(15,23,42,.08));z-index:2;pointer-events:none}
.hero-text{position:absolute;left:50%;top:0;transform:translateX(-50%);height:510px;z-index:3;display:flex;align-items:center}
.hero-card{width:590px;color:#fff}
.hero-card em,.section-head em,.block-title em{display:block;font-style:normal;color:#60a5fa;font-size:13px;font-weight:800;letter-spacing:2px;text-transform:uppercase;margin-bottom:10px}
.hero-card h1{font-size:46px;line-height:1.25;color:#fff;margin-bottom:16px;font-weight:800}
.hero-card p{font-size:16px;line-height:1.9;color:rgba(255,255,255,.86);max-height:92px;overflow:hidden}
.hero-actions{margin-top:26px;display:flex;gap:14px}
.primary-btn,.ghost-btn{display:inline-block;border-radius:5px;padding:11px 24px;font-weight:700}
.primary-btn{background:#1d64d8;color:#fff!important;box-shadow:0 12px 30px rgba(29,100,216,.28)}
.ghost-btn{border:1px solid rgba(255,255,255,.5);color:#fff!important}
.ghost-btn:hover{background:#fff;color:#0f172a!important}

/* 四宫格优势 */
.feature-strip{margin-top:-48px;position:relative;z-index:6}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.feature-item{background:#fff;border-radius:10px;padding:24px 22px;box-shadow:0 10px 34px rgba(15,23,42,.10);min-height:138px}
.feature-item strong{display:block;font:800 32px/1 Arial;color:#dbeafe}
.feature-item span{display:block;margin:8px 0 5px;color:#0f172a;font-size:17px;font-weight:800}
.feature-item p{color:#64748b;font-size:13px;line-height:1.7;height:44px;overflow:hidden}

/* 首页 */
.home-main{padding:58px 0 38px}
.section-head{text-align:center;margin:0 auto 28px;max-width:760px}
.section-head h2{font-size:32px;line-height:1.3;color:#0f172a;margin-bottom:8px}
.section-head p{font-size:15px;color:#64748b}

.about-panel{display:grid;grid-template-columns:1.35fr .9fr;gap:24px;background:#fff;border-radius:12px;padding:38px;box-shadow:0 8px 30px rgba(15,23,42,.06);margin-bottom:58px}
.about-text h3{font-size:24px;color:#0f172a;margin-bottom:12px}
.about-text p{color:#475569;line-height:2;max-height:112px;overflow:hidden}
.text-more{display:inline-block;margin-top:18px;color:#0b63ce;font-weight:700}
.about-info{background:#f8fafc;border-radius:10px;padding:22px}
.about-info dl{padding:12px 0;border-bottom:1px solid #e5edf7}
.about-info dl:last-child{border-bottom:none}
.about-info dt{font-weight:800;color:#0f172a;margin-bottom:3px}
.about-info dd{color:#64748b;word-break:break-all}

.product-modern{margin-bottom:58px}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.product-grid li{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 8px 28px rgba(15,23,42,.06);transition:.22s}
.product-grid li:hover{transform:translateY(-4px);box-shadow:0 14px 38px rgba(15,23,42,.10)}
.product-grid .img{display:block;height:190px;background:#eef2f7;overflow:hidden}
.product-grid img{width:100%;height:190px;object-fit:cover;transition:.32s}
.product-grid li:hover img{transform:scale(1.04)}
.product-grid h3{padding:15px 14px 17px;font-size:15px;line-height:1.5;font-weight:700;text-align:center;min-height:62px}
.center-more{text-align:center;margin-top:28px}

.news-contact{display:grid;grid-template-columns:1.25fr .85fr;gap:24px;margin-bottom:36px}
.news-modern,.contact-modern{background:#fff;border-radius:12px;padding:30px;box-shadow:0 8px 30px rgba(15,23,42,.06)}
.block-title{display:flex;align-items:flex-end;gap:12px;border-bottom:1px solid #e5edf7;padding-bottom:15px;margin-bottom:14px}
.block-title h2{font-size:24px;color:#0f172a;flex:1}
.block-title a{font-weight:700;color:#0b63ce;font-size:13px}
.news-list li{position:relative;padding:15px 0 15px 98px;border-bottom:1px solid #edf2f7;min-height:78px}
.news-list li:last-child{border-bottom:none}
.news-list span{position:absolute;left:0;top:18px;color:#94a3b8;font-family:Arial;white-space:nowrap}
.news-list a{font-size:15px;font-weight:700;color:#0f172a;display:block;margin-bottom:5px}
.news-list p{color:#64748b;line-height:1.6;height:24px;overflow:hidden}
.contact-modern p{font-size:15px;color:#64748b;line-height:2.05}
.contact-modern .contact-name{font-size:21px;font-weight:800;color:#0f172a;margin-bottom:10px}

/* 友情链接：限制高度，防止大量链接把页面撑成长白屏 */
.index-link{background:#fff;border-radius:10px;padding:22px 24px;margin:36px auto 0;box-shadow:0 8px 28px rgba(15,23,42,.05);max-height:170px;overflow:hidden}
.index-link .title{font-size:20px;margin-bottom:12px}
.index-link .txt{max-height:86px;overflow:hidden}
.index-link .txt ul{display:flex!important;flex-wrap:wrap;gap:8px 18px;align-items:center}
.index-link .txt li{display:inline-block;width:auto!important;height:auto!important;line-height:24px!important;margin:0!important;padding:0!important;float:none!important}
.index-link .txt a{display:inline-block;color:#64748b;white-space:nowrap;font-size:14px;line-height:24px}

/* 页脚 */
.site-footer{background:#0f172a;color:rgba(255,255,255,.72);padding:44px 0 22px;margin-top:38px}
.footer-inner{display:flex;justify-content:space-between;gap:60px;border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:26px}
.footer-brand{max-width:430px}
.footer-brand h3{font-size:23px;color:#fff;margin-bottom:8px}
.footer-brand p{color:rgba(255,255,255,.62);line-height:1.8}
.foot-nav{display:flex;flex-wrap:wrap;gap:12px 20px;align-content:flex-start;justify-content:flex-end;max-width:520px}
.foot-nav a{color:rgba(255,255,255,.78);white-space:nowrap}
.foot-nav a:hover{color:#fff}
.foot-text{font-size:13px;color:rgba(255,255,255,.52);padding-top:18px}
.foot-text a{color:rgba(255,255,255,.7)}

/* 内页兼容 */
.bannner{display:none}
.content{width:auto;background:none}
.met_flash{margin:26px auto 0}
.flash{height:220px;border-radius:10px;overflow:hidden;background:#0f172a}
.flash img{width:100%;height:220px!important;object-fit:cover;opacity:.86}
.sidebar{display:grid;grid-template-columns:260px 1fr;gap:28px;margin-top:30px;margin-bottom:40px}
.sb_nav,.sb_box{float:none!important;width:auto!important}
.sb_nav{background:#fff;border-radius:10px;box-shadow:0 8px 28px rgba(15,23,42,.06);overflow:hidden;height:max-content}
.sb_nav_top{background:#0f3775;color:#fff;padding:18px 20px}
.title{font-size:22px;font-weight:800;color:#0f172a;margin-bottom:16px;line-height:1.35}
.title span,.title span a{font-size:22px;font-weight:800;color:inherit}
.title b{display:block;font-size:12px;color:#94a3b8;text-transform:uppercase;margin-top:3px;font-weight:500}
.sb_nav_top .title,.sb_nav_top .title span{color:#fff;margin-bottom:0}
.sb_nav_top .title b{color:rgba(255,255,255,.65)}
#sidebar dl dt a,.sb_nav dl dt a{display:block;padding:13px 20px;border-bottom:1px solid #edf2f7;color:#334155;font-weight:700}
#sidebar dl dt a:hover,.sb_nav dl dt a:hover{background:#f3f7ff;color:#0b63ce}
.sider{padding:20px}
.sider .title{font-size:18px}
.editor3{font-size:13px;color:#64748b;line-height:1.9}
.sb_box{background:#fff;border-radius:10px;box-shadow:0 8px 28px rgba(15,23,42,.06);padding:30px;min-height:480px;overflow:hidden}
.position{float:right;font-size:13px;color:#94a3b8;font-weight:400}
.position a{color:#64748b}
#newslist li{padding:18px 0;border-bottom:1px solid #edf2f7}
#newslist li span{float:right;color:#94a3b8;font-family:Arial}
#newslist li a{font-size:16px;font-weight:800;color:#0f172a}
#newslist li p{margin-top:7px;color:#64748b;line-height:1.8}
.editor{word-wrap:break-word;font-size:15px;color:#475569;line-height:2}
.editor p,.editor li,.editor div{font-family:"Microsoft YaHei","PingFang SC",Arial!important;font-size:15px;color:#475569;line-height:2}
.editor table{max-width:100%!important}

/* 产品列表兼容 */
.imglist{float:left!important;width:220px!important;margin:0 18px 24px 0!important;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.06)}
.imglist img{width:220px!important;height:160px!important;object-fit:cover}
.index-product,.profld,.metlist{width:auto!important}
.prev,.next,#trigger{display:none!important}
.more{display:inline-block;width:auto;height:auto;background:none;color:#0b63ce}

/* 响应式 */
@media(max-width:1200px){
  body{min-width:0}
  .inner{width:94%}
  .product-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:768px){
  .header-inner{height:auto;padding:16px 0;display:block}
  .header-contact{text-align:left;margin-top:8px}
  .main-nav{height:auto}
  .nav-list{height:auto;justify-content:flex-start;flex-wrap:wrap;padding:8px 0}
  .nav-list>li{height:40px;line-height:40px}
  .nav-list>li>a.nav{height:40px;line-height:40px;padding:0 12px;font-size:14px}
  .hero,.hero-bg,.hero-bg #banner,.hero-bg #ifocus,.hero-bg #ifocus_pic,.hero-bg #ifocus_piclist,.hero-bg #ifocus_piclist ul,.hero-bg #ifocus_piclist li{height:390px}
  .hero-bg img{height:390px}
  .hero-text{height:390px}
  .hero-card{width:100%}
  .hero-card h1{font-size:32px}
  .hero-card p{font-size:14px}
  .feature-strip{margin-top:22px}
  .feature-grid,.product-grid,.news-contact,.about-panel,.sidebar{grid-template-columns:1fr}
  .product-grid .img,.product-grid img{height:185px}
  .footer-inner{display:block}
  .foot-nav{justify-content:flex-start;margin-top:20px}
}




/* =====================================================
   FINAL FIX：修复首页错位 + 友情链接空白
   重点：覆盖旧模板 float / width / grid 冲突
===================================================== */

body{
  background:#f3f6fb !important;
  min-width:1200px;
}

.inner{
  width:1200px !important;
  max-width:1200px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  position:relative;
}

.home-main{
  width:100% !important;
  padding:60px 0 40px !important;
  clear:both !important;
}

.home-main .inner > section{
  clear:both !important;
}

/* 顶部四个优势横向显示，防止跑到右边 */
.feature-strip{
  width:100% !important;
  margin:-42px 0 0 !important;
  position:relative !important;
  z-index:10 !important;
  clear:both !important;
}
.feature-grid{
  display:grid !important;
  grid-template-columns:repeat(4,1fr) !important;
  gap:18px !important;
  width:1200px !important;
  max-width:1200px !important;
  margin:0 auto !important;
}
.feature-item{
  float:none !important;
  width:auto !important;
  min-height:145px !important;
}

/* 公司简介：左图右文，解决左侧大片空白 */
.about-panel{
  display:grid !important;
  grid-template-columns:520px 1fr !important;
  gap:38px !important;
  align-items:center !important;
  width:100% !important;
  padding:38px !important;
  margin:0 0 58px !important;
  float:none !important;
  clear:both !important;
  background:#fff !important;
  border-radius:12px !important;
  box-shadow:0 8px 30px rgba(15,23,42,.06) !important;
}
.about-visual{
  display:block !important;
  width:100% !important;
  height:285px !important;
  border-radius:10px !important;
  overflow:hidden !important;
  background:#eef2f7 !important;
}
.about-visual img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}
.about-content{
  display:block !important;
  width:auto !important;
  float:none !important;
}
.about-content h3{
  font-size:24px !important;
  line-height:1.45 !important;
  color:#0f172a !important;
  margin-bottom:12px !important;
}
.about-content p{
  color:#475569 !important;
  line-height:2 !important;
  max-height:96px !important;
  overflow:hidden !important;
}
.about-info{
  margin-top:18px !important;
  background:#f8fafc !important;
  border-radius:10px !important;
  padding:16px 22px !important;
}

/* 产品区稳定 */
.product-modern{
  width:100% !important;
  clear:both !important;
  margin-bottom:58px !important;
}
.product-grid{
  display:grid !important;
  grid-template-columns:repeat(4,1fr) !important;
  gap:22px !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}
.product-grid li{
  float:none !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  background:#fff !important;
}
.product-grid .img{
  height:178px !important;
}
.product-grid .img img{
  height:178px !important;
}

/* 新闻 + 联系：强制左右并排，不允许旧float把它推到右侧 */
.news-contact{
  display:grid !important;
  grid-template-columns:1.15fr .85fr !important;
  gap:24px !important;
  width:100% !important;
  margin:0 0 38px !important;
  padding:0 !important;
  float:none !important;
  clear:both !important;
  align-items:stretch !important;
}
.news-modern,
.contact-modern{
  float:none !important;
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  display:block !important;
  background:#fff !important;
  border-radius:12px !important;
  padding:30px !important;
  box-shadow:0 8px 30px rgba(15,23,42,.06) !important;
}
.news-list,
.news-list li{
  width:auto !important;
  float:none !important;
}
.news-list li{
  display:block !important;
  padding:15px 0 15px 100px !important;
  min-height:78px !important;
  border-bottom:1px solid #edf2f7 !important;
  position:relative !important;
}
.news-list span{
  position:absolute !important;
  left:0 !important;
  top:18px !important;
  width:82px !important;
  color:#94a3b8 !important;
  white-space:nowrap !important;
}

/* 友情链接：必须显示内容，不再空白 */
.index-link{
  display:block !important;
  width:1200px !important;
  max-width:1200px !important;
  min-height:88px !important;
  max-height:none !important;
  overflow:visible !important;
  background:#fff !important;
  border-radius:10px !important;
  padding:22px 24px !important;
  margin:36px auto 0 !important;
  clear:both !important;
  box-shadow:0 8px 28px rgba(15,23,42,.05) !important;
}
.index-link .title{
  display:block !important;
  font-size:20px !important;
  line-height:1.4 !important;
  margin-bottom:12px !important;
  color:#0f172a !important;
}
.index-link .txt{
  display:block !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
}
.index-link .txt ul{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px 24px !important;
  padding:0 !important;
  margin:0 !important;
}
.index-link .txt li{
  display:inline-block !important;
  float:none !important;
  width:auto !important;
  height:auto !important;
  line-height:24px !important;
  margin:0 !important;
  padding:0 !important;
}
.index-link .txt a{
  display:inline-block !important;
  color:#475569 !important;
  font-size:14px !important;
  line-height:24px !important;
  white-space:nowrap !important;
}

/* 页脚稳定 */
.site-footer{
  clear:both !important;
  margin-top:34px !important;
}

/* 平板和手机 */
@media(max-width:1200px){
  body{min-width:0 !important;}
  .inner,
  .feature-grid,
  .index-link{
    width:94% !important;
    max-width:94% !important;
  }
  .about-panel{
    grid-template-columns:1fr !important;
  }
  .product-grid{
    grid-template-columns:repeat(3,1fr) !important;
  }
}
@media(max-width:768px){
  .feature-strip{
    margin:22px 0 0 !important;
  }
  .feature-grid,
  .product-grid,
  .news-contact{
    grid-template-columns:1fr !important;
  }
  .about-visual{
    height:210px !important;
  }
  .product-grid .img,
  .product-grid .img img{
    height:190px !important;
  }
  .news-list li{
    padding-left:0 !important;
  }
  .news-list span{
    position:static !important;
    display:block !important;
    width:auto !important;
    margin-bottom:4px !important;
  }
}




/* ==================================================
   FORCE FIX - 修复整体靠右
================================================== */

/* 清除旧模板所有 float */
.home-main *,
.news-contact *,
.about-panel *,
.product-modern *,
.feature-strip *{
    box-sizing:border-box !important;
}

/* 页面主体居中 */
body{
    margin:0 auto !important;
    overflow-x:hidden !important;
    background:#f3f6fb !important;
}

/* 所有主容器居中 */
.inner,
.main,
.content,
.wrap,
.container,
.home-main{
    width:1200px !important;
    max-width:1200px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    float:none !important;
    clear:both !important;
    position:relative !important;
}

/* 首页主区域 */
.home-main{
    display:block !important;
    padding:60px 0 !important;
}

/* 顶部四模块 */
.feature-grid{
    display:grid !important;
    grid-template-columns:repeat(4,1fr) !important;
    gap:20px !important;
    width:1200px !important;
    margin:0 auto !important;
}

/* 公司简介 */
.about-panel{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:40px !important;

    width:1200px !important;
    margin:0 auto 60px auto !important;

    float:none !important;
    clear:both !important;

    background:#fff !important;
    border-radius:14px !important;
    padding:40px !important;
}

.about-visual{
    width:520px !important;
    min-width:520px !important;
    height:300px !important;
    overflow:hidden !important;
    border-radius:10px !important;
    background:#eef2f7 !important;
}

.about-visual img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
}

.about-content{
    flex:1 !important;
    width:auto !important;
    float:none !important;
}

/* 产品展示 */
.product-modern{
    width:1200px !important;
    margin:0 auto 60px auto !important;
}

.product-grid{
    display:grid !important;
    grid-template-columns:repeat(4,1fr) !important;
    gap:22px !important;

    width:100% !important;

    margin:0 auto !important;
    padding:0 !important;
}

.product-grid li{
    width:auto !important;
    float:none !important;
    margin:0 !important;
}

/* 新闻+联系 */
.news-contact{
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
    gap:24px !important;

    width:1200px !important;
    margin:0 auto 50px auto !important;

    clear:both !important;
    float:none !important;
}

.news-modern{
    width:760px !important;
    min-width:760px !important;
    float:none !important;
    margin:0 !important;
}

.contact-modern{
    width:416px !important;
    min-width:416px !important;
    float:none !important;
    margin:0 !important;
}

/* 友情链接 */
.index-link{
    width:1200px !important;
    margin:0 auto !important;
}

.index-link .txt ul{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:10px 24px !important;
}

/* 清除所有旧float */
.news-modern,
.contact-modern,
.about-content,
.about-visual,
.product-grid li,
.feature-item{
    float:none !important;
}

/* 手机端 */
@media(max-width:1220px){

    .inner,
    .main,
    .content,
    .wrap,
    .container,
    .home-main,
    .feature-grid,
    .about-panel,
    .product-modern,
    .news-contact,
    .index-link{
        width:94% !important;
        max-width:94% !important;
    }

    .about-panel{
        flex-direction:column !important;
    }

    .about-visual{
        width:100% !important;
        min-width:100% !important;
    }

    .product-grid{
        grid-template-columns:repeat(2,1fr) !important;
    }

    .news-contact{
        flex-direction:column !important;
    }

    .news-modern,
    .contact-modern{
        width:100% !important;
        min-width:100% !important;
    }
}

@media(max-width:768px){

    .feature-grid,
    .product-grid{
        grid-template-columns:1fr !important;
    }

    .about-panel{
        padding:24px !important;
    }

    .about-visual{
        height:220px !important;
    }
}
