/* ============================================
   首页样式
   ============================================ */

/* 主视觉 hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  padding-top: 68px;
  overflow: hidden;
}
/* 彩色三角群飞背景层（Three.js） */
.hero-flock-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-flock-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.hero-inner > * { min-width: 0; }
.hero-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800; line-height: 1.18; letter-spacing: .5px;
  margin-bottom: 18px;
  overflow-wrap: break-word; word-break: break-word;
}
html[lang="en"] .hero-title,
html[lang="ru"] .hero-title,
html[lang="ar"] .hero-title,
html[lang="es"] .hero-title {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: .2px;
}
.hero-title .accent {
  color: var(--brand-glow);
  background: linear-gradient(120deg, var(--brand), var(--brand-glow));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 17px; color: var(--text-hi); max-width: 520px; margin-bottom: 32px;
  opacity: 0.92;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap;
}
.hero-stat .num {
  font-size: 34px; font-weight: 700; color: var(--brand-glow);
  line-height: 1;
}
.hero-stat .num small {
  font-size: 0.55em; font-weight: 600; color: var(--brand-glow);
  margin-left: 2px; vertical-align: baseline;
  opacity: 0.85;
}
.hero-stat .label { font-size: 14px; color: var(--text-mid); margin-top: 8px; }

.hero-video-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 16/9;
  background: var(--bg-2);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.hero-video-wrap video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* 重点产品 */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.product-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text-hi);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px); border-color: var(--brand);
  box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(0,144,128,.35);
}
.product-card .thumb {
  aspect-ratio: 4/3; background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow: hidden;
}
.product-card .thumb img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: transform .4s ease;
}
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .info { padding: 18px 20px 22px; }
.product-card .info .cat {
  font-size: 12px; color: var(--brand-glow); letter-spacing: 1px; margin-bottom: 6px;
}
.product-card .info h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.product-card .info p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* 技术与制造 */
.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.tech-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.tech-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.tech-card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-dim); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--brand-glow);
}
.tech-card .icon svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.tech-card h3 { font-size: 18px; margin-bottom: 10px; }
.tech-card p { font-size: 15px; color: var(--text-mid); line-height: 1.7; }

/* 企业介绍双栏 */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.about-split .img-wrap {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4/3;
}
.about-split .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-split p { color: var(--text-mid); margin-bottom: 16px; }
.about-split .list { list-style: none; margin-top: 16px; }
.about-split .list li {
  padding: 10px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 10px; align-items: baseline;
  color: var(--text-mid); font-size: 15px;
}
.about-split .list li::before { content: "▸"; color: var(--brand); }

/* 合作联系 */
.contact-cta {
  background: linear-gradient(135deg, var(--brand-dim), transparent);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 48px; text-align: center;
}
.contact-cta h3 { font-size: 28px; margin-bottom: 12px; }
.contact-cta p { color: var(--text-mid); margin-bottom: 28px; }

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 80px; }
  .hero-desc { font-size: 16px; word-break: break-word; overflow-wrap: break-word; }
  .hero-title { word-break: break-word; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tech-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 20px; }
  .contact-cta { padding: 32px 20px; }
}
