/*
 * Apple Style CSS for Plastic Bottle Product Showcase
 * 苹果风格塑料瓶产品展示样式
 */

/* Hero Section - 首页大图展示区域 */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--apple-blue) 0%, var(--apple-blue) 100%);
  position: relative;
  overflow: hidden;
  /* padding由section-spacing.css统一管理 */
}

/* 当有背景图时的样式 */
.hero-section.has-background-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* 当有背景视频时的样式 */
.hero-section.has-background-video {
  background: transparent;
}

/* 视频背景容器 */
.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* 背景视频样式 */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1;
  object-fit: cover;
}

/* 确保视频在移动设备上正确显示 */
@media (max-width: 768px) {
  .hero-video {
    /* 在移动设备上，如果视频加载有问题，显示海报图片 */
    object-fit: cover;
  }
}

/* 视频控制按钮 */
.video-controls {
  position: absolute;
  bottom: 80px;
  right: 30px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.video-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.video-control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.video-control-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 背景遮罩层 - 确保文字可读性 */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: background-color 0.3s ease;
  /* 背景颜色和透明度通过内联样式设置 */
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 2;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  position: relative;
  /* padding由section-spacing.css统一管理 */
}

.hero-title {
  font-weight: 700;
  color: var(--apple-white);
  margin-bottom: var(--apple-spacing-md);
  letter-spacing: -0.02em;
  font-feature-settings: "liga" on;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 标题大小选项 */
.hero-title-small {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.hero-title-medium {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.hero-title-large {
  font-size: clamp(3rem, 6vw, 5rem);
}

.hero-title-xlarge {
  font-size: clamp(3.5rem, 7vw, 6rem);
}

.hero-subtitle {
  color: var(--apple-white);
  margin-bottom: var(--apple-spacing-xl);
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 副标题大小选项 */
.hero-subtitle-small {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  max-width: 500px;
}

.hero-subtitle-medium {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  max-width: 600px;
}

.hero-subtitle-large {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  gap: var(--apple-spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--apple-spacing-xl);
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-buttons .btn-primary:hover,
.hero-buttons .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 按钮大小选项 */
.hero-buttons-small .btn-primary,
.hero-buttons-small .btn-secondary {
  padding: var(--apple-spacing-xs) var(--apple-spacing-md);
  font-size: 0.85rem;
}

.hero-buttons-medium .btn-primary,
.hero-buttons-medium .btn-secondary {
  padding: var(--apple-spacing-sm) var(--apple-spacing-lg);
  font-size: 1rem;
}

.hero-buttons-large .btn-primary,
.hero-buttons-large .btn-secondary {
  padding: var(--apple-spacing-md) var(--apple-spacing-xl);
  font-size: 1.1rem;
  font-weight: 600;
}

/* 向下滚动指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  40% {
    transform: rotate(45deg) translateY(-10px);
  }
  60% {
    transform: rotate(45deg) translateY(-5px);
  }
}

/* 移除旧的hero-image样式，现在使用背景图 */
.hero-image {
  display: none !important;
}

/* Products Section - 产品横向展示 */
.products-section {
  /* padding由section-spacing.css统一管理 */
  background: var(--apple-gray-light);
  /* 确保不会阻塞滚动 */
  overflow: visible;
  position: relative;
  touch-action: auto;
}

/* Products title - independent positioning for perfect alignment */
.products-title {
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Break out of any container */
  padding-left: 0;
  padding-right: 0;
  margin-bottom: var(--apple-spacing-sm) !important;
  text-align: center;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--apple-black);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  letter-spacing: -0.015em;
}

/* Products subtitle styling */
.products-subtitle {
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Break out of any container */
  padding-left: 0;
  padding-right: 0;
  margin-bottom: var(--apple-spacing-lg) !important;
  font-size: 1.2rem;
  color: var(--apple-text-secondary);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

/* Apple-style asymmetric layout - left margin, right edge extends to browser */
.products-carousel-wrapper {
  position: relative;
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Break out of container */
  display: flex;
  align-items: center;
}

.products-carousel {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible; /* 允许阴影显示 */
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 24px 0 32px 0; /* 轻微的内部间距，不影响section统一管理 */
  position: relative;
}

/* Fixed right edge gradient - only for desktop */
@media (min-width: 1025px) {
  .products-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
    pointer-events: none;
    z-index: 10;
  }

  .products-section {
    position: relative;
    overflow: hidden;
  }
}

.products-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.products-grid {
  display: flex;
  gap: 15px; /* 紧凑的卡片间距 */
  /* Apple-style: left margin, content extends to right edge */
  padding-left: 120px; /* Left margin like Apple */
  padding-right: var(--apple-spacing-lg); /* Small right padding */
  min-width: min-content;
}

.product-card {
  /* Apple-style product card */
  background: var(--apple-white);
  border-radius: var(--apple-radius-lg);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04);
  border: none; /* 确保没有边框 */
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  /* Apple-style large cards */
  flex: 0 0 313px;
  height: 500px;
  /* 移除padding，让图片充满卡片 */
  padding: 0;
  touch-action: auto;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  /* 作为链接的样式 */
  text-decoration: none;
  color: inherit;
}

/* Hero Product Card - 第一个产品使用Apple分类卡片样式 */
.product-card-hero {
  /* 更大的尺寸，类似分类卡片 */
  flex: 0 0 400px !important;
  height: 500px;
  /* 背景图片样式，如果产品有图片的话 */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
}

/* Hero产品的可选文字遮罩层 - 确保文字可读性 */
.product-card-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Hero产品的图片容器样式调整 */
.product-card-hero .product-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none; /* 移除灰色背景 */
}

/* Hero产品的图片作为背景 */
.product-card-hero .product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0; /* 移除内边距 */
  z-index: 0;
}

/* Hero产品的内容覆盖层 - 使用分类卡片的定位 */
.product-card-hero .product-info {
  position: absolute;
  top: 60px; /* 距离上方60px，与分类卡片一致 */
  left: 30px; /* 距离左边30px，与分类卡片一致 */
  width: 340px; /* 明确设置宽度340px，与分类卡片一致 */
  height: 120px; /* 设置高度120px，与分类卡片一致 */
  background: none; /* 移除渐变背景 */
  color: white;
  padding: 0; /* 移除默认padding，与分类卡片一致 */
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden; /* 防止内容溢出 */
}

/* Hero产品的标题样式 - 与分类卡片一致 */
.product-card-hero .product-title {
  font-weight: 700;
  margin: 0 0 8px 0; /* 紧凑的间距，与分类卡片一致 */
  letter-spacing: -0.02em;
  line-height: 1.15; /* 稍微调整行高 */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* 防止标题换行 */
  flex-shrink: 0; /* 防止标题被压缩 */
  color: white;
  font-size: 1.6rem; /* 与分类卡片相同的字体大小 */
}

/* Hero产品的描述样式 - 与分类卡片一致 */
.product-card-hero .product-description {
  line-height: 1.35; /* 优化行高 */
  opacity: 0.95;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  /* 限制描述为最多3行，适应剩余空间 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1; /* 占用剩余空间 */
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem; /* 与分类卡片相同的字体大小 */
}

/* Hero产品隐藏规格标签和按钮 - 与分类卡片一致 */
.product-card-hero .product-specs,
.product-card-hero .product-actions {
  display: none !important;
}

.product-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.3s forwards; }
.product-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.5s forwards; }
.product-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.7s forwards; }
.product-card:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.9s forwards; }
.product-card:nth-child(5) { animation: fadeInUp 0.6s ease-out 1.1s forwards; }
.product-card:nth-child(6) { animation: fadeInUp 0.6s ease-out 1.3s forwards; }

/* Apple-style hover effects */
.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.12),
    0 3px 8px rgba(0, 0, 0, 0.08);
}

/* 确保链接状态下的颜色继承，移除下划线 */
.product-card:visited {
  color: inherit;
}

.product-card:focus {
  outline: 2px solid var(--apple-blue);
  outline-offset: 2px;
}

/* 移除产品卡片内所有文字的hover下划线效果 */
.product-card:hover .product-title,
.product-card:hover .product-description,
.product-card:hover {
  text-decoration: none !important;
}

/* 确保桌面端hover效果正常工作 */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow:
      0 15px 30px rgba(0, 0, 0, 0.12),
      0 3px 8px rgba(0, 0, 0, 0.08) !important;
  }
}

/* Products navigation arrows - positioned for asymmetric layout */
.products-carousel-wrapper .carousel-nav {
  background: var(--apple-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--apple-shadow-sm);
  color: var(--apple-text-primary);
  flex-shrink: 0;
  z-index: 15;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.products-carousel-wrapper .carousel-nav.prev {
  left: 40px; /* Position within left margin */
}

.products-carousel-wrapper .carousel-nav.next {
  right: 100px; /* Position before fade gradient */
}

.products-carousel-wrapper .carousel-nav:hover {
  background: var(--apple-gray-light);
  box-shadow: var(--apple-shadow-md);
  transform: translateY(-50%) scale(1.05);
}

.products-carousel-wrapper .carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* Products more button */
.products-more-container {
  text-align: center;
  margin-top: var(--apple-spacing-xl);
}

.products-more-btn {
  padding: var(--apple-spacing-md) var(--apple-spacing-xl);
  font-size: 1.1rem;
  font-weight: 600;
}

.product-image-container {
  position: relative;
  overflow: hidden;
  height: 300px; /* 固定高度，为内容区域留出200px */
  background: var(--apple-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  /* 确保图片容器充满卡片宽度 */
  width: 100%;
  margin: 0;
  border-radius: var(--apple-radius-lg) var(--apple-radius-lg) 0 0; /* 只有顶部圆角 */
}

.product-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-image-container::before {
  opacity: 1;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  padding: 0;
  display: block;
  /* 确保图片充满容器 */
  border-radius: 0;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: var(--apple-gray-medium);
  text-align: center;
  gap: var(--apple-spacing-sm);
  /* 确保占位符充满容器 */
  margin: 0;
  padding: var(--apple-spacing-md);
  border-radius: 0;
}

.product-placeholder span {
  font-size: 0.9rem;
  color: var(--apple-gray-medium);
}

.product-info {
  padding: var(--apple-spacing-lg); /* 保持文字区域的padding */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  /* 确保文字内容有足够的空间 */
  height: 200px; /* 匹配剩余高度：500px - 300px */
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--apple-black);
  margin-bottom: var(--apple-spacing-xs);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.product-description {
  font-size: 0.95rem;
  color: var(--apple-text-secondary);
  line-height: 1.5;
  margin-bottom: var(--apple-spacing-sm);
  flex-grow: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--apple-spacing-xs);
  margin-bottom: var(--apple-spacing-md);
}

.spec-tag {
  background: var(--apple-gray-light);
  color: var(--apple-text-primary);
  padding: 4px var(--apple-spacing-xs);
  border-radius: var(--apple-radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.spec-tag:hover {
  background: var(--apple-blue);
  color: white;
  transform: translateY(-2px);
}

/* 产品操作按钮 */
.product-actions {
  margin-top: auto;
}

.btn-small {
  padding: var(--apple-spacing-xs) var(--apple-spacing-md);
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  line-height: 1.2;
}

.btn-small::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-small:hover::before {
  left: 100%;
}

/* Product Categories - 产品分类展示 */
.categories-section {
  /* padding由section-spacing.css统一管理 */
  background: var(--apple-gray-light);
  /* 确保不会阻塞滚动 */
  overflow: visible;
  position: relative;
  touch-action: auto;
}

/* Apple-style asymmetric layout - left margin, right edge extends to browser */
.categories-carousel-wrapper {
  position: relative;
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Break out of container */
  display: flex;
  align-items: center;
}

.categories-carousel {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible; /* 允许阴影显示 */
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 24px 0 32px 0; /* 轻微的内部间距，不影响section统一管理 */
  position: relative;
}

/* Fixed right edge gradient - only for desktop */
@media (min-width: 1025px) {
  .categories-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(248, 249, 250, 0.8));
    pointer-events: none;
    z-index: 10;
  }

  .categories-section {
    position: relative;
    overflow: hidden;
  }
}

.categories-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.categories-grid {
  display: flex;
  gap: 15px; /* 紧凑的卡片间距 */
  /* Apple-style: left margin, content extends to right edge */
  padding-left: 120px; /* Left margin like Apple */
  padding-right: var(--apple-spacing-lg); /* Small right padding */
  min-width: min-content;
}

.category-card {
  /* Apple-style background image card */
  background: var(--apple-gray-light);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: var(--apple-radius-xl);
  border: none; /* 确保没有边框 */
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  /* Apple-style large cards */
  flex: 0 0 400px;
  height: 500px;
  /* Remove padding - content will be positioned with overlay */
  padding: 0;
  touch-action: auto;
  pointer-events: auto;
  /* 作为链接的样式 */
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Optional text overlay - only when needed for readability */
.category-card.has-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
  transition: opacity 0.3s ease;
  z-index: 1;
}

.category-card-content {
  position: absolute;
  top: 60px; /* 距离上方60px */
  left: 30px; /* 距离左边30px */
  width: 340px; /* 明确设置宽度340px */
  height: 120px; /* 设置高度120px */
  z-index: 2;
  color: white;
  padding: 0; /* 移除默认padding */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden; /* 防止内容溢出 */
}

/* Navigation arrows - positioned for asymmetric layout */
.carousel-nav {
  background: var(--apple-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--apple-shadow-sm);
  color: var(--apple-text-primary);
  flex-shrink: 0;
  z-index: 15;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-nav.prev {
  left: 40px; /* Position within left margin */
}

.carousel-nav.next {
  right: 100px; /* Position before fade gradient */
}

.carousel-nav:hover {
  background: var(--apple-gray-light);
  box-shadow: var(--apple-shadow-md);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Animation for category cards */
.category-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s forwards; }
.category-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s forwards; }
.category-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s forwards; }
.category-card:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.4s forwards; }
.category-card:nth-child(5) { animation: fadeInUp 0.6s ease-out 0.5s forwards; }
.category-card:nth-child(6) { animation: fadeInUp 0.6s ease-out 0.6s forwards; }
.category-card:nth-child(7) { animation: fadeInUp 0.6s ease-out 0.7s forwards; }

/* Apple-style hover effects */
.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.12),
    0 3px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

/* 链接状态样式 */
.category-card:visited {
  color: inherit;
}

.category-card:focus {
  outline: 2px solid var(--apple-blue);
  outline-offset: 2px;
  text-decoration: none;
}

/* 确保桌面端hover效果正常工作 */
@media (hover: hover) and (pointer: fine) {
  .category-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow:
      0 15px 30px rgba(0, 0, 0, 0.12),
      0 3px 8px rgba(0, 0, 0, 0.08) !important;
  }
}

/* Typography for Apple-style cards */
.category-title {
  font-weight: 700;
  margin: 0 0 8px 0; /* 紧凑的间距 */
  letter-spacing: -0.02em;
  line-height: 1.15; /* 稍微调整行高 */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* 防止标题换行 */
  flex-shrink: 0; /* 防止标题被压缩 */
  /* 颜色和字体大小通过内联样式设置 */
}

.category-description {
  line-height: 1.35; /* 优化行高 */
  opacity: 0.95;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  /* 限制描述为最多3行，适应剩余空间 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1; /* 占用剩余空间 */
  /* 颜色和字体大小通过内联样式设置 */
}

/* Features Section - 特色功能展示 (Apple Card Style) */
.features-section {
  /* padding由section-spacing.css统一管理 */
  background: var(--apple-gray-light);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--apple-spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  /* padding由section-spacing.css统一管理 */
}

.feature-item {
  background: var(--apple-white);
  border-radius: var(--apple-radius-xl);
  padding: var(--apple-spacing-xxl);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(40px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* 添加微妙的光效 */
.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.feature-item:hover::before {
  left: 100%;
}

.feature-item:nth-child(1) { animation: fadeInUp 0.8s ease-out 0.2s forwards; }
.feature-item:nth-child(2) { animation: fadeInUp 0.8s ease-out 0.4s forwards; }
.feature-item:nth-child(3) { animation: fadeInUp 0.8s ease-out 0.6s forwards; }
.feature-item:nth-child(4) { animation: fadeInUp 0.8s ease-out 0.8s forwards; }

.feature-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--apple-spacing-lg);
  background: linear-gradient(135deg, var(--apple-blue) 0%, #007AFF 100%);
  border-radius: var(--apple-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 20px rgba(0, 122, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow:
    0 12px 30px rgba(0, 122, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--apple-black);
  margin-bottom: var(--apple-spacing-md);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature-description {
  color: var(--apple-text-secondary);
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

/* Navigation Styling - 导航样式 */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transform: translateY(-100%);
  animation: slideDown 0.5s ease-out 0.1s forwards;
}

.main-navigation {
  padding: var(--apple-spacing-sm) 0;
}

.nav-menu a {
  color: var(--apple-text-primary);
  font-weight: 500;
  text-decoration: none;
  padding: var(--apple-spacing-sm) var(--apple-spacing-md);
  border-radius: var(--apple-radius-sm);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  background: var(--apple-gray-light);
  color: var(--apple-blue);
}

/* Buttons and CTAs - 按钮样式 */
.btn-primary {
  background: var(--apple-blue);
  color: white;
  padding: var(--apple-spacing-sm) var(--apple-spacing-lg);
  border: none;
  border-radius: var(--apple-radius-md);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.2;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: #0056d3;
  transform: translateY(-1px);
  box-shadow: var(--apple-shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--apple-blue);
  border: 2px solid var(--apple-blue);
  padding: var(--apple-spacing-sm) var(--apple-spacing-lg);
  border-radius: var(--apple-radius-md);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.2;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.1), transparent);
  transition: left 0.5s;
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-secondary:hover {
  background: var(--apple-blue);
  color: white;
}

/* Footer Styling - 页脚样式 */
.site-footer {
  background: var(--apple-black);
  color: var(--apple-gray-medium);
  padding: var(--apple-spacing-xl) 0 var(--apple-spacing-lg);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  /* padding由section-spacing.css统一管理 */
}

.footer-content h3 {
  color: var(--apple-white);
  margin-bottom: var(--apple-spacing-sm);
}

.footer-content p {
  color: var(--apple-gray-medium);
  font-size: 0.9rem;
}

/* Animations - 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Pagination Styling - 分页样式 */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: var(--apple-spacing-xl) 0;
  padding: var(--apple-spacing-lg) 0;
}

.pagination-container ul.page-numbers {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--apple-spacing-xs);
  align-items: center;
}

.pagination-container ul.page-numbers li {
  margin: 0;
}

.pagination-container .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: var(--apple-spacing-xs) var(--apple-spacing-sm);
  background: var(--apple-white);
  border: 2px solid var(--apple-gray-light);
  border-radius: var(--apple-radius-sm);
  color: var(--apple-text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.pagination-container .page-numbers:hover {
  background: var(--apple-blue);
  color: white;
  border-color: var(--apple-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.pagination-container .page-numbers.current {
  background: var(--apple-blue);
  color: white;
  border-color: var(--apple-blue);
  cursor: default;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.pagination-container .page-numbers.current:hover {
  transform: none;
}

.pagination-container .prev,
.pagination-container .next {
  padding: var(--apple-spacing-xs) var(--apple-spacing-md);
  font-weight: 600;
}

/* 移动端分页优化 */
@media (max-width: 768px) {
  .pagination-container .page-numbers {
    min-width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .pagination-container ul.page-numbers {
    gap: 4px;
  }
}

/* 滚动修复 - 紧急修复滚动问题 */
.force-enable-scroll {
  overflow: auto !important;
  position: static !important;
  touch-action: auto !important;
}

.force-enable-scroll body {
  overflow: auto !important;
  position: static !important;
  width: auto !important;
  top: auto !important;
}

/* 确保页面始终可滚动 */
html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* 确保永远不会完全阻止滚动 */
  min-height: 100vh;
}

/* 防止意外的overflow hidden */
.categories-section,
.products-section,
.features-section,
.company-section,
.contact-section {
  overflow: visible !important;
}

/* Company Section - 关于我们 (Apple Style) */
.company-section {
  /* padding由section-spacing.css统一管理 */
  background: var(--apple-gray-light);
  position: relative;
}

.company-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--apple-spacing-4xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  /* padding由section-spacing.css统一管理 */
}

.company-text {
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 0.8s ease-out 0.3s forwards;
}

.company-section .section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--apple-black);
  margin-bottom: var(--apple-spacing-lg);
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--apple-black) 0%, var(--apple-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.company-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--apple-text-secondary);
  margin-bottom: var(--apple-spacing-xl);
  font-weight: 400;
}

.company-stats {
  display: flex;
  gap: var(--apple-spacing-xl);
  margin-bottom: var(--apple-spacing-xl);
}

.stat-item {
  text-align: center;
  background: var(--apple-gray-light);
  padding: var(--apple-spacing-lg);
  border-radius: var(--apple-radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--apple-blue);
  margin-bottom: var(--apple-spacing-xs);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--apple-text-secondary);
  font-weight: 500;
}

.company-image {
  position: relative;
  opacity: 0;
  transform: translateX(40px);
  animation: slideInRight 0.8s ease-out 0.5s forwards;
}

.company-image img {
  width: 100%;
  height: auto;
  border-radius: var(--apple-radius-xl);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-image:hover img {
  transform: scale(1.02);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.2),
    0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Contact Section - 联系我们 (Apple Style) */
.contact-section {
  /* padding由section-spacing.css统一管理 */
  background: var(--apple-gray-light);
  position: relative;
}

.contact-section .section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--apple-black);
  margin-bottom: var(--apple-spacing-3xl);
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--apple-spacing-3xl);
  max-width: 1200px;
  margin: 0 auto;
  /* padding由section-spacing.css统一管理 */
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--apple-spacing-lg);
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 0.8s ease-out 0.4s forwards;
}

.contact-item {
  background: var(--apple-white);
  padding: var(--apple-spacing-xl);
  border-radius: var(--apple-radius-lg);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: var(--apple-spacing-lg);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.contact-item:hover::before {
  left: 100%;
}

.contact-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.12),
    0 3px 8px rgba(0, 0, 0, 0.08);
}

.contact-info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--apple-blue) 0%, #007AFF 100%);
  border-radius: var(--apple-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow:
    0 8px 20px rgba(0, 122, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover .contact-info-icon {
  transform: scale(1.1) rotate(-5deg);
}

.contact-details h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--apple-black);
  margin: 0 0 var(--apple-spacing-xs) 0;
}

.contact-details p {
  color: var(--apple-text-secondary);
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.contact-form {
  opacity: 0;
  transform: translateX(40px);
  animation: slideInRight 0.8s ease-out 0.6s forwards;
}

.apple-form {
  background: var(--apple-white);
  padding: var(--apple-spacing-xxl);
  border-radius: var(--apple-radius-xl);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.apple-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--apple-blue), #007AFF, var(--apple-blue));
}

.form-group {
  margin-bottom: var(--apple-spacing-lg);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--apple-spacing-md) var(--apple-spacing-lg);
  border: 2px solid var(--apple-gray-light);
  border-radius: var(--apple-radius-md);
  font-size: 1rem;
  background: var(--apple-white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--apple-text-primary);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--apple-blue);
  box-shadow:
    0 0 0 4px rgba(0, 122, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--apple-text-secondary);
  font-weight: 400;
}

.apple-form .btn-primary {
  width: 100%;
  padding: var(--apple-spacing-md) var(--apple-spacing-lg);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: var(--apple-spacing-md);
}

/* 添加动画关键帧 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design - 响应式设计 */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    /* padding由section-spacing.css统一管理 */
  }

  .hero-image {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--apple-spacing-lg);
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: var(--apple-spacing-lg);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--apple-spacing-xl);
  }
  
  .categories-section,
  .products-section,
  .features-section {
    /* padding由section-spacing.css统一管理 */
  }
  
  .category-card {
    /* padding由section-spacing.css统一管理 */
  }
  
  .category-icon {
    margin: 0 auto var(--apple-spacing-md);
  }
  
  .feature-item {
    padding: var(--apple-spacing-md);
  }
  
  .product-info {
    padding: var(--apple-spacing-md);
  }
  
  .product-card:nth-child(n) {
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .category-card:nth-child(n) {
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .feature-item:nth-child(n) {
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

/* Categories title - independent positioning for perfect alignment */
.categories-title {
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Break out of any container */
  padding-left: 0;
  padding-right: 0;
  margin-bottom: var(--apple-spacing-sm) !important;
}

/* Categories subtitle styling */
.categories-subtitle {
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Break out of any container */
  padding-left: 0;
  padding-right: 0;
  margin-bottom: var(--apple-spacing-lg) !important;
  font-size: 1.2rem;
  color: var(--apple-text-secondary);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

/* Title alignment optimizations for Apple asymmetric layout */
@media (min-width: 1025px) {
  .categories-title[style*="text-align: left"],
  .products-title[style*="text-align: left"] {
    padding-left: 120px; /* Match carousel left margin on desktop */
    padding-right: 0;
  }

  .categories-title[style*="text-align: right"],
  .products-title[style*="text-align: right"] {
    padding-right: 100px; /* Account for right gradient + arrow area */
    padding-left: 0;
  }

  .categories-title[style*="text-align: center"],
  .products-title[style*="text-align: center"] {
    padding-left: 60px; /* Slight offset for visual balance with asymmetric layout */
    padding-right: 60px;
  }

  .categories-subtitle[style*="text-align: left"],
  .products-subtitle[style*="text-align: left"] {
    padding-left: 120px; /* Match carousel left margin on desktop */
    padding-right: 0;
  }

  .categories-subtitle[style*="text-align: right"],
  .products-subtitle[style*="text-align: right"] {
    padding-right: 100px; /* Account for right gradient + arrow area */
    padding-left: 0;
  }

  .categories-subtitle[style*="text-align: center"],
  .products-subtitle[style*="text-align: center"] {
    padding-left: 60px; /* Slight offset for visual balance with asymmetric layout */
    padding-right: 60px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .categories-section .section-title[style*="text-align: left"],
  .products-section .section-title[style*="text-align: left"] {
    padding-left: 80px; /* Match carousel left margin on tablet */
    padding-right: 0;
  }

  .categories-section .section-title[style*="text-align: right"],
  .products-section .section-title[style*="text-align: right"] {
    padding-right: 80px; /* Account for tablet gradient + arrow area */
    padding-left: 0;
  }

  .categories-section .section-title[style*="text-align: center"],
  .products-section .section-title[style*="text-align: center"] {
    padding-left: 40px;
    padding-right: 40px;
  }

  .categories-subtitle[style*="text-align: left"],
  .products-subtitle[style*="text-align: left"] {
    padding-left: 80px; /* Match carousel left margin on tablet */
    padding-right: 0;
  }

  .categories-subtitle[style*="text-align: right"],
  .products-subtitle[style*="text-align: right"] {
    padding-right: 80px; /* Account for tablet gradient + arrow area */
    padding-left: 0;
  }

  .categories-subtitle[style*="text-align: center"],
  .products-subtitle[style*="text-align: center"] {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 768px) {
  .categories-section .section-title[style*="text-align: left"],
  .categories-section .section-title[style*="text-align: right"],
  .products-section .section-title[style*="text-align: left"],
  .products-section .section-title[style*="text-align: right"] {
    padding-left: var(--apple-spacing-md);
    padding-right: var(--apple-spacing-md);
  }

  .categories-subtitle[style*="text-align: left"],
  .categories-subtitle[style*="text-align: right"],
  .products-subtitle[style*="text-align: left"],
  .products-subtitle[style*="text-align: right"] {
    padding-left: var(--apple-spacing-md);
    padding-right: var(--apple-spacing-md);
  }
}