* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  line-height: 1.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  z-index: 1000;
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  height: 70px;
  width: auto;
}
.company-name {
  font-size: 20px;
  font-weight: 700;
  color: #1a3c6e;
  white-space: nowrap;
}
.nav {
  display: flex;
  list-style: none;
  gap: 36px;
}
.nav a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.nav a:hover { color: #1a3c6e; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

/* ===== Hero / Slides ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  margin-top: 72px;
  overflow: hidden;
}
.slides { height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;    /* 新增：隐藏的 slide 不接收点击 */
}
.slide.active {
  opacity: 1;
  pointer-events: auto;    /* 新增：只有激活的 slide 能点击 */
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.slide-content {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 720px;
  padding: 0 24px;
}
.slide-content h1 {
  font-size: 44px;
  margin-bottom: 18px;
  font-weight: 700;
}
.slide-content p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: .92;
}

/* 箭头 */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.25);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  font-size: 30px;
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s;
  z-index: 5;
}
.slide-arrow:hover { background: rgba(255,255,255,0.45); }
.slide-arrow.prev { left: 24px; }
.slide-arrow.next { right: 24px; }

/* 圆点 */
.slide-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slide-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background .2s;
}
.slide-dots span.active { background: #fff; }

/* ===== Button ===== */
.btn {
  display: inline-block;
  padding: 13px 34px;
  background: #fff;
  color: #1a3c6e;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn:hover { background: #f0f4fa; transform: translateY(-2px); }
.btn-dark {
  background: #1a3c6e;
  color: #fff;
}
.btn-dark:hover { background: #2c5f9e; }

/* ===== Section ===== */
.section { padding: 90px 0; }
.section-gray { background: #f7f9fc; }
.section-title {
  font-size: 34px;
  text-align: center;
  margin-bottom: 48px;
  color: #1a3c6e;
}

/* ===== About ===== */
.video-wrap {
  max-width: 900px;
  margin: 0 auto 48px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.video-wrap video { width: 100%; display: block; }

.about-text {
  max-width: 860px;
  margin: 0 auto 56px;
  text-align: center;
  color: #555;
  font-size: 16px;
}
.about-text p { margin-bottom: 16px; }

/* 照片墙 */
.photo-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.photo-wall img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform .3s;
}
.photo-wall img:hover { transform: scale(1.03); }

/* ===== Products ===== */
.product-category {
  font-size: 22px;
  color: #1a3c6e;
  margin: 40px 0 24px;
  padding-left: 14px;
  border-left: 4px solid #1a3c6e;
}
.product-category:first-of-type { margin-top: 0; }

.product-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: transform .3s, box-shadow .3s;
}
.product-wall img:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* ===== Certifications ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
}
.cert-grid img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 6px;
  padding: 12px;
  transition: transform .2s, box-shadow .2s;
}
.cert-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

@keyframes scrollCert {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Contact ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-form .form-group { margin-bottom: 18px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dde3ec;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1a3c6e;
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { width: 100%; padding: 16px; font-size: 16px; }

.contact-info {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.contact-info h3 {
  font-size: 20px;
  color: #1a3c6e;
  margin-bottom: 20px;
}
.contact-info ul { list-style: none; }
.contact-info li {
  margin-bottom: 18px;
  color: #555;
  font-size: 15px;
}
.contact-info strong { color: #1a3c6e; }

/* ===== Footer ===== */
.footer {
  background: #1a3c6e;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 28px 0;
  font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .photo-wall,
  .product-wall { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    gap: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .slide-content h1 { font-size: 28px; }
  .slide-content p { font-size: 16px; }
  .photo-wall,
  .product-wall { grid-template-columns: 1fr; }
  .cert-track img { height: 130px; }
  .cert-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
    }
  .cert-grid img { height: 100px; }
}
