/* 深圳市禾锐尔有限公司 - 全站样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #f5f7fa;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部 ===== */
.topbar {
  background: #0d3b66;
  color: #cfe0f1;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

header.site-header {
  background: #fff;
  border-bottom: 3px solid #1a6fc4;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px;
  background: #1a6fc4;
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: bold;
}
.logo h1 { font-size: 22px; color: #0d3b66; letter-spacing: 1px; }
.logo small { display: block; font-size: 11px; color: #888; font-weight: normal; letter-spacing: 2px; }

nav.main-nav ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
nav.main-nav a {
  display: block;
  padding: 8px 18px;
  font-size: 15px;
  color: #444;
  border-radius: 4px;
  transition: all .2s;
}
nav.main-nav a:hover { color: #1a6fc4; background: #eaf3fc; }
nav.main-nav a.active { color: #fff; background: #1a6fc4; }

/* ===== Banner ===== */
.banner {
  height: 340px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,59,102,.75), rgba(13,59,102,.25));
}
.banner .container {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
}
.banner h2 { font-size: 34px; margin-bottom: 10px; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.banner p { font-size: 16px; max-width: 640px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.page-banner { height: 200px; }
.page-banner h2 { font-size: 28px; }

/* ===== 主体区块 ===== */
.section { padding: 46px 0; }
.section-title { text-align: center; margin-bottom: 34px; }
.section-title h2 {
  font-size: 26px; color: #0d3b66;
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 3px solid #1a6fc4;
}
.section-title p { color: #888; font-size: 14px; margin-top: 8px; }

/* 首页简介 */
.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
.intro-grid .text p { margin-bottom: 14px; text-align: justify; }
.intro-cards { display: grid; gap: 14px; }
.intro-card {
  background: #fff;
  border-left: 4px solid #1a6fc4;
  padding: 14px 18px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.intro-card b { color: #0d3b66; display: block; margin-bottom: 4px; }
.intro-card span { font-size: 14px; color: #666; }

/* 优势 */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.adv-item {
  background: #fff;
  padding: 26px 20px;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0,0,0,.06);
  transition: transform .2s;
}
.adv-item:hover { transform: translateY(-4px); }
.adv-item .icon { font-size: 34px; margin-bottom: 12px; }
.adv-item h3 { font-size: 17px; color: #0d3b66; margin-bottom: 8px; }
.adv-item p { font-size: 13px; color: #777; }

/* ===== 产品 ===== */
.cat-title {
  font-size: 20px; color: #0d3b66;
  margin: 34px 0 18px;
  padding-left: 12px;
  border-left: 5px solid #1a6fc4;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.product-card .img-wrap {
  height: 180px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.product-card .img-wrap img {
  max-height: 100%;
  object-fit: contain;
}
.product-card .info { padding: 12px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-card .info h3 {
  font-size: 14px; color: #333;
  line-height: 1.45;
  margin-bottom: 8px;
  min-height: 40px;
}
.product-card .meta { font-size: 12px; color: #999; margin-bottom: 8px; }
.product-card .meta b { color: #1a6fc4; }
.product-card .price {
  margin-top: auto;
  font-size: 15px;
  color: #d84315;
  font-weight: bold;
}
.product-card .price.na { color: #1a6fc4; font-weight: normal; font-size: 13px; }

/* 联系我们 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-card {
  background: #fff;
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 1px 5px rgba(0,0,0,.06);
}
.contact-card h3 {
  font-size: 18px; color: #0d3b66;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eef2f6;
}
.contact-card table { width: 100%; border-collapse: collapse; }
.contact-card td { padding: 9px 0; font-size: 15px; vertical-align: top; }
.contact-card td.label { color: #888; width: 80px; }
.contact-card td.value { color: #333; }

.about-block {
  background: #fff;
  border-radius: 6px;
  padding: 30px 34px;
  margin-bottom: 24px;
  box-shadow: 0 1px 5px rgba(0,0,0,.06);
}
.about-block h3 {
  font-size: 19px; color: #0d3b66;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #1a6fc4;
}
.about-block p { margin-bottom: 12px; text-align: justify; }
.about-block ul { padding-left: 22px; }
.about-block li { margin-bottom: 8px; }
.brand-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-tags span {
  background: #eaf3fc; color: #1a6fc4;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

/* ===== 页脚 ===== */
footer.site-footer {
  background: #0d3b66;
  color: #b9cde2;
  margin-top: 50px;
  padding: 36px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 26px;
}
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-grid p, .footer-grid li { font-size: 13px; margin-bottom: 7px; list-style: none; }
.footer-grid a:hover { color: #fff; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  padding: 14px 0;
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 900px) {
  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .banner h2 { font-size: 24px; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  nav.main-nav a { padding: 6px 10px; font-size: 14px; }
}
