/* ========================================
   首页专属样式
   ======================================== */

/* --- Hero Section (左右分栏) --- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(245, 208, 32, 0.07), transparent 45%),
    radial-gradient(ellipse at 85% 5%, rgba(0, 113, 227, 0.05), transparent 45%),
    #f5f5f7;
  padding: 170px 0 110px;
  overflow: hidden;
}

/* 点阵纹理 */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(29, 29, 31, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 1;
}

/* 顶部柔和光晕 */
.hero::before {
  content: '';
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 65%);
  pointer-events: none;
}

/* 分栏网格 */
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
}

/* 视频展示面板 */
.hero-showcase {
  position: relative;
  z-index: 2;
}

.hero-video-frame {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.18),
    0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.2);
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: #0071e3;
  margin-bottom: 28px;
  padding: 9px 18px;
  border: 1px solid rgba(0, 113, 227, 0.25);
  border-radius: 980px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.18;
  margin-bottom: 30px;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #1d1d1f;
}

.hero-title .text-yellow {
  color: #c8901a;
}

/* 打字机光标 */
.type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: #c8901a;
  margin-left: 8px;
  vertical-align: baseline;
  transform: translateY(0.08em);
  opacity: 0;
}

.type-cursor.active {
  animation: cursorBlink 0.9s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 2;
  color: #6e6e73;
  margin-bottom: 48px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
}

.hero-actions .btn-outline {
  border-color: rgba(29, 29, 31, 0.3);
  color: #1d1d1f;
}

.hero-actions .btn-outline:hover {
  border-color: #1d1d1f;
  background: rgba(29, 29, 31, 0.05);
  box-shadow: none;
}

.hero-scroll-hint {
  position: relative;
  z-index: 2;
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, #c8901a, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* --- 文字沿路径流动 --- */
.hero-textflow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.flow-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.32em;
  fill: rgba(29, 29, 31, 0.14);
}

.flow-text-2 {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.4em;
  fill: rgba(200, 144, 26, 0.22);
}

/* --- Stats Section --- */
.stats-section {
  padding: 80px 0;
  border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: #e2e8f0;
}

.stat-number {
  font-size: clamp(3rem, 4.5vw, 4.2rem);
  font-weight: 300;
  color: #d4a80e;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.4rem;
  color: #d4a80e;
  font-weight: 400;
}

.stat-label {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  color: #6b7280;
  letter-spacing: 0.05em;
}

/* --- Solutions Section --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.solution-card {
  background: #ffffff;
  border: 1px solid #eef1f4;
  border-radius: 6px;
  padding: 48px 36px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-yellow);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.solution-card:hover {
  border-color: rgba(0, 144, 179, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.solution-card:hover::before {
  opacity: 1;
}

.solution-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: #0090b3;
}

.solution-icon svg {
  width: 100%;
  height: 100%;
}

.solution-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.solution-card p {
  font-size: 0.92rem;
  margin-bottom: 24px;
  line-height: 1.7;
  color: #4a5568;
}

.solution-card .btn-ghost {
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #d4a80e;
}

/* --- Products Section --- */
.products-section {
  border-top: 1px solid #e2e8f0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #eef1f4;
  border-radius: 6px;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.product-card:hover {
  border-color: rgba(0, 144, 179, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.product-image {
  height: 220px;
  background: linear-gradient(135deg, #f0f4f8, #e8ecf0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 208, 32, 0.15), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.product-placeholder {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 700;
  color: #a0aec0;
  letter-spacing: 2px;
}

.product-info {
  padding: 30px;
}

.product-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 12px;
  background: rgba(0, 144, 179, 0.08);
  color: #0090b3;
  border-radius: 2px;
  margin-bottom: 14px;
}

.product-info h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #1a1a2e;
}

.product-info p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: #4a5568;
}

.product-info .btn-ghost {
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #d4a80e;
}

/* --- Trust Section --- */
.trust-logos {
  overflow: hidden;
  margin-bottom: 60px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
  display: flex;
  gap: 60px;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.logo-item {
  flex-shrink: 0;
  width: 160px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #a0aec0;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-quote {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.trust-quote blockquote {
  font-size: 1.2rem;
  line-height: 2;
  color: #1a1a2e;
  font-style: italic;
  margin-bottom: 20px;
}

.trust-quote cite {
  font-size: 0.9rem;
  color: #718096;
  font-style: normal;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 208, 32, 0.06), transparent 70%);
  animation: ctaBreathe 4s ease-in-out infinite;
}

@keyframes ctaBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  margin-bottom: 20px;
}

.cta-content p {
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1.1rem;
}

/* CTA按钮液滴动效 */
.btn-drip {
  position: relative;
}

.btn-drip::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 8px;
  height: 10px;
  background: var(--brand-yellow);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0;
}

.btn-drip:hover::before {
  animation: dripFall 0.6s ease-in forwards;
}

@keyframes dripFall {
  0% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
  70% { transform: translateX(-50%) translateY(-14px) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) translateY(4px) scale(0.6); opacity: 0; }
}

/* --- 液滴曲线分隔 --- */
.liquid-divider {
  background: #ffffff;
  line-height: 0;
  margin-top: -1px;
}

.liquid-divider svg {
  width: 100%;
  height: 40px;
  display: block;
}

.liquid-divider-white {
  background: #ffffff;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .hero {
    padding: 150px 0 70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-desc br {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-video-frame {
    border-radius: 16px;
  }

  .hero-scroll-hint {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

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

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

  .trust-quote blockquote br {
    display: none;
  }
}
