/* 基础设置 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center bottom;
}

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: #f5f7fb;
  color: #1f2937;
  line-height: 1.8;
}

/* 颜色规范（参考说明）
   主色：科技蓝 #0071E3
   金属银：#E5E7EB
   深灰：#1F2937
   辅助橙：#FF9500
*/

/* 顶部导航 */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  color: #0071e3;
  letter-spacing: 0.06em;
}

.nav a {
  margin-left: 28px;
  text-decoration: none;
  font-size: 14px;
  color: #374151;
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #0071e3, #ff9500);
  transition: width 0.25s ease;
}

.nav a:hover {
  color: #0071e3;
}

.nav a:hover::after {
  width: 100%;
}

/* Hero 公司介绍主标题区 */
.hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 90px 28px 70px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: 34px;
  line-height: 1.35;
  margin: 0 0 20px;
  color: #0f172a;
}

.hero-text {
  font-size: 16px;
  color: #4b5563;
  margin: 0 0 14px;
}

/* 通用 section */
.section {
  padding: 0px 0 90px;
}

.section-inner {
  max-width: 1320px;
  margin: 0 auto;
  margin-top: 40px;
  padding: 0 28px;
}

/* 公司介绍 section 布局 */
.section--company .section-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-main {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 40px;
  align-items: flex-start;
}

.section-text {
  font-size: 16px;
  color: #374151;
  margin: 0 0 16px;
}

/* 辅助亮点列表 */
.highlight-block {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 20px 22px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.highlight-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
}

.highlight-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: #374151;
}

.highlight-list li {
  margin-bottom: 6px;
}

/* 核心技术展示图三联 */
.tech-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* 宽图 */
.section-inner--gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* 图片卡片（占位 + 动效 + hover 参数） */
.img-card {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e7eb, #f9fafb);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
}

/* 宽图高度略大 */
.img-card--wide {
  min-height: 660px;
}

/* Hero 右侧品牌图略高 */
/* .hero-visual {
  min-height: 260px;
} */

.img-card {
  position: relative;
}

.img-card img {
  position: absolute;
  inset: 0;
}

/* 呼吸光动效背景（伪线条 + 光晕） */
.img-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 10% 0%,
      rgba(0, 113, 227, 0.15),
      transparent 60%
    ),
    radial-gradient(
      circle at 90% 100%,
      rgba(255, 149, 0, 0.15),
      transparent 55%
    );
  opacity: 0.9;
  animation: breathe 4.5s ease-in-out infinite;
}

/* 细线流动（轻微科技感） */
.img-card::after {
  content: "";
  position: absolute;
  inset: 15px 5%;
  border-radius: 12px;
  background-image: linear-gradient(
    120deg,
    rgba(148, 163, 184, 0.35) 1px,
    transparent 1px
  );
  background-size: 16px 100%;
  mix-blend-mode: multiply;
  opacity: 0.4;
  animation: move-lines 7s linear infinite;
}

/* 占位文本层 */
.img-label {
  position: relative;
  z-index: 1;
  padding: 18px 22px;
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
}

/* hover 覆盖层，展示技术参数说明 */
.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(15, 23, 42, 0.08),
    rgba(15, 23, 42, 0.72)
  );
  color: #f9fafb;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.img-card:hover .img-overlay {
  opacity: 1;
}

.overlay-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.overlay-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

/* 公司产品区 */
.section--products {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-size: 26px;
  color: #0f172a;
  margin: 0 0 10px;
}

.section-subtitle {
  margin: 0;
  font-size: 16px;
  color: #4b5563;
}

/* 单个产品块 */
.product {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 3.2fr);
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
}

.product--reverse {
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.2fr);
}

.product-media {
  height: 280px;
  min-width: 0;
}

.product-content {
  min-width: 0;
}

/* 产品卡片 hover 轻微浮起 */
.product .img-card {
  height: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product .img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

/* 产品文本部分 */
.product-title {
  margin: 0 0 6px;
  font-size: 20px;
  color: #111827;
}

.product-tag {
  margin: 0 0 16px;
  font-size: 14px;
  color: #6b7280;
}

.product-block {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.product-block-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #0f172a;
}

.product-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: #374151;
}

.product-list li {
  margin-bottom: 6px;
}

.product-value {
  margin: 0;
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
}

/* 技术图表 + 专利图 */
.data-and-patent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
  height: 350px;
}

/* 页脚 */
.footer {
  border-top: 1px solid #e5e7eb;
  background: #f3f4f6;
  padding: 24px 0;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}

.footer-link {
  margin-left: 10px;
  text-decoration: none;
  color: #7d8492;
}

/* 动画 keyframes */
@keyframes breathe {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
}

@keyframes move-lines {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-16px);
  }
}

/* 简单 PC 下的最小响应适配（宽度略小时栅格堆叠） */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .section-main {
    grid-template-columns: 1fr;
  }

  .tech-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .product,
  .product--reverse {
    grid-template-columns: 1fr;
  }

  .data-and-patent {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

/* ========== 移动端 ========== */
@media (max-width: 768px) {
  .product-media {
    height: 200px;
  }
  .tech-gallery {
    grid-template-columns: 1fr;
  }

  .img-card {
    min-height: 200px;
  }

  .header-inner {
    padding: 12px 20px;
  }

  /* 隐藏 PC 导航，显示汉堡按钮 */
  .nav {
    display: none;
    position: absolute;
    top: 60px; /* 导航栏高度 */
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    width: 180px;
    flex-direction: column;
    padding: 12px 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 8px 8px;
  }

  .nav a {
    margin: 0;
    padding: 10px 18px;
    font-size: 15px;
  }

  .nav a::after {
    display: none;
  }

  /* 汉堡按钮 */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 26px;
    cursor: pointer;
    gap: 5px;
  }

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

  /* 菜单展开状态 */
  .menu-open .nav {
    display: flex !important;
  }

  /* 汉堡 → X 动画 */
  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}