* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
}

/* 电商导航栏样式 */
.navbar {
  background-color: #ffffff;
  padding: 1.2rem 5%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

/* 左侧导航菜单 */
.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #2d2d2d;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #d62828;
}

.nav-link.active {
  color: #d62828;
  border-bottom: 2px solid #d62828;
}

/* 中间Logo */
.logo {
  text-decoration: none;
  color: #d62828;
  font-family: "Times New Roman", Times, serif;
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

/* 右侧搜索+图标 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-box {
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 0.6rem 1rem;
  border: 1px solid #e0e0e0;
  border-right: none;
  border-radius: 2rem 0 0 2rem;
  outline: none;
  font-size: 0.95rem;
  width: 180px;
  transition: border-color 0.3s ease;
}

.search-box input:focus {
  border-color: #d62828;
}

.search-box input::placeholder {
  color: #999;
}

.search-btn {
  background-color: #d62828;
  border: none;
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 0 2rem 2rem 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background-color: #b71c1c;
}

.nav-icons {
  display: flex;
  gap: 1.2rem;
}

.icon {
  text-decoration: none;
  color: #2d2d2d;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.icon:hover {
  color: #d62828;
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 1.2rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .logo {
    font-size: 1.8rem;
  }

  .search-box input {
    width: 140px;
  }
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }

  .nav-container {
    justify-content: space-between;
  }

  .logo {
    font-size: 1.6rem;
  }

  .search-box input {
    width: 120px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 3%;
  }

  .logo {
    font-size: 1.4rem;
  }

  .search-box {
    display: none;
  }

  .nav-icons {
    gap: 1rem;
  }
}

/* Hero Section - Fullscreen Carousel */
.hero-section {
  position: relative;
  width: 100%;
  height: 65vh; /* ← 主高度：视口高度的 85% */
  min-height: 480px; /* ← 最小高度：不低于 480px */
  max-height: 800px; /* ← 最大高度：不超过 800px */
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 6s ease-out;
}

.hero-slide.active img {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
  z-index: 3;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.4rem 1.2rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
}

.hero-slide.active .hero-tag {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease 0.35s;
}

.hero-slide.active .hero-content h1 {
  opacity: 1;
  transform: translateY(0);
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.5s;
  max-width: 520px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.hero-slide.active .hero-content p {
  opacity: 1;
  transform: translateY(0);
}

.hero-btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  background-color: #fff;
  color: #1a1a2e;
  text-decoration: none;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition:
    all 0.5s ease 0.65s,
    background-color 0.3s ease,
    color 0.3s ease;
}

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

.hero-btn:hover {
  background-color: #1a1a2e;
  color: #fff;
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.hero-btn-outline:hover {
  background: #fff;
  color: #1a1a2e;
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.4rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 2rem;
}

.hero-next {
  right: 2rem;
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

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

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

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

/* Progress bar under active dot */
.hero-dot.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.hero-dot {
  position: relative;
}

@media (max-width: 768px) {
  .hero-section {
    height: 70vh;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .hero-prev {
    left: 1rem;
  }

  .hero-next {
    right: 1rem;
  }

  .hero-btn {
    padding: 0.75rem 1.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 60vh;
    min-height: 350px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-tag {
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

main {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

main h2 {
  text-align: center;
  margin: 2rem 0;
  color: #2c3e50;
  font-size: 2rem;
}

/* 全屏贴边零间隙 4列网格 + 卡片悬浮微动效 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  background-color: white;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

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

.product-card h3 {
  padding: 12px 12px 4px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.product-card p {
  padding: 0 12px 12px;
  font-weight: 700;
  color: #000;
  font-size: 0.95rem;
  text-decoration: none;
}

.view-details {
  display: block;
  width: 80%;
  margin: 0 auto 1rem;
  padding: 0.8rem;
  text-align: center;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.view-details:hover {
  background-color: #2980b9;
}

footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

/* ============================================
   Product Detail Page - 高端轻奢样式
   ============================================ */

/* 产品详情页主容器 - 居中排版，优雅留白 */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  margin: 2rem auto;
  max-width: 1200px;
  transition: box-shadow 0.4s ease;
}

.product-detail:hover {
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.1);
}

/* ===== 产品图片区域 - 高端轻奢侈 ===== */
.product-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.main-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 3/4;
}

.main-image-container:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-image-container:hover .main-image {
  transform: scale(1.03);
}

/* 导航按钮 - 极简质感 */
.image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  font-size: 1.2rem;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.image-nav:hover {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.05);
}

.image-nav.prev {
  left: 1rem;
}
.image-nav.next {
  right: 1rem;
}

/* ===== 缩略图区域 ===== */
.thumbnail-container {
  padding: 0.5rem 0;
}

.thumbnail-images {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.thumbnail-images::-webkit-scrollbar {
  height: 4px;
}

.thumbnail-images::-webkit-scrollbar-track {
  background: transparent;
}

.thumbnail-images::-webkit-scrollbar-thumb {
  background-color: #ddd;
  border-radius: 2px;
}

.thumbnail-wrapper {
  flex-shrink: 0;
  width: 72px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #f8f8f8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.thumbnail-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail-wrapper.active {
  box-shadow:
    0 0 0 2px #333,
    0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.thumbnail-wrapper:hover .thumbnail {
  transform: scale(1.05);
}

/* ===== 产品信息区域 ===== */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.product-info h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #222;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
}

.product-info .sku {
  font-size: 0.85rem;
  color: #888;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

.product-info .price {
  font-size: 1.75rem;
  font-weight: 600;
  color: #222;
  letter-spacing: -0.02em;
  margin: 0;
}

.price-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.product-info .tax-note {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ===== 颜色选项 - 正方形缩略图布局 ===== */
.color-options {
  padding: 1rem 0;
}

.color-options h3 {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.color-option {
  position: relative;
  width: calc(25% - 0.5625rem);
  aspect-ratio: 1 / 1.33;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.color-option::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.color-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.color-option:hover::before {
  opacity: 1;
}

.color-option.active {
  box-shadow:
    0 0 0 2px #222,
    0 6px 20px rgba(0, 0, 0, 0.15);
}

.color-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.color-option:hover .color-preview {
  transform: scale(1.05);
}

.color-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===== 尺寸选项 ===== */
.size-options {
  padding: 1rem 0;
}

.size-options h3 {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.sizes {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.size {
  min-width: 48px;
  height: 48px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.size:hover {
  border-color: #333;
  color: #222;
  transform: translateY(-1px);
}

.size.active {
  background: #222;
  color: #fff;
  border-color: #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== 加入购物车按钮 ===== */
.add-to-cart {
  display: block;
  width: 100%;
  padding: 1.25rem 2rem;
  margin-top: auto;
  background: #222;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.add-to-cart:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.add-to-cart:active {
  transform: translateY(0);
}

/* ===== 尺寸表区域 - 轻奢侈 ===== */
.size-chart-section {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  margin: 2.5rem auto 0;
  max-width: 1200px;
  transition: box-shadow 0.4s ease;
}

.size-chart-section:hover {
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.1);
}

.size-chart-section h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.size-chart-container {
  overflow-x: auto;
  border-radius: 12px;
  background: #fafafa;
  padding: 1rem;
}

.size-chart {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.size-chart th {
  background: #fff;
  padding: 1rem;
  text-align: center;
  font-weight: 500;
  color: #555;
  border-bottom: 2px solid #eee;
  letter-spacing: 0.02em;
}

.size-chart td {
  padding: 1rem;
  text-align: center;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s ease;
}

.size-chart tbody tr:hover td {
  background: #f8f8f8;
}

.size-chart .required {
  color: #666;
  font-weight: 500;
}

/* ===== 产品描述区域 - 轻奢侈 ===== */
.description-section {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  margin: 2.5rem auto 0;
  max-width: 1200px;
}

.description h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.product-specs {
  width: 100%;
  border-collapse: collapse;
}

.product-specs tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s ease;
}

.product-specs tr:hover {
  background: #fafafa;
}

.product-specs td {
  padding: 1rem 0;
  font-size: 0.95rem;
}

.product-specs td:first-child {
  font-weight: 500;
  color: #666;
  width: 35%;
  letter-spacing: 0.02em;
}

.product-specs td:last-child {
  color: #333;
  font-weight: 400;
}

/* ===== 响应式适配 ===== */
@media (max-width: 1024px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .size-chart-section,
  .description-section {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .product-detail {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 12px;
  }

  .product-info h2 {
    font-size: 1.25rem;
  }

  .product-info .price {
    font-size: 1.5rem;
  }

  .size-chart-section,
  .description-section {
    padding: 1.25rem;
    margin-top: 1.5rem;
  }

  .add-to-cart {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

.size-chart-section {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.size-chart-section h3 {
  margin-bottom: 1.5rem;
  color: #2c3e50;
  font-size: 1.3rem;
}

.size-chart-container {
  overflow-x: auto;
  max-width: 100%;
}

.size-chart {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 900px;
}

.size-chart th {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  color: #495057;
}

.size-chart td {
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  text-align: center;
  color: #495057;
}

.size-chart .required {
  color: #e74c3c;
  font-weight: 500;
}

.size-chart .highlight {
  background-color: #e3f2fd;
  font-weight: 600;
  color: #1565c0;
}

.size-chart tbody tr:hover {
  background-color: #f8f9fa;
}

.size-chart td:first-child,
.size-chart th:first-child {
  text-align: left;
}

.description-section {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  aspect-ratio: 1 / 1;
}

.main-image-container:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.image-nav.prev {
  left: 10px;
}

.image-nav.next {
  right: 10px;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-image-container:hover .main-image {
  transform: scale(1.05);
}

.thumbnail-container {
  overflow-x: auto;
}

.thumbnail-images {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}

.thumbnail-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background-color: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.thumbnail-wrapper:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #3498db;
}

.thumbnail-wrapper.active {
  border: 2px solid #3498db;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
}

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

.thumbnail-images {
  display: flex;
  gap: 12px;
  padding: 8px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.thumbnail-images::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-images::-webkit-scrollbar-track {
  background: transparent;
}

.thumbnail-images::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-info h2 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  text-align: left;
  font-size: 1.4rem;
  line-height: 1.3;
}

.product-info .sku {
  margin-bottom: 1rem;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.product-info .price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 1.5rem;
}

.description h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.2rem;
}

.product-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.product-specs tr {
  border-bottom: 1px solid #eee;
}

.product-specs td {
  padding: 0.75rem 0;
  vertical-align: top;
}

.product-specs td:first-child {
  font-weight: 500;
  color: #555;
  width: 40%;
}

.product-specs td:last-child {
  color: #7f8c8d;
  width: 60%;
}

.color-options {
  margin-bottom: 2rem;
}

.color-options h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1rem;
}

.colors {
  display: flex;
  gap: 1rem;
}

.color-option {
  position: relative;
  cursor: pointer;
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.color-option:hover {
  border-color: #3498db;
}

.color-option.active {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.color-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #e74c3c;
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  font-weight: bold;
}

.color-label {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: #666;
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  height: auto;
  padding: 0;
}

.color-option .color-preview {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
}

.size-options {
  margin-bottom: 2rem;
}

.size-options h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1rem;
}

.sizes {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.size {
  padding: 0.8rem 1.2rem;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: white;
  color: #333;
  font-weight: 500;
}

.size:hover {
  border-color: #3498db;
}

.size.active {
  background-color: #3498db;
  color: white;
  border-color: #3498db;
}

.add-to-cart {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: black;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.2s ease;
  margin-bottom: 2rem;
}

.add-to-cart:hover {
  background-color: #333;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-info h2 {
    text-align: center;
  }

  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav a {
    margin: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  main {
    padding: 0 1rem;
  }
}

/* ============================================
   专业电商页脚样式 - Luxury Footer
   ============================================ */

.site-footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  color: #fff;
  padding: 4rem 0 0;
  margin-top: 4rem;
}

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

/* 主要内容区 - 5列网格 */
.footer-main {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-column a:hover {
  color: #fff;
}

.footer-column a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.footer-column a:hover::after {
  width: 100%;
}

/* 社交媒体列 */
.footer-social {
  grid-column: span 1;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: #fff;
  color: #1a1a1a;
  transform: translateY(-3px);
}

.newsletter-title {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* 支付方式 */
.footer-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-payment span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.payment-icons {
  display: flex;
  gap: 1rem;
}

.payment-icons i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.payment-icons i:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* 底部栏 */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* ===== 语言切换器 ===== */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lang-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.language-switcher a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.language-switcher a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.language-switcher a.active {
  color: #1a1a1a;
  background: #fff;
  font-weight: 600;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .language-switcher {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-bottom {
    gap: 1.5rem;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links .separator {
  color: rgba(255, 255, 255, 0.3);
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .footer-main {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-social {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-social {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-payment {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 1rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-social {
    grid-column: span 1;
  }

  .social-icons {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

.sitemap-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.sitemap-heading {
  font-size: 2rem;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.sitemap-desc {
  color: #888;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.sitemap-section {
  margin-bottom: 2.5rem;
}

.sitemap-section h2 {
  font-size: 1.2rem;
  color: #1a1a2e;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1a1a2e;
  display: inline-block;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-list li {
  margin-bottom: 0.6rem;
}

.sitemap-list a {
  color: #3498db;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.sitemap-list a:hover {
  color: #1a1a2e;
  text-decoration: underline;
}

.sitemap-variants {
  list-style: none;
  padding: 0.3rem 0 0 1.5rem;
  margin: 0;
}

.sitemap-variants li {
  margin-bottom: 0.3rem;
}

.sitemap-variants a {
  font-size: 0.88rem;
  color: #7f8c8d;
}

.sitemap-variants a:hover {
  color: #1a1a2e;
}

.notfound-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.notfound-container {
  text-align: center;
  max-width: 520px;
}

.notfound-code {
  font-size: 8rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.notfound-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.notfound-desc {
  font-size: 1rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.notfound-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: #1a1a2e;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.notfound-btn:hover {
  background: #333;
}

@media (max-width: 480px) {
  .notfound-code {
    font-size: 5rem;
  }
  .notfound-title {
    font-size: 1.2rem;
  }
}

.content-page {
  min-height: 60vh;
  padding: 3rem 2rem;
}

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

.content-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.content-subtitle {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.content-body h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #eee;
}

.content-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin: 1.5rem 0 0.6rem;
}

.content-body p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-body ul,
.content-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-body li {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 0.3rem;
}

.content-body a {
  color: #1a1a2e;
  text-decoration: underline;
  transition: color 0.2s;
}

.content-body a:hover {
  color: #3498db;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.content-body th,
.content-body td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #eee;
  font-size: 0.9rem;
}

.content-body th {
  background: #f8f8f8;
  font-weight: 600;
  color: #1a1a2e;
}

.content-body .info-box {
  background: #f8f9fa;
  border-left: 3px solid #1a1a2e;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #555;
}

@media (max-width: 480px) {
  .content-page {
    padding: 2rem 1rem;
  }
  .content-title {
    font-size: 1.5rem;
  }
}
