@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  --primary-green: #2ECC71;
  --primary-green-dark: #27AE60;
  --secondary-green: #58D68D;
  --bg-light: #F8FAF6;
  --text-primary: #2C3E50;
  --text-secondary: #7F8C8D;
  --border-color: #E8EEE4;
  --white: #FFFFFF;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 25px rgba(46, 204, 113, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--white);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-green);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 1rem;
}

.logo .logo-name {
  color: var(--primary-green);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.logo .logo-plastic {
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-links a:hover {
  color: #46b860;
}

/* Home - 浅薄荷绿 hover */
.nav-item-home:hover {
  color: #5CB8A8;
}

/* Green Products - 标准品牌绿 hover */
.nav-item-products:hover {
  color: #3A9A50;
}

/* About Us - 深墨绿 hover */
.nav-item-about:hover {
  color: #1D4A3A;
}

/* Fresh Life - 柔和豆沙粉 hover */
.nav-item-fresh:hover {
  color: #C9A0A0;
}

/* Contact Us - 浅橄榄绿 hover */
.nav-item-contact:hover {
  color: #8FAF7A;
}

.nav-links .nav-icon {
  font-size: 22px;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Home - 浅薄荷绿 */
.nav-item-home .nav-icon {
  color: #7FDBCA;
}
.nav-item-home:hover .nav-icon {
  color: #5CB8A8;
}

/* Green Products - 标准品牌绿 */
.nav-item-products .nav-icon {
  color: #46b860;
}
.nav-item-products:hover .nav-icon {
  color: #3A9A50;
}

/* About Us - 深墨绿 */
.nav-item-about .nav-icon {
  color: #2D5A4A;
}
.nav-item-about:hover .nav-icon {
  color: #1D4A3A;
}

/* Fresh Life - 柔和豆沙粉 */
.nav-item-fresh .nav-icon {
  color: #E8C4C4;
}
.nav-item-fresh:hover .nav-icon {
  color: #D4A8A8;
}

/* Contact Us - 浅橄榄绿 */
.nav-item-contact .nav-icon {
  color: #A8C08A;
}
.nav-item-contact:hover .nav-icon {
  color: #8FAF7A;
}

.nav-links a:hover .nav-icon {
  transform: scale(1.1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.lang-switch {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.lang-switch:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.btn-primary {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-secondary:hover {
  background: var(--primary-green);
  color: white;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 2rem;
  margin-top: 70px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1) translateZ(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.hero-video.slide-out {
  transform: translateX(-100%);
}

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

.hero-video.zooming-out {
  transform: scale(1.2);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  backface-visibility: hidden;
}

.hero-slideshow.active {
  opacity: 1;
  z-index: 2;
  transition: opacity 0.5s ease-out, z-index 0s;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1) translateZ(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1) translateZ(0);
}

.hero-slide.zooming-out {
  transform: scale(1.2) translateZ(0);
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
  z-index: 2;
  transition: background 0.5s ease;
}

.hero-overlay.bright {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  max-width: 800px;
  white-space: pre-line;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-subtitle.visible {
  opacity: 0.9;
  transform: translateY(0);
}

.hero-btn {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.hero-pagination {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-pagination.visible {
  opacity: 1;
  visibility: visible;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.features {
  padding: 6rem 2rem;
  background: transparent;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.intro-section {
  padding: 6rem 2rem;
  text-align: center;
}

.intro-line {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.intro-bold {
  font-weight: 700;
  color: var(--text-primary);
}

.intro-line:last-child {
  margin-bottom: 0;
}

.about-us-section {
  padding: 4rem 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-us-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-us-content {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1200px;
}

.about-us-content .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-us-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.highlight-number {
  color: var(--primary-green);
}

.about-us-image {
  flex-shrink: 0;
  width: 280px;
  align-self: center;
}

.about-us-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.products-preview {
  padding: 6rem 2rem;
  background: var(--bg-light);
}

.featured-products-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
  position: relative;
  z-index: 5;
}

.view-all-products-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 48px;
  background: var(--primary-green);
  color: white;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.view-all-products-btn:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 51, 0.3);
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.products-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.product-left {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-left img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  flex-shrink: 0;
}

.product-left-info {
  padding: 2rem;
  flex: 1;
}

.product-left-info h4 {
  color: var(--primary-green);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.product-left-info h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-left-info .short-copy {
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-left-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.item-tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary-green);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.product-right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.products-two-col .product-right .product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100% !important;
  min-height: unset !important;
  max-height: unset !important;
  display: flex;
  flex-direction: column;
}

.products-two-col .product-right .product-card img {
  width: 100%;
  height: 350px !important;
  object-fit: cover;
}

.products-two-col .product-right .product-info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.products-two-col .product-right .product-info h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.products-two-col .product-right .product-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.sub-category-title {
  grid-column: 1 / -1;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 1.5rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Uniform size for special category products (ice tray & egg tray) - same as shortterm */
.product-card[data-category="home-special"],
.products-full-grid.three-col .product-card[data-category="home-special"],
.products-full-grid.products-two-col .product-card[data-category="home-special"] {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: unset;
}

/* Uniform size for short term category products */
.product-card[data-category="home-shortterm"],
.products-full-grid.three-col .product-card[data-category="home-shortterm"],
.products-full-grid.products-two-col .product-card[data-category="home-shortterm"] {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: unset;
}

.product-card[data-category="home-shortterm"] img,
.product-card[data-category="home-shortterm"] .product-image-container,
.products-full-grid.three-col .product-card[data-category="home-shortterm"] img,
.products-full-grid.three-col .product-card[data-category="home-shortterm"] .product-image-container,
.products-full-grid.products-two-col .product-card[data-category="home-shortterm"] img,
.products-full-grid.products-two-col .product-card[data-category="home-shortterm"] .product-image-container {
  height: 350px !important;
  object-fit: cover;
}

.product-card[data-category="home-shortterm"] .product-image-container img,
.products-full-grid.three-col .product-card[data-category="home-shortterm"] .product-image-container img,
.products-full-grid.products-two-col .product-card[data-category="home-shortterm"] .product-image-container img {
  height: 100% !important;
}

.product-card[data-category="home-shortterm"] .product-info,
.products-full-grid.three-col .product-card[data-category="home-shortterm"] .product-info,
.products-full-grid.products-two-col .product-card[data-category="home-shortterm"] .product-info {
  padding: 1.5rem !important;
}

.product-card[data-category="home-special"] img,
.product-card[data-category="home-special"] .product-image-container,
.products-full-grid.three-col .product-card[data-category="home-special"] img,
.products-full-grid.three-col .product-card[data-category="home-special"] .product-image-container,
.products-full-grid.products-two-col .product-card[data-category="home-special"] img,
.products-full-grid.products-two-col .product-card[data-category="home-special"] .product-image-container {
  height: 350px !important;
  width: 100%;
  object-fit: cover;
}

/* Special styling for home-special product image container */
.product-card[data-category="home-special"] .product-image-container img {
  object-fit: contain;
  object-position: center;
  top: 8%;
}

/* Uniform size for custom category products - same as shortterm */
.product-card[data-category="custom"],
.products-full-grid.three-col .product-card[data-category="custom"],
.products-full-grid.products-two-col .product-card[data-category="custom"] {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: unset;
}

.product-card[data-category="custom"] img,
.product-card[data-category="custom"] .product-image-container,
.products-full-grid.three-col .product-card[data-category="custom"] img,
.products-full-grid.three-col .product-card[data-category="custom"] .product-image-container,
.products-full-grid.products-two-col .product-card[data-category="custom"] img,
.products-full-grid.products-two-col .product-card[data-category="custom"] .product-image-container {
  height: 350px !important;
  width: 100%;
  object-fit: cover;
}

.product-card[data-category="custom"] .product-image-container img {
  height: 100% !important;
}

.product-card[data-category="custom"] .product-info,
.products-full-grid.three-col .product-card[data-category="custom"] .product-info,
.products-full-grid.products-two-col .product-card[data-category="custom"] .product-info {
  padding: 1.5rem !important;
}

/* Special styling for home-sets category product image container */
.product-card[data-category="home-sets"] .product-image-container {
  height: 350px;
}

.product-card[data-category="home-sets"] .product-image-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

/* Product image container with hover effect for Dip Tray */
.product-image-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: #ffffff;
}

.product-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Round microwave container images at 75% size - only for non-filtered view */
.products-full-grid:not(.filtered-view) .product-card[data-category="home-shortterm"]:nth-child(1) .product-image-container .product-image-default,
.products-full-grid:not(.filtered-view) .product-card[data-category="home-shortterm"]:nth-child(1) .product-image-container .product-image-hover {
  width: 75%;
  height: 75%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.product-image-default {
  z-index: 1;
  opacity: 1;
}

.product-image-hover {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-image-scene {
  z-index: 0;
  opacity: 0;
}

/* Hover effect: show hover image, hide default */
.product-image-container:hover .product-image-default {
  opacity: 0;
}

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

.product-image-container:hover .product-image-scene {
  opacity: 0;
}

/* Image switch button for product cards */
.image-switch-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: #2d5a27;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  z-index: 20;
}

.product-image-container:hover .image-switch-btn {
  opacity: 1;
}

.image-switch-btn:hover {
  background: #3d7a37;
}

.image-switch-btn i {
  font-size: 0.8rem;
  color: #fff;
}

/* Show scene image when switched */
.product-image-container.show-scene .product-image-default,
.product-image-container.show-scene .product-image-hover {
  opacity: 0;
}

.product-image-container.show-scene .product-image-scene {
  opacity: 1;
  z-index: 10;
}

/* Special handling for item 10 (护蛋安心) in filtered view - move scene image down */
.products-full-grid.filtered-view .product-card[data-item-id="10"] .product-image-scene {
  object-position: center 80%;
}

/* Special handling for item 2 (叠省空间) in filtered view - move scene image down */
.products-full-grid.filtered-view .product-card[data-item-id="2"] .product-image-container .product-image-scene {
  object-position: center 225px !important;
  transform: translateY(225px) !important;
}

/* Special handling for item 12 (悠趣分餐盒) in filtered view - shrink image content */
.products-full-grid.filtered-view .product-card[data-item-id="12"] .product-image-container img {
  object-fit: contain !important;
  transform: scale(0.8) !important;
}

/* Outdoor mealbox category in filtered view - show images with original aspect ratio */
.products-full-grid.filtered-view .product-card[data-category="outdoor-mealbox"] .product-image-container img,
.product-card[data-category="outdoor-mealbox"].filtered-card .product-image-container img {
  object-fit: contain !important;
}

/* Special products pair container - side by side layout */
.special-products-pair {
  grid-column: 1 / -1;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.special-products-pair .product-card {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  min-height: 450px;
  height: auto;
}

.special-products-pair .product-card img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.special-products-pair .product-card .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.special-products-pair .product-card .product-info h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.special-products-pair .product-card .product-meta {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #666;
}

.special-products-pair .product-card .product-description {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #555;
  line-height: 1.4;
}

.special-products-pair .product-card .product-tags {
  margin-top: auto;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.special-products-pair .product-card .product-tags .tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 4px;
}

.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  position: relative;
}

/* Uniform product info height for special category - same as shortterm */
.product-card[data-category="home-special"] .product-info,
.products-full-grid.three-col .product-card[data-category="home-special"] .product-info,
.products-full-grid.products-two-col .product-card[data-category="home-special"] .product-info {
  flex: 1;
  padding: 1.5rem !important;
}

.product-card[data-category="home-special"] .product-info h4 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.product-card[data-category="home-special"] .product-meta {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.product-card[data-category="home-special"] .product-description {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.product-card[data-category="home-special"] .product-tags {
  margin-bottom: 0.5rem;
}

.product-card[data-category="home-special"] .product-tags .tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
}

.card-arrow-btn {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-green);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.card-arrow-btn:hover {
  background-color: var(--primary-green-dark);
  transform: scale(1.1);
}

.product-info h4 {
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  font-size: 1rem;
  text-align: left;
  line-height: 1.3;
}

.product-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.5;
  text-align: left;
}

.product-info .product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-align: left;
  margin-bottom: 0.5rem;
}

.product-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.5rem;
}

.product-tags {
  margin-top: 0;
  padding-top: 0;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  text-align: left;
}

.tag {
  background: var(--bg-light);
  color: var(--primary-green);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Customization Module */
.customization-module {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 6px;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.customization-module:hover {
  background: linear-gradient(135deg, var(--primary-green) 0%, #3d7a37 100%);
  border-color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.2);
}

.customization-module:hover .customize-text,
.customization-module:hover .customize-arrow {
  color: white;
}

.customization-module:hover .customize-icon {
  background: white;
  color: var(--primary-green);
}

.customize-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.customize-icon {
  width: 28px;
  height: 28px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.customize-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.customize-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 0.1rem;
  transition: color 0.3s ease;
}

.customization-module:hover .customize-text span {
  color: rgba(255, 255, 255, 0.8);
}

.customize-arrow {
  font-size: 0.9rem;
  color: var(--primary-green);
  transition: all 0.3s ease;
}

/* Product Detail Page Customization Module */
.product-detail-image .customization-module {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
}

.product-detail-image .customization-module .customize-icon {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.product-detail-image .customization-module .customize-text {
  font-size: 0.85rem;
}

.product-detail-image .customization-module .customize-text span {
  font-size: 0.75rem;
}

/* Detail Page Customization Panel */
.detail-customize-panel {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.75rem;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.customize-panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.customize-panel-header i {
  color: var(--primary-green);
  font-size: 1rem;
}

.customize-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.customize-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.customize-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
  min-width: 56px;
}

/* Shape Buttons - Match Custom Design Page */
.shape-buttons {
  display: flex;
  gap: 0.5rem;
}

.shape-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  color: #666;
  transition: all 0.2s ease;
}

.shape-btn i {
  font-size: 0.9rem;
}

.shape-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.shape-btn.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
}

/* Size Select - Match Custom Design Page */
.size-select {
  flex: 1;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 0.75rem;
  padding-right: 2rem;
}

.size-select:hover {
  border-color: var(--primary-green);
}

.size-select:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(45, 90, 39, 0.1);
}

.size-select option {
  padding: 0.3rem;
  font-size: 0.8rem;
}

/* Color Options - Match Custom Design Page */
.color-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.color-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.color-btn:hover {
  background: #f5f5f5;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: block;
}

.color-swatch.transparent {
  background: linear-gradient(135deg, #fff 45%, #eee 45%, #eee 55%, #fff 55%);
}

.color-btn span:last-child {
  font-size: 0.65rem;
  color: #666;
}

.color-btn.active .color-swatch {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(45, 90, 39, 0.3);
}

.color-btn.active span:last-child {
  color: var(--primary-green);
  font-weight: 500;
}

/* Customize Submit Button */
.customize-submit-btn {
}

.color-btn:hover {
  transform: scale(1.15);
  border-color: var(--primary-green);
}

.color-btn.active {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(45, 90, 39, 0.3);
}

/* Old unused styles - removed */

/* Customize Submit Button */
.customize-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, var(--primary-green) 0%, #3d7a37 100%);
  color: white;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.customize-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
  background: linear-gradient(135deg, #3d7a37 0%, var(--primary-green) 100%);
}

.customize-submit-btn i {
  font-size: 0.9rem;
}

/* Detail Size Select Dropdown */
.detail-size-select {
  flex: 1;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 0.8rem;
  padding-right: 2rem;
}

.detail-size-select:hover {
  border-color: var(--primary-green);
}

.detail-size-select:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(45, 90, 39, 0.15);
}

.detail-size-select option {
  padding: 0.4rem;
  font-size: 0.8rem;
}

.strengths {
  padding: 3rem 0;
  background: var(--primary-green);
  color: white;
  overflow: hidden;
  position: relative;
}

.strengths::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/地球.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.strengths > * {
  position: relative;
  z-index: 2;
}

.strengths .section-title {
  color: white;
  margin-bottom: 2rem;
}

.strengths-slider {
  overflow: hidden;
  width: 100%;
  margin-bottom: 0;
}

.strengths-track {
  display: flex;
  gap: 2rem;
  animation: scroll-left 25s linear infinite;
  width: max-content;
}

.strength-card {
  flex: 0 0 280px;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.strength-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.strength-card p {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.strength-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.strength-item {
  flex: 0 0 calc(12.5% - 2rem);
  min-width: 140px;
  padding: 1.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(5px);
}

.strength-item i {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.strength-item p {
  font-weight: 500;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.strength-image-item {
  flex: 0 0 calc(12.5% - 2rem);
  min-width: 140px;
}

.strength-image-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.strengths-images {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

footer {
  background: var(--text-primary);
  color: white;
  padding: 4rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--secondary-green);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary-green);
}

#backTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s;
  z-index: 1000;
}

#backTop:hover {
  background: var(--primary-green-dark);
  transform: translateY(-3px);
}

.page-content {
  position: relative;
  padding-top: 100px;
  background-color: #F5F0E8;
  background-image: url('../images/底图4.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 100vh;
  z-index: 1;
}

.products-wrapper {
  position: relative;
  z-index: 2;
}

.page-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

/* Products page with sidebar layout */
.products-page-with-sidebar {
  display: flex;
  padding: 2rem;
  gap: 0;
  position: relative;
  padding-top: 100px;
}

/* Left sidebar */
.products-sidebar {
  width: 240px;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.sidebar-header {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.sidebar-header h3:hover {
  color: var(--primary-color, #2e7d32);
  transform: translateX(3px);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-item {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-item:hover {
  background: var(--bg-light);
}

.sidebar-item.active {
  background: var(--primary-green);
  color: white;
}

.sidebar-item.active .sidebar-item-label {
  color: white;
}

.sidebar-item-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.sidebar-item-icon {
  font-size: 1rem;
  color: var(--primary-green);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.sidebar-item.active .sidebar-item-icon {
  color: white;
}

.sidebar-item-label {
  font-weight: 500;
  color: var(--text-primary);
}

/* Subcategories panel */
.subcategories-panel {
  position: absolute;
  left: 240px;
  top: 100px;
  width: 180px;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-20px);
  transition: all 0.3s ease;
  z-index: 9;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.subcategories-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.subcategories-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.subcategories-header h4 {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.subcategories-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subcategory-item {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-primary);
  font-weight: 500;
}

.subcategory-item:hover {
  background: var(--bg-light);
  color: var(--primary-green);
}

/* Main content area */
.products-main-content {
  flex: 1;
  padding: 0 2rem;
  min-width: 0;
}

.products-page {
  padding: 2rem;
}

.products-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  justify-items: center;
  margin-bottom: 3rem;
}

.category-btn {
  background: var(--bg-light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-primary);
}

.category-btn:hover {
  background: var(--primary-green);
  color: white;
}

.category-btn.active {
  background: var(--primary-green);
  color: white;
}

.products-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.products-full-grid.products-two-col {
  grid-template-columns: repeat(2, 1fr);
}

.products-full-grid.products-two-col > .product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: unset;
}

.products-full-grid.products-two-col > .product-card img {
  height: 350px;
  object-fit: cover;
}

.products-full-grid.products-two-col > .product-card .product-info {
  padding: 1.5rem;
}

.products-full-grid.filtered-view {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
}

.products-full-grid.filtered-view .product-card {
  width: 100% !important;
  aspect-ratio: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.products-full-grid.filtered-view .product-card img,
.products-full-grid.filtered-view .product-card .product-image-container {
  height: 350px !important;
  object-fit: cover !important;
  width: 100% !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
}

.products-full-grid.filtered-view .product-card .product-info {
  padding: 1.5rem !important;
}

/* Ensure all home-shortterm cards in filtered view are same size */
.products-full-grid.filtered-view .product-card[data-category="home-shortterm"],
.products-full-grid.filtered-view .product-card[data-category="home-shortterm"] .product-image-container {
  height: auto !important;
}

/* Ensure specific home-shortterm cards (item 33, 31, 15) have same size as item 14 in filtered view */
.products-full-grid.filtered-view .product-card[data-category="home-shortterm"][data-item-id="33"],
.products-full-grid.filtered-view .product-card[data-category="home-shortterm"][data-item-id="31"],
.products-full-grid.filtered-view .product-card[data-category="home-shortterm"][data-item-id="15"] {
  height: auto !important;
  width: 100% !important;
  min-height: unset !important;
}

.products-full-grid.filtered-view .product-card[data-category="home-shortterm"][data-item-id="33"] .product-image-container,
.products-full-grid.filtered-view .product-card[data-category="home-shortterm"][data-item-id="31"] .product-image-container,
.products-full-grid.filtered-view .product-card[data-category="home-shortterm"][data-item-id="15"] .product-image-container {
  height: 350px !important;
  width: 100% !important;
}

.products-full-grid.filtered-view .product-card[data-category="home-shortterm"][data-item-id="33"] .product-image-container img,
.products-full-grid.filtered-view .product-card[data-category="home-shortterm"][data-item-id="31"] .product-image-container img,
.products-full-grid.filtered-view .product-card[data-category="home-shortterm"][data-item-id="15"] .product-image-container img {
  height: 350px !important;
  object-fit: cover !important;
  width: 100% !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
}

.products-full-grid.filtered-view .product-card[data-category="home-shortterm"][data-item-id="33"] .product-info,
.products-full-grid.filtered-view .product-card[data-category="home-shortterm"][data-item-id="31"] .product-info,
.products-full-grid.filtered-view .product-card[data-category="home-shortterm"][data-item-id="15"] .product-info {
  padding: 1.5rem !important;
}

/* Override three-col styles for these specific cards in filtered view */
.products-full-grid.filtered-view.three-col .product-card[data-category="home-shortterm"][data-item-id="33"] img,
.products-full-grid.filtered-view.three-col .product-card[data-category="home-shortterm"][data-item-id="31"] img,
.products-full-grid.filtered-view.three-col .product-card[data-category="home-shortterm"][data-item-id="15"] img,
.products-full-grid.filtered-view.three-col .product-card[data-category="home-shortterm"][data-item-id="33"] .product-image-container,
.products-full-grid.filtered-view.three-col .product-card[data-category="home-shortterm"][data-item-id="31"] .product-image-container,
.products-full-grid.filtered-view.three-col .product-card[data-category="home-shortterm"][data-item-id="15"] .product-image-container {
  height: 350px !important;
  width: 100% !important;
}

.products-full-grid.filtered-view .product-card[data-category="home-shortterm"]:nth-child(1) .product-image-container .product-image-default,
.products-full-grid.filtered-view .product-card[data-category="home-shortterm"]:nth-child(1) .product-image-container .product-image-hover {
  width: 100% !important;
  height: 350px !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
}

.section-title {
  grid-column: 1 / -1;
  text-align: left;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--primary-green);
}

.clickable-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(46, 204, 113, 0.15);
}

/* Product Detail Page Styles */
.product-detail-page {
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}

.product-detail-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 0;
  margin-left: -4cm;
  margin-top: -2cm;
  border-bottom: 1px solid var(--border-color);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: var(--primary-green);
  color: white;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-left: 0;
  padding-left: 0;
}

.favorite-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.favorite-btn:hover {
  color: #E74C3C;
  transform: scale(1.1);
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  margin-left: 0;
  padding-bottom: 1rem;
  padding-left: 0;
  border-bottom: 1px solid var(--border-color);
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.rating-stars i {
  color: #FFD700;
  font-size: 1rem;
}

.rating-value {
  margin-left: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.sales-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-price-section {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-value .original-price {
  font-size: 1.2rem;
  font-weight: 400;
  color: #999999;
  text-decoration: line-through;
}

.price-value:not(:has(.original-price)) {
  color: var(--text-primary);
}

.price-value:has(.original-price) {
  color: #e74c3c;
}

.price-unit {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.price-note {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.detail-highlights-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.detail-highlights-content {
  margin-bottom: 1.5rem;
}

.highlight-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.highlight-item strong {
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 700;
}

.highlight-item strong::before {
  content: "• ";
  font-size: 1.1rem;
}

.features-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.features-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.back-icon {
  font-size: 1.2rem;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.5cm;
  align-items: start;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.product-detail-image {
  margin-top: 0.2cm;
}

.product-detail-image img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 6/4;
  transform: scale(0.85);
  transform-origin: top left;
}

.product-detail-info {
  padding-left: 0;
  margin-left: 0;
}

.product-detail-info h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
  margin-left: -20px;
  padding-left: 0;
  position: relative;
  left: 0;
}

.product-detail-info .product-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.detail-section .product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Related Products Section */
.related-products-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.related-products-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.related-product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.related-product-card .related-product-image-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-product-card .related-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.related-product-card .related-product-image-default {
  z-index: 1;
  opacity: 1;
}

.related-product-card .related-product-image-hover {
  z-index: 2;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.related-product-card .related-product-image-scene {
  z-index: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.related-product-card .related-product-image-container:hover .related-product-image-default {
  opacity: 0;
}

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

.related-product-card .related-product-image-container.show-scene .related-product-image-default,
.related-product-card .related-product-image-container.show-scene .related-product-image-hover {
  opacity: 0;
}

.related-product-card .related-product-image-container.show-scene .related-product-image-scene {
  opacity: 1;
  z-index: 10;
}

.related-product-card .related-image-switch-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: #2d5a27;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  z-index: 20;
}

.related-product-card .related-product-image-container:hover .related-image-switch-btn {
  opacity: 1;
}

.related-product-card .related-image-switch-btn:hover {
  background: #3d7a37;
}

.related-product-card .related-image-switch-btn i {
  font-size: 0.75rem;
  color: #fff;
}

.related-product-card .related-product-info {
  padding: 0.5rem 0.6rem 0.6rem;
  text-align: center;
}

.related-product-card .related-product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-product-card .product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

.related-product-card .product-tags .tag {
  background: var(--bg-light);
  color: var(--primary-green);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 500;
}

.get-quote-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.get-quote-btn:hover {
  background: var(--primary-green-dark);
}

@media (max-width: 768px) {
  .product-detail-page {
    padding: 0 1rem;
  }
  
  .product-detail-header {
    padding: 0.75rem 0;
  }
  
  .back-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .product-detail-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .product-detail-image img {
    height: 250px;
  }
  
  .product-detail-info h1 {
    font-size: 1.3rem;
  }
  
  .product-title-row {
    flex-direction: row;
    align-items: center;
  }
  
  .favorite-btn {
    font-size: 1.25rem;
  }
  
  .product-rating-row {
    gap: 1rem;
  }
  
  .rating-stars i {
    font-size: 0.85rem;
  }
  
  .rating-value {
    font-size: 0.85rem;
  }
  
  .sales-count {
    font-size: 0.8rem;
  }
  
  .product-price-section {
    padding: 1rem;
  }
  
  .price-value {
    font-size: 1.5rem;
  }
  
  .price-label,
  .price-unit,
  .price-note {
    font-size: 0.8rem;
  }
  
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .related-product-card .related-product-image-container {
    height: 140px;
  }
  
  .related-product-card .related-product-name {
    font-size: 0.8rem;
  }
  
  .related-product-card .product-tags .tag {
    font-size: 0.65rem;
  }
  
  .related-product-card .related-product-info {
    padding: 0.4rem 0.5rem 0.5rem;
  }
  
  .related-products-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .related-product-card .related-image-switch-btn {
    width: 26px;
    height: 26px;
    opacity: 1;
  }
}

.products-full-grid.filtered-view .product-info h4 {
  font-size: 0.95rem;
}

.products-full-grid.filtered-view .product-meta,
.products-full-grid.filtered-view .product-description {
  font-size: 0.85rem;
}

/* Custom category layout - 3 columns */
.products-full-grid.custom-layout {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem;
  width: 100%;
}

.products-full-grid.custom-layout .product-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.products-full-grid.custom-layout .product-card img {
  height: 200px;
}

.products-full-grid.custom-layout .product-info h4 {
  font-size: 0.95rem;
}

.products-full-grid.custom-layout .product-meta,
.products-full-grid.custom-layout .product-description {
  font-size: 0.85rem;
}

/* Custom two-column layout for cat8 */
.products-full-grid.custom-two-col {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem;
  width: 100%;
}

.products-full-grid.custom-two-col .product-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.products-full-grid.custom-two-col .product-card img {
  height: 280px;
}

.products-full-grid.custom-two-col .product-info h4 {
  font-size: 1rem;
}

.products-full-grid.custom-two-col .product-meta {
  font-size: 0.9rem;
}

.products-full-grid.custom-two-col .product-description {
  font-size: 0.9rem;
}

.products-full-grid.custom-two-col .product-card .card-arrow-btn {
  bottom: 1rem;
  right: 1rem;
}

/* Three column layout for top sellers section */
.products-full-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.products-full-grid.three-col .product-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  min-height: unset;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.products-full-grid.three-col .product-card img {
  height: 280px;
  object-fit: cover;
}

.products-full-grid.three-col .product-info {
  padding: 1.25rem;
}

/* Home shortterm category - Large size cards (match products-two-col) */
.products-full-grid.three-col .product-card[data-category="home-shortterm"] img,
.products-full-grid.three-col .product-card[data-category="home-shortterm"] .product-image-container {
  height: 350px !important;
}

.products-full-grid.three-col .product-card[data-category="home-shortterm"] .product-info {
  padding: 1.5rem !important;
}

.products-full-grid.three-col .product-info h4 {
  font-size: 0.95rem;
}

.products-full-grid.three-col .product-meta {
  font-size: 0.85rem;
}

.products-full-grid.three-col .product-description {
  font-size: 0.85rem;
}

.products-full-grid.three-col .product-card .card-arrow-btn {
  bottom: 1rem;
  right: 1rem;
}

.custom-section {
  background: var(--bg-light);
  padding: 3rem;
  margin-top: 3rem;
  border-radius: 12px;
  text-align: center;
}

.custom-section h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.custom-section p {
  color: var(--text-secondary);
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-content > * {
  margin-bottom: 40px;
}

.about-content > *:last-child {
  margin-bottom: 0;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.certifications {
  padding: 4rem 2rem;
  background: var(--bg-light);
  margin-bottom: 40px;
  background-image: url('../images/产品认证.jpg');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  position: relative;
}

.certifications::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  z-index: 0;
}

.certifications .section-container {
  position: relative;
  z-index: 1;
}

.certifications .section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  margin-top: 0.5rem;
  position: relative;
  z-index: 10;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.cert-item {
  text-align: center;
  padding: 1.5rem;
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
}

.cert-item i {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.cert-item p {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.brand-story-section {
  padding: 4rem 2rem;
  background: white;
}

.brand-story-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.brand-story-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.reviews-section {
  padding: 4rem 2rem;
  background: var(--bg-light);
  margin-bottom: 40px;
}

.reviews-section .reviews-grid {
  max-width: 1000px;
  margin: 0 auto;
}

.review-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.review-stars {
  color: #F39C12;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

.review-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
}

.reviews-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.stars {
  color: #F39C12;
  margin-bottom: 1rem;
}

.review-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.review-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-info span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item i {
  color: var(--primary-green);
  margin-right: 1rem;
  font-size: 1.25rem;
}

.contact-item div {
  color: var(--text-secondary);
}

.contact-item div strong {
  color: var(--text-primary);
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.floating-icons {
  position: fixed;
  right: 2rem;
  bottom: 8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.floating-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.floating-icon:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.floating-icon.wechat {
  background: #07C160;
}

.floating-icon.whatsapp {
  background: #25D366;
}

.about-hero {
  background: linear-gradient(135deg, rgba(45, 90, 39, 0.9) 0%, rgba(30, 61, 27, 0.95) 100%), url('../images/地球.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.about-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-hero .page-title {
  color: white;
  margin-bottom: 0.5rem;
}

.about-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

.about-intro-card {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.about-intro-text h2 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-intro-text p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

.about-intro-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-left: 2rem;
  border-left: 3px solid var(--primary-green);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.about-features-grid {
  margin-bottom: 3rem;
}

.factory-section {
  padding: 4rem 0;
}

.factory-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  margin-top: -0.5rem;
}

.factory-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.factory-image-container {
  max-width: 80%;
  margin: 0 auto 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16/9;
  position: relative;
}

.factory-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.factory-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.factory-image.video-ended {
  position: relative;
  z-index: 1;
}

.factory-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(46, 204, 113, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.factory-play-btn.show {
  opacity: 1;
  visibility: visible;
}

.factory-play-btn:hover {
  background: rgba(46, 204, 113, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.factory-play-btn i {
  color: white;
  font-size: 2rem;
  margin-left: 6px;
}

.factory-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.factory-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-green);
}

.factory-card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.factory-card-icon i {
  font-size: 1.75rem;
  color: white;
}

.factory-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.factory-card-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.factory-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.factory-card-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.gallery-section {
  padding: 6rem 2rem;
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-animate {
  opacity: 0;
  transform: scale(0.3);
}

.gallery-animate.visible {
  animation: galleryScaleIn 0.6s ease-out forwards;
}

@keyframes galleryScaleIn {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 1.5rem 1rem 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-weight: 500;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .features-grid,
  .products-grid,
  .products-two-col,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .strengths-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }

  .strength-card {
    flex: 0 0 calc(50% - 1rem);
    max-width: none;
  }

  .strength-item {
    flex: 0 0 calc(50% - 1rem);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }

  .about-intro-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .about-intro-stats {
    flex-direction: row;
    justify-content: space-around;
    padding-left: 0;
    padding-top: 2rem;
    border-left: none;
    border-top: 3px solid var(--primary-green);
  }

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

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

  .gallery-item-large {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-hero {
    padding: 3rem 1rem;
  }

  .about-hero-subtitle {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .factory-cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  }
}

/* Envelope Letter Section */
.envelope-section {
  background-color: transparent;
  padding: 4rem 2rem;
  margin-bottom: 30px;
}

.envelope-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 750px;
  margin: 0 auto;
}

.letter-paper {
  background: linear-gradient(135deg, #faf8f5 0%, #f5f0e8 100%);
  padding: 3rem;
  width: 100%;
  max-width: 600px;
  border-radius: 6px;
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 0 50px rgba(246, 243, 238, 0.5);
  position: relative;
  z-index: 2;
  margin-bottom: -45px;
}

.letter-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.handwritten {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-weight: 300;
  color: #4a3c32;
}

.letter-header .handwritten {
  font-size: 1.65rem;
  letter-spacing: 0.15em;
}

.letter-content {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(180, 160, 140, 0.2);
  padding: 2.25rem;
  margin-bottom: 2.25rem;
  text-align: center;
}

.letter-content p {
  font-family: 'Georgia', serif;
  font-size: 1.425rem;
  color: #4a3c32;
  line-height: 1.7;
  margin: 0;
}

.letter-footer {
  text-align: right;
}

.letter-footer .handwritten {
  font-size: 1.275rem;
  letter-spacing: 0.075em;
  color: #000000;
  font-weight: bold;
}

/* Envelope */
.envelope {
  background-color: #f5f0e8;
  width: 100%;
  max-width: 660px;
  padding: 3rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.1),
    0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.envelope-flap {
  position: absolute;
  top: -52.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 330px solid transparent;
  border-right: 330px solid transparent;
  border-bottom: 67.5px solid #f5f0e8;
}

.envelope-flap::after {
  content: '';
  position: absolute;
  top: 6px;
  left: -322.5px;
  width: 0;
  height: 0;
  border-left: 322.5px solid transparent;
  border-right: 322.5px solid transparent;
  border-bottom: 63px solid #ebe5dc;
}

.envelope-body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.25rem 0;
}

.wax-seal {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #8b0000 0%, #a52a2a 50%, #8b0000 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 
    0 3px 10px rgba(139, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  position: relative;
}

.wax-seal::before {
  content: '';
  position: absolute;
  width: 105px;
  height: 105px;
  border: 3px solid rgba(139, 0, 0, 0.3);
  border-radius: 50%;
}

.seal-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.seal-icon i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
}

.envelope-footer {
  text-align: center;
  padding-top: 0.75rem;
}

.envelope-footer .handwritten {
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: #000000;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .envelope-section {
    padding: 2rem 1rem;
  }
  
  .letter-paper {
    padding: 1.5rem;
    margin-bottom: -25px;
  }
  
  .envelope {
    padding: 1.5rem;
  }
  
  .envelope-flap {
    top: -30px;
    border-left-width: 180px;
    border-right-width: 180px;
    border-bottom-width: 38px;
  }
  
  .envelope-flap::after {
    left: -176px;
    border-left-width: 176px;
    border-right-width: 176px;
    border-bottom-width: 35px;
  }
}

@media (max-width: 480px) {
  .letter-header .handwritten {
    font-size: 0.95rem;
  }
  
  .letter-content p {
    font-size: 0.85rem;
  }
  
  .wax-seal {
    width: 50px;
    height: 50px;
  }
  
  .seal-icon {
    width: 25px;
    height: 25px;
  }
}

/* Fresh Life Page Styles */
.freshlife-banner {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}

.freshlife-banner-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.freshlife-banner-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.freshlife-intro {
  padding: 3rem 2rem;
  text-align: center;
  background: transparent;
}

.freshlife-intro p {
  font-size: 1.1rem;
  color: #000000;
  font-weight: bold;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.freshlife-cards {
  padding: 4rem 2rem;
}

.freshlife-cards-grid {
  display: flex;
  justify-content: center;
  align-items: center;
}

.freshlife-cards-image-wrapper {
  width: 100%;
  max-width: 1200px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(45, 90, 39, 0.3) 0%, rgba(30, 61, 27, 0.4) 100%), url('../images/地球三.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.freshlife-cards-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  opacity: 0.95;
  display: block;
  position: relative;
  z-index: 1;
}

.freshlife-cards-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.25);
}

.freshlife-cards-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.freshlife-cards-text {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 2rem;
  max-width: 800px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.freshlife-cards-btn {
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  color: white;
  border: none;
  padding: 0.875rem 2.5rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
}

.freshlife-cards-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 136, 229, 0.5);
}

.freshlife-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  text-align: center;
}

.freshlife-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.freshlife-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.freshlife-card-icon i {
  font-size: 2rem;
  color: white;
}

.freshlife-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.freshlife-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.freshlife-card-tip {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.freshlife-card-tip span:first-child {
  font-weight: 600;
  color: var(--primary-green);
}

.freshlife-card-tip span:last-child {
  color: var(--text-secondary);
}

.freshlife-articles {
  padding: 4rem 2rem;
  background: transparent;
}

.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.articles-title-group {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #2d5a27;
  margin: 0;
}

.articles-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin: 0.5rem 0 0 0;
}

.articles-read-more {
  padding: 0.5rem 1.25rem;
  border: 2px solid #2d5a27;
  border-radius: 20px;
  color: #2d5a27;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.articles-read-more:hover {
  background-color: #2d5a27;
  color: white;
}

.freshlife-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  padding: 45px 20px;
}

.freshlife-articles-grid-expanded {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  padding: 30px 20px 40px;
  margin-bottom: 0;
  margin-top: 0;
  max-height: 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(-20px);
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
}

.freshlife-articles-grid-expanded.expanded {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
  padding: 30px 20px 40px;
}

.blog-card {
  background: white;
  border-radius: 8px;
  border: 1px solid #b8e0b8;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px) scale(1.07);
  box-shadow: 0 12px 25px rgba(45, 90, 39, 0.2);
}

.blog-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background-color: #f5f5f5;
}

.blog-card-top-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 1rem;
  background-color: #2d5a27;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-leaf-icon {
  color: #a8e6cf;
  font-size: 1rem;
}

.blog-card-sub-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.3rem 1rem;
  background-color: #d4edda;
  color: #155724;
  font-size: 0.7rem;
  font-weight: 500;
}

.blog-card-content {
  padding: 1.25rem 1.25rem 0.75rem 1.25rem;
  background-color: #98d8aa;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: #ffadc8;
  color: #8b0047;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-card-desc {
  color: white;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
  flex: 1;
}

.blog-card-social {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  margin-bottom: 5px;
  padding-top: 0.5rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  background-color: #b8e0b8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d5a27;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

.social-btn:hover {
  background-color: #2d5a27;
  color: white;
  transform: scale(1.1);
}

.article-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.lazy-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
  opacity: 1;
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  border: 2px dashed #ddd;
  box-sizing: border-box;
  transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded + .image-placeholder {
  opacity: 0;
  pointer-events: none;
}

.image-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.placeholder-text {
  font-size: 0.85rem;
  text-align: center;
}

/* New Freshlife Cards Section */
.freshlife-cards-new {
  padding: 4rem 2rem;
  background: transparent;
}

.cards-main-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 2.5rem;
  font-family: 'Arial', sans-serif;
}

.freshlife-cards-new-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Stamp Card with Wave Border Effect */
.stamp-card {
  position: relative;
  padding: 1.5rem;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  clip-path: polygon(
    12px 0, 24px 6px, 36px 0, 48px 6px, 60px 0, 72px 6px, 84px 0, 96px 6px, 108px 0, 120px 6px, 132px 0, 144px 6px, 156px 0, 168px 6px, 180px 0, 192px 6px, 204px 0, 216px 6px, 228px 0, 240px 6px, 252px 0, 264px 6px, 276px 0, 288px 6px, 300px 0, 312px 6px, 324px 0, 336px 6px, 348px 0, 360px 6px, 372px 0, calc(100% - 12px) 0,
    100% 12px, calc(100% - 6px) 24px, 100% 36px, calc(100% - 6px) 48px, 100% 60px, calc(100% - 6px) 72px, 100% 84px, calc(100% - 6px) 96px, 100% 108px, calc(100% - 6px) 120px, 100% 132px, calc(100% - 6px) 144px, 100% 156px, calc(100% - 6px) 168px, 100% 180px, calc(100% - 6px) 192px, 100% 204px, calc(100% - 6px) 216px, 100% 228px, calc(100% - 6px) 240px, 100% 252px, calc(100% - 6px) 264px, 100% 276px, calc(100% - 6px) 288px, 100% 300px, calc(100% - 6px) 312px, 100% calc(100% - 12px),
    calc(100% - 12px) 100%, calc(100% - 24px) calc(100% - 6px), calc(100% - 36px) 100%, calc(100% - 48px) calc(100% - 6px), calc(100% - 60px) 100%, calc(100% - 72px) calc(100% - 6px), calc(100% - 84px) 100%, calc(100% - 96px) calc(100% - 6px), calc(100% - 108px) 100%, calc(100% - 120px) calc(100% - 6px), calc(100% - 132px) 100%, calc(100% - 144px) calc(100% - 6px), calc(100% - 156px) 100%, calc(100% - 168px) calc(100% - 6px), calc(100% - 180px) 100%, calc(100% - 192px) calc(100% - 6px), calc(100% - 204px) 100%, calc(100% - 216px) calc(100% - 6px), calc(100% - 228px) 100%, calc(100% - 240px) calc(100% - 6px), calc(100% - 252px) 100%, calc(100% - 264px) calc(100% - 6px), calc(100% - 276px) 100%, calc(100% - 288px) calc(100% - 6px), calc(100% - 300px) 100%, calc(100% - 312px) calc(100% - 6px), 12px 100%,
    0 calc(100% - 12px), 6px calc(100% - 24px), 0 calc(100% - 36px), 6px calc(100% - 48px), 0 calc(100% - 60px), 6px calc(100% - 72px), 0 calc(100% - 84px), 6px calc(100% - 96px), 0 calc(100% - 108px), 6px calc(100% - 120px), 0 calc(100% - 132px), 6px calc(100% - 144px), 0 calc(100% - 156px), 6px calc(100% - 168px), 0 calc(100% - 180px), 6px calc(100% - 192px), 0 calc(100% - 204px), 6px calc(100% - 216px), 0 calc(100% - 228px), 6px calc(100% - 240px), 0 calc(100% - 252px), 6px calc(100% - 264px), 0 calc(100% - 276px), 6px calc(100% - 288px), 0 calc(100% - 300px), 6px calc(100% - 312px), 0 12px
  );
}

/* Card Colors */
.stamp-card-rose {
  background-color: #ff3377;
}

.stamp-card-blue {
  background-color: #188acc;
}

.stamp-card-purple {
  background-color: #797fd8;
}

.stamp-card-green {
  background-color: #389980;
}

.stamp-content {
  text-align: center;
  padding: 1rem;
}

.stamp-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.stamp-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  opacity: 0.95;
}

.card-btn {
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.card-btn:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .freshlife-cards-new-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .freshlife-cards-new-grid {
    grid-template-columns: 1fr;
  }
  
  .cards-main-title {
    font-size: 1.5rem;
  }
}

.freshlife-article img,
.article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.freshlife-article .article-content {
  padding: 1.5rem;
}

.article-category {
  display: inline-block;
  background: var(--primary-green);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.freshlife-article h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.freshlife-article p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.article-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.freshlife-brand-note {
  padding: 4rem 2rem;
  background: transparent;
}

.brand-note-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  border-radius: 16px;
  color: white;
}

.brand-note-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-note-icon i {
  font-size: 2.5rem;
}

.brand-note-text h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.brand-note-text p {
  opacity: 0.9;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .freshlife-banner-content h1 {
    font-size: 2rem;
  }

  .freshlife-banner-content p {
    font-size: 1rem;
  }

  .freshlife-cards-grid,
  .freshlife-articles-grid {
    grid-template-columns: 1fr;
  }

  .brand-note-content {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}

.freshlife-tips {
  padding: 4rem 2rem;
  background: white;
}

.freshlife-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tip-item {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s;
  border-left: 4px solid var(--primary-green);
}

.tip-item:hover {
  background: white;
  box-shadow: var(--shadow);
  transform: translateX(5px);
}

.tip-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.tip-item h4 {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

.brand-note-small {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Carousel Section */
.freshlife-carousel {
  padding: 3rem 0;
  background: transparent;
}

.carousel-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #2d5a27;
  margin-bottom: 25px;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 90px 15px;
  perspective: 800px;
  display: flex;
  justify-content: center;
  min-height: 420px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: #2d5a27;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, opacity 0.3s;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.carousel-arrow:hover {
  background: #1e3d1b;
}

.carousel-arrow.carousel-arrow-left {
  left: 0.5rem;
}

.carousel-arrow.carousel-arrow-right {
  right: 0.5rem;
}

.carousel-wrapper:hover .carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}

.carousel-wrapper.at-start .carousel-arrow-left,
.carousel-wrapper.at-end .carousel-arrow-right {
  opacity: 0;
  pointer-events: none;
}

.carousel-track {
  display: flex;
  gap: 8px;
  padding: 0 20px 0 0;
  overflow-x: visible;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform-style: preserve-3d;
  position: relative;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex-shrink: 0;
  width: 280px;
  background: #ffffff;
  border: 1px solid #b8e0b8;
  border-radius: 8px;
  overflow: visible;
  scroll-snap-align: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  transform-origin: center center;
  box-shadow: 0 6px 12px rgba(45, 90, 39, 0.15);
}

/* All cards - no initial rotation */
.carousel-card:nth-child(1),
.carousel-card:nth-child(2),
.carousel-card:nth-child(3),
.carousel-card:nth-child(4) {
  transform: rotateY(0deg);
}

.carousel-track:hover .carousel-card:not(:hover) {
  transform: scale(0.93);
  opacity: 0.8;
}

.carousel-card:hover {
  transform: scale(1.13) translateY(-12px) translateX(20px) rotateY(0deg);
  box-shadow: 0 18px 35px rgba(45, 90, 39, 0.35);
  border-color: #2d5a27;
  z-index: 10;
}

.carousel-card-featured {
  width: 320px;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.card-image-featured {
  height: 350px;
}

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

.card-image-wrapper .image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}

.card-image-wrapper .image-placeholder i {
  font-size: 2rem;
}

.play-icon {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  background: rgba(45, 90, 39, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.play-icon i {
  font-size: 0.9rem;
  margin-left: 3px;
}

.card-divider {
  height: 1px;
  background: #b8e0b8;
}

.card-info {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-text {
  flex: 1;
}

.card-text h4 {
  font-size: 0.95rem;
  color: #3d5c3d;
  margin: 0 0 4px 0;
}

.card-text p {
  font-size: 0.8rem;
  color: #6b8b6b;
  margin: 0 0 6px 0;
}

.card-price {
  font-size: 1rem;
  font-weight: 600;
  color: #2d5a27;
}

.card-price-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.card-original-price {
  font-size: 0.8rem;
  color: #999;
  text-decoration: line-through;
}

.card-sale-price {
  font-size: 1rem;
  font-weight: 600;
  color: #2d5a27;
}

.card-add-btn {
  width: 36px;
  height: 36px;
  background: #2d5a27;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  transition: background-color 0.3s;
}

.card-add-btn:hover {
  background: #1e3d1b;
  transform: scale(1.05);
  background: #1e3d1b;
}

.card-add-btn i {
  font-size: 1rem;
}

.card-add-btn.disabled {
  background-color: #90c690;
  cursor: default;
}

.card-add-btn.disabled:hover {
  background-color: #90c690;
  transform: none;
}

@media (max-width: 768px) {
  .carousel-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .carousel-card {
    width: 200px;
  }
  
  .carousel-card-featured {
    width: 230px;
  }
  
  .card-image-wrapper {
    height: 260px;
  }
  
  .card-image-featured {
    height: 290px;
  }
  
  .play-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  .freshlife-banner-content h1 {
    font-size: 2rem;
  }

  .freshlife-banner-content p {
    font-size: 1rem;
  }

  .freshlife-cards-grid,
  .freshlife-articles-grid,
  .freshlife-tips-grid {
    grid-template-columns: 1fr;
  }

  .brand-note-content {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}

/* Fresh Life Global Parallax Background */
.freshlife-page {
  position: relative;
  min-height: 100vh;
  background: transparent;
}

.global-parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: url('../images/地球.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translateZ(0);
  z-index: 0;
}

.global-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 1;
}

.freshlife-page header,
.freshlife-page .page-content {
  position: relative;
  z-index: 2;
  background: transparent;
}

.freshlife-page footer {
  position: relative;
  z-index: 2;
  background: var(--text-primary);
}

@media (max-width: 480px) {
  .freshlife-banner {
    padding: 3rem 1rem;
  }

  .freshlife-card {
    padding: 1.5rem;
  }

  .freshlife-card-icon {
    width: 60px;
    height: 60px;
  }

  .freshlife-card-icon i {
    font-size: 1.5rem;
  }
}

/* Floating Cards Container */
.floating-cards-container {
  display: flex;
  gap: 16px;
  position: absolute;
  right: calc(-280px - 280px - 16px);
  top: 90px;
  z-index: 5;
  transition: transform 0.35s ease;
  transform: translateX(0);
}

.floating-cards-container.slide-in {
  transform: translateX(calc(-280px - 280px - 16px));
}

/* New Product Card - same height as product cards */
.carousel-card-new-product {
  background: #ffffff;
  width: 280px;
  height: 369px;
  border: 1px solid #b8e0b8;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(45, 90, 39, 0.15);
  flex-shrink: 0;
  overflow: hidden;
}

/* More Card Style - same height as product cards */
.carousel-card-more {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  width: 280px;
  height: 369px;
  border: 1px solid #b8e0b8;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(45, 90, 39, 0.15);
  flex-shrink: 0;
  overflow: hidden;
}

.carousel-card-new-product:hover,
.carousel-card-more:hover {
  box-shadow: 0 10px 20px rgba(45, 90, 39, 0.25);
}

/* Favorite Button Styles */
.card-favorite-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 2px solid #ff9800;
  border-radius: 50%;
  color: #ff9800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-favorite-btn:hover {
  background: #fff8e1;
  border-color: #ff9800;
  color: #ff9800;
}

.card-favorite-btn.favorited {
  background: transparent;
  border-color: transparent;
  color: #ff9800;
}

.card-favorite-btn i {
  font-size: 1rem;
}

/* Favorite toast notification */
.favorite-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: #fff8e1;
  border: 2px solid #ff9800;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  color: #ff9800;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.favorite-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Carousel specific favorite toast - Fixed center positioning */
.freshlife-carousel .favorite-toast {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: #fff8e1;
  border: 2px solid #ff9800;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  color: #ff9800;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99999 !important;
  white-space: nowrap;
}

.freshlife-carousel .favorite-toast.show {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Container shift when floating cards slide in */
.carousel-wrapper.floating-cards-shown .carousel-track {
  padding-right: calc(280px + 280px + 16px + 32px);
  transform: translateX(calc(-280px - 8px));
}

/* Ensure carousel-track and floating-cards-container are siblings at same level */
.carousel-track {
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease, padding 0.35s ease;
}

.card-more-content {
  text-align: center;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 369px;
}

.card-more-icon {
  width: 60px;
  height: 60px;
  background: rgba(45, 90, 39, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card-more-icon i {
  font-size: 1.5rem;
  color: #2d5a27;
}

.card-more-content h4 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2d5a27;
  margin: 0 0 0.75rem 0;
}

.card-more-content p {
  font-size: 0.9rem;
  color: #4a7c4a;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.card-more-btn {
  background: transparent;
  border: 2px solid #2d5a27;
  color: #2d5a27;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.video-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  z-index: 1;
}

.video-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.video-modal-close:hover {
  background: #e0e0e0;
}

.video-modal-close i {
  color: #666;
  font-size: 1rem;
}

.video-modal-title {
  color: #2d5a27;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 0 1.5rem 0;
  padding-right: 2rem;
}

.video-modal-body {
  width: 100%;
}

.video-modal-body video {
  width: 100%;
  max-height: 400px;
  border-radius: 8px;
  background: #000;
}

/* Shopping Cart Notification */
.cart-notification {
  position: fixed;
  top: 100px;
  right: -300px;
  background: #2d5a27;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
}

.cart-notification.show {
  right: 20px;
}

.cart-notification i {
  font-size: 1.2rem;
}

.cart-notification span {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Favorite Notification */
.favorite-notification {
  position: fixed;
  top: 150px;
  right: -300px;
  background: #ff9800;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
}

.favorite-notification.show {
  right: 20px;
}

.favorite-notification i {
  font-size: 1.2rem;
}

.favorite-notification span {
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }
  
  .carousel-wrapper {
    padding: 0 2.5rem;
  }
  
  .video-modal-content {
    padding: 1.5rem;
  }
  
  .cart-notification {
    right: -280px;
    padding: 0.8rem 1.2rem;
  }
  
  .cart-notification.show {
    right: 10px;
  }
}

/* ========================================
   3D Box Preview Styles - Realistic Food Container
   ======================================== */

.box-preview-3d {
  width: 420px;
  height: 360px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 60px auto 0;
}

.box-3d-wrapper {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-12deg) rotateY(-28deg);
  transition: transform 0.5s ease;
}

.box-3d-wrapper:hover {
  transform: rotateX(-15deg) rotateY(-35deg);
}

/* Box Body - Realistic Food Container Body */
.body-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.4s ease;
}

.body-front,
.body-back,
.body-left,
.body-right,
.body-bottom {
  position: absolute;
  backface-visibility: hidden;
  transition: all 0.4s ease;
}

/* Inner glow inside body */
.body-inner-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 50%, transparent 80%);
  border-radius: inherit;
  pointer-events: none;
}

/* Main highlight on body front */
.body-highlight-1 {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 50%;
  height: 40%;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.92) 0%, 
    rgba(255,255,255,0.5) 35%,
    rgba(255,255,255,0.15) 70%,
    rgba(255,255,255,0) 100%);
  border-radius: 55% 45% 60% 40%;
  pointer-events: none;
  filter: blur(1.5px);
}

/* Secondary highlight */
.body-highlight-2 {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 18%;
  height: 22%;
  background: linear-gradient(180deg, 
    rgba(255,255,255,0.7) 0%, 
    rgba(255,255,255,0.2) 60%,
    rgba(255,255,255,0) 100%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

/* Body rim - realistic container edge */
.body-rim {
  position: absolute;
  top: -4px;
  left: -4px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.body-rim::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 10px;
  background: linear-gradient(145deg, 
    rgba(220,230,222,0.85) 0%, 
    rgba(190,205,195,0.9) 30%,
    rgba(175,190,180,0.88) 70%,
    rgba(185,200,190,0.92) 100%);
  border: 1px solid rgba(160,180,168,0.6);
  border-radius: 4px 4px 0 0;
  transform: rotateX(90deg) translateZ(5px) translateY(-5px);
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.4),
    0 1px 3px rgba(0,0,0,0.08);
}

/* Default square body - Realistic transparent plastic container */
.body-front {
  background: linear-gradient(145deg, 
    rgba(230,242,233,0.95) 0%, 
    rgba(210,228,215,0.85) 25%,
    rgba(195,218,202,0.90) 55%,
    rgba(205,225,212,0.85) 80%,
    rgba(220,238,225,0.92) 100%);
  border: 2px solid rgba(170,195,180,0.65);
  box-shadow: 
    inset 0 0 90px rgba(255,255,255,0.55),
    inset 0 0 35px rgba(210,235,215,0.3),
    inset 0 0 12px rgba(230,242,240,0.4),
    0 4px 20px rgba(0,0,0,0.08),
    0 2px 8px rgba(0,0,0,0.05);
}

.body-back {
  background: linear-gradient(145deg, 
    rgba(200,218,205,0.35) 0%, 
    rgba(180,200,188,0.30) 50%,
    rgba(168,190,178,0.33) 100%);
  border: 2px solid rgba(150,175,160,0.4);
}

.body-left {
  background: linear-gradient(145deg, 
    rgba(208,228,213,0.38) 0%, 
    rgba(190,210,198,0.32) 50%,
    rgba(175,195,183,0.36) 100%);
  border: 2px solid rgba(155,180,165,0.42);
}

.body-right {
  background: linear-gradient(145deg, 
    rgba(218,235,222,0.40) 0%, 
    rgba(200,222,208,0.35) 50%,
    rgba(185,205,192,0.38) 100%);
  border: 2px solid rgba(160,185,170,0.45);
}

.body-bottom {
  background: linear-gradient(145deg, 
    rgba(180,198,185,0.52) 0%, 
    rgba(165,182,172,0.58) 100%);
  border: 2px solid rgba(140,165,150,0.5);
}

/* Body shape variations - Sharp corners for realistic containers */
.body-3d.shape-square .body-front,
.body-3d.shape-square .body-back,
.body-3d.shape-square .body-left,
.body-3d.shape-square .body-right,
.body-3d.shape-square .body-bottom {
  border-radius: 2px;
}

.body-3d.shape-circle .body-front,
.body-3d.shape-circle .body-back {
  border-radius: 50%;
}

.body-3d.shape-circle .body-left,
.body-3d.shape-circle .body-right {
  border-radius: 50%;
}

.body-3d.shape-circle .body-bottom {
  border-radius: 50%;
}

.body-3d.shape-rectangle .body-front,
.body-3d.shape-rectangle .body-back,
.body-3d.shape-rectangle .body-left,
.body-3d.shape-rectangle .body-right,
.body-3d.shape-rectangle .body-bottom {
  border-radius: 2px;
}

/* Header Favorite Button */
.nav-container .header-right .header-favorite-btn {
  width: 44px !important;
  height: 44px !important;
  background: #ffffff !important;
  border: 2px solid #ff9800 !important;
  border-radius: 50% !important;
  color: #ff9800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  margin-right: 8px !important;
  z-index: 1000 !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.nav-container .header-right .header-favorite-btn .star-icon {
  font-size: 1.3rem !important;
  color: #ff9800 !important;
  line-height: 1 !important;
}

.header-favorite-btn:hover {
  background: #fff8e1;
  border-color: #ff9800;
  color: #ff9800;
}

.header-favorite-btn.favorited {
  background: transparent;
  border-color: transparent;
  color: #ff9800;
}

.header-favorite-btn i {
  font-size: 1rem;
}

.favorite-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  background: #ff9800;
  color: white;
  font-size: 0.7rem;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Favorite Modal */
.favorite-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.favorite-modal.show {
  display: flex;
}

.favorite-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.favorite-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.favorite-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.favorite-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.favorite-modal-header h3 i {
  color: #ff9800;
}

.favorite-modal-close {
  width: 36px;
  height: 36px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.favorite-modal-close:hover {
  background: #e0e0e0;
}

.favorite-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.favorite-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #999;
}

.favorite-empty i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #ddd;
}

.favorite-empty p {
  margin: 0;
}

/* Favorite Item List */
.favorite-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.favorite-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #f8f8f8;
  border-radius: 8px;
}

.favorite-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.favorite-item-info {
  flex: 1;
}

.favorite-item-name {
  font-weight: 600;
  color: #333;
  margin: 0 0 0.25rem 0;
}

.favorite-item-meta {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.favorite-item-remove {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.favorite-item-remove:hover {
  background: #ffebee;
  border-color: #ef5350;
  color: #ef5350;
}

/* Favorite item link styles */
.favorite-item-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  flex: 1;
}

.favorite-item-link:hover .favorite-item-name {
  color: #2d5a27;
}

.favorite-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.favorite-item-info {
  flex: 1;
}

.favorite-item-name {
  font-weight: 600;
  color: #333;
  margin: 0 0 0.25rem 0;
  transition: color 0.3s;
}

.favorite-item-meta {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* Box Lid - Realistic food container lid */
.lid-3d {
  position: absolute;
  transform-style: preserve-3d;
  transition: all 0.4s ease;
}

.lid-top,
.lid-front,
.lid-back,
.lid-side-left,
.lid-side-right {
  position: absolute;
  backface-visibility: hidden;
  transition: all 0.4s ease;
}

/* Lid top inner indent */
.lid-top-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 60%;
  border: 2px solid rgba(0,0,0,0.05);
  border-radius: inherit;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.015) 0%, transparent 70%);
}

/* Lid rim - realistic edge */
.lid-rim {
  position: absolute;
  top: 0;
  left: -2px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.lid-rim::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 12px;
  background: linear-gradient(180deg, 
    rgba(165,215,175,0.95) 0%, 
    rgba(145,195,158,0.98) 40%,
    rgba(135,185,150,0.96) 100%);
  border: 1px solid rgba(110,160,125,0.75);
  border-radius: 0 0 4px 4px;
  transform: rotateX(90deg) translateZ(-6px) translateY(6px);
  box-shadow: 
    0 2px 6px rgba(0,0,0,0.15),
    inset 0 -1px 2px rgba(0,0,0,0.1);
}

/* Realistic lid top with plastic shine */
.lid-top {
  transform: rotateX(90deg);
  background: linear-gradient(145deg, 
    rgba(175,220,185,0.98) 0%, 
    rgba(155,205,168,0.94) 25%,
    rgba(145,195,158,0.92) 55%,
    rgba(155,200,165,0.93) 80%,
    rgba(168,212,180,0.96) 100%);
  border: 1px solid rgba(120,170,135,0.65);
  border-bottom: 2px solid rgba(105,155,120,0.75);
  box-shadow: 
    inset 0 0 50px rgba(255,255,255,0.45),
    inset 0 3px 8px rgba(255,255,255,0.35),
    0 2px 4px rgba(0,0,0,0.08);
}

/* Lid top main highlight */
.lid-top::before {
  content: '';
  position: absolute;
  top: 3%;
  left: 3%;
  width: 50%;
  height: 40%;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.95) 0%, 
    rgba(255,255,255,0.55) 40%,
    rgba(255,255,255,0.2) 70%,
    rgba(255,255,255,0) 100%);
  border-radius: 55% 45% 60% 40%;
  pointer-events: none;
  filter: blur(1.5px);
}

/* Secondary highlight on lid */
.lid-top::after {
  content: '';
  position: absolute;
  top: 6%;
  right: 5%;
  width: 25%;
  height: 30%;
  background: linear-gradient(180deg, 
    rgba(255,255,255,0.65) 0%, 
    rgba(255,255,255,0.25) 60%,
    rgba(255,255,255,0) 100%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.lid-front {
  background: linear-gradient(180deg, 
    rgba(170,215,182,0.96) 0%, 
    rgba(155,202,168,0.92) 35%,
    rgba(145,192,158,0.88) 70%,
    rgba(140,188,153,0.90) 100%);
  border: 1px solid rgba(125,170,140,0.6);
  border-top: 2px solid rgba(145,190,160,0.7);
  border-bottom: 2px solid rgba(105,150,120,0.75);
}

.lid-back {
  background: linear-gradient(180deg, 
    rgba(160,208,172,0.94) 0%, 
    rgba(148,195,162,0.90) 50%,
    rgba(140,188,155,0.88) 100%);
  border: 1px solid rgba(118,165,135,0.58);
}

.lid-side-left {
  background: linear-gradient(180deg, 
    rgba(165,210,178,0.94) 0%, 
    rgba(152,198,168,0.90) 50%,
    rgba(145,192,160,0.88) 100%);
  border: 1px solid rgba(120,168,138,0.58);
}

.lid-side-right {
  background: linear-gradient(180deg, 
    rgba(172,215,185,0.96) 0%, 
    rgba(158,205,172,0.92) 50%,
    rgba(150,198,165,0.90) 100%);
  border: 1px solid rgba(128,175,142,0.62);
}

/* Lid shape variations - Sharp for realistic look */
.lid-3d.shape-square .lid-top,
.lid-3d.shape-square .lid-front,
.lid-3d.shape-square .lid-side-left,
.lid-3d.shape-square .lid-side-right {
  border-radius: 3px;
}

.lid-3d.shape-circle .lid-top {
  border-radius: 50%;
}

.lid-3d.shape-circle .lid-front,
.lid-3d.shape-circle .lid-side-left,
.lid-3d.shape-circle .lid-side-right {
  border-radius: 50%;
}

.lid-3d.shape-rectangle .lid-top,
.lid-3d.shape-rectangle .lid-front,
.lid-3d.shape-rectangle .lid-side-left,
.lid-3d.shape-rectangle .lid-side-right {
  border-radius: 3px;
}

/* Lock Clips for Lock & Lock type - Realistic plastic locks */
.lock-clips {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  pointer-events: none;
}

.lock-clip {
  position: absolute;
  width: 22px;
  height: 20px;
  transform-style: preserve-3d;
}

/* Lock clip body */
.lock-clip-body {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, 
    rgba(155,205,165,0.98) 0%, 
    rgba(135,185,150,0.95) 30%,
    rgba(125,175,140,0.96) 70%,
    rgba(140,190,155,0.97) 100%);
  border: 1px solid rgba(100,150,120,0.7);
  border-radius: 4px 4px 2px 2px;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.18),
    inset 0 1px 3px rgba(255,255,255,0.35);
}

/* Lock clip button */
.lock-clip-button {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 10px;
  background: linear-gradient(135deg, 
    rgba(175,220,185,0.98) 0%, 
    rgba(155,205,170,0.94) 50%,
    rgba(145,195,160,0.96) 100%);
  border: 1px solid rgba(115,165,130,0.6);
  border-radius: 3px;
  box-shadow: 
    0 1px 2px rgba(0,0,0,0.12),
    inset 0 1px 2px rgba(255,255,255,0.4);
}

/* Lock clip button highlight */
.lock-clip-button::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 3px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.2) 100%);
  border-radius: 1px;
}

.lock-clip-front-left {
  transform: translateZ(45px) translateX(-10px) translateY(-3px);
}

.lock-clip-front-right {
  transform: translateZ(45px) translateX(calc(100% - 12px)) translateY(-3px);
}

.lock-clip-back-left {
  transform: translateZ(-45px) translateX(-10px) translateY(-3px) rotateY(180deg);
}

.lock-clip-back-right {
  transform: translateZ(-45px) translateX(calc(100% - 12px)) translateY(-3px) rotateY(180deg);
}

/* Hinge for hinged type - Realistic plastic hinge */
.hinge-bar {
  position: absolute;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, 
    rgba(80,85,80,0.90) 0%, 
    rgba(95,100,95,0.90) 20%,
    rgba(90,95,90,0.90) 50%,
    rgba(95,100,95,0.90) 80%,
    rgba(80,85,80,0.90) 100%);
  border-radius: 2px;
  box-shadow: 
    0 1px 2px rgba(0,0,0,0.15),
    inset 0 1px 1px rgba(255,255,255,0.1);
  transform: rotateX(90deg) translateZ(2px) translateY(-2px);
  display: none;
}

/* Hinge segment details */
.hinge-bar::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 15%;
  width: 70%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  border-radius: 1px;
}

.hinge-bar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  width: 60%;
  height: 2px;
  background: repeating-linear-gradient(90deg, 
    rgba(60,65,60,0.6) 0px, 
    rgba(60,65,60,0.6) 8px, 
    rgba(80,85,80,0.6) 8px, 
    rgba(80,85,80,0.6) 16px);
  transform: translateY(-50%);
}

.lid-3d.hinge-type .hinge-bar {
  display: block;
}

.lid-3d.hinge-type .lock-clips {
  display: none;
}

/* Pattern Overlay */
.pattern-overlay {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  opacity: 0.85;
  z-index: 10;
}

/* Shadow under the box - realistic ground shadow */
.preview-shadow-3d {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 60px;
  background: radial-gradient(ellipse 75% 55% at 40% 85%, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.06) 65%, transparent 85%);
  border-radius: 50%;
  filter: blur(12px);
}

/* Color themes for body - Realistic plastic food container colors */
.body-3d.color-transparent .body-front,
.body-3d.color-transparent .body-back,
.body-3d.color-transparent .body-left,
.body-3d.color-transparent .body-right {
  background: linear-gradient(145deg, 
    rgba(225,238,228,0.32) 0%, 
    rgba(200,218,205,0.24) 30%,
    rgba(185,208,192,0.28) 70%,
    rgba(205,225,208,0.33) 100%);
  border: 2px solid rgba(155,180,165,0.38);
  box-shadow: 
    inset 0 0 55px rgba(255,255,255,0.18),
    inset 0 0 25px rgba(200,220,200,0.12);
}

.body-3d.color-transparent .body-bottom {
  background: linear-gradient(145deg, 
    rgba(175,192,180,0.36) 0%, 
    rgba(160,178,168,0.40) 100%);
}

.body-3d.color-cream .body-front,
.body-3d.color-cream .body-back,
.body-3d.color-cream .body-left,
.body-3d.color-cream .body-right {
  background: linear-gradient(145deg, 
    rgba(255,252,242,0.85) 0%, 
    rgba(248,245,235,0.78) 40%,
    rgba(240,236,222,0.75) 70%,
    rgba(250,246,234,0.82) 100%);
  border: 2px solid rgba(210,195,170,0.48);
  box-shadow: 
    inset 0 0 45px rgba(255,255,255,0.55),
    inset 0 0 20px rgba(240,230,210,0.20);
}

.body-3d.color-cream .body-bottom {
  background: linear-gradient(145deg, 
    rgba(238,228,215,0.82) 0%, 
    rgba(230,218,205,0.85) 100%);
}

.body-3d.color-gray .body-front,
.body-3d.color-gray .body-back,
.body-3d.color-gray .body-left,
.body-3d.color-gray .body-right {
  background: linear-gradient(145deg, 
    rgba(238,238,238,0.82) 0%, 
    rgba(228,228,228,0.76) 40%,
    rgba(218,218,218,0.73) 70%,
    rgba(232,232,232,0.80) 100%);
  border: 2px solid rgba(185,185,185,0.48);
  box-shadow: 
    inset 0 0 40px rgba(255,255,255,0.50),
    inset 0 0 18px rgba(220,220,220,0.18);
}

.body-3d.color-gray .body-bottom {
  background: linear-gradient(145deg, 
    rgba(210,210,210,0.84) 0%, 
    rgba(200,200,200,0.88) 100%);
}

.body-3d.color-mint .body-front,
.body-3d.color-mint .body-back,
.body-3d.color-mint .body-left,
.body-3d.color-mint .body-right {
  background: linear-gradient(145deg, 
    rgba(198,242,192,0.80) 0%, 
    rgba(175,230,170,0.74) 40%,
    rgba(160,218,158,0.72) 70%,
    rgba(188,236,182,0.78) 100%);
  border: 2px solid rgba(115,195,115,0.48);
  box-shadow: 
    inset 0 0 45px rgba(255,255,255,0.45),
    inset 0 0 20px rgba(200,240,195,0.18);
}

.body-3d.color-mint .body-bottom {
  background: linear-gradient(145deg, 
    rgba(155,205,150,0.82) 0%, 
    rgba(140,192,138,0.86) 100%);
}

/* Morandi color themes for body */
.body-3d.color-green .body-front,
.body-3d.color-green .body-back,
.body-3d.color-green .body-left,
.body-3d.color-green .body-right {
  background: linear-gradient(145deg, 
    rgba(168,181,160,0.85) 0%, 
    rgba(148,165,142,0.78) 40%,
    rgba(135,152,130,0.75) 70%,
    rgba(158,175,152,0.82) 100%);
  border: 2px solid rgba(115,140,108,0.55);
  box-shadow: 
    inset 0 0 45px rgba(255,255,255,0.35),
    inset 0 0 20px rgba(180,200,175,0.20);
}

.body-3d.color-green .body-bottom {
  background: linear-gradient(145deg, 
    rgba(130,150,125,0.82) 0%, 
    rgba(115,135,110,0.86) 100%);
}

.body-3d.color-yellow .body-front,
.body-3d.color-yellow .body-back,
.body-3d.color-yellow .body-left,
.body-3d.color-yellow .body-right {
  background: linear-gradient(145deg, 
    rgba(212,196,168,0.85) 0%, 
    rgba(195,180,152,0.78) 40%,
    rgba(182,168,142,0.75) 70%,
    rgba(202,188,158,0.82) 100%);
  border: 2px solid rgba(165,148,118,0.55);
  box-shadow: 
    inset 0 0 45px rgba(255,255,255,0.35),
    inset 0 0 20px rgba(220,205,180,0.20);
}

.body-3d.color-yellow .body-bottom {
  background: linear-gradient(145deg, 
    rgba(175,160,135,0.82) 0%, 
    rgba(160,145,122,0.86) 100%);
}

.body-3d.color-purple .body-front,
.body-3d.color-purple .body-back,
.body-3d.color-purple .body-left,
.body-3d.color-purple .body-right {
  background: linear-gradient(145deg, 
    rgba(167,150,181,0.85) 0%, 
    rgba(150,135,165,0.78) 40%,
    rgba(138,125,152,0.75) 70%,
    rgba(157,142,172,0.82) 100%);
  border: 2px solid rgba(125,110,145,0.55);
  box-shadow: 
    inset 0 0 45px rgba(255,255,255,0.35),
    inset 0 0 20px rgba(185,170,200,0.20);
}

.body-3d.color-purple .body-bottom {
  background: linear-gradient(145deg, 
    rgba(130,118,150,0.82) 0%, 
    rgba(118,105,138,0.86) 100%);
}

.body-3d.color-pink .body-front,
.body-3d.color-pink .body-back,
.body-3d.color-pink .body-left,
.body-3d.color-pink .body-right {
  background: linear-gradient(145deg, 
    rgba(212,181,176,0.85) 0%, 
    rgba(195,168,162,0.78) 40%,
    rgba(182,155,150,0.75) 70%,
    rgba(202,172,168,0.82) 100%);
  border: 2px solid rgba(165,135,130,0.55);
  box-shadow: 
    inset 0 0 45px rgba(255,255,255,0.35),
    inset 0 0 20px rgba(220,190,185,0.20);
}

.body-3d.color-pink .body-bottom {
  background: linear-gradient(145deg, 
    rgba(175,148,142,0.82) 0%, 
    rgba(160,135,130,0.86) 100%);
}

.body-3d.color-blue .body-front,
.body-3d.color-blue .body-back,
.body-3d.color-blue .body-left,
.body-3d.color-blue .body-right {
  background: linear-gradient(145deg, 
    rgba(143,164,180,0.85) 0%, 
    rgba(128,148,165,0.78) 40%,
    rgba(115,135,152,0.75) 70%,
    rgba(138,156,172,0.82) 100%);
  border: 2px solid rgba(95,118,140,0.55);
  box-shadow: 
    inset 0 0 45px rgba(255,255,255,0.35),
    inset 0 0 20px rgba(170,190,205,0.20);
}

.body-3d.color-blue .body-bottom {
  background: linear-gradient(145deg, 
    rgba(110,132,152,0.82) 0%, 
    rgba(98,118,138,0.86) 100%);
}

/* Color themes for lid - Realistic plastic lid colors */
.lid-3d.color-transparent .lid-top,
.lid-3d.color-transparent .lid-front,
.lid-3d.color-transparent .lid-side-left,
.lid-3d.color-transparent .lid-side-right {
  background: linear-gradient(145deg, 
    rgba(220,235,225,0.48) 0%, 
    rgba(205,222,210,0.42) 40%,
    rgba(192,212,198,0.46) 70%,
    rgba(210,228,215,0.50) 100%);
  border: 1px solid rgba(160,182,168,0.45);
  box-shadow: 
    inset 0 0 35px rgba(255,255,255,0.48),
    inset 0 2px 4px rgba(255,255,255,0.28);
}

.lid-3d.color-white .lid-top,
.lid-3d.color-white .lid-front,
.lid-3d.color-white .lid-side-left,
.lid-3d.color-white .lid-side-right {
  background: linear-gradient(145deg, 
    rgba(255,255,255,0.94) 0%, 
    rgba(248,248,248,0.90) 40%,
    rgba(240,240,240,0.88) 70%,
    rgba(250,250,250,0.92) 100%);
  border: 1px solid rgba(205,205,205,0.48);
  box-shadow: 
    inset 0 0 38px rgba(255,255,255,0.62),
    inset 0 2px 4px rgba(255,255,255,0.32);
}

.lid-3d.color-pink .lid-top,
.lid-3d.color-pink .lid-front,
.lid-3d.color-pink .lid-side-left,
.lid-3d.color-pink .lid-side-right {
  background: linear-gradient(145deg, 
    rgba(255,210,218,0.88) 0%, 
    rgba(252,190,200,0.82) 40%,
    rgba(248,172,184,0.80) 70%,
    rgba(254,205,212,0.86) 100%);
  border: 1px solid rgba(218,155,172,0.48);
  box-shadow: 
    inset 0 0 40px rgba(255,255,255,0.52),
    inset 0 2px 4px rgba(255,255,255,0.30);
}

.lid-3d.color-blue .lid-top,
.lid-3d.color-blue .lid-front,
.lid-3d.color-blue .lid-side-left,
.lid-3d.color-blue .lid-side-right {
  background: linear-gradient(145deg, 
    rgba(210,235,248,0.88) 0%, 
    rgba(195,225,238,0.82) 40%,
    rgba(182,215,230,0.80) 70%,
    rgba(205,232,244,0.86) 100%);
  border: 1px solid rgba(158,185,202,0.48);
  box-shadow: 
    inset 0 0 40px rgba(255,255,255,0.52),
    inset 0 2px 4px rgba(255,255,255,0.30);
}

.lid-3d.color-lightgreen .lid-top,
.lid-3d.color-lightgreen .lid-front,
.lid-3d.color-lightgreen .lid-side-left,
.lid-3d.color-lightgreen .lid-side-right {
  background: linear-gradient(145deg, 
    rgba(180,225,165,0.98) 0%, 
    rgba(155,210,145,0.94) 25%,
    rgba(145,200,135,0.92) 50%,
    rgba(155,205,145,0.93) 75%,
    rgba(170,220,155,0.96) 100%);
  border: 1px solid rgba(100,170,90,0.65);
  border-bottom: 2px solid rgba(85,155,75,0.75);
  box-shadow: 
    inset 0 0 50px rgba(255,255,255,0.45),
    inset 0 3px 8px rgba(255,255,255,0.35),
    0 2px 6px rgba(0,0,0,0.12);
}

/* Morandi color themes for lid */
.lid-3d.color-green .lid-top,
.lid-3d.color-green .lid-front,
.lid-3d.color-green .lid-side-left,
.lid-3d.color-green .lid-side-right {
  background: linear-gradient(145deg, 
    rgba(168,181,160,0.98) 0%, 
    rgba(148,165,142,0.94) 25%,
    rgba(135,152,130,0.92) 50%,
    rgba(148,162,140,0.93) 75%,
    rgba(158,175,152,0.96) 100%);
  border: 1px solid rgba(115,140,108,0.65);
  border-bottom: 2px solid rgba(100,125,95,0.75);
  box-shadow: 
    inset 0 0 50px rgba(255,255,255,0.35),
    inset 0 3px 8px rgba(255,255,255,0.25),
    0 2px 6px rgba(0,0,0,0.12);
}

.lid-3d.color-yellow .lid-top,
.lid-3d.color-yellow .lid-front,
.lid-3d.color-yellow .lid-side-left,
.lid-3d.color-yellow .lid-side-right {
  background: linear-gradient(145deg, 
    rgba(212,196,168,0.98) 0%, 
    rgba(195,180,152,0.94) 25%,
    rgba(182,168,142,0.92) 50%,
    rgba(195,178,150,0.93) 75%,
    rgba(202,188,158,0.96) 100%);
  border: 1px solid rgba(165,148,118,0.65);
  border-bottom: 2px solid rgba(148,132,105,0.75);
  box-shadow: 
    inset 0 0 50px rgba(255,255,255,0.35),
    inset 0 3px 8px rgba(255,255,255,0.25),
    0 2px 6px rgba(0,0,0,0.12);
}

.lid-3d.color-purple .lid-top,
.lid-3d.color-purple .lid-front,
.lid-3d.color-purple .lid-side-left,
.lid-3d.color-purple .lid-side-right {
  background: linear-gradient(145deg, 
    rgba(167,150,181,0.98) 0%, 
    rgba(150,135,165,0.94) 25%,
    rgba(138,125,152,0.92) 50%,
    rgba(150,135,162,0.93) 75%,
    rgba(157,142,172,0.96) 100%);
  border: 1px solid rgba(125,110,145,0.65);
  border-bottom: 2px solid rgba(110,98,130,0.75);
  box-shadow: 
    inset 0 0 50px rgba(255,255,255,0.35),
    inset 0 3px 8px rgba(255,255,255,0.25),
    0 2px 6px rgba(0,0,0,0.12);
}

.lid-3d.color-pink .lid-top,
.lid-3d.color-pink .lid-front,
.lid-3d.color-pink .lid-side-left,
.lid-3d.color-pink .lid-side-right {
  background: linear-gradient(145deg, 
    rgba(212,181,176,0.98) 0%, 
    rgba(195,168,162,0.94) 25%,
    rgba(182,155,150,0.92) 50%,
    rgba(195,168,160,0.93) 75%,
    rgba(202,172,168,0.96) 100%);
  border: 1px solid rgba(165,135,130,0.65);
  border-bottom: 2px solid rgba(148,120,115,0.75);
  box-shadow: 
    inset 0 0 50px rgba(255,255,255,0.35),
    inset 0 3px 8px rgba(255,255,255,0.25),
    0 2px 6px rgba(0,0,0,0.12);
}

.lid-3d.color-blue .lid-top,
.lid-3d.color-blue .lid-front,
.lid-3d.color-blue .lid-side-left,
.lid-3d.color-blue .lid-side-right {
  background: linear-gradient(145deg, 
    rgba(143,164,180,0.98) 0%, 
    rgba(128,148,165,0.94) 25%,
    rgba(115,135,152,0.92) 50%,
    rgba(128,148,162,0.93) 75%,
    rgba(138,156,172,0.96) 100%);
  border: 1px solid rgba(95,118,140,0.65);
  border-bottom: 2px solid rgba(82,102,125,0.75);
  box-shadow: 
    inset 0 0 50px rgba(255,255,255,0.35),
    inset 0 3px 8px rgba(255,255,255,0.25),
    0 2px 6px rgba(0,0,0,0.12);
}

/* Size variations */
.box-3d-wrapper.size-small {
  transform: rotateX(-15deg) rotateY(-25deg) scale(0.85);
}

.box-3d-wrapper.size-medium {
  transform: rotateX(-15deg) rotateY(-25deg) scale(1);
}

.box-3d-wrapper.size-large {
  transform: rotateX(-15deg) rotateY(-25deg) scale(1.15);
}

/* Highlight effects for realism */
.body-front::after,
.lid-top::after {
  content: '';
  position: absolute;
  top: 5%;
  left: 5%;
  width: 30%;
  height: 20%;
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50%;
  pointer-events: none;
}

/* Subtle reflection on front face */
.body-front::before {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 40%;
  height: 30%;
  background: linear-gradient(315deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50%;
  pointer-events: none;
}

/* Animation for smooth transitions */
@keyframes boxFloat {
  0%, 100% {
    transform: rotateX(-15deg) rotateY(-25deg) translateY(0);
  }
  50% {
    transform: rotateX(-15deg) rotateY(-25deg) translateY(-5px);
  }
}

.box-3d-wrapper.animate {
  animation: boxFloat 3s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .box-preview-3d {
    width: 220px;
    height: 220px;
  }
  
  .preview-shadow-3d {
    width: 140px;
    height: 30px;
  }
}

/* Back Button Styles */
.back-button {
  position: fixed;
  top: 100px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #2e7d32;
  border-radius: 25px;
  color: #2e7d32;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 999;
  backdrop-filter: blur(5px);
}

.back-button:hover {
  background: #2e7d32;
  color: white;
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.back-button i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.back-button:hover i {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .back-button {
    top: 80px;
    left: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

.view-details-btn {
  display: inline-block;
  background: var(--primary-green);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  text-align: center;
}

.view-details-btn:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Featured Products 收藏按钮样式 - 沿用 products.html 橙色星星规范 */
.products-preview .card-favorite-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 2px solid #ff9800;
  border-radius: 50%;
  color: #ff9800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.products-preview .card-favorite-btn:hover {
  background: #fff8e1;
  border-color: #ff9800;
  color: #ff9800;
}

.products-preview .card-favorite-btn.favorited {
  background: transparent;
  border-color: transparent;
  color: #ff9800;
}

/* Featured Products 收藏弹窗样式 */
.products-preview .favorite-toast {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff8e1;
  border: 2px solid #ff9800;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: #ff9800;
  z-index: 100;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.products-preview .favorite-toast.show {
  opacity: 1;
  top: -60px;
}

/* 对齐左右 View Details 按钮高度 */
.products-preview .product-left .product-description {
  margin-bottom: 1rem;
}

.products-preview .product-left .product-tags {
  margin-bottom: 1rem;
}

/* 修复右侧卡片图片容器高度 */
.products-preview .product-right .product-image-container {
  height: 350px;
  overflow: visible;
}

/* Q&A Section Styles */
.qa-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.qa-banner {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.qa-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 50 Q35 30 50 50 T80 50' stroke='rgba(255,255,255,0.1)' fill='none' stroke-width='2'/%3E%3Cpath d='M30 60 Q45 40 60 60 T90 60' stroke='rgba(255,255,255,0.08)' fill='none' stroke-width='1.5'/%3E%3Cpath d='M10 40 Q25 20 40 40 T70 40' stroke='rgba(255,255,255,0.06)' fill='none' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 100px 100px;
  opacity: 0.5;
}

.qa-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.qa-banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qa-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-icon-wrapper i {
  color: white;
  font-size: 1.5rem;
}

.qa-text h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.qa-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.qa-toggle-btn {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qa-toggle-btn:hover {
  background: white;
  color: var(--primary-green);
}

.qa-panel {
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-top: -1px;
  display: none;
  animation: slideDown 0.3s ease;
}

.qa-panel.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qa-panel-title {
  text-align: center;
  color: var(--primary-green);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.qa-list {
  border-top: 1px solid var(--border-color);
}

.qa-item {
  border-bottom: 1px solid var(--border-color);
}

.qa-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.qa-question:hover {
  background-color: var(--bg-light);
}

.qa-question span {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  flex: 1;
  padding-right: 1rem;
}

.qa-toggle-icon {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.qa-toggle-icon:hover {
  background: var(--primary-green);
  color: white;
}

.qa-toggle-icon.active {
  background: var(--primary-green);
  color: white;
  transform: rotate(45deg);
}

.qa-answer {
  padding: 0 !important;
  margin: 0 !important;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  max-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.qa-answer.show {
  max-height: 500px !important;
  height: auto !important;
  padding: 0.25rem 0 1rem !important;
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .qa-section {
    padding: 0 1rem;
  }
  
  .qa-banner {
    padding: 1rem;
  }
  
  .qa-banner-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .qa-banner-left {
    flex-direction: column;
  }
  
  .qa-text h3 {
    font-size: 1.1rem;
  }
  
  .qa-text p {
    font-size: 0.8rem;
  }
  
  .qa-panel {
    padding: 1rem;
  }
}

.products-preview .product-right .product-image-container img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
}

/* 调整左侧卡片图片容器高度 */
.products-preview .product-left .product-image-container {
  height: 350px;
  overflow: visible;
}

.products-preview .product-left .product-image-container img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
}

/* 调整右侧卡片内容区域间距以对齐按钮 */
.products-preview .product-right .product-info {
  padding-bottom: 2rem;
}