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

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

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

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

/* 顶部导航 */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #1a5fb4;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: 6px;
}

/* 汉堡菜单按钮 - 默认桌面端隐藏 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #1a5fb4;
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav a {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 16px;
  color: #555;
  transition: all 0.25s;
}

.nav a:hover,
.nav a.active {
  background: #1a5fb4;
  color: #fff;
}

/* 轮播图 */
.carousel {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  background: #1a5fb4;
}

.carousel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.carousel-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.carousel-text h2 {
  font-size: 42px;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.carousel-text p {
  font-size: 20px;
  opacity: 0.95;
}

.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: #fff;
  width: 32px;
  border-radius: 6px;
}

/* 页面主体 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  color: #222;
  margin-bottom: 10px;
}

.section-title .line {
  width: 60px;
  height: 3px;
  background: #1a5fb4;
  margin: 0 auto;
}

/* 关于我们 */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.about-img {
  width: 100%;
  height: 340px;
  background: linear-gradient(135deg, #1a5fb4, #4a90d9);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h3 {
  font-size: 28px;
  color: #222;
  margin-bottom: 20px;
}

.about-text p {
  color: #666;
  font-size: 16px;
}

/* 特色 */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  padding: 32px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(26, 95, 180, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e7f0fb;
  color: #1a5fb4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  font-weight: 700;
}

.feature-thumb {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 10;
  padding: 0;
  margin: 0 auto 16px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f6f8;
  cursor: zoom-in;
}

.feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.feature-thumb:hover img {
  transform: scale(1.03);
}

.feature-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #222;
}

.feature-card p {
  font-size: 14px;
  color: #888;
}

/* 底部 */
.footer {
  background: #1e2a3a;
  color: #aab4c2;
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
}

/* ---------- 图片悬浮放大遮罩 ---------- */
.img-zoom {
  cursor: zoom-in;
  transition: transform 0.3s;
}

.img-zoom:hover {
  transform: scale(1.02);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.show {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border: none;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: rotate(90deg);
  background: #fff;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox.has-gallery .lightbox-stage {
  max-width: calc(100vw - 200px);
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: #1a5fb4;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s, transform 0.2s;
}

.lightbox.has-gallery .lightbox-nav {
  display: flex;
}

.lightbox-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }

/* ---------- 产品页 ---------- */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

.product-catalog {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  align-self: start;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.catalog-group {
  margin-bottom: 16px;
}

/* 第一级：根标题"产品分类" —— 字号最大、加粗、不可点击 */
.product-catalog > .catalog-group-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a2a3a;
  padding: 6px 12px 12px;
  margin-bottom: 8px;
  border-bottom: 2px solid #1a5fb4;
  cursor: default;
  background: transparent;
  letter-spacing: 1px;
}

/* 第二级：大类标题 —— 字号中等、加粗、可点击 */
.catalog-cat {
  margin-bottom: 4px;
}

.catalog-cat-title {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #1a5fb4;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.catalog-cat-title:hover {
  background: #f0f6fd;
}

.catalog-cat-title.open {
  background: #e7f0fb;
}

.catalog-cat-title .cat-arrow {
  font-size: 10px;
  color: #1a5fb4;
  margin-right: 8px;
  transition: transform 0.2s;
  width: 12px;
  text-align: center;
}

.catalog-cat-title .cat-name {
  flex: 1;
}

/* 第三级：产品列表 —— 字号最小、不加粗、缩进 */
.catalog-products {
  padding-left: 24px;
  margin: 4px 0 8px;
}

.catalog-item {
  padding: 8px 12px;
  margin: 2px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.catalog-item:hover {
  background: #f0f6fd;
  color: #1a5fb4;
  border-left-color: #4a90d9;
}

.catalog-item.active {
  background: #1a5fb4;
  color: #fff;
  border-left-color: #1a5fb4;
}

.product-detail {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.product-detail h2 {
  font-size: 26px;
  color: #222;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.product-detail-img {
  width: 100%;
  height: 360px;
  background: #f4f6f8;
  border: 1px solid #e7ebf0;
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
  margin: -12px 0 24px;
}

.image-thumbnail {
  height: 72px;
  padding: 4px;
  border: 2px solid #e7ebf0;
  border-radius: 8px;
  background: #f4f6f8;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.image-thumbnail:hover,
.image-thumbnail.active {
  border-color: #1a5fb4;
  box-shadow: 0 0 0 2px rgba(26, 95, 180, 0.1);
}

.image-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-img .img-zoom:hover,
.case-img .img-zoom:hover {
  transform: none;
}

.product-specs {
  background: #f7f9fc;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 15px;
  color: #444;
  margin-bottom: 20px;
  border-left: 3px solid #1a5fb4;
}

.product-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.9;
}

.product-empty {
  text-align: center;
  padding: 80px 20px;
  color: #aaa;
}

/* ---------- 案例页 ---------- */
.case-item {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  align-items: center;
}

.case-img {
  width: 100%;
  height: 240px;
  background: #f4f6f8;
  border: 1px solid #e7ebf0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-thumbnails {
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  margin: 10px 0 0;
}

.case-thumbnails .image-thumbnail {
  height: 58px;
}

.case-info h3 {
  font-size: 22px;
  color: #222;
  margin-bottom: 12px;
}

.case-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 14px;
}

.case-meta span {
  margin-right: 20px;
}

.case-info p {
  color: #555;
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- 联系页 ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: #fff;
  padding: 36px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.contact-info-card h3 {
  font-size: 22px;
  color: #222;
  margin-bottom: 24px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 15px;
}

.contact-row .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e7f0fb;
  color: #1a5fb4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  font-size: 18px;
}

.contact-row .label {
  color: #888;
  font-size: 13px;
}

.contact-row .value {
  color: #333;
  font-weight: 500;
}

.contact-form-card {
  background: #fff;
  padding: 36px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.contact-form-card h3 {
  font-size: 22px;
  color: #222;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a5fb4;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  background: #1a5fb4;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: #144a8f;
}

.btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 900px) {
  .about, .contact-layout {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-layout {
    grid-template-columns: 1fr;
  }
  .product-catalog {
    position: static;
    max-height: none;
  }
  .case-item {
    grid-template-columns: 1fr;
  }
  .carousel-text h2 {
    font-size: 28px;
  }
}

/* ===== 移动端优化（<768px） ===== */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    height: 60px;
  }
  .logo {
    font-size: 18px;
  }

  /* 汉堡按钮 */
  .menu-toggle {
    display: flex !important;
  }
  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.open {
    max-height: 320px;
  }
  .nav a {
    padding: 14px 20px;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  /* 轮播图 */
  .carousel {
    height: 260px;
  }
  .carousel-text h2 {
    font-size: 22px;
  }
  .carousel-text p {
    font-size: 14px;
  }

  /* 容器与标题 */
  .container {
    padding: 32px 16px;
  }
  .section-title {
    margin-bottom: 28px;
  }
  .section-title h2 {
    font-size: 24px;
  }

  /* 关于我们 */
  .about {
    gap: 24px;
    margin-bottom: 40px;
  }
  .about-img {
    height: 200px;
  }
  .about-text h3 {
    font-size: 22px;
  }
  .about-text p {
    font-size: 15px;
  }

  /* 核心优势 */
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .feature-card {
    padding: 20px 12px;
  }
  .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .feature-card h4 {
    font-size: 16px;
  }
  .feature-card p {
    font-size: 13px;
  }
  .feature-thumb {
    margin-bottom: 12px;
  }

  /* 产品页 */
  .products-layout {
    gap: 16px;
  }
  .product-catalog {
    padding: 12px;
  }
  .product-detail {
    padding: 20px 16px;
  }
  .product-detail h2 {
    font-size: 20px;
  }
  .product-detail-img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .image-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
  }
  .image-thumbnail {
    height: 64px;
  }

  /* 案例页 */
  .case-item {
    padding: 16px;
    gap: 16px;
  }
  .case-img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .case-thumbnails .image-thumbnail {
    height: 56px;
  }
  .case-info h3 {
    font-size: 18px;
  }
  .case-meta span {
    display: block;
    margin-right: 0;
    margin-bottom: 4px;
  }

  /* 联系页 */
  .contact-layout {
    gap: 20px;
  }
  .contact-info-card,
  .contact-form-card {
    padding: 20px;
  }
  .contact-info-card h3,
  .contact-form-card h3 {
    font-size: 18px;
  }

  /* lightbox 移动端 */
  .lightbox {
    padding: 20px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
  .lightbox.has-gallery .lightbox-stage {
    max-width: calc(100vw - 40px);
  }
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  /* 页脚 */
  .footer {
    padding: 24px 16px;
    font-size: 13px;
  }
}

/* 小屏手机（<480px） */
@media (max-width: 480px) {
  .features {
    grid-template-columns: 1fr;
  }
  .carousel-text h2 {
    font-size: 18px;
  }
  .carousel {
    height: 220px;
  }
}
