/* ==========================================================
   布料易官网 首页样式 (index.css) - 现代化改版
   依赖 theme.css(设计token) + common.css(导航/footer/按钮/卡片)
   ========================================================== */

/* ==================== Hero ==================== */
.hero {
  position: relative;
  background: var(--brand-gradient);
  overflow: hidden;
  padding: 84px 0 96px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
}

.hero-blob-1 {
  width: 420px;
  height: 420px;
  background: #5cc1f9;
  top: -140px;
  right: -80px;
}

.hero-blob-2 {
  width: 320px;
  height: 320px;
  background: #ffffff;
  bottom: -120px;
  left: -60px;
  opacity: .12;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-left .hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  color: #dbe7ff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.hero-left h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 1px;
}

.hero-left .hero-sub {
  margin: 20px 0 32px;
  font-size: 17px;
  color: rgba(255, 255, 255, .85);
  line-height: 1.9;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-right {
  position: relative;
  flex: 0 0 46%;
  max-width: 540px;
}

.hero-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 24px 60px rgba(10, 25, 70, .35);
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-card img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-float {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 12px 32px rgba(10, 25, 70, .3);
}

.hero-float img {
  width: 110px;
  border-radius: 6px;
  display: block;
}

.hero-float-1 {
  top: -28px;
  right: -18px;
  animation: heroFloat 5s ease-in-out .6s infinite;
}

.hero-float-2 {
  bottom: -24px;
  left: -22px;
  animation: heroFloat 6.5s ease-in-out 1.2s infinite;
}

/* ==================== 痛点场景 ==================== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pain-card h3 {
  margin-top: 14px;
}

.pain-cta {
  text-align: center;
  margin-top: 44px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== 产品特点(3D层叠轮播) ==================== */
.feature-section {
  background: var(--bg-page);
  /* 3D 轮播两侧卡片会超出视口, 裁剪避免横向滚动(桌面端无溢出时视觉不变) */
  overflow-x: hidden;
  overflow-x: clip;
}

.page5-box {
  max-width: 900px;
  margin: 0 auto;
  perspective: 1200px;
}

.page5-list ul {
  position: relative;
  height: 380px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page5-list li {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  box-sizing: border-box;
  cursor: pointer;
  transition: all .5s ease;
}

.page5-list li img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

.page5-list li .page5-detail h3 {
  font-size: 17px;
  margin: 14px 0 6px;
}

.page5-list li .page5-detail p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* 中间主卡 */
.page5-list .page5-p3 {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 5;
  box-shadow: var(--shadow-hover);
}

/* 左右次卡 */
.page5-list .page5-p2,
.page5-list .page5-p4 {
  z-index: 3;
  opacity: .85;
}

.page5-list .page5-p2 { transform: translate(-50%, -50%) translateX(-240px) scale(.92) rotateY(14deg); }
.page5-list .page5-p4 { transform: translate(-50%, -50%) translateX(240px) scale(.92) rotateY(-14deg); }

/* 边缘卡 */
.page5-list .page5-p1,
.page5-list .page5-p5 {
  transform: translate(-50%, -50%) scale(.72);
  z-index: 1;
  opacity: .45;
}

.page5-list .page5-p1 { transform: translate(-50%, -50%) translateX(-430px) scale(.72) rotateY(24deg); }
.page5-list .page5-p5 { transform: translate(-50%, -50%) translateX(430px) scale(.72) rotateY(-24deg); }

/* ==================== 数据区 ==================== */
.stats {
  background: var(--brand-gradient);
  padding: 60px 0;
  text-align: center;
}

.stats .stats-title {
  color: rgba(255, 255, 255, .9);
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 40px;
}

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

.stat-item .num {
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.stat-item .stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}

/* ==================== 客户评价 ==================== */
.turntwo {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.turncon {
  position: relative;
  flex: 1;
  height: 260px;
}

.turncon > div {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(.9);
  transition: all .5s ease;
  pointer-events: none;
}

.turncon > div.t1 { opacity: 1; transform: scale(1); pointer-events: auto; }
.turncon > div.t2 { opacity: .35; transform: translateX(-70px) scale(.86); pointer-events: auto; }
.turncon > div.t3 { opacity: 0; transform: translateX(-140px) scale(.8); }
.turncon > div.t4 { opacity: .35; transform: translateX(70px) scale(.86); pointer-events: auto; }

.turn-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 36px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.turn-card .turn-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
}

.turn-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
  margin: 0;
}

.turnleft,
.turnright {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--brand);
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all .25s ease;
}

.turnleft:hover,
.turnright:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

/* ==================== 合作企业 ==================== */
.partner-section {
  background: var(--bg-page);
}

.comp-b {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.comp-b img {
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 14px;
  box-sizing: border-box;
  transition: all .3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.comp-b img.a1,
.comp-b img.a2,
.comp-b img.a3 {
  opacity: 1;
  transform: translateY(0);
}

.comp-b img.a1 { transition-delay: 0s; }
.comp-b img.a2 { transition-delay: .15s; }
.comp-b img.a3 { transition-delay: .3s; }

.comp-b img:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ==================== CTA 横幅 ==================== */
.cta-banner {
  padding: 64px 0;
  text-align: center;
}

.cta-inner {
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  color: #fff;
}

.cta-inner h2 {
  color: #fff;
  font-size: var(--fs-h2);
}

.cta-inner p {
  margin: 12px 0 28px;
  color: rgba(255, 255, 255, .85);
  font-size: var(--fs-body);
}

.cta-inner .btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.cta-inner .btn-primary:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .hero {
    padding: 60px 0 70px;
  }

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

  .hero-btns {
    justify-content: center;
  }

  .hero-right {
    flex: none;
    width: 80%;
    margin-top: 20px;
  }

  .hero-float-1 { right: -8px; }
  .hero-float-2 { left: -8px; }

  .pain-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

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

  .comp-b {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .hero-left h1 {
    font-size: 32px;
  }

  .hero-left .hero-sub {
    font-size: 15px;
  }

  .hero-right {
    width: 92%;
  }

  .hero-float img {
    width: 76px;
  }

  .page5-list ul {
    height: 300px;
  }

  .page5-list li {
    width: 220px;
    padding: 14px;
  }

  .page5-list .page5-p2 { transform: translate(-50%, -50%) translateX(-150px) scale(.9) rotateY(14deg); }
  .page5-list .page5-p4 { transform: translate(-50%, -50%) translateX(150px) scale(.9) rotateY(-14deg); }
  .page5-list .page5-p1 { transform: translate(-50%, -50%) translateX(-280px) scale(.7) rotateY(24deg); }
  .page5-list .page5-p5 { transform: translate(-50%, -50%) translateX(280px) scale(.7) rotateY(-24deg); }

  .stats .stats-title {
    font-size: 22px;
  }

  .stat-item .num {
    font-size: 34px;
  }

  .turncon {
    height: 300px;
  }

  .turncon > div.t2 { transform: none; opacity: 0; pointer-events: none; }
  .turncon > div.t4 { transform: none; opacity: 0; pointer-events: none; }

  .turn-card {
    padding: 24px;
  }

  .turn-card p {
    font-size: 14px;
  }

  .turnleft,
  .turnright {
    flex: 0 0 36px;
    height: 36px;
    font-size: 20px;
  }

  .comp-b {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
