/* ============================================================
   宏盛颜料 - 企业产品展示模板
   配色：莫兰迪蓝灰主色 + 暖米白背景，柔和亲切、久看不累
   说明：将"宏盛颜料"替换为您的公司名即可
   ============================================================ */

/* ---------- 全局重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #3a3a3a;
  background: #f6f4f0;
  line-height: 1.7;
}

a { color: #3a3a3a; text-decoration: none; transition: color .2s; }
a:hover { color: #5b7a8c; }

img { max-width: 100%; display: block; }

ul, ol { list-style: none; }

.wrap { width: 1200px; margin: 0 auto; }

/* ---------- 顶部 Header ---------- */
.topbar {
  background: #5b7a8c;
  border-bottom: 1px solid #4e6b7b;
  font-size: 13px;
  color: #fff;
}
.topbar .wrap { display: flex; justify-content: center; align-items: center; height: 36px; }
.topbar .slogan { color: #fff; letter-spacing: 1px; }

.header {
  background: #fff;
  padding: 26px 0;
}
.header .wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark {
  width: 70px; height: 70px;
  background: #5b7a8c;
  color: #fff;
  font-size: 32px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  letter-spacing: -1px;
}
.logo .txt .cn { font-size: 30px; font-weight: bold; color: #3a4a52; letter-spacing: 1px; }
.logo .txt .en { font-size: 13px; color: #a0a0a0; letter-spacing: 2px; text-transform: uppercase; }

.header-slogan { text-align: center; flex: 1; padding: 0 40px; }
.header-slogan .hs-line1 { font-size: 20px; color: #5b7a8c; font-weight: bold; letter-spacing: 2px; margin-bottom: 6px; }
.header-slogan .hs-line2 { font-size: 13px; color: #8a8a8a; letter-spacing: 1px; }

.header .contact { text-align: right; }
.header .contact .label { font-size: 13px; color: #999; }
.header .contact .phone {
  font-size: 28px; font-weight: bold; color: #5b7a8c;
  font-family: "Arial", sans-serif;
  letter-spacing: 1px;
}
.header .contact .phone .small { font-size: 14px; color: #8a8a8a; font-weight: normal; margin-right: 4px; }

/* ---------- 导航 Nav ---------- */
.nav {
  background: #5b7a8c;
  height: 48px;
}
.nav .wrap { display: flex; align-items: center; height: 48px; }
.nav ul { display: flex; margin-left: 252px; }
.nav li { position: relative; }
.nav a {
  display: block;
  padding: 0 26px;
  height: 48px;
  line-height: 48px;
  color: #fff;
  font-size: 15px;
}
.nav a:hover, .nav li.active > a {
  background: #3f5a6a;
  color: #fff;
}

/* ---------- 主体布局 ---------- */
.main { padding: 24px 0 40px; }
.main .wrap { display: flex; gap: 22px; align-items: flex-start; }

/* 左侧产品栏 */
.sidebar { width: 230px; flex-shrink: 0; }
.side-block { background: #fff; margin-bottom: 18px; border: 1px solid #ececec; }
.side-title {
  background: #5b7a8c;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.side-title .en { font-size: 11px; font-weight: normal; opacity: .8; text-transform: uppercase; letter-spacing: 1px; }

.prod-cat li { border-bottom: 1px dashed #ececec; }
.prod-cat li:last-child { border-bottom: none; }
.prod-cat a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px;
  font-size: 14px;
  color: #4a4a4a;
}
.prod-cat a:hover { background: #eef3f6; color: #5b7a8c; padding-left: 22px; }
.prod-cat a .arrow { color: #c0c0c0; font-size: 12px; }
.prod-cat a:hover .arrow { color: #5b7a8c; }

/* 左侧联系方式块 */
.side-contact { padding: 16px; }
.side-contact .ct-item { margin-bottom: 14px; }
.side-contact .ct-item:last-child { margin-bottom: 0; }
.side-contact .ct-label { font-size: 12px; color: #999; margin-bottom: 2px; }
.side-contact .ct-val { font-size: 14px; color: #3a3a3a; }
.side-contact .ct-val.red { color: #5b7a8c; font-weight: bold; font-size: 18px; font-family: Arial; }

/* ---------- 右侧内容区 ---------- */
.content { flex: 1; min-width: 0; }

/* 面包屑 */
.crumb {
  background: #fff;
  border: 1px solid #ececec;
  padding: 10px 16px;
  font-size: 13px;
  color: #8a8a8a;
  margin-bottom: 18px;
}
.crumb a { color: #8a8a8a; }
.crumb a:hover { color: #5b7a8c; }
.crumb .sep { margin: 0 6px; color: #c0c0c0; }
.crumb .here { color: #5b7a8c; }

/* 内容区块卡片 */
.box { background: #fff; border: 1px solid #ececec; margin-bottom: 20px; }
.box-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid #5b7a8c;
  padding: 0 16px;
  height: 44px;
}
.box-head h3 { font-size: 16px; color: #3a4a52; font-weight: bold; }
.box-head h3::before {
  content: ""; display: inline-block; width: 4px; height: 16px;
  background: #5b7a8c; vertical-align: -2px; margin-right: 8px;
}
.box-head .more { font-size: 12px; color: #999; }
.box-head .more:hover { color: #5b7a8c; }
.box-body { padding: 16px; }

/* ---------- 首页横幅 ---------- */
.banner {
  height: 320px;
  background: linear-gradient(135deg, #2f4a57 0%, #43697d 60%, #5b7a8c 100%);
  color: #fff;
  display: flex; align-items: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.banner::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.banner::before {
  content: ""; position: absolute; right: 80px; bottom: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.banner .wrap { position: relative; z-index: 2; }
.banner h2 { font-size: 38px; font-weight: bold; margin-bottom: 14px; letter-spacing: 2px; }
.banner h2 .accent { color: #cee0e8; }
.banner p { font-size: 16px; opacity: .92; max-width: 560px; margin-bottom: 24px; }
.banner .btn {
  display: inline-block;
  padding: 11px 30px;
  background: #fff;
  color: #5b7a8c;
  font-weight: bold;
  border-radius: 2px;
  font-size: 15px;
}
.banner .btn:hover { background: #e7eff2; color: #3f5a6a; }

/* ---------- 公司简介 ---------- */
.about-home { display: flex; gap: 22px; align-items: flex-start; }
.about-home .pic {
  width: 280px; flex-shrink: 0;
  height: 180px;
  background: linear-gradient(135deg, #e3e6e9, #5b7a8c);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; letter-spacing: 2px;
}
.about-home .text { flex: 1; }
.about-home .text p { color: #6a6a6a; margin-bottom: 10px; text-indent: 2em; }
.about-home .text .readmore {
  display: inline-block; margin-top: 6px;
  color: #5b7a8c; font-size: 13px;
  border-bottom: 1px solid #5b7a8c; padding-bottom: 1px;
}

/* ---------- 产品网格 ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.prod-card {
  border: 1px solid #ececec;
  transition: all .2s;
  background: #fff;
}
.prod-card:hover { border-color: #5b7a8c; box-shadow: 0 4px 12px rgba(91,122,140,.12); transform: translateY(-2px); }
.prod-card .thumb {
  height: 160px;
  background: #f0efed;
  display: flex; align-items: center; justify-content: center;
  color: #b0b0b0; font-size: 13px;
  position: relative;
  overflow: hidden;
}
/* 产品色块示意（实际使用时替换为产品图片） */
.prod-card .thumb .swatch {
  width: 70%; height: 70%;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.prod-card .info { padding: 10px 12px; text-align: center; }
.prod-card .name { font-size: 14px; color: #3a3a3a; margin-bottom: 4px; font-weight: 500; }
.prod-card .name:hover { color: #5b7a8c; }
.prod-card .meta { font-size: 12px; color: #999; }

/* ---------- 代理品牌墙 ---------- */
.brand-box .box-head .more { display: none; }
.brand-wall {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  align-items: center;
}
.brand-wall img {
  width: 100%;
  height: 56px;
  object-fit: contain;
  padding: 4px 6px;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: all .2s;
  cursor: pointer;
  filter: grayscale(15%);
  opacity: .85;
}
.brand-wall img:hover {
  border: none;
  box-shadow: none;
  transform: scale(1.08);
  filter: grayscale(0);
  opacity: 1;
}

/* ---------- 文章列表 ---------- */
.news-list li {
  border-bottom: 1px dashed #ececec;
  padding: 12px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.news-list li:first-child { padding-top: 0; }
.news-list li:last-child { border-bottom: none; }
.news-list .dot {
  display: inline-block; width: 6px; height: 6px;
  background: #5b7a8c; border-radius: 50%;
  margin-right: 10px; vertical-align: 2px;
}
.news-list .title { flex: 1; color: #4a4a4a; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list .title:hover { color: #5b7a8c; }
.news-list .date { color: #999; font-size: 12px; margin-left: 14px; flex-shrink: 0; }

/* 带缩略图资讯列表 */
.news-thumb-list li {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed #ececec;
}
.news-thumb-list li:last-child { border-bottom: none; }
.news-thumb-list .thumb {
  width: 130px; height: 88px; flex-shrink: 0;
  background: linear-gradient(135deg, #d8d8d8, #9a9a9a);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px;
}
.news-thumb-list .art { flex: 1; min-width: 0; }
.news-thumb-list .art .t {
  font-size: 15px; font-weight: 500; color: #3a4a52; margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-thumb-list .art .t:hover { color: #5b7a8c; }
.news-thumb-list .art .d { font-size: 12px; color: #999; margin-bottom: 6px; }
.news-thumb-list .art .desc { font-size: 13px; color: #7a7a7a; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 资料下载列表 ---------- */
.dl-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed #ececec;
}
.dl-list li:last-child { border-bottom: none; }
.dl-list .info { display: flex; align-items: center; gap: 12px; }
.dl-list .ico {
  width: 38px; height: 46px;
  background: #5b7a8c;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: bold;
  position: relative;
  border-radius: 2px;
}
.dl-list .ico::after {
  content: ""; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 0;
  border-left: 19px solid transparent;
  border-right: 19px solid transparent;
  border-top: 6px solid #5b7a8c;
}
.dl-list .dl-name { font-size: 14px; color: #3a3a3a; }
.dl-list .dl-name:hover { color: #5b7a8c; }
.dl-list .dl-meta { font-size: 12px; color: #999; margin-top: 2px; }
.dl-list .dl-btn {
  display: inline-block; padding: 6px 16px;
  border: 1px solid #5b7a8c; color: #5b7a8c;
  font-size: 13px; border-radius: 2px;
}
.dl-list .dl-btn:hover { background: #5b7a8c; color: #fff; }

/* ---------- 文章详情 ---------- */
.article { padding: 10px 4px; }
.article .art-title { font-size: 22px; color: #3a4a52; text-align: center; margin-bottom: 8px; font-weight: bold; }
.article .art-meta { text-align: center; font-size: 12px; color: #999; padding-bottom: 14px; border-bottom: 1px solid #ececec; margin-bottom: 18px; }
.article .art-meta span { margin: 0 10px; }
.article .art-body { font-size: 14px; color: #5a5a5a; line-height: 1.9; }
.article .art-body p { margin-bottom: 14px; text-indent: 2em; }
.article .art-body h4 { font-size: 16px; color: #3a4a52; margin: 18px 0 10px; text-indent: 0; }
.article .art-pager { margin-top: 26px; padding-top: 16px; border-top: 1px solid #ececec; font-size: 13px; color: #8a8a8a; }
.article .art-pager a { color: #8a8a8a; }
.article .art-pager a:hover { color: #5b7a8c; }
.article .art-pager div { margin-bottom: 6px; }

/* ---------- 联系我们 ---------- */
.contact-info { padding: 8px 4px; }
.contact-info table { width: 100%; border-collapse: collapse; }
.contact-info td { padding: 12px 10px; border-bottom: 1px dashed #ececec; font-size: 14px; vertical-align: top; }
.contact-info td.k { width: 120px; color: #999; font-weight: 500; }
.contact-info td.v { color: #3a3a3a; }
.contact-info td.v.red { color: #5b7a8c; font-weight: bold; font-size: 18px; font-family: Arial; }

/* ---------- 分页 ---------- */
.pagination { text-align: center; padding: 20px 0; }
.pagination a, .pagination span {
  display: inline-block; min-width: 34px; height: 34px; line-height: 34px;
  padding: 0 10px; margin: 0 3px;
  border: 1px solid #ddd; background: #fff; color: #666; font-size: 13px;
}
.pagination a:hover { border-color: #5b7a8c; color: #5b7a8c; }
.pagination .current { background: #5b7a8c; border-color: #5b7a8c; color: #fff; }

/* ---------- 底部 Footer ---------- */
.foot-nav {
  background: #3a4a52;
  color: #b8c4ca;
  padding: 26px 0;
}
.foot-nav .wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; text-align: center; }
.foot-company .name { color: #fff; font-size: 18px; font-weight: bold; margin-bottom: 8px; }
.foot-company p { color: #a8b4ba; font-size: 13px; line-height: 1.8; }

.footer {
  background: #2c3940;
  color: #8a949a;
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
}
.footer a { color: #a8b4ba; }
.footer a:hover { color: #c0c8cc; }
.footer .links { margin-bottom: 8px; }
.footer .links span { color: #8a949a; }
.footer .links a { margin: 0 8px; }
.footer .copyright { color: #6a747a; font-size: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .wrap { width: 96%; }
  .nav a { padding: 0 18px; }
}
@media (max-width: 900px) {
  .main .wrap { flex-direction: column; }
  .sidebar { width: 100%; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-wall { grid-template-columns: repeat(6, 1fr); }
  .nav ul { flex-wrap: wrap; }
  .banner h2 { font-size: 28px; }
  .about-home { flex-direction: column; }
  .about-home .pic { width: 100%; }
}
@media (max-width: 560px) {
  .prod-grid { grid-template-columns: 1fr; }
  .brand-wall { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .brand-wall img { height: 44px; padding: 3px 4px; }
  .header .wrap { flex-direction: column; gap: 12px; }
  .news-thumb-list .thumb { width: 90px; height: 70px; }
}
