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

/* ---------- 主视觉轮播 ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s linear;
}

.hero-slide.is-active .hero-slide-bg {
  transform: scale(1.15);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 46, 92, 0.35) 0%, rgba(10, 46, 92, 0.15) 50%, rgba(0, 102, 255, 0.1) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container);
  padding: 0 24px;
  color: var(--color-white);
}

.hero-slide-content .eyebrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--color-accent-2);
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease) 0.3s, transform 0.6s var(--ease) 0.3s;
}

.hero-slide-content h1 {
  font-size: 56px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  max-width: 760px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease) 0.45s, transform 0.7s var(--ease) 0.45s;
}

.hero-slide-content p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease) 0.6s, transform 0.7s var(--ease) 0.6s;
}

.hero-slide-content .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease) 0.75s, transform 0.7s var(--ease) 0.75s;
}

.hero-slide.is-active .hero-slide-content .eyebrow,
.hero-slide.is-active .hero-slide-content h1,
.hero-slide.is-active .hero-slide-content p,
.hero-slide.is-active .hero-slide-content .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

/* 轮播箭头 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all var(--transition);
  cursor: pointer;
}

.hero-arrow:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow-left { left: 32px; }
.hero-arrow-right { right: 32px; }

/* 圆点导航 */
.hero-dots {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.hero-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.hero-dot.is-active {
  width: 48px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-white);
  animation: dot-progress 5s linear;
  transform-origin: left;
}

@keyframes dot-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* 滚动提示 */
.hero-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.1em;
  z-index: 5;
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- 公司简介 ---------- */
.section-about {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.section-about::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.about-img-wrap:hover img {
  transform: scale(1.05);
}

.about-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  opacity: 0.3;
  pointer-events: none;
}

.about-stat {
  position: absolute;
  bottom: -32px;
  right: -20px;
  display: flex;
  gap: 32px;
  background: var(--color-white);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: var(--color-border);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stat-suffix {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 6px;
}

.about-content .eyebrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.about-title {
  font-size: 38px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-desc {
  color: var(--color-text-light);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 28px;
}

.about-points {
  margin-bottom: 36px;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--color-text);
}

.about-points svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  background: rgba(0, 102, 255, 0.1);
  border-radius: 50%;
  padding: 3px;
  margin-top: 1px;
}

/* ---------- 核心业务 ---------- */
.section-business {
  background: var(--color-bg);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.business-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  border: 1px solid var(--color-border);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.business-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.business-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.business-card:hover::before {
  transform: scaleX(1);
}

.business-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 198, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 24px;
  transition: all 0.4s var(--ease);
}

.business-card:hover .business-icon {
  background: var(--gradient-primary);
  color: var(--color-white);
  transform: rotate(-6deg) scale(1.05);
}

.business-icon svg {
  width: 30px;
  height: 30px;
}

.business-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.business-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.business-card .text-link {
  font-size: 13px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.business-card:hover .text-link {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- 产品推荐 ---------- */
.section-products {
  background: var(--color-white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.4s var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg);
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-cover img {
  transform: scale(1.08);
}

.product-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 46, 92, 0.3));
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .product-cover::after {
  opacity: 1;
}

.product-body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.product-body p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.product-body .text-link {
  align-self: flex-start;
}

/* ---------- 解决方案 ---------- */
.section-solutions {
  background: var(--color-bg);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.solution-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-primary);
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.solution-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease);
}

.solution-card:hover .solution-card-bg {
  transform: scale(1.08);
}

.solution-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 46, 92, 0.88) 0%, rgba(10, 46, 92, 0.5) 100%);
}

.solution-card-content {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-white);
}

.solution-card .industry-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 198, 255, 0.2);
  border: 1px solid rgba(0, 198, 255, 0.4);
  color: var(--color-accent-2);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.solution-card h3 {
  color: var(--color-white);
  font-size: 26px;
  margin-bottom: 12px;
}

.solution-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 20px;
}

.solution-card .text-link {
  color: var(--color-white);
  font-weight: 500;
}

.solution-card .text-link:hover {
  color: var(--color-accent-2);
  gap: 12px;
}

/* ---------- 新闻动态 ---------- */
.section-news {
  background: var(--color-white);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 48px;
}

.news-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s var(--ease);
}

.news-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateX(4px);
}

.news-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg);
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.news-item:hover .news-cover img {
  transform: scale(1.08);
}

.news-body {
  padding: 24px 28px 24px 0;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.news-body h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--color-primary);
  line-height: 1.5;
  transition: color var(--transition);
}

.news-item:hover .news-body h3 {
  color: var(--color-accent);
}

.news-body p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.news-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- 合作伙伴 ---------- */
.section-partners {
  background: var(--color-bg);
  overflow: hidden;
  padding-bottom: 80px;
}

.partner-track-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partner-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: partner-scroll 40s linear infinite;
}

.partner-track:hover {
  animation-play-state: paused;
}

@keyframes partner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partner-item {
  flex-shrink: 0;
  width: 180px;
  height: 80px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  font-weight: 600;
  color: var(--color-text-light);
  font-size: 15px;
}

.partner-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: var(--color-primary);
}

/* ---------- CTA 区域 ---------- */
.section-cta {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background: var(--color-primary);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.4), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 198, 255, 0.3), transparent 50%);
}

.cta-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-text h2 {
  color: var(--color-white);
  font-size: 36px;
  margin-bottom: 14px;
  line-height: 1.3;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ========================================
   响应式：平板
======================================== */
@media (max-width: 992px) {
  .hero-slide-content h1 { font-size: 42px; }
  .hero-slide-content p { font-size: 17px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .about-stat {
    right: 50%;
    transform: translateX(50%);
    bottom: -40px;
    gap: 24px;
    padding: 20px 24px;
  }

  .stat-num { font-size: 26px; }
  .stat-suffix { font-size: 20px; }

  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-text h2 { font-size: 28px; }

  .news-item {
    grid-template-columns: 220px 1fr;
  }
}

/* ========================================
   响应式：移动端
======================================== */
@media (max-width: 768px) {
  .hero { height: auto; min-height: 420px; max-height: 70vh; }
  .hero-slide-content h1 { font-size: 30px; }
  .hero-slide-content p { font-size: 15px; margin-bottom: 28px; }
  .hero-slide-content .eyebrow { font-size: 12px; margin-bottom: 14px; }
  .hero-actions .btn { width: 100%; }

  .hero-arrow { display: none; }
  .hero-dots { bottom: 80px; }

  .about-title { font-size: 26px; }
  .about-stat {
    gap: 18px;
    padding: 16px 20px;
    width: calc(100% - 40px);
  }
  .stat-item:not(:last-child)::after { right: -9px; height: 24px; }
  .stat-num { font-size: 22px; }
  .stat-suffix { font-size: 16px; }
  .stat-label { font-size: 11px; }

  .business-grid {
    grid-template-columns: 1fr;
  }

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

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .solution-card-content {
    padding: 24px;
  }

  .solution-card h3 { font-size: 20px; }
  .solution-card p { font-size: 14px; }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-body {
    padding: 20px 24px 24px;
  }

  .cta-text h2 { font-size: 22px; }
  .cta-text p { font-size: 14px; }
  .cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .cta-actions .btn { width: 100%; }

  .section-cta { padding: 64px 0; }

  .partner-item {
    width: 150px;
    height: 70px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero { min-height: 360px; }
  .hero-slide-content h1 { font-size: 24px; }
  .about-title { font-size: 22px; }
  .hero-dots { bottom: 72px; }
}
