/**
 * @file
 * 火彩商城 - 茶园详情页面样式
 * 与茶园列表页风格统一的浅色卡片设计
 */

/* ========== 页面容器 ========== */
body.layout-tea-garden-detail {
  background: #F5F5F7 !important;
}

.layout-tea-garden-detail {
  background: #F5F5F7 !important;
  min-height: 100vh;
}

.site-main-tea-garden-detail {
  padding: 136px 16px 80px 16px;
}

@media (min-width: 768px) {
  .site-main-tea-garden-detail {
    padding: 136px 0 80px 0;
  }
}

/* ========== Hero Section ========== */
.garden-detail-hero {
  margin-bottom: 24px;
}

/* ========== 视频卡片样式 ========== */
.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 视频加载指示器 */
.video-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10;
  transition: opacity 0.3s ease;
}

.video-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: video-spin 0.8s linear infinite;
}

@keyframes video-spin {
  to {
    transform: rotate(360deg);
  }
}

.video-loading-text {
  margin-top: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* 移动端优化 */
@media (max-width: 767px) {
  .video-spinner {
    width: 36px;
    height: 36px;
    border-width: 3px;
  }

  .video-loading-text {
    font-size: 12px;
    margin-top: 12px;
  }
}

/* ========== 容器 ========== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* ========== Statement Section ========== */
.garden-statement {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
}

/* ========== 茶园概述卡片 ========== */
.garden-overview {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  margin: 0 auto 24px auto;
  max-width: 800px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-title-overview {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: #1D1D1F;
}

.overview-content {
  color: #1D1D1F;
  line-height: 1.7;
  font-size: 16px;
}

.overview-content p {
  margin-bottom: 16px;
}

.overview-content h2,
.overview-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #1D1D1F;
}

.overview-content h2 {
  font-size: 20px;
}

.overview-content h3 {
  font-size: 18px;
}

.overview-content ul,
.overview-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.overview-content li {
  margin-bottom: 8px;
}

.overview-content strong {
  font-weight: 600;
  color: #1D1D1F;
}

/* ========== 代表作产品卡片 - 与其他卡片样式统一 ========== */
.garden-representative {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  margin: 0 auto 24px auto;
  max-width: 800px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.garden-representative h2 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: #1D1D1F;
}

/* 相关产品网格 - 与产品详情页一致 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.related-card {
  display: block;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.related-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #F5F5F7 0%, #E8E8ED 100%);
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card-image-wrapper img {
  transform: scale(1.05);
}

.related-info {
  padding: 12px;
}

.related-title {
  font-size: 13px;
  font-weight: 600;
  color: #1D1D1F;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  text-align: left;
}

.related-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.related-price {
  font-size: 15px;
  font-weight: 600;
  color: #1D1D1F;
}

.related-original-price {
  font-size: 13px;
  font-weight: 400;
  color: #86868B;
  text-decoration: line-through;
}

.related-placeholder-icon {
  width: 48px;
  height: 48px;
  color: #C0C0C0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* ========== 保留旧样式以兼容 ========== */

.statement-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: #1D1D1F;
}

.statement-text {
  font-size: clamp(14px, 2.5vw, 18px);
  line-height: 1.6;
  color: #6E6E73;
}

/* ========== Feature Section ========== */
.garden-features {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: #1D1D1F;
}

.section-subtitle {
  font-size: clamp(13px, 2.5vw, 16px);
  text-align: center;
  color: #6E6E73;
  margin-bottom: 32px;
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #F5F5F7;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1D1D1F;
}

.feature-desc {
  font-size: 14px;
  color: #6E6E73;
  line-height: 1.5;
}

/* ========== Icon Section ========== */
.garden-icon-section,
.garden-icon-section-2 {
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 64px;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

/* ========== Detail Content Section ========== */
.garden-detail-content {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.detail-text {
  color: #1D1D1F;
  line-height: 1.7;
  font-size: 16px;
}

.detail-text p {
  margin-bottom: 16px;
}

.detail-text h2,
.detail-text h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  color: #1D1D1F;
}

.detail-text ul,
.detail-text ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

/* ========== Stats Section ========== */
.garden-stats {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 16px;
}

.stat-number {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: #2E7D32;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #6E6E73;
}

/* ========== Statement 2 Section ========== */
.garden-statement-2 {
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
  border-radius: 12px;
  padding: 40px 24px;
  margin-bottom: 24px;
  text-align: center;
  color: white;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.garden-statement-2 .statement-title {
  color: white;
  margin-bottom: 16px;
}

.garden-statement-2 .statement-text {
  color: rgba(255, 255, 255, 0.9);
}

/* ========== Products Section ========== */
.garden-products {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #F5F5F7;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-name {
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1D1D1F;
}

.product-price {
  padding: 0 12px 12px;
  font-size: 16px;
  font-weight: 700;
  color: #2E7D32;
}

/* ========== CTA Section ========== */
.garden-cta {
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
  border-radius: 12px;
  padding: 48px 24px;
  margin: 0 auto 24px auto;
  max-width: 800px;
  text-align: center;
  color: white;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.cta-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.cta-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
  color: white;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.cta-btn.primary {
  background: white;
  color: #2E7D32;
}

.cta-btn.primary:hover {
  background: #F5F5F7;
}

.cta-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ========== Footer ========== */
/* 使用全局样式，与茶园列表页统一 */
/* 不再自定义 .site-footer 样式 */

/* ========== 返回顶部按钮 ========== */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #F5F5F7;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  color: #1D1D1F;
}

@media (min-width: 768px) {
  .back-to-top {
    bottom: 100px;
    right: 24px;
  }
}

/* ========== Fade-in 动画 ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 响应式优化 ========== */
@media (min-width: 768px) {
  .garden-statement,
  .garden-features,
  .garden-detail-content,
  .garden-stats,
  .garden-products {
    padding: 40px 32px;
  }

  .feature-grid {
    gap: 24px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

/* ========== 深色模式支持（已隐藏） ========== */
/*
@media (prefers-color-scheme: dark) {
  .layout-tea-garden-detail {
    background: #000;
  }

  .video-card,
  .garden-statement,
  .garden-features,
  .garden-detail-content,
  .garden-stats,
  .garden-products {
    background: #1C1C1E;
  }

  .statement-title,
  .section-title,
  .detail-text,
  .feature-title,
  .stat-label {
    color: #F5F5F7;
  }

  .statement-text,
  .section-subtitle,
  .feature-desc {
    color: #86868B;
  }

  .feature-card {
    background: #2C2C2E;
  }

  .product-card {
    background: #2C2C2E;
  }

  .product-name {
    color: #F5F5F7;
  }

  .back-to-top {
    background: #2C2C2E;
  }

  .back-to-top svg {
    color: #F5F5F7;
  }
}
*/

/* ========== 无障碍增强 ========== */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .feature-card,
  .product-card,
  .back-to-top,
  .cta-btn {
    transition: none;
  }
}

/* 聚焦可见性 */
.feature-card:focus-visible,
.product-card:focus-visible,
.cta-btn:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid #0066CC;
  outline-offset: 2px;
}
