/* Hanoi Timepiece - 专业手表销售网站主样式 */
:root {
  /* 主品牌色彩系统 */
  --primary: #000000;           /* 纯黑色 - 主品牌色 */
  --secondary: #f8f9fa;         /* 浅灰白 - 背景色 */
  --accent: #865E7B;            /* 紫红色 - 强调色 */
  
  /* 紫红色渐变系统 */
  --purple-50: #faf8fb;
  --purple-100: #f3eef5;
  --purple-200: #e6dce9;
  --purple-300: #d4c2d8;
  --purple-400: #c0a5c7;
  --purple-500: #865E7B;
  --purple-600: #7a546f;
  --purple-700: #6e4a63;
  --purple-800: #624057;
  --purple-900: #56364b;
  
  /* 中性色系统 */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  
  /* 文本色彩 */
  --text-primary: #000000;
  --text-secondary: #525252;
  --text-muted: #737373;
  
  /* 边框色彩 */
  --border-light: #e5e5e5;
  --border-medium: #d4d4d4;
  --border-dark: #a3a3a3;
  
  /* 阴影系统 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  
  /* 商品卡片系统 */
  --product-card-height: 480px;
  --product-card-gap-mobile: 12px;
  --product-card-gap-tablet: 16px;
  --product-card-gap-desktop: 20px;
  --product-card-border-radius: 8px;
  --product-card-shadow: var(--shadow);
  --product-card-shadow-hover: var(--shadow-lg);
  
  /* 响应式断点 */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
}

/* 基础样式重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 容器系统 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }
}

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

/* 标题样式 */
.title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 按钮样式系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px; /* 触摸友好的最小高度 */
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-accent:hover {
  background-color: var(--purple-600);
  border-color: var(--purple-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 商品卡片样式 */
.product-card {
  background: white;
  border-radius: var(--product-card-border-radius);
  box-shadow: var(--product-card-shadow);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  position: relative;
  height: var(--product-card-height);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

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

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3; /* 使用现代aspect-ratio保持图片比例 */
  overflow: hidden;
  background-color: var(--neutral-50);
  flex-shrink: 0;
  /* 为不支持aspect-ratio的旧浏览器提供fallback */
  height: 0;
  padding-bottom: 75%; /* 4/3 = 75% */
}

/* 现代浏览器使用aspect-ratio */
@supports (aspect-ratio: 4/3) {
  .product-card-image {
    height: auto;
    padding-bottom: 0;
  }
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 改为contain确保图片完整显示 */
  object-position: center;
  transition: transform 0.3s ease-in-out;
}

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

.product-card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0; /* 确保flex子元素可以收缩 */
  overflow: hidden;
}

.product-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem; /* 确保标题区域高度一致 */
  max-height: 2.6rem; /* 限制最大高度 */
  word-wrap: break-word;
  hyphens: auto;
  flex-shrink: 0;
}

.product-card-category {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background-color: var(--purple-50);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.product-card-price-current {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.product-card-price-old {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.product-card-rating svg {
  width: 1rem;
  height: 1rem;
  color: var(--purple-500);
}

.product-card-rating span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.product-card-view {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.product-card-view:hover {
  border-color: var(--accent);
  background-color: var(--purple-50);
  color: var(--accent);
}

.product-card-wishlist {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.product-card-wishlist:hover {
  border-color: var(--accent);
  background-color: var(--purple-50);
}

.product-card-wishlist.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
}

.product-card-add-to-cart {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.product-card-add-to-cart:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.product-card-add-to-cart:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 网格布局系统 */
.product-grid {
  display: grid;
  gap: var(--product-card-gap-mobile);
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .product-grid {
    gap: var(--product-card-gap-tablet);
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .product-grid {
    gap: var(--product-card-gap-tablet);
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .product-grid {
    gap: var(--product-card-gap-desktop);
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 商品网格容器 */
#new-products-grid,
#featured-products-grid {
  display: grid;
  gap: var(--product-card-gap-mobile);
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  #new-products-grid,
  #featured-products-grid {
    gap: var(--product-card-gap-tablet);
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  #new-products-grid,
  #featured-products-grid {
    gap: var(--product-card-gap-tablet);
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  #new-products-grid,
  #featured-products-grid {
    gap: var(--product-card-gap-desktop);
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 头部导航样式 */
.header {
  background: white;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.header .logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header .logo img {
  width: 120px;
  height: 40px;
  object-fit: contain;
}

.header .logo-text {
  margin-left: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .header .logo-text {
    display: none;
  }
}

.header .nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header .nav {
    display: flex;
  }
}

.header .nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  padding: 0.5rem 0;
}

.header .nav a:hover {
  color: var(--accent);
}

.header .actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header .search {
  position: relative;
  display: none;
}

@media (min-width: 576px) {
  .header .search {
    display: block;
  }
}

.header .search input {
  width: 200px;
  height: 2.5rem;
  padding: 0 1rem 0 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  background-color: var(--neutral-50);
  transition: all 0.2s ease-in-out;
}

.header .search input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(134, 94, 123, 0.1);
}

.header .search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
}

/* 移动端Header样式 */
.mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .mobile-actions {
    display: none;
  }
  
  .desktop-actions {
    display: flex;
  }
  
  .desktop-nav {
    display: flex;
  }
}

/* 移动端搜索容器 */
.mobile-search-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 40;
}

.mobile-search-container.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-search {
  display: flex;
  align-items: center;
  padding: 1rem;
  gap: 0.75rem;
  position: relative;
}

.mobile-search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.mobile-search input {
  flex: 1;
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  background-color: var(--neutral-50);
  transition: all 0.2s ease-in-out;
}

.mobile-search input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(134, 94, 123, 0.1);
}

.mobile-search-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  flex-shrink: 0;
}

.mobile-search-close:hover {
  color: var(--text-primary);
  background-color: var(--neutral-100);
}

/* 移动端导航容器 */
.mobile-nav-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 40;
}

.mobile-nav-container.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  padding: 1rem 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
  background-color: var(--neutral-50);
  color: var(--accent);
  border-left-color: var(--accent);
}

.mobile-nav-link svg {
  color: var(--text-muted);
  transition: color 0.2s ease-in-out;
}

.mobile-nav-link:hover svg {
  color: var(--accent);
}

.mobile-nav-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: 0.5rem 0;
}

/* 移动端菜单按钮动画 */
.mobile-menu-btn {
  position: relative;
  transition: all 0.3s ease-in-out;
}

.mobile-menu-btn.active {
  transform: rotate(90deg);
}

.mobile-menu-btn svg {
  transition: all 0.3s ease-in-out;
}

/* 响应式调整 */
@media (max-width: 767px) {
  .header .container {
    height: 3.5rem;
  }
  
  .header .logo img {
    width: 100px;
    height: 32px;
  }
  
  .mobile-actions {
    gap: 0.25rem;
  }
  
  .mobile-actions button {
    padding: 0.5rem;
  }
  
  .mobile-actions svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Swiper轮播图样式 */
.swiper-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Banner导航按钮样式 */
.banner-nav-btn {
  color: white;
  background: linear-gradient(135deg, rgba(134, 94, 123, 0.9), rgba(134, 94, 123, 0.7));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(134, 94, 123, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.banner-nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.banner-nav-btn:hover {
  background: linear-gradient(135deg, rgba(134, 94, 123, 1), rgba(134, 94, 123, 0.8));
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 28px rgba(134, 94, 123, 0.4);
}

.banner-nav-btn:hover::before {
  opacity: 1;
}

.banner-nav-btn:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

.banner-nav-btn svg {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  width: 16px;
  height: 16px;
}

.banner-nav-btn:hover svg {
  transform: scale(1.05);
}

/* 传统Swiper按钮样式保持兼容 */
.swiper-button-next,
.swiper-button-prev {
  color: white;
  background: linear-gradient(135deg, rgba(134, 94, 123, 0.9), rgba(134, 94, 123, 0.7));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(134, 94, 123, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.swiper-button-next::before,
.swiper-button-prev::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: linear-gradient(135deg, rgba(134, 94, 123, 1), rgba(134, 94, 123, 0.8));
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 28px rgba(134, 94, 123, 0.4);
}

.swiper-button-next:hover::before,
.swiper-button-prev:hover::before {
  opacity: 1;
}

.swiper-button-next:active,
.swiper-button-prev:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.swiper-button-next:hover:after,
.swiper-button-prev:hover:after {
  transform: scale(1.05);
}

/* Banner轮播指示器样式 */
.banner-pagination {
  bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.banner-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  width: 10px;
  height: 10px;
  margin: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.banner-pagination .swiper-pagination-bullet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(134, 94, 123, 0.8), rgba(134, 94, 123, 0.6));
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-pagination .swiper-pagination-bullet-active {
  background: transparent;
  transform: scale(1.3);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.banner-pagination .swiper-pagination-bullet-active::before {
  opacity: 1;
  transform: scale(1);
}

.banner-pagination .swiper-pagination-bullet:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.6);
}

/* 传统轮播指示器样式保持兼容 */
.swiper-pagination {
  bottom: 20px;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.swiper-pagination-bullet-active {
  background: var(--accent);
  transform: scale(1.2);
}

/* 响应式调整 */
@media (max-width: 767px) {
  /* Banner导航按钮移动端样式 */
  .banner-nav-btn {
    width: 36px;
    height: 36px;
  }
  
  .banner-nav-btn svg {
    width: 14px;
    height: 14px;
  }
  
  /* 传统Swiper按钮移动端样式 */
  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(134, 94, 123, 0.95), rgba(134, 94, 123, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
  }
  
  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    margin: 0;
    padding: 0;
  }
  
  /* Banner轮播指示器移动端样式 */
  .banner-pagination {
    bottom: 20px;
    gap: 6px;
  }
  
  .banner-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
  
  /* 传统轮播指示器移动端样式 */
  .swiper-pagination {
    bottom: 15px;
  }
  
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
}

/* 页脚样式 - 已移动到下方统一样式 */

/* 表单样式 */
.form-group {
  margin-bottom: 1rem;
}

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

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(134, 94, 123, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  resize: vertical;
  min-height: 120px;
  transition: all 0.2s ease-in-out;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(134, 94, 123, 0.1);
}

/* 模态框样式 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
}

.modal-close:hover {
  background-color: var(--neutral-100);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

/* ToolTips 组件样式 */
.tooltip {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.tooltip-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  animation: slideInUp 0.3s ease-out;
}

.tooltip-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooltip-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--accent), var(--purple-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.tooltip-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.tooltip-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.tooltip-body {
  padding: 1.5rem;
  text-align: center;
}

.tooltip-message {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
}

.tooltip-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.tooltip-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
  min-width: 100px;
}

.tooltip-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--purple-600));
  color: white;
}

.tooltip-btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-600), var(--accent));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(134, 94, 123, 0.3);
}

.tooltip-btn-secondary {
  background: var(--neutral-100);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.tooltip-btn-secondary:hover {
  background: var(--neutral-200);
  transform: translateY(-1px);
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

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

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

/* 加载状态 */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-muted);
}

.loading::after {
  content: '';
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border-light);
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

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

/* 表单样式 */
.form-group {
  margin-bottom: 1rem;
}

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

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 0.875rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  background-color: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(134, 94, 123, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* 页脚样式 - 使用Flexbox布局 */
.footer {
  background: var(--primary);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-section {
  flex: 1;
  min-width: 0;
}

.footer-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 600;
}

.footer-section p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  font-size: 0.875rem;
}

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

/* 页脚导航样式 */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.footer-link-arrow {
  color: var(--accent);
  font-size: 1rem;
  font-weight: bold;
  margin-right: 0.5rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease-in-out;
}

.footer-link-text {
  transition: all 0.3s ease-in-out;
}

.footer-link:hover {
  color: white;
  transform: translateX(8px);
}

.footer-link:hover .footer-link-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

.footer-link:hover .footer-link-text {
  transform: translateX(4px);
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

/* 心愿单和购物车页面专用样式 */
.wishlist-page, .cart-page {
  min-height: 100vh;
  background-color: var(--secondary);
}

/* 确保按钮在心愿单和购物车页面正确显示 */
.wishlist-page .btn, .cart-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}

.wishlist-page .btn-primary, .cart-page .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border-color: var(--primary);
}

.wishlist-page .btn-primary:hover, .cart-page .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.wishlist-page .btn-secondary, .cart-page .btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.wishlist-page .btn-secondary:hover, .cart-page .btn-secondary:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* 确保标题样式正确 */
.wishlist-page .title, .cart-page .title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.wishlist-page .subtitle, .cart-page .subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #fff;
  line-height: 1.5;
}

.wishlist-page .container, .cart-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 576px) {
  .wishlist-page .container, .cart-page .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .wishlist-page .container, .cart-page .container {
    padding: 0 2rem;
  }
}

/* 心愿单和购物车页面中间部分样式 */
.wishlist-page main, .cart-page main {
  min-height: calc(100vh - 4rem);
  background-color: var(--secondary);
}

.wishlist-page .container, .cart-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 576px) {
  .wishlist-page .container, .cart-page .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .wishlist-page .container, .cart-page .container {
    padding: 0 2rem;
  }
}

/* 购物车商品列表样式 */
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  background: white;
  transition: all 0.2s ease-in-out;
}

.cart-item:hover {
  background-color: var(--neutral-50);
}

.cart-item-image {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-spec {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-qty-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border-light);
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-size: 0.875rem;
  font-weight: 500;
}

.cart-qty-btn:hover {
  border-color: var(--accent);
  background-color: var(--purple-50);
  color: var(--accent);
}

.cart-qty-display {
  min-width: 2rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.cart-item-price {
  text-align: right;
  flex-shrink: 0;
}

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

.cart-remove-btn {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
}

.cart-remove-btn:hover {
  color: #dc2626;
  text-decoration: underline;
}

/* 订单摘要样式 */
.order-summary {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
}

.order-summary-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.order-summary-label {
  color: var(--text-secondary);
}

.order-summary-value {
  font-weight: 500;
  color: var(--text-primary);
}

.order-summary-total {
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: var(--text-muted);
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* 登录提示模态框样式 */
.login-prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.login-prompt-content {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  max-width: 400px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  animation: slideInUp 0.3s ease-out;
}

.login-prompt-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--accent);
}

.login-prompt-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.login-prompt-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.login-prompt-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.login-prompt-actions .btn {
  min-width: 120px;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 按钮加载状态 */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* 商品操作按钮增强样式 */
.product-card-add-to-cart {
  position: relative;
  overflow: hidden;
}

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

.product-card-add-to-cart:hover::before {
  left: 100%;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .cart-item-image {
    width: 3rem;
    height: 3rem;
  }
  
  .cart-item-details {
    width: 100%;
  }
  
  .cart-item-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .cart-item-price {
    text-align: left;
    width: 100%;
  }
  
  .order-summary {
    position: static;
    margin-top: 1rem;
  }
  
  .login-prompt-actions {
    flex-direction: column;
  }
  
  .login-prompt-actions .btn {
    width: 100%;
  }
}

/* 无障碍支持 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 焦点样式 */
*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-light: #000000;
  }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 首页Banner响应式图片样式 - 统一1200x600尺寸 */
.hero-banner {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  /* 使用aspect-ratio确保2:1比例 */
  aspect-ratio: 2 / 1;
  min-height: 200px;
  max-height: 600px;
}

/* 移动端优化 */
@media (max-width: 640px) {
  .hero-banner {
    aspect-ratio: 2 / 1;
    min-height: 150px;
    max-height: 300px;
  }
}

/* 平板端优化 */
@media (min-width: 641px) and (max-width: 1023px) {
  .hero-banner {
    aspect-ratio: 2 / 1;
    min-height: 200px;
    max-height: 400px;
  }
}

/* 桌面端优化 */
@media (min-width: 1024px) {
  .hero-banner {
    aspect-ratio: 2 / 1;
    min-height: 300px;
    max-height: 600px;
  }
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease-in-out;
  /* 确保图片完整显示，不裁剪 */
  object-fit: contain;
}

.hero-banner:hover img {
  transform: scale(1.02);
}

/* 确保图片在所有设备上都不拉伸、不变形、不残缺 */
@media (max-width: 640px) {
  .hero-banner img {
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    max-height: 100%;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .hero-banner img {
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    max-height: 100%;
  }
}

@media (min-width: 1024px) {
  .hero-banner img {
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    max-height: 100%;
  }
}

/* 图片样式已在上面的.hero-banner img中定义 */

/* 黑色背景Banner区域的按钮样式优化 */
.bg-black .btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  color: #1a1a1a;
  border-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.bg-black .btn-primary:hover {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.bg-black .btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.bg-black .btn-secondary:hover {
  background-color: #ffffff;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.bg-black .btn-primary:focus,
.bg-black .btn-secondary:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
