﻿/* ============================================
   TRADE CASA - HOMEPAGE STYLES
   ============================================
   Design System Token Extension
   Note: Base tokens defined in common.css
   Extended tokens for homepage enhancements

   TABLE OF CONTENTS
   -----------------
   1. Design Tokens (:root variables)
   2. Hero Slider
   3. Stats Bar
   4. Intro Section
   5. Categories
   6. Featured Products
   7. CTA Section
   8. Projects
   9. Blog
   10. Partners Bar
   11. Floor Templates (Banner, Left Image + Right Products)
   12. Responsive Design (Tablet, Mobile, Small Mobile)
   13. Utility Classes & Design Tokens
   14. Large Desktop Enhancements
   15. Print Styles
*/

:root {
  /* Extended color tokens for homepage */
  --secondary-light: #D8C4A8;
  --secondary-dark: #A88E68;
  --overlay-dark: rgba(0,0,0,0.62);
  --overlay-medium: rgba(0,0,0,0.25);
  --overlay-light: rgba(0,0,0,0.1);
  --glass-bg: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.3);
  --glass-bg-dark: rgba(0,0,0,0.2);
  --glass-border-dark: rgba(255,255,255,0.1);
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #FF5252;
  --info: #2196F3;
  
  /* Animation tokens */
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-fast: 0.2s ease;
  --transition-slow: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  
  /* Shadow tokens */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 64px rgba(0,0,0,0.16);
  --shadow-xl: 0 32px 96px rgba(0,0,0,0.2);
  --shadow-glow: 0 8px 32px rgba(196,168,130,0.2);
  --shadow-glow-dark: 0 8px 32px rgba(0,0,0,0.3);
  
  /* Spacing tokens */
  --section-padding: 100px 0;
  --section-padding-md: 80px 0;
  --section-padding-sm: 60px 0;
  --section-padding-xs: 40px 0;
  --gap-xl: 80px;
  --gap-lg: 60px;
  --gap-md: 40px;
  --gap-sm: 24px;
  --gap-xs: 16px;
  --gap-xxs: 8px;
  
  /* Border radius tokens */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  
  /* Z-index tokens */
  --z-hero-content: 30;
  --z-hero-controls: 35;
  --z-modal: 100;
  --z-tooltip: 200;
  --z-toast: 300;
  
  /* Typography tokens (if not in common.css) */
  --font-heading: 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Roboto Mono', monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-lg: 1rem;
  --text-xl: 1.125rem;
  --text-2xl: 1.25rem;
  --text-3xl: 1.5rem;
  --text-4xl: 1.875rem;
  --text-5xl: 2.25rem;
  --text-6xl: 3rem;
  --text-7xl: 3.75rem;
}
.title {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 90%;
    background_radio: 1;
    display-radio: flex;
    max-width: 1700px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0px;
    border-style: none;
}
/* ============================================
   HERO — Full-screen slider with transparent nav
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 700px;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  margin-top: 0; /* no offset — header floats over */
}

/* Slides */
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Enhanced gradient overlay for text readability and depth */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;

  z-index: 1;
}

/* Subtle vignette effect for visual focus */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(0,0,0,0.1) 70%,
    rgba(0,0,0,0.2) 100%
  );
  z-index: 1;
  opacity: 0.6;
}

/* 顶部缓坡遮罩已按用户要求移除（2026-11-16）：不再压暗图片；白色菜单可读性由图片自身保证 */
.hero::before {
  content: none;
}

/* Content */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  left: 0; right: 0;
}
.hero-content .section-label { color: var(--secondary); margin-bottom: 20px; }
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.08;
  max-width: 720px;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: titleReveal 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.3s both;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 48px;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  animation: subtitleReveal 1.4s cubic-bezier(0.19, 1, 0.22, 1) 0.6s both;
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes subtitleReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Enhanced Hero buttons with glassmorphism effects */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 42px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  border: 1.5px solid var(--glass-border);
  background: transparent;
  color: #fff;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  animation: buttonReveal 1.6s cubic-bezier(0.19, 1, 0.22, 1) 0.9s both;
}

.btn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.1) 0%, 
    rgba(255,255,255,0.05) 50%, 
    transparent 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.btn-hero:hover {
  background: var(--glass-bg);
  border-color: rgba(255,255,255,0.9);
  letter-spacing: 3.2px;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-hero:hover::before {
  opacity: 1;
}

.btn-hero-light {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
}

.btn-hero-light:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px) saturate(200%);
  -webkit-backdrop-filter: blur(12px) saturate(200%);
}

@keyframes buttonReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Enhanced slider arrows with glassmorphism */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-hero-controls);
  width: 60px; 
  height: 60px;
  border: 1.5px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: #fff;
  font-size: 1.2rem;
  display: flex; 
  align-items: center; 
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  opacity: 0.9;
  animation: arrowReveal 1.8s cubic-bezier(0.19, 1, 0.22, 1) 1.2s both;
}

.hero-arrow:hover { 
  background: rgba(255,255,255,0.2); 
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  opacity: 1;
}

.hero-arrow.prev { left: 48px; }
.hero-arrow.next { right: 48px; }

@keyframes arrowReveal {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
  }
  100% {
    opacity: 0.9;
    transform: translateY(-50%) scale(1);
  }
}

/* Enhanced slider dots with interactive feedback */
.hero-dots {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-hero-controls);
  display: flex;
  gap: 12px;
  animation: dotsReveal 2s cubic-bezier(0.19, 1, 0.22, 1) 1.5s both;
}

.hero-dot {
  width: 10px; 
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.hero-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: inherit;
  transform: scale(0);
  transition: transform var(--transition-smooth);
}

.hero-dot:hover::before {
  transform: scale(1);
}

.hero-dot.active { 
  background: var(--secondary); 
  width: 32px; 
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(196,168,130,0.3);
}

.hero-dot.active::before {
  background: rgba(255,255,255,0.3);
  transform: scale(1);
}

@keyframes dotsReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 40px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.stats-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 44px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: width var(--transition-smooth);
  border-radius: 2px 2px 0 0;
}
.stat-item:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.stat-item:hover::before { width: 60%; }
.stat-item:last-child { border-right: none; }
.stat-item:last-child::before { display: none; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number span { color: var(--secondary); }
.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================
   INTRO SECTION
   ============================================ */
/* ============================================
   PROMO VIDEO
   ============================================ */
.promo-video-section {
  background: var(--bg-light);
  padding: 104px 0;
}
.promo-video-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.promo-video-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}
.promo-video-frame {
  max-width: 1180px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #0b1120;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.16);
}
.promo-video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro { background: var(--bg-light); padding: var(--section-padding); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-grid.no-image {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}
.intro-image {
  position: relative;
  height: 580px;
  border-radius: 4px;
  overflow: hidden;
}
.intro-image img { width: 100%; height: 100%; object-fit: cover; }
.intro-image-accent {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 220px; height: 220px;
  border: 2px solid var(--secondary);
  border-radius: 4px;
  z-index: -1;
}
.intro-badge {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 2px;
}
.intro-text h2 { margin-bottom: 24px; }
.intro-text h2 em { color: var(--secondary); font-style: normal; }
.intro-text p { margin-bottom: 16px; line-height: 1.85; }
.intro-features {
  margin: 36px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.intro-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
}
.intro-feature-icon {
  width: 30px; height: 30px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ============================================
   CATEGORIES - Full-width section (matches floor-prods-section)
   ============================================ */
.categories-fullwidth-section {
 /* padding: var(--section-padding);*/
  background: var(--bg-white);
}

/* 2026-11-17：加 .container 类（common.css 提供 padding/断点/max-width），与商品列表同横向体系对齐；
   此处不再自带 padding */
.categories-inner-box {
  margin: 0 auto;
}

/* ============================================
   CATEGORIES CAROUSEL - Horizontal scroll with arrows
   ============================================ */
.categories-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  /* 箭头(48px)+gap(12px)=60px 恰好吃进 .container 的 60px 留白，网格边缘与商品列表对齐 */
  margin: 0 -60px;
}

.categories-wrapper {
  flex: 1;
  overflow: hidden;
}

.categories-grid {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-grid::-webkit-scrollbar {
  display: none;
}

/* 2026-11-17：每屏 3 张改 4 张（用户要求 4~5 列），min-width 下调避免提前触发横向滚动 */
    .categories-grid .category-card {
        flex: 0 0 calc(25% - 24px);
        min-width: 230px;
        scroll-snap-align: start;
        min-height: 230px;
    }

/* 1025~1280 中间档：收窄 gap 保住 4 张/屏；商品网格同步 4 列与类目对齐 */
@media (max-width: 1280px) and (min-width: 1025px) {
  .categories-grid {
    gap: 24px;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Responsive: show fewer cards per view on smaller screens */
@media (max-width: 1024px) {
  .categories-grid .category-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 200px;
  }
}

@media (max-width: 600px) {
  .categories-grid .category-card {
    flex: 0 0 calc(92%);
    min-width: 180px;
  }
}

/* Arrow buttons */
.carousel-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.carousel-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: scale(1.08);
}

.carousel-arrow:active {
  transform: scale(0.95);
}

.carousel-arrow:disabled,
.carousel-arrow.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.category-card {
  position: relative;
/*  height: 360px;*/
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  /* 2026-11-17 美工重做：去金色描边（图上叠边框显廉价），换大而柔的投影做卡片分层 */
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
  transition: var(--transition-smooth);
  background: #f8f6f1;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(0,0,0,0.1) 0%, 
    rgba(0,0,0,0) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card img {
  width: 100%; 
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.category-card:hover img { 
  transform: scale(1.05); 
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom, 
    rgba(15, 23, 42, 0.08) 0%, 
    rgba(15, 23, 42, 0.04) 48%, 
    rgba(15, 23, 42, 0.16) 100%
  );
  transition: var(--transition-smooth);
  z-index: 1;
}

.category-card:hover::after {
  background: linear-gradient(
    to bottom, 
    rgba(15, 23, 42, 0.04) 0%, 
    rgba(15, 23, 42, 0.02) 48%, 
    rgba(15, 23, 42, 0.12) 100%
  );
}
.category-info {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

.category-card:hover .category-info {
  transform: scale(1.02);
}

.category-info h3 { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 92%;
  min-height: 44px;
  padding: 10px 18px;
  margin: 0;
  color: #7a4f1b; 
  font-size: 1.0rem; 
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,248,232,0.9));
  border: 1px solid rgba(181, 138, 70, 0.5);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.18), inset 0 1px 0 rgba(255,255,255,0.9);
  text-shadow: none;
  backdrop-filter: blur(10px);
}

.category-info p { 
  color: rgba(255,255,255,0.8); 
  font-size: 0.82rem; 
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* 2026-11-17 美工重做：箭头徽章白底实心（半透明白在花布上没有对比度），悬浮变金色 */
.category-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 0.9rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(-8px);
  transition: var(--transition-smooth);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateY(0);
}

.category-card:hover .category-arrow:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(0) scale(1.06);
}



/* ============================================
   FEATURED PRODUCTS - Enhanced card design
   ============================================ */
.products-grid {
  display: grid;
  /* 2026-11-17 晚：此处曾被外部回写为 5 列（用户反馈 5 列窄卡难看），固定为 4 列 */
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* 2026-11-17：中间宽度 1025~1280 商品网格 4 列（与类目对齐），规则已上移到
   categories 中间档媒体块内统一维护；≤1024 仍为 2 列、≤768 为 1 列 */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.8) 0%, 
    rgba(255,255,255,0) 60%);
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px) scale(1.02);
  border-color: var(--secondary-light);
}

.product-card:hover::before {
  opacity: 1;
}
.product-image {
  position: relative;
  aspect-ratio: 3 / 4; /* 2026-11-16：锁比例防竖长原图把卡片撑瘦高（原 max-height:500px 不约束比例） */
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-light), #f5f1e9);
}

.product-image img {
  width: 100%; 
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.product-card:hover .product-image img { 
  transform: scale(1.08) rotate(0.5deg);
}

.product-badge {
  position: absolute;
  top: 20px; 
  left: 20px;
  background: var(--secondary);
  color: #fff;
  padding: 8px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(196,168,130,0.3);
  transition: var(--transition-smooth);
}

.product-card:hover .product-badge {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(196,168,130,0.4);
}

/* New badge variations */
.product-badge.featured {
  background: var(--secondary);
}

.product-badge.new {
  background: #4CAF50; /* Green for new items */
}

.product-badge.sale {
  background: #FF5252; /* Red for sale items */
}

.product-badge.limited {
  background: linear-gradient(135deg, #FF9800, #FF5722); /* Orange gradient for limited items */
}
.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.2) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
}

.product-card:hover .product-overlay { 
  opacity: 1;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.product-overlay .btn {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
  padding: 14px 32px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  transform: translateY(10px);
  opacity: 0;
}

.product-card:hover .product-overlay .btn {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
}

.product-overlay .btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
}
.product-info { 
  padding: 10px; 
  position: relative;
  z-index: 1;
}

.product-meta { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 12px; 
}

.product-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--secondary);
  position: relative;
  padding-left: 12px;
}

.product-category::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--secondary);
  border-radius: 50%;
}

.product-price { 
  font-weight: 800; 
  color: var(--primary); 
  font-size: 1.2rem;
  position: relative;
}

.product-price::before {

  font-size: 0.9rem;
  margin-right: 2px;
  opacity: 0.7;
}

.product-info h3 { 
  font-size: 1.1rem; 
  margin-bottom: 10px; 
  line-height: 1.4;
  transition: color var(--transition-smooth);
}

.product-card:hover .product-info h3 {
  color: var(--secondary);
}

.product-info p { 
  font-size: 0.88rem; 
  color: var(--text-gray);
  line-height: 1.6;
}

/* Price with discount styling */
.product-price.discounted {
  color: #FF5252; /* Sale price color */
}

.product-price.original {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 500;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, #141414 0%, #1f1c17 40%, #2a241d 70%, #141414 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  min-height: 300px;
  display: flex;
  align-items: center;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(196,168,130,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(196,168,130,0.08) 0%, transparent 60%);
  animation: ctaGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes ctaGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, -3%) scale(1.1); }
}
.cta-section .container { position: relative; z-index: 2; width: 100%; }
.cta-section .blog-card { text-align: left; }
.cta-section .blog-card-link { color: inherit; }
.cta-section .section-label { color: var(--secondary) !important; }
.cta-section h2 { color: #fff; margin: 16px 0; }
.cta-section p { color: rgba(255,255,255,0.55); max-width: 500px; margin: 0 auto 32px; font-size: 1.05rem; }
.btn-light {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
}
.btn-light:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  will-change: transform;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  will-change: transform;
}
.project-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}
.project-card:hover img { transform: scale(1.06); }
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 55%);
  transition: var(--transition);
}
.project-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  z-index: 2;
  transform: translateY(16px);
  transition: var(--transition);
}
.project-card:hover .project-info { transform: translateY(0); }
.project-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}
.project-info h3 { color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.project-info p { color: rgba(255,255,255,0.55); font-size: 0.82rem; line-height: 1.6; }
.project-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  margin-top: 10px;
}

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  will-change: transform;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
  border-color: var(--secondary-light);
}
.blog-card-link { display: block; text-decoration: none; }
.blog-image {
  height: 230px;
  overflow: hidden;
  position: relative;
  background: var(--bg-light);
}
.blog-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-image img { transform: scale(1.07); }
.blog-type {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--secondary);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
}
/* 悬浮遮罩 + 箭头 */
.blog-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
}
.blog-card:hover .blog-card-overlay { opacity: 1; }
.blog-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-date {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.blog-content h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color 0.2s;
}
.blog-card:hover .blog-content h3 { color: var(--primary); }
.blog-content p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
/* Read More 链接 */
.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 16px;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}
.blog-read-link:hover { color: var(--secondary); gap: 10px; }
.blog-read-link svg { transition: transform 0.2s; }
.blog-read-link:hover svg { transform: translateX(3px); }

/* ============================================
   PARTNERS BAR
   ============================================ */
.partners { background: var(--bg-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.partners-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 32px 0;
}
.partner-logo {
  height: 36px;
  opacity: 0.35;
  filter: grayscale(100%);
  transition: var(--transition);
}
.partner-logo:hover { opacity: 0.8; filter: grayscale(0%); }

/* ============================================
   REVEAL ANIMATIONS (scroll-driven)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
        /* 2026-11-16：移除误写入的 flex: 0 0 calc(20%...) —— 该弹性宽度不属于通用出现动画类，
           它会污染所有 flex 容器里的 reveal 元素（分类卡手机端因此被压成 160px 宽） */

    }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }

/* ============================================
   SKELETON PLACEHOLDER
   ============================================ */
.img-skeleton {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(90deg, #f0ece4 25%, #e8e3da 50%, #f0ece4 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.6s infinite linear;
  border-radius: inherit;
}
@keyframes skeleton-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   FLOOR: BANNER CAROUSEL (FloorTemplate_1)
   ============================================ */
.floor-banner {
  width: 100%;
  overflow: hidden;
  background: var(--bg-light);
  position: relative;
}
/* 顶部渐变遮罩：高度大、坡度缓，让白色菜单在浅色/花色图上可读且无接缝 */
.floor-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 170px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.28) 35%, rgba(0,0,0,0.12) 60%, rgba(0,0,0,0) 100%);
  z-index: 3;
  pointer-events: none;
}
.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
/* 桌面轮播广告图规格：1920×700（约 2.74:1），容器按比例占位防加载抖动 */
.banner-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 700;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}
.banner-slide.active { opacity: 1; z-index: 2; }
.banner-slide a { display: block; width: 100%; height: 100%; }
.banner-slide img {
  width: 100%;
  height: 100%;
  max-height: 700px;
  aspect-ratio: 1920 / 700;
  object-fit: cover;
  display: block;
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.banner-arrow:hover { background: rgba(0,0,0,0.55); }
.banner-prev { left: 32px; }
.banner-next { right: 32px; }
.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 8px;
}
.banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.banner-dot.active { background: var(--secondary); width: 24px; border-radius: 4px; }

/* ============================================
   FLOOR: LEFT IMAGE + RIGHT PRODUCTS (FloorTemplate_2)
   ============================================ */
.floor-prods-section {
/*  padding: var(--section-padding);*/
  background: var(--bg-white);
}
.floor-prods-section .pro-img-box {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.floor-prods-section .ad-img-l {
  width: 468px;
  flex-shrink: 0;
  margin-right: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}
.floor-prods-section .ad-img-l:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.floor-prods-section .ad-img-l img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.floor-prods-section .ad-img-l:hover img {
  transform: scale(1.03);
}
.floor-prods-section .product_list_big {
  width: 100%;
  display: flex;
  align-items: flex-start;
}

/* ── Swiper 导航区 ── */
.floor-prods-section .prods-swiper {
  flex: 1;
  min-width: 0;
  position: relative;
}
.floor-prods-section .prods-swiper-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}
.floor-prods-section .prods-swiper-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  /* 箭头(44px)+gap(12px)=56px，负边距把箭头收进 .container 的 60px 留白，商品卡边缘与商品列表对齐 */
  margin: 0 -56px;
}
.floor-prods-section .prods-btn-prev {
  position: sticky;
  left: 0;
  z-index: 10;
}
.floor-prods-section .prods-btn-next {
  position: sticky;
  right: 0;
  z-index: 10;
}
.floor-prods-section .prods-swiper-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.floor-prods-section .prods-swiper-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.floor-prods-section .prods-swiper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Swiper 滚动容器 ── */
.floor-prods-section .product-items {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;   /* Firefox */
  display: flex;
  gap: var(--gap-sm);
  padding-bottom: 8px;      /* 留空间给 scrollbar */
}
/* 隐藏 Chrome/Safari 滚动条 */
.floor-prods-section .product-items::-webkit-scrollbar { display: none; }

/* ── 每个产品卡片 ── */
.floor-prods-section .product_item {
  flex: 0 0 calc(25% - var(--gap-sm) * 3 / 4);
  scroll-snap-align: start;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}
.floor-prods-section .product_item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: var(--secondary-light);
}
.floor-prods-section .product_item_img {
  height: 400px;
   width: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-light), #f5f1e9);
}
.floor-prods-section .product_item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.floor-prods-section .product_item:hover .product_item_img img { transform: scale(1.08); }
.floor-prods-section .product_item > div:not(.product_item_img) {
  padding: var(--gap-sm);
}
.floor-prods-section .pro_type {
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-bottom: var(--gap-xxs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.floor-prods-section .item_name {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--gap-xs);
  line-height: 1.4;
  font-family: var(--font-heading);
}
.floor-prods-section .item_name a {
  color: var(--text-dark);
  transition: color var(--transition-fast);
}
.floor-prods-section .item_name a:hover { color: var(--secondary); }
.floor-prods-section .a_promotion {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-size: var(--text-xs);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-right: 6px;
  vertical-align: middle;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.floor-prods-section .item_price { display: flex; align-items: center; gap: var(--gap-xs); flex-wrap: wrap; }
.floor-prods-section .price {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}
.floor-prods-section .old_price {
  font-size: var(--text-sm);
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 500;
}
.floor-prods-section .btn-sm {
  display: inline-block;
  padding: 8px 20px;
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  transition: var(--transition-smooth);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.floor-prods-section .btn-sm:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

@media (max-width: 1200px) {
  .floor-prods-section .product_item {
    flex: 0 0 calc(33.333% - var(--gap-sm) * 2 / 3);
  }
}
.floor-prods-section .product_item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}
.floor-prods-section .product_item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: var(--secondary-light);
}
.floor-prods-section .product_item_img {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-light), #f5f1e9);
}
.floor-prods-section .product_item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.floor-prods-section .product_item:hover .product_item_img img { transform: scale(1.08); }
.floor-prods-section .product_item > div:not(.product_item_img) {
  padding: var(--gap-sm);
}
/* Swiper 响应式断点（内联在 Floor 区段内） */
@media (max-width: 1200px) {
  .floor-prods-section .ad-img-l { width: 320px; }
  .floor-prods-section .product_item {
    flex: 0 0 calc(33.333% - var(--gap-sm) * 2 / 3);
  }
}
@media (max-width: 768px) {
  .floor-prods-section .ad-img-l { width: 100%; margin-right: 0; margin-bottom: 20px; }
  .floor-prods-section .product_item {
    flex: 0 0 calc(50% - var(--gap-sm) / 2);
  }
  .floor-prods-section .prods-swiper-wrap { margin: 0; }
  .floor-prods-section .prods-swiper-nav { justify-content: flex-start; }
  .floor-prods-section .prods-swiper-btn { display: none; }
}

/* ============================================
   RESPONSIVE DESIGN - Enhanced mobile experience
   ============================================ */

/* Tablet and small desktop (1024px and below) */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }
  
  .hero {
    height: 90vh;
    min-height: 600px;
  }
  
  .hero-content {
    padding: 0 32px;
  }
  
  .hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
    max-width: 500px;
  }
  
  .hero-arrow {
    width: 52px;
    height: 52px;
  }
  
  .hero-arrow.prev { left: 24px; }
  .hero-arrow.next { right: 24px; }
  
  .intro-grid { 
    grid-template-columns: 1fr; 
    gap: 56px; 
  }
  
  .intro-image { 
    height: 400px; 
    order: 2;
  }
  
  .intro-text {
    order: 1;
  }
  
  .products-grid, .projects-grid, .blog-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 24px;
  }

  .categories-inner-box {
    /* 已挂 .container，padding 由 common.css 断点统一管理 */
  }

  .categories-grid {
    gap: 20px;
  }
  
  .stats-bar-inner { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .stat-item {
    padding: 36px 24px;
  }
  
 /* .category-card {
    height: 320px;
  }*/
  
  .product-card {
    max-width: 100%;
  }
  
  /* Floor banner section adjustments */
  .floor-banner {
    margin: 0;
    width: 100%;
  }
  
  .banner-slides {
    aspect-ratio: 16 / 9;
    height: auto;
  }
  
  .banner-slide img {
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  
  .banner-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .banner-prev { left: 12px; }
  .banner-next { right: 12px; }
}

/* Mobile and small tablets (768px and below) */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  
  .hero-slider {
    width: 100%;
  }
  
  .hero-slide {
    position: absolute;
    inset: 0;
  }
  
  .hero-bg {
    background-size: cover;
    background-position: center;
  }
  
  .hero-content {
    padding: 0 16px;
    text-align: center;
    align-items: center;
  }
  
  .hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.1;
    max-width: 100%;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 40px;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .btn-hero {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
  
  .hero-arrow { 
    display: none; 
  }
  
  .hero-scroll { 
    display: none; 
  }
  
  .hero-dots {
    bottom: 32px;
  }
  
  .products-grid, .projects-grid, .blog-grid { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }

  .categories-inner-box {
    /* 已挂 .container，padding 由 common.css 断点统一管理 */
  }

  .categories-grid {
    gap: 16px;
  }

  /* ≤768 箭头隐藏，取消负 margin 回归 container 留白 */
  .categories-carousel {
    margin: 0;
  }

  .categories-carousel .carousel-arrow {
    display: none;
  }
  
  .stats-bar-inner { 
    grid-template-columns: 1fr 1fr; 
    padding: 0 20px;
  }
  
  .stat-item {
    padding: 28px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  
  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .intro-features { 
    grid-template-columns: 1fr; 
    gap: 12px;
  }
  
  .intro-image {
    height: 320px;
  }
  
  .category-card {
    height: 280px;
  }
  
  .category-info {
    padding: 24px;
  }
  
  
  
  .category-arrow {
    width: 42px;
    height: 42px;
  }
  
  .product-image {
    height: 280px;
  }
  
  .product-info {
    padding: 20px;
  }
  
  /* Floor products section mobile adjustments */
  .floor-prods-section .product-items {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
  
  .floor-prods-section .ad-img-l {
    width: 100%;
    margin-right: 0;
    margin-bottom: 24px;
  }
  
  .floor-prods-section .pro-img-box {
    padding: 0 8px;
  }
  
  .floor-prods-section .product_item_img {
    height: 160px;
  }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .stats-bar-inner { 
    grid-template-columns: 1fr; 
    gap: 0;
  }
  
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 24px 20px;
  }
  
  .stat-item:last-child {
    border-bottom: none;
  }
  
  .stat-item:nth-child(odd) {
    border-right: none !important;
  }
  
  .floor-prods-section .product-items {
    grid-template-columns: 1fr;
  /*  max-width: 300px;*/
    margin: 0 auto;
  }
  
  .floor-prods-section .pro-img-box {
    padding: 0 4px;
  }

  /* Banner 480px adjustments */
  .banner-slides {
    aspect-ratio: 4 / 3;
  }
  
  .banner-slide img {
    aspect-ratio: 4 / 3;
  }
  
  .banner-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .banner-dots {
    bottom: 12px;
  }
  
  .products-grid, .projects-grid, .blog-grid {
    gap: 16px;
  }

  .categories-grid {
    gap: 12px;
  }

  .categories-grid .category-card {
    min-width: 160px;
  }
  
  .cta-section {
    padding: 80px 0;
  }
  
  .cta-section h2 {
    font-size: 1.8rem;
  }
}

/* ============================================
   UTILITY CLASSES & DESIGN TOKENS
   ============================================
   Reusable utility classes for consistent styling
*/

/* Spacing utilities */
.section-padding {
  padding: var(--section-padding);
}

.section-padding-md {
  padding: var(--section-padding-md);
}

.section-padding-sm {
  padding: var(--section-padding-sm);
}

/* Text utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-shadow-sm {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.text-shadow-md {
  text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Glassmorphism utilities */
.glass-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
}

.glass-card-dark {
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.8s ease both;
}

.slide-up {
  animation: slideUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from { 
    opacity: 0;
    transform: scale(0.9);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* Hover effect utilities */
.hover-lift {
  transition: transform var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-glow {
  transition: box-shadow var(--transition-smooth);
}

.hover-glow:hover {
  box-shadow: 0 8px 32px rgba(196,168,130,0.2);
}

/* Focus states for accessibility */
.focus-ring:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Loading states */
.loading-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Utility classes for layout and typography */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-center {
  display: grid;
  place-items: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Spacing utilities */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/* Performance optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Large desktop screens (1440px and above) */
@media (min-width: 1440px) {
  :root {
    --section-padding: 120px 0;
    --gap-xl: 100px;
    --gap-lg: 80px;
  }
  
  .container {
    /* 2026-11-17：原 min(var(--max-w),1400px) 被 --max-w:1280 封顶，大屏内容区只有 1280-120=1160px，
       商品 4 列卡仅 272px 偏窄；按该断点原意放宽到 1400（1920 宽屏下内容区 1280px） */
    max-width: 1400px;
  }
  
  .categories-grid {
    gap: 40px;
  }

  /* 2026-11-17：大屏每屏 5 张；窄卡降高避免「细高条」比例失调 */
  .categories-grid .category-card {
    flex: 0 0 calc(20% - 32px);
    min-width: 200px;
  /*  height: 340px;*/
  }
/*
  .category-card {
    height: 400px;
  }*/

  /* 2026-11-17：大屏商品网格 5 列，与类目 5 张/屏对齐 */
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Print styles */
@media print {
  .hero-arrow,
  .hero-dots,
  .hero-scroll,
  .product-overlay,
  .category-arrow {
    display: none !important;
  }
  
  .product-card,
  .category-card,
  .blog-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}
@media (max-width: 768px) {
  .promo-video-section { padding: 64px 0; }
  .promo-video-inner { padding: 0 20px; }
  .promo-video-head { margin-bottom: 32px; }
  .promo-video-frame { border-radius: 2px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14); }
}

@media print {
}

/* ============================================
   STEP2 视觉优化覆盖（2026-11）
   hero 分栏 / 分类卡底部渐变+款数 / 商品卡信息重排
   ============================================ */

/* ---- STEP2-1 Hero（2026-11-16 v2）：整幅大图 + 左侧渐变蒙层，各端统一 ----
   背景：轮播图自带烧录文案（图左 0~717px），44%/56% 分栏会裁掉文案且左面板空置成黑块 */
.hero-slide.active .hero-bg,
.hero-slide .hero-bg {
  left: 0;
  background-position: left center;
}
.hero-content {
  inset: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  background: none;
  padding: 48px 48px 48px 156px;
  justify-content: center;
}
.hero-content .hero-title {
  font-size: clamp(1.8rem, 2.6vw, 2.9rem);
  max-width: none;
  margin-bottom: 18px;
}
.hero-content .hero-subtitle {
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.7;
}
.hero-content .section-label { margin-bottom: 14px; }
.hero-content .btn-hero { padding: 14px 28px; letter-spacing: 2px; }

/* hero 面板内硬数字（与 stats_bar 同一份数据，为空时整行隐藏） */
.hero-stats-row { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; }
.hero-stats-row:empty { display: none; margin: 0; padding: 0; border: 0; }
.hero-stats-row .stat-item { border-right: 1px solid rgba(255,255,255,0.14); padding: 0 24px; }
.hero-stats-row .stat-item:first-child { padding-left: 0; }
.hero-stats-row .stat-item:last-child { border-right: none; }
.hero-stats-row .stat-number { font-size: 1.8rem; color: #fff; }
.hero-stats-row .stat-number span { color: var(--secondary); }
.hero-stats-row .stat-label { color: rgba(255,255,255,0.62); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* WhatsApp 绿色描边 CTA */
.btn-hero.btn-hero-wa {
  border-color: rgba(37, 211, 102, 0.85);
  color: #25D366;
  background: rgba(37, 211, 102, 0.08);
}
.btn-hero.btn-hero-wa:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

/* STEP2-1 平板：分栏退化为整幅图 + 深色蒙层（与手机一致，避免左侧黑面板空置；bg 左对齐让图内左侧文案完整显示） */
@media (max-width: 1024px) {
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .hero-slide.active .hero-bg,
  .hero-slide .hero-bg {
    left: 0;
    background-position: left center;
  }
  .hero-content {
    inset: 0;
    right: 0;
    width: 100%;
    background: none;
    padding: 96px 32px 78px;
    text-align: center;
    align-items: center;
  }
  .hero-content .hero-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
  .hero-content .hero-subtitle { font-size: 1rem; }
  .hero-stats-row .stat-number { font-size: 1.4rem; }
}
/* STEP2-1 移动端：分栏退化为整幅图 + 深色蒙层 */
@media (max-width: 768px) {
  .hero-slide.active .hero-bg,
  .hero-slide .hero-bg { left: 0; background-position: left center; }
  .hero-content {
    inset: 0;
    right: 0;
    width: 100%;
    background: none;
    padding: 96px 24px 78px;
  }
  .hero-content .hero-title { font-size: 1.9rem; }
  .hero-arrow { display: none; }
}

/* ---- STEP2-4 分类卡：底部渐变遮罩 + "N Styles" 款数（2026-11-17 美工重做） ---- */
/* 渐变加高到 78% 让文字「坐在」完整暗部上，而不是压在花布上；hover 加深引导点击 */
.category-info {
  inset: auto 0 0 0;
  height: auto;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  padding: 44px 26px 22px;
  background: linear-gradient(to top,
    rgba(10, 14, 22, 0.88) 0%,
    rgba(10, 14, 22, 0.45) 42%,
    rgba(10, 14, 22, 0) 78%);
  transition: background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.category-card:hover .category-info {
  transform: none;
  background: linear-gradient(to top,
    rgba(10, 14, 22, 0.92) 0%,
    rgba(10, 14, 22, 0.55) 48%,
    rgba(10, 14, 22, 0) 84%);
}
/* 标题用品牌衬线体（Playfair Display），与站点 LOGO/大标题同源，替代无衬线的「标签感」 */
.category-info h3 {
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  min-height: 0;
  max-width: 100%;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  justify-content: flex-start;
  text-align: left;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
/* 款数：金色小字距全大写，做标题上方的「眉标」层（order:-1 放到 h3 前），标题基线跨卡一致；空值不占位 */
.category-count {
  order: -1;
  margin: 0 0 7px;
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.category-count:empty { display: none; }

/* ---- STEP2-3 商品卡：货号金色前置 / 标签 / MOQ / 价格带单位 ---- */
.product-meta .product-no {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.product-tags span {
  font-size: 0.72rem;
  color: var(--text-light);
  background: var(--bg-light);
  border: 1px solid rgba(141,107,60,0.18);
  border-radius: 999px;
  padding: 3px 10px;
  line-height: 1.4;
  /* 2026-11-16：颜色串可能很长（整串色号一个胶囊），单行截断防把卡片撑高 */
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-moq {
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.product-moq::before { content: '\25CF'; color: #25D366; margin-right: 6px; font-size: 0.6rem; }
.product-price em { font-style: normal; color: var(--text-light); font-size: 0.72em; font-weight: 400; }
