/* ==========================================
   中科微盛直销系统官网 - SSCMS 迁移版
   基于原站 style.css 还原 + 优化
   ========================================== */

/* ---- Reset & Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif; font-size: 14px; color: #444; background: #fff; }
a { color: #333; text-decoration: none; }
a:hover { color: #143468; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---- 顶部信息栏 ---- */
.sittop { background: #143468; color: #fff; font-size: 13px; }
.sittop ul { max-width: 1200px; margin: 0 auto; padding: 8px 15px; display: flex; gap: 30px; align-items: center; }
.sittop ul li a { color: #fff; }
.sittop ul li a:hover { color: #f5a623; }
.sittop .fa { margin-right: 5px; }

/* ---- 导航 Header ---- */
.header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 999; display: flex; align-items: center; justify-content: space-between; max-width: 100%; padding: 10px 30px; }
#logo { display: block; }
#logo img { width:186px; }
.animenu { flex: 1; }
.animenu__nav { display: flex; justify-content: flex-end; }
.animenu__nav li a { display: block; padding: 20px 18px; font-size: 17px; font-weight: bold; color: #333; transition: color 0.2s; }
.animenu__nav li a:hover,
.animenu__nav li.active a { color: #143468; border-bottom: 3px #526b93 solid; }
.animenu__toggle { display: none; background: none; border: none; cursor: pointer; }
.animenu__toggle__bar { display: block; width: 24px; height: 2px; background: #333; margin: 5px 0; }

/* ---- 轮播图 ---- */
.flexslider { width: 100%; overflow: hidden; }
.flexslider .slides img { width: 100%; height: auto; max-height: 500px; object-fit: cover; }

/* ---- Banner（各栏目顶部） ---- */
.softbanner, .newsbanner, .aboutbanner { background: linear-gradient(135deg, #143468 0%, #1e5298 100%); padding: 60px 30px; text-align: center; }
.softbanner .title, .newsbanner .title, .aboutbanner .title { color: #fff; font-size: 28px; font-weight: 400; letter-spacing: 2px; }

/* ---- 通用容器 ---- */
.main { max-width: 1200px; margin: 0 auto; padding: 40px 15px; }
.colorhui { background: #f7f8fa; }
.intit, .intits { text-align: center; margin-bottom: 30px; }
.intit h3, .intits h3 { font-size: 24px; color: #143468; position: relative; display: inline-block; padding-bottom: 12px; }
.intit h3::after, .intits h3::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background: #526b93; }

/* ---- 面包屑 ---- */
.navtitle { margin-bottom: 20px; }
.navtitle p { color: #888; font-size: 13px; }
.navtitle a { color: #143468; }
.navtitle a:hover { text-decoration: underline; }

/* ---- 首页产品列表 ---- */
.prolist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prolist a { display: block; border: 1px solid #eee; border-radius: 4px; overflow: hidden; transition: box-shadow 0.3s; }
.prolist a:hover { box-shadow: 0 4px 20px rgba(20,52,104,0.15); }
.prolist dt img { width: 100%; height: 180px; object-fit: cover; }
.prolist dd { padding: 15px; }
.prolist dd h3 { font-size: 16px; color: #143468; margin-bottom: 8px; }
.prolist dd p { font-size: 13px; color: #777; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- 产品列表页（propagelist） ---- */
.propagelist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.propagelist a { display: block; border: 1px solid #eee; border-radius: 4px; overflow: hidden; transition: box-shadow 0.3s; }
.propagelist a:hover { box-shadow: 0 4px 16px rgba(20,52,104,0.12); }
.propagelist dt img { width: 100%; height: 160px; object-fit: cover; }
.propagelist dd { padding: 12px; }
.propagelist dd h3 { font-size: 14px; color: #143468; text-align: center; }

/* ---- 产品详情页 ---- */
.propageshow > dl { display: flex; gap: 30px; margin-bottom: 30px; }
.propageshow > dl dt { flex: 0 0 280px; }
.propageshow > dl dt img { width: 100%; border-radius: 4px; }
.propageshow > dl dd { flex: 1; }
.propageshow > dl dd h1 { font-size: 22px; color: #143468; margin-bottom: 15px; }
.propageshow > dl dd .sitemore { margin-top: 20px; display: block; }
.propageshow > dl dd .sitemore a { display: inline-block; background: #143468; color: #fff; padding: 10px 28px; border-radius: 3px; font-size: 14px; }
.propageshow > dl dd .sitemore a:hover { background: #1e5298; }
.content-body { line-height: 1.8; font-size: 14px; color: #555; padding: 20px 0; border-top: 1px solid #eee; }
.content-body img { max-width: 100%; height: auto; margin: 10px auto; }
.prev-next-nav { border-top: 1px solid #eee; padding-top: 15px; margin-top: 20px; font-size: 13px; color: #888; }
.prev-next-nav a { color: #143468; }
.related-products { margin-top: 30px; }
.related-products h3 { font-size: 18px; color: #143468; margin-bottom: 15px; border-left: 4px solid #526b93; padding-left: 10px; }
.propagelist.small { grid-template-columns: repeat(4, 1fr); }

/* ---- 优质服务 8宫格 ---- */
.ourservice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ourservice dl { background: #fff; border-radius: 6px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.3s; }
.ourservice dl:hover { transform: translateY(-4px); }
.ourservice dt img { width: 60px; height: 60px; margin: 0 auto 15px; }
.ourservice dd h3 { font-size: 15px; color: #143468; margin-bottom: 8px; }
.ourservice dd p { font-size: 13px; color: #888; line-height: 1.6; }

/* ---- 服务流程 ---- */
.serviceonline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.serviceonline dl { text-align: center; }
.serviceonline dt img { width: 70px; height: 70px; margin: 0 auto 10px; }
.serviceonline dd h3 { font-size: 14px; color: #143468; margin-bottom: 5px; }
.serviceonline dd p { font-size: 12px; color: #999; line-height: 1.5; }

/* ---- 合作伙伴 ---- */
.partnersmain { padding: 40px 15px; max-width: 1200px; margin: 0 auto; }
.partnersmain h3 { text-align: center; font-size: 22px; color: #143468; margin-bottom: 25px; }
.partnersmain ul { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; align-items: center; }
.partnersmain ul li img { height: 50px; width: auto; filter: grayscale(50%); transition: filter 0.3s; }
.partnersmain ul li img:hover { filter: grayscale(0); }

/* ---- 首页新闻区 ---- */
.mainnewsbox { }
.mainnews { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.newsabout dl { display: flex; flex-direction: column; gap: 15px; }
.newsabout dt { flex: 0 0 200px; }
.newsabout dt img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 4px; padding-bottom: 1em; }
.newsabout dt h4 { font-size: 130%; color: #143468; margin:10px 0 18px 0; }
.newsabout dt h4 span { font-size: 12px; color: #999; margin-left: 10px; }
.newsabout dd p { font-size: 13px; color: #777; line-height: 1.6; }
.newsabout .sitemore a { background:#01889a; border:1px #01889a solid; color:#fff; padding:1em 2em; line-height:100%; display:inline-block; border-radius:6px; }
.newsabout .sitemore a:hover { background:#fff; border:1px #01889a solid; color:#01889a; padding:1em 2em; line-height:100%; display:inline-block; border-radius:6px; }

.newslistindex ul { }
.newslistindex li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #eee; }
.newslistindex li a { color: #444; font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newslistindex li a:hover { color: #143468; }
.newslistindex li span { color: #999; font-size: 12px; white-space: nowrap; margin-left: 10px; }

/* ---- 新闻列表页 ---- */
.mainbox { display: flex; gap: 25px; }
.mainleftlist, .mainleft { flex: 0 0 200px; }
.mainleftlist h3, .mainleft h3 { background: #143468; color: #fff; padding: 12px 15px; font-size: 15px; }
.mainleftlist h3 span, .mainleft h3 span { font-size: 11px; display: block; color: #8fafd0; margin-top: 2px; }
.mainleftlist ul li a, .mainleft ul li a { display: block; padding: 10px 15px; border-bottom: 1px solid #eee; font-size: 14px; color: #444; }
.mainleftlist ul li a:hover, .mainleft ul li a:hover,
.mainleftlist ul li.current a, .mainleft ul li.current a { background: #f0f4fa; color: #143468; }
.mainleft ul.test li a { padding-left: 20px; }
.mainright { flex: 1; min-width: 0; }

/* 新闻列表 */
.newspglist dl { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #eee; }
.newspglist dt { flex: 0 0 180px; }
.newspglist dt a img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; }
.newspglist dd { flex: 1; }
.newspglist dd h3 a { font-size: 16px; color: #333; }
.newspglist dd h3 a:hover { color: #143468; }
.newspglist dd nav { font-size: 12px; color: #999; margin: 6px 0; }
.newspglist dd p { font-size: 13px; color: #777; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.newspglist dd .more { display: inline-block; margin-top: 8px; color: #143468; font-size: 13px; }

/* ---- 新闻详情 ---- */
.showtitle h1 { font-size: 22px; color: #222; margin-bottom: 10px; }
.showinfo { font-size: 13px; color: #999; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.showinfo span { margin-right: 20px; }
.showcontent { line-height: 1.9; font-size: 14px; color: #555; }
.showcontent img { max-width: 100%; height: auto; margin: 10px auto; }
.showtags { margin-top: 20px; font-size: 13px; color: #888; }
.related-news { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.related-news h3 { font-size: 16px; color: #143468; margin-bottom: 12px; border-left: 4px solid #526b93; padding-left: 10px; }
.related-news ul li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.related-news ul li a { color: #444; }
.related-news ul li a:hover { color: #143468; }
.related-news ul li span { color: #999; font-size: 12px; }

/* ---- 分页 ---- */
.pagination { margin-top: 25px; text-align: center; font-size: 14px; }
.pagination span, .pagination a { display: inline-block; padding: 6px 12px; margin: 0 3px; border: 1px solid #ddd; border-radius: 3px; color: #444; }
.pagination a:hover { background: #143468; color: #fff; border-color: #143468; }
.pagination .current { background: #143468; color: #fff; border-color: #143468; }
.pagination .disabled { color: #ccc; cursor: not-allowed; }

/* ---- 联系我们 ---- */
.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.contact-info h3, .contact-form h3 { font-size: 20px; color: #143468; margin-bottom: 20px; border-left: 4px solid #526b93; padding-left: 10px; }
.contact-info ul li { padding: 10px 0; border-bottom: 1px solid #eee; font-size: 14px; color: #555; }
.contact-info ul li .fa { color: #143468; margin-right: 8px; width: 18px; }
.contact-info ul li a { color: #143468; }
.contact-qr { text-align: center; margin-top: 20px; }
.contact-qr img { width: 120px; margin: 0 auto 8px; }
.contact-qr p { font-size: 12px; color: #999; }
.contact-form .form-group { margin-bottom: 15px; }
.contact-form label { display: block; font-size: 13px; color: #666; margin-bottom: 5px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #143468; }
.btn-submit { background: #143468; color: #fff; padding: 12px 40px; border: none; border-radius: 3px; font-size: 15px; cursor: pointer; transition: background 0.2s; }
.btn-submit:hover { background: #1e5298; }
.contact-map h3 { font-size: 20px; color: #143468; margin-bottom: 15px; border-left: 4px solid #526b93; padding-left: 10px; }

/* ---- 友情链接 ---- */
#friendlink { padding: 10px 0; }
#friendlink a { display: inline-block; margin: 5px 10px; color: #666; font-size: 13px; border: 1px solid #ddd; padding: 4px 12px; border-radius: 3px; }
#friendlink a:hover { color: #143468; border-color: #143468; }

/* ---- 页脚 ---- */
#footer { background: #143468; color: #ccc; padding: 40px 15px 0; }
#footer ul { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 30px; }
#footer ul li img { height: 50px; margin-bottom: 10px; }
#footer ul li p { font-size: 13px; line-height: 1.8; color: #bbb; }
#footer ul li h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
#footer ul li p span { display: inline-block; margin: 4px 4px 4px 0; }
#footer ul li p a { color: #bbb; font-size: 13px; }
#footer ul li p a:hover { color: #f5a623; }
#footer ul li .fcontact-icon { margin-right: 6px; }
#footer section { max-width: 1200px; margin: 0 auto; padding: 15px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: #8a9bb8; }
#footer section a { color: #8a9bb8; }
#footer section a:hover { color: #f5a623; }

/* ---- 悬浮右侧菜单 ---- */
.izl-rmenu { position: fixed; right: 0; bottom: 100px; z-index: 999; }
.izl-rmenu ol { background: #143468; border-radius: 4px 0 0 4px; overflow: hidden; }
.izl-rmenu ol li { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 12px; }
.izl-rmenu ol li a { color: #fff; display: block; white-space: nowrap; }
.izl-rmenu ol li a:hover { color: #f5a623; }
.izl-rmenu ol li#isQRcode img { width: 80px; height: 80px; }
.izl-rmenu ul { }
.izl-rmenu ul li { }
.izl-rmenu .consult { background: #f5a623; padding: 10px 8px; text-align: center; cursor: pointer; }
.izl-rmenu .phone { color: #fff; font-size: 11px; display: block; }
.izl-rmenu .cart { background: #e74c3c; width: 40px; height: 40px; }
.btn_top { display: block; width: 40px; height: 40px; background: rgba(20,52,104,0.8); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 4l-8 8h5v8h6v-8h5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 20px; }

/* ---- 关于我们 服务内容 ---- */
.service-content { line-height: 1.9; font-size: 14px; color: #555; padding: 20px 0; }
.service-content img { max-width: 100%; }

/* ---- Responsive 响应式 ---- */
@media (max-width: 1200px) {
  .main { padding: 30px 20px; }
  .prolist { grid-template-columns: repeat(2, 1fr); }
  .propagelist { grid-template-columns: repeat(3, 1fr); }
  .ourservice { grid-template-columns: repeat(4, 1fr); }
  .serviceonline { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sittop ul { flex-direction: column; gap: 5px; font-size: 12px; }
  .animenu__toggle { display: block; }
  .animenu__nav { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .animenu__nav.is-open { display: flex; }
  .animenu__nav li a { padding: 14px 20px; border-bottom: 1px solid #eee; }
  .prolist, .propagelist { grid-template-columns: repeat(2, 1fr); }
  .ourservice { grid-template-columns: repeat(2, 1fr); }
  .serviceonline { grid-template-columns: repeat(2, 1fr); }
  .mainnews { grid-template-columns: 1fr; }
  .mainbox { flex-direction: column; }
  .mainleftlist, .mainleft { flex: none; width: 100%; }
  .contact-box { grid-template-columns: 1fr; }
  #footer ul { grid-template-columns: 1fr 1fr; }
  .propageshow > dl { flex-direction: column; }
}
@media (max-width: 480px) {
  .prolist, .propagelist { grid-template-columns: 1fr; }
  #footer ul { grid-template-columns: 1fr; }
  .serviceonline { grid-template-columns: repeat(2, 1fr); }
}
