/*
  5Gor6G 全局样式 - Gutenberg Block Patterns 专用
  与首页 mu-plugin 风格完全一致
  Google Font 已由 WordPress enqueue 加载
*/

/* ── 全局变量 ── */
:root {
  --bp: #4268c1;
  --bd: #1e3a8a;
  --bl: #93c5fd;
  --wh: #fff;
  --ow: #f8f9fa;
  --gl: #e1e5eb;
  --gt: #69727d;
  --dg: #1f2124;
}

/* ── 全局字体与颜色 ── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* ── Section 通用间距 ── */
.section-wrapper {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* ── Section 标题区块 ── */
.section-wrapper .section-label {
  display: inline-block;
  background: rgba(66,104,193,.1);
  color: var(--bp);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* ── 品牌墙 Logo ── */
.brand-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  height: 90px;
  border: 1px solid var(--gl);
  border-radius: 6px;
  background: #fff;
  transition: all .3s ease;
}
.brand-logo-wrapper:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border-color: var(--bp);
}
.brand-logo-wrapper img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

/* ── 统计卡片 ── */
.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--gl);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transition: all .3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.16);
  border-color: var(--bp);
}

/* ── 产品卡片 ── */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gl);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: all .3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0,0,0,.16);
  border-color: transparent;
}
.product-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg,#e8edf5,#d4dff0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

/* ── 评价卡片 ── */
.review-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border: 1px solid var(--gl);
  transition: all .3s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.16);
  border-color: transparent;
}

/* ── 特色图标圆圈 ── */
.feature-icon-circle {
  width: 24px;
  height: 24px;
  background: rgba(66,104,193,.12);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--bp);
  flex-shrink: 0;
}

/* ── 响应式 ── */
@media (max-width: 1024px) {
  .section-wrapper {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  /* 4列→2列 */
  .wp-block-columns[style*="repeat(4,1fr)"],
  .wp-block-columns:has(.brand-logo-wrapper) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* 3列→2列 */
  .wp-block-columns[style*="repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* 2列→1列（About） */
  .wp-block-columns[style*="1fr 1fr"][style*="gap:80px"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

@media (max-width: 768px) {
  .section-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .wp-block-columns[style*="repeat(4,1fr)"],
  .wp-block-columns[style*="repeat(3,1fr)"],
  .wp-block-columns[style*="repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* 品牌墙3列 */
  .brand-logo-wrapper {
    height: 70px;
  }
  /* About Section 2列→1列 */
  .wp-block-columns[style*="gap:80px"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* About badge 归位 */
  .about-badge {
    bottom: -16px !important;
    right: -16px !important;
  }
  /* Feature grid 2列→1列 */
  .feature-grid {
    grid-template-columns: 1fr !important;
  }
  /* CTA buttons */
  .wp-block-buttons {
    flex-direction: column !important;
    align-items: center !important;
  }
  .wp-block-buttons .wp-block-button {
    width: 100%;
  }
  .wp-block-buttons .wp-block-button a {
    display: block !important;
    text-align: center !important;
  }
}

/* ── 滚动动画（可选） ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-card,
.product-card,
.review-card {
  opacity: 0;
  animation: fadeInUp .6s ease-out forwards;
}
.stat-card:nth-child(1) { animation-delay: .1s; }
.stat-card:nth-child(2) { animation-delay: .2s; }
.stat-card:nth-child(3) { animation-delay: .3s; }
.stat-card:nth-child(4) { animation-delay: .4s; }
