/* Sanlote 静态站：全站样式，内容宽度 1140px */
:root {
  --blue: #4aa3df;
  --blue-dark: #2f8fd0;
  --text: #333;
  --muted: #666;
  --line: #e6e6e6;
  --soft: #f7f8f9;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ============ 顶部导航 ============ */
.site-header {
  background: #fff;
  position: relative;
  z-index: 20;
}

.header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 54px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 15px;
  color: #555;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--blue);
}

.nav a.active {
  color: var(--blue);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #444;
  margin: 4px 0;
  border-radius: 2px;
}

/* ============ 横幅 ============ */
.banner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 18px;
}

.banner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(15, 24, 32, 0.5);
}

.banner h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

.banner .btn-primary {
  margin-top: 26px;
}

.banner--compact img {
  height: 300px;
}

.banner--plain {
  height: 260px;
  border-radius: 8px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #9c9c9c, #6d6d6d);
}

.banner--plain h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 600;
  margin: 0 0 12px;
}

.banner--plain p {
  color: rgba(255, 255, 255, 0.92);
  margin: 4px 0 0;
  font-size: 15px;
}

/* ============ 按钮 ============ */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px 30px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-outline {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 22px;
  background: #efefef;
  color: #333;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

/* ============ 通用区块 ============ */
.section {
  padding: 56px 0;
}

.section-title {
  margin: 0 0 28px;
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  color: #2f2f2f;
}

/* ============ 首页 Our Factory ============ */
.factory p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.85;
  color: #555;
  text-align: justify;
}

.link-more {
  color: var(--blue);
  font-weight: 500;
}

.link-more:hover {
  text-decoration: underline;
}

/* ============ 为什么选择 ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--soft);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  color: var(--blue);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 42px;
  height: 42px;
  margin: 0 auto;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #222;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============ 产品卡片 ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  display: block;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #f2f4f5;
}

.product-body {
  padding: 16px 18px 20px;
}

.product-tag {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
}

.product-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #333;
}

/* ============ 认证 ============ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.cert-badge {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.cert-badge--ce {
  background: #e3f2fd;
  color: #1e88e5;
}

.cert-badge--rohs {
  background: #e8f5e9;
  color: #43a047;
}

.cert-badge--gcc {
  background: #fff3e0;
  color: #f57c00;
}

.cert-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #222;
}

.cert-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.cert-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding: 15px 18px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 13px;
  color: #777;
}

.cert-note svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--blue);
}

/* ============ 关于我们 ============ */
.about-intro p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.85;
  color: #555;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #555;
}

.check-list svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--blue);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 46px 0 10px;
  text-align: center;
}

.stat-num {
  color: var(--blue);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
}

.stat-label {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.about-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 30px 18px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.about-card .feature-icon svg {
  width: 34px;
  height: 34px;
}

.about-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #222;
}

.about-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ============ 联系我们 ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 50px;
  align-items: start;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.icon-circle {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e8f4fc;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle svg {
  width: 21px;
  height: 21px;
}

.info-item h3 {
  margin: 2px 0 4px;
  font-size: 16px;
  color: #222;
}

.info-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  word-break: break-word;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fbfbfb;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-map {
  margin-top: 46px;
}

.contact-map img {
  width: 100%;
  border-radius: 8px;
}

/* ============ 页脚 ============ */
.site-footer {
  background: #f5f5f5;
  margin-top: 60px;
  padding-top: 48px;
  color: #555;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 36px;
}

.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.footer-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-grid li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid #e3e3e3;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .banner h1,
  .banner--plain h1 {
    font-size: 34px;
  }

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

  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .header-inner {
    height: 70px;
    flex-wrap: wrap;
  }

  .logo img {
    height: 44px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 13px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .banner img {
    height: 300px;
  }

  .banner--compact img {
    height: 220px;
  }

  .banner h1,
  .banner--plain h1 {
    font-size: 28px;
  }

  .banner p {
    font-size: 14px;
  }

  .banner--plain {
    height: 220px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .feature-grid,
  .product-grid,
  .cert-grid,
  .about-cards {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .stat-num {
    font-size: 36px;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
