/* =========================================================
   Default 1.0.0 — home.css（P2-⑧ 拆分，由 theme.css/theme.js 抽出）
   仅本页面加载；核心共享样式仍由 layouts/theme.liquid head 加载 theme.css/theme.js
   ========================================================= */

/* ===== HomePage.astro HomePage CSS（L443-771）===== */
.hero {
  position: relative;
  height: 560px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(45, 45, 45, 0.7) 100%);
  z-index: 1;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(201, 169, 97, 0.15) 0%, transparent 50%);
  z-index: 2;
}
/* H-1 Hero 图片背景支持 */
.hero-has-image::before {
  display: none;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-image-mobile {
  display: none;
}
@media (max-width: 768px) {
  .hero-image-desktop {
    display: none;
  }
  .hero-image-mobile.hero-image {
    display: block;
  }
  /* 未配置移动端图时回退到桌面图 */
  .hero-has-image:not(:has(.hero-image-mobile)) .hero-image-desktop {
    display: block;
  }
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding: 0 24px;
}
.hero-subtitle {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
}

/* ===== 首页富文本 §2.2 ===== */
.rich-text-section {
  text-align: center;
}
/* 限定首页 section 富文本容器限宽居中,避免影响商品描述/文章/页面/分类描述等位置 */
.rich-text-section .rich-text-content {
  max-width: 720px;
  margin: 0 auto;
}
.rich-text-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ===== Coming Soon §2.5 ===== */
.coming-soon-card {
  cursor: default;
  opacity: 0.7;
  transition: var(--transition);
}
.coming-soon-card:hover {
  opacity: 1;
}
.coming-soon-card:hover img {
  transform: none;
}

/* ===== 信任组件 §13.2 ===== */
.trust-section {
  background: var(--color-bg-alt);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-item {
  text-align: center;
}
.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-radius: 50%;
  color: var(--color-accent);
}
.trust-icon svg {
  width: 28px;
  height: 28px;
}
.trust-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.trust-item p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== H-6 媒体报道 Logo 墙 ===== */
.press-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}
.press-title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  margin: 0 0 24px;
}
.press-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
}
.press-logo {
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.press-logo:hover {
  opacity: 1;
}

/* ===== H-6 Instagram 图片网格 ===== */
.instagram-section {
  padding: 64px 0;
  background: var(--color-bg-alt);
}
.instagram-header {
  text-align: center;
  margin-bottom: 32px;
}
.instagram-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}
.instagram-handle {
  font-size: 14px;
  color: var(--color-accent);
  text-decoration: none;
}
.instagram-handle:hover {
  text-decoration: underline;
}
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.instagram-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-border);
}
.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.instagram-item:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

/* ===== 图文混排 §2.8 ===== */
.image-text-section {
  padding: 80px 0;
}
.image-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.image-text-image {
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  overflow: hidden;
  border-radius: 4px;
}
.image-text-content h2 {
  margin-bottom: 16px;
}

/* ===== 图文列 §2.9 ===== */
.text-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.text-column {
  text-align: center;
  padding: 24px;
}
.text-column-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
}
.text-column-icon svg {
  width: 24px;
  height: 24px;
}
.text-column h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.text-column p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ===== 邮件订阅 §2.10 ===== */
.subscribe-section {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.subscribe-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.subscribe-section p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}
.subscribe-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
}
.subscribe-form input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}
.subscribe-form button {
  padding: 16px 32px;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.subscribe-form button:hover {
  background: var(--color-accent-dark);
}

/* ===== P1-3 订阅表单反馈消息 ===== */
.subscribe-feedback {
  max-width: 480px;
  margin: 16px auto 0;
  font-size: 14px;
  min-height: 20px;
  text-align: center;
  transition: opacity 0.2s;
}
.subscribe-feedback-success {
  color: #4ade80;
}
.subscribe-feedback-error {
  color: #f87171;
}

/* ===== P1-2 客户评价区块 ===== */
.testimonials-section {
  padding: 80px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 24px;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.testimonial-product {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* 首页响应式 */
@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .press-logos {
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .hero {
    height: 480px;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-desc {
    font-size: 16px;
  }
  .subscribe-form {
    flex-direction: column;
    gap: 12px;
  }
  .subscribe-form button {
    width: 100%;
  }
  .image-text-grid {
    grid-template-columns: 1fr;
  }
  .text-columns-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .press-logos {
    gap: 24px;
  }
  .press-logo {
    font-size: 18px;
  }
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

