/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  color: #333;
  line-height: 1.7;
  background: #f8f9fa;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1, h2, h3, p {
  margin: 0 0 0.75rem;
}

/* 容器 */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* 顶部导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a56db;
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1a56db, #0ea5e9);
  color: #fff;
  border-radius: 8px;
  font-size: 0.95rem;
  letter-spacing: 1px;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 0.95rem;
  color: #4b5563;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #1a56db;
  transition: width 0.25s;
}
.main-nav a:hover {
  color: #1a56db;
}
.main-nav a:hover::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #1a56db;
  cursor: pointer;
}

/* 首页 Banner 轮播 */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background: #1a56db center/cover no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 6s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(26,86,219,0.82), rgba(14,165,233,0.72));
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hero p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  max-width: 720px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn-primary {
  background: #fff;
  color: #1a56db;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.9);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

/* 通用版块 */
.section {
  padding: 80px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: 2rem;
  color: #111827;
  margin-bottom: 6px;
}
.section-head p {
  color: #9ca3af;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* 关于我们 */
.about {
  background: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
}
.about-text p {
  color: #4b5563;
  margin-bottom: 1rem;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  padding: 0;
  margin-top: 1.25rem;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  color: #374151;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1a56db;
  font-weight: 700;
}
.about-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  background: #f3f4f6;
}
.about-media img {
  width: 100%;
  object-fit: cover;
}

/* 产品中心 */
.products {
  background: #f8f9fa;
}
.product-category {
  margin-bottom: 64px;
}
.product-category:last-child {
  margin-bottom: 0;
}
.product-category > h3 {
  font-size: 1.35rem;
  color: #1f2937;
  margin-bottom: 28px;
  padding-left: 16px;
  border-left: 4px solid #1a56db;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}
.product-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  padding: 20px;
}
.product-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
.product-body {
  padding: 22px;
}
.product-body h3 {
  font-size: 1.15rem;
  color: #111827;
  margin-bottom: 8px;
}
.product-body p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 联系我们 */
.contact {
  background: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-info {
  padding: 32px;
  background: #f8f9fa;
  border-radius: 16px;
}
.contact-info h3 {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 18px;
}
.contact-info p {
  color: #4b5563;
  margin-bottom: 10px;
}
.contact-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #9ca3af;
}

/* 页脚 */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 28px;
  font-size: 0.9rem;
}
.footer-inner {
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.footer-beian {
  line-height: 2;
  margin-bottom: 16px;
}
.footer-beian p {
  margin: 0;
}
.police-icon {
  margin-right: 4px;
}
.footer-note {
  color: #64748b;
  font-size: 0.8rem;
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-caption {
  color: #e2e8f0;
  margin-top: 16px;
  font-size: 1rem;
}

/* 响应式 */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-media {
    order: -1;
  }
}
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 12px 0 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transform: translateY(-150%);
    transition: transform 0.3s;
  }
  .main-nav.open {
    transform: translateY(0);
  }
  .main-nav a {
    padding: 12px 0;
    width: 100%;
    text-align: center;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    min-height: 520px;
    padding-top: 100px;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
  .product-category > h3 {
    font-size: 1.2rem;
    margin-bottom: 22px;
  }
}
