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

/* 统一字体设置 - 微信和Safari兼容性优化 */
*:not([class*="icon"]):not(.fa):not(.fas):not(i) {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "苹方-简", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif !important;
}

/* 针对Safari和微信浏览器的严格布局控制 */
html {
  /* 防止iOS Safari水平滚动 */
  overflow-x: hidden;
  /* 禁止微信用户修改字体大小 - 关键修复 */
  -webkit-text-size-adjust: 100% !important;
  -ms-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  /* Safari特有的修复 */
  width: 100%;
  max-width: 100%;
  position: relative;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "苹方-简", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif !important;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  /* 防止水平滚动 */
  overflow-x: hidden;
  /* 防止iOS Safari中的回弹效果 */
  -webkit-overflow-scrolling: touch;
  /* Safari和微信浏览器严格宽度控制 */
  width: 100%;
  max-width: 100vw;
  position: relative;
  /* 禁止字体缩放 - 微信兼容性 */
  -webkit-text-size-adjust: 100% !important;
  -ms-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  /* 确保在小屏幕上不会溢出 */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* Safari和微信浏览器额外保护 */
  overflow-x: hidden;
}

/* 导航栏 */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  /* 确保在移动端不会溢出 */
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  /* 防止在小屏幕上换行 */
  flex-wrap: nowrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
  /* 在移动端优化布局 */
  flex: 1;
  min-width: 0;
}

.logo {
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
  /* 防止logo被截断 */
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-btn {
  position: relative;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s;
}

.cart-btn:hover {
  background: #f9fafb;
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
}

.mobile-nav-link {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
}

/* Hero 区域 */
.hero {
  position: relative;
  padding: 80px 0 120px;
  background: linear-gradient(135deg, #f5f5f7 0%, #fafafa 50%, #f0f9ff 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23e5e7eb" opacity="0.5"/></svg>');
  opacity: 0.1;
}

.hero-decoration {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 128px;
  height: 128px;
  background: linear-gradient(135deg, #bbf7d0, #dbeafe);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  animation: pulse 3s ease-in-out infinite;
}

.hero-decoration::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, #fed7aa, #fce7f3);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.3;
  animation: pulse 3s ease-in-out infinite 1s;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-text {
  animation: slideInLeft 1s ease-out;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  animation: fadeIn 1s ease-out 0.3s both;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1f2937, #374151, #1f2937);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeft 1s ease-out 0.5s both;
}

.text-red {
  color: #dc2626;
  background: none;
  -webkit-text-fill-color: #dc2626;
}

.hero-description {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 32px;
  line-height: 1.6;
  animation: slideInLeft 1s ease-out 0.7s both;
}

.hero-features {
  font-size: 14px;
  color: #dc2626;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  animation: slideInLeft 1s ease-out 1s both;
}

.btn {
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

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

.btn-outline:hover {
  background: #fef2f2;
  border-color: #dc2626;
  transform: translateY(-2px) scale(1.05);
}

.trust-indicators {
  display: flex;
  gap: 48px;
  animation: slideInLeft 1s ease-out 1.2s both;
}

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

.trust-number {
  font-size: 24px;
  font-weight: bold;
  color: #dc2626;
}

.trust-label {
  font-size: 12px;
  color: #6b7280;
}

.hero-image {
  position: relative;
  animation: slideInRight 1s ease-out 0.5s both;
}

.image-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-radius: 12px;
  filter: blur(20px);
  opacity: 0.2;
  animation: pulse 3s ease-in-out infinite;
}

.hero-img {
  position: relative;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s;
}

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

/* 产品区域 */
.products-section {
  padding: 80px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #1f2937;
}

.section-description {
  font-size: 18px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  gap: 32px;
}

.category-section {
  position: relative;
  background: #fafafa;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
}

.category-section:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.category-header {
  margin-bottom: 24px;
}

.category-title {
  font-size: 24px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 8px;
}

.category-description {
  font-size: 14px;
  color: #6b7280;
}

.category-link {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: #dc2626;
  color: white;
  border-radius: 50%;
  display: none; /* 隐藏分类右边的箭头图标 */
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
}

.category-link:hover {
  transform: scale(1.1);
  background: #b91c1c;
}

.products-showcase {
  position: relative;
}

.showcase-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* PC端隐藏，因为使用grid布局 */
  display: none;
}

.showcase-nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.showcase-nav.prev {
  left: -20px;
}

.showcase-nav.next {
  right: -20px;
}

/* PC端商品容器 - 响应式自适应版本 */
.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 8px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.product-card {
  background: white;
  border-radius: 8px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

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

.product-card.recommended {
  border: 2px solid #fed7aa;
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.12);
}

.product-card.recommended::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.06), rgba(239, 68, 68, 0.06));
  pointer-events: none;
  border-radius: 8px;
  animation: pulse 3s ease-in-out infinite;
}

.recommend-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  color: white;
  padding: 2px 6px;
  font-size: 8px;
  font-weight: bold;
  border-radius: 0 0 4px 0;
  z-index: 20;
  animation: pulse 2s ease-in-out infinite;
}

.discount-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ef4444;
  color: white;
  padding: 2px 6px;
  font-size: 8px;
  font-weight: bold;
  border-radius: 8px;
  z-index: 20;
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}

.product-card:hover .product-image::after {
  background: rgba(0, 0, 0, 0.05);
}

.product-info {
  padding: 8px;
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 6px;
}

.product-tag {
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 8px;
  font-weight: bold;
  color: white;
}

.product-tag.hot-sale {
  background: #ef4444;
}

.product-tag.recommended {
  background: #fb923c;
}

.product-tag.value {
  background: #22c55e;
}

.product-tag.trending {
  background: #ec4899;
}

.product-tag.default {
  background: #3b82f6;
}

.product-name {
  font-size: 10px; /* 增大字体从8px到10px */
  line-height: 1.3;
  margin-bottom: 1px;
  width: 100%;
  overflow: hidden;
  word-break: break-word; /* 允许长词换行 */
  white-space: normal; /* 允许换行 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-spec {
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 4px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-sales {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  color: #6b7280;
  margin-bottom: 6px;
}

.product-pricing {
  margin-bottom: 8px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.current-price {
  font-size: 14px;
  font-weight: bold;
  color: #ef4444;
}

.original-price {
  font-size: 10px;
  color: #6b7280;
  text-decoration: line-through;
}

.savings {
  font-size: 8px;
  color: #22c55e;
  font-weight: 500;
}

.product-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* 统一的加购按钮样式 - 简化版 */
.add-to-cart {
  background: #dc2626;
  border: none;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  font-size: 12px;
  color: white;
}

.add-to-cart:hover {
  transform: scale(1.1);
  background: #b91c1c;
}

.add-to-cart:active {
  transform: scale(0.95);
}

/* 关于我们 */
.about-section {
  padding: 80px 0;
  background: #f9fafb;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.about-text h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #1f2937;
}

.about-text p {
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.6;
}

.advantage-list {
  list-style: none;
  padding: 0;
}

.advantage-list li {
  padding: 8px 0;
  color: #6b7280;
  position: relative;
  padding-left: 20px;
}

.advantage-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: bold;
}

.about-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* 联系我们 */
.contact-section {
  padding: 80px 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.contact-info h3,
.contact-form h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 24px;
  color: #1f2937;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #6b7280;
}

.contact-item i {
  color: #dc2626;
  width: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #dc2626;
}

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

/* 页脚 */
.footer {
  background: #1f2937;
  color: white;
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 16px;
}

.footer-section p {
  color: #9ca3af;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 14px;
}

/* 购物车侧边栏 */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: white;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.cart-header h3 {
  font-size: 18px;
  font-weight: bold;
}

.cart-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #6b7280;
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.empty-cart {
  text-align: center;
  padding: 48px 20px;
  color: #6b7280;
}

.empty-cart i {
  font-size: 48px;
  margin-bottom: 16px;
  color: #d1d5db;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.3s;
}

.cart-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* 当没有图片时的后备图标样式 */
.cart-item-image i {
  color: #22c55e;
  font-size: 24px;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  flex: 1;
}

.remove-item {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.3s;
}

.remove-item:hover {
  background: #fef2f2;
}

.cart-item-spec {
  font-size: 12px;
  color: #6b7280;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-price {
  font-weight: 500;
  color: #ef4444;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-btn {
  background: #f5f5f5;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.3s;
}

.quantity-btn.minus {
  color: #6b7280;
}

.quantity-btn.plus {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.quantity-btn:hover {
  transform: scale(1.1);
}

.quantity-btn.minus:hover {
  background: #f3f4f6;
  border-color: #dc2626;
}

.quantity-btn.plus:hover {
  background: #b91c1c;
}

.quantity {
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #e5e7eb;
}

.savings-info {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #991b1b;
  font-size: 14px;
}

.cart-total {
  margin-bottom: 16px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.total-row.shipping {
  color: #dc2626;
}

.total-row.final {
  font-size: 16px;
  font-weight: bold;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.total-row.final span:last-child {
  color: #ef4444;
}

.cart-actions {
  display: flex;
  gap: 12px;
}

.cart-actions .btn {
  flex: 1;
  padding: 12px;
  font-size: 14px;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dc2626;
}

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #6b7280;
}

.modal-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  max-height: calc(80vh - 140px);
}

.order-summary {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.order-title {
  font-weight: bold;
  margin-bottom: 12px;
  color: #991b1b;
}

.order-items {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #fecaca;
  font-size: 14px;
}

.order-item:last-child {
  border-bottom: none;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 16px;
  padding-top: 8px;
  border-top: 1px solid #fecaca;
}

.order-savings {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

.contact-details {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  margin-top: 16px;
  font-size: 14px;
}

.contact-details .contact-title {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.contact-details div {
  margin-bottom: 4px;
  color: #6b7280;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  background: white;
}

.modal-footer .btn {
  flex: 1;
  padding: 12px;
}

/* 复制按钮样式 */
.btn .icon-copy {
  margin-right: 4px;
}

.btn-primary .icon-copy {
  color: white;
}

.btn-outline .icon-copy {
  color: #6b7280;
}

.btn-outline:hover .icon-copy {
  color: #dc2626;
}

/* 移动端弹窗优化 */
@media (max-width: 768px) {
  .modal {
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
  }
  
  .modal-content {
    max-height: calc(85vh - 140px);
    overflow-y: auto;
    padding: 16px;
  }
  
  .modal-header {
    padding: 16px;
  }
  
  .modal-footer {
    padding: 16px;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  }
  
  .order-items {
    max-height: 150px;
  }
}

@media (max-width: 480px) {
  .modal {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .modal-content {
    max-height: calc(100vh - 120px);
    padding: 12px;
  }
  
  .order-summary {
    padding: 12px;
  }
  
  .modal-header {
    padding: 12px;
  }
  
  .modal-footer {
    padding: 12px;
  }
}

/* Toast 通知 */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 4000;
  background: #dc2626;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  min-width: 160px;
  max-width: 240px;
  text-align: center;
  font-size: 13px;
}

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

.toast-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* 浮动购物车按钮 */
.floating-cart-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1500;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
  transition: all 0.3s ease;
  color: white;
  font-size: 20px;
}

.floating-cart-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.5);
}

.floating-cart-btn:active {
  transform: scale(0.95);
}

.floating-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid white;
  min-width: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.floating-cart-count:empty {
  display: none !important;
}

/* 确保数量为0时也隐藏 */
.floating-cart-count[style*="display: none"] {
  display: none !important;
}

/* PC端浮动购物车按钮优化 */
@media (min-width: 769px) {
  .floating-cart-btn {
    bottom: 100px;
    right: 30px;
    width: 64px;
    height: 64px;
    font-size: 24px;
  }

  .floating-cart-count {
    width: 28px;
    height: 28px;
    font-size: 14px;
    top: -6px;
    right: -6px;
  }
}

/* 大屏幕商品布局优化 - 响应式自适应 */
@media (min-width: 1200px) {
  .products-container {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 12px 0;
  }
  
  .product-card {
    padding: 8px;
  }
  
  .product-info {
    padding: 10px;
  }
  
  .current-price {
    font-size: 16px;
  }
  
  .add-to-cart {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 14px;
  }
  
  .quantity-btn {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  
  .quantity-display {
    min-width: 24px;
    font-size: 12px;
  }
}

@media (min-width: 1600px) {
  .products-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 16px 0;
  }
  
  .product-card {
    padding: 10px;
  }
  
  .product-info {
    padding: 12px;
  }
  
  .current-price {
    font-size: 18px;
  }
  
  .add-to-cart {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 16px;
  }
  
  .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  
  .quantity-display {
    min-width: 28px;
    font-size: 14px;
  }
}

/* 动画 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* 响应式设计 - Safari和微信浏览器特殊优化 */
@media (max-width: 768px) {
  /* 严格控制容器宽度 */
  html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    /* 强制禁止字体缩放 - 微信兼容性关键修复 */
    -webkit-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  /* Safari特有的修复 */
  * {
    max-width: 100%;
    box-sizing: border-box;
    /* 强制使用统一字体 */
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "苹方-简", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif !important;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu.active {
    display: flex;
  }

  .logo {
    font-size: 14px;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .trust-indicators {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .cart-sidebar {
    width: 100%;
    max-width: 100vw;
  }

  .showcase-nav {
    display: none;
  }

  /* 移动端商品网格 - 固定一行两个商品 */
  .products-container {
    grid-template-columns: repeat(2, 1fr); /* 强制一行两个商品 */
    gap: 6px;
    padding: 2px 0;
    /* 兼容不支持gap的浏览器 */
  }
  
  /* 为不支持gap的浏览器提供margin兼容 */
  @supports not (gap: 6px) {
    .products-container {
      margin: -3px;
    }
    .products-container .product-card {
      margin: 3px;
    }
  }
  
  .product-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 3px;
    margin: 0;
    border-radius: 4px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #f5f5f5;
  }

  .product-image {
    margin-bottom: 3px;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
    aspect-ratio: 1;
  }

  .product-info {
    padding: 3px;
    width: 100%;
    box-sizing: border-box;
  }

  .product-tags {
    gap: 1px;
    margin-bottom: 2px;
    display: flex; /* 移动端显示标签 */
  }

  .product-tag {
    padding: 1px 2px;
    font-size: 5px;
    border-radius: 3px;
  }

  .recommend-badge {
    padding: 1px 2px;
    font-size: 4px;
    border-radius: 0 0 2px 0;
  }

  .discount-badge {
    top: 1px;
    right: 1px;
    padding: 1px 2px;
    font-size: 4px;
    border-radius: 3px;
  }

  .product-name {
    font-size: 10px; /* 增大字体从8px到10px */
    line-height: 1.3;
    margin-bottom: 1px;
    width: 100%;
    overflow: hidden;
    word-break: break-word; /* 允许长词换行 */
    white-space: normal; /* 允许换行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-spec {
    font-size: 7px; /* 增大字体从6px到7px */
    margin-bottom: 1px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block; /* 移动端显示规格 */
  }

  .product-sales {
    gap: 1px;
    font-size: 6px; /* 增大字体从5px到6px */
    margin-bottom: 2px;
    display: flex; /* 移动端显示销量 */
  }

  .product-pricing {
    margin-bottom: 3px;
  }

  .price-row {
    gap: 2px;
    margin-bottom: 1px;
    align-items: center;
  }

  .current-price {
    font-size: 11px; /* 增大字体从9px到11px */
    font-weight: bold;
  }

  .original-price {
    font-size: 7px; /* 增大字体从6px到7px */
  }

  .savings {
    font-size: 6px; /* 增大字体从5px到6px */
    display: inline; /* 移动端显示节省信息 */
  }

  /* 移动端数量控制器 */
  .quantity-controller {
    gap: 1px;
    padding: 1px;
    border-radius: 12px;
  }

  .quantity-btn {
    width: 16px; /* 增大按钮从14px到16px */
    height: 16px;
    font-size: 9px; /* 增大字体从8px到9px */
  }

  .quantity-display {
    min-width: 14px; /* 增大从12px到14px */
    font-size: 8px; /* 增大字体从7px到8px */
  }

  .add-to-cart {
    width: 20px; /* 增大按钮从18px到20px */
    height: 20px;
    font-size: 8px; /* 增大字体从7px到8px */
    border-radius: 50%;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  /* 更严格的小屏幕控制 */
  html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .container {
    padding: 0 6px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .trust-indicators {
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
  }

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

  .trust-number {
    font-size: 18px;
  }

  .trust-label {
    font-size: 11px;
  }

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

  /* 480px屏幕产品网格进一步优化 - 超紧凑 */
  .products-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  
  /* 为不支持gap的浏览器提供margin兼容 */
  @supports not (gap: 1px) {
    .products-container {
      margin: -0.5px;
    }
    .products-container .product-card {
      margin: 0.5px;
    }
  }

  .product-card {
    padding: 1px;
    margin: 0;
    border-radius: 3px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #f8f8f8;
  }

  .product-image {
    margin-bottom: 1px;
    border-radius: 1px;
    aspect-ratio: 1;
  }

  .product-info {
    padding: 1px;
    width: 100%;
  }

  .product-name {
    font-size: 11px !important; /* 进一步增大字体从9px到11px */
    line-height: 1.3;
    margin-bottom: 1px;
    width: 100%;
    overflow: hidden;
    word-break: break-word; /* 允许长词换行 */
    white-space: normal; /* 允许换行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-spec {
    display: none;
  }

  .current-price {
    font-size: 10px !important; /* 增大字体从8px到10px */
    font-weight: bold;
  }

  .original-price {
    font-size: 7px !important; /* 增大字体从6px到7px */
  }

  .add-to-cart {
    width: 14px !important; /* 稍微增大按钮从12px到14px */
    height: 14px !important;
    font-size: 7px !important; /* 增大字体从6px到7px */
  }
  
  .quantity-btn {
    width: 14px !important; /* 增大按钮从12px到14px */
    height: 14px !important;
    font-size: 7px !important; /* 增大字体从6px到7px */
  }
  
  .quantity-display {
    min-width: 12px;
    font-size: 7px !important; /* 增大字体从6px到7px */
  }
}

/* iPhone SE 和更小屏幕的特殊适配 */
@media (max-width: 375px) {
  .container {
    padding: 0 4px;
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 22px;
  }

  /* 极小屏幕商品网格 - 固定一行两个商品 */
  .products-container {
    grid-template-columns: repeat(2, 1fr); /* 强制一行两个商品 */
    gap: 6px;
    padding: 2px 0;
    /* 兼容不支持gap的浏览器 */
  }
  
  /* 为不支持gap的浏览器提供margin兼容 */
  @supports not (gap: 6px) {
    .products-container {
      margin: -3px;
    }
    .products-container .product-card {
      margin: 3px;
    }
  }

  .product-card {
    padding: 2px;
    border-radius: 3px;
    border: 1px solid #f8f8f8;
  }

  .product-image {
    margin-bottom: 2px;
    border-radius: 2px;
  }

  .product-info {
    padding: 2px;
  }

  .product-name {
    font-size: 11px !important; /* 进一步增大字体从9px到11px */
    line-height: 1.3;
    margin-bottom: 1px;
  }

  .product-spec {
    font-size: 8px !important; /* 增大字体从7px到8px */
    margin-bottom: 1px;
  }

  .current-price {
    font-size: 12px !important; /* 增大字体从10px到12px */
  }

  .original-price {
    font-size: 8px !important; /* 增大字体从7px到8px */
  }

  /* 极小屏幕数量控制器 - 调整比例 */
  .quantity-controller {
    gap: 1px;
    padding: 1px;
    border-radius: 10px;
  }

  .quantity-btn {
    width: 16px !important; /* 增大按钮从14px到16px */
    height: 16px !important;
    font-size: 9px !important; /* 增大字体从8px到9px */
  }

  .quantity-display {
    min-width: 14px;
    font-size: 9px !important; /* 增大字体从8px到9px */
  }

  .add-to-cart {
    width: 18px !important; /* 增大按钮从16px到18px */
    height: 18px !important;
    font-size: 9px !important; /* 增大字体从8px到9px */
  }

  .trust-indicators {
    gap: 12px;
  }

  .trust-number {
    font-size: 16px;
  }

  .trust-label {
    font-size: 10px;
  }
}

/* Safari浏览器特殊修复 */
@supports (-webkit-appearance: none) {
  body {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }
  
  .container {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  
  .products-container {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
}

/* 移动端Safari特殊优化 */
@media screen and (max-width: 768px) {
  /* 防止页面缩放 */
  html {
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
    width: 100vw;
    max-width: 100vw;
  }
  
  body {
    width: 100vw;
    max-width: 100vw;
    position: relative;
  }

  /* 优化触摸目标大小 */
  .cart-btn,
  .mobile-menu-btn,
  .add-to-cart {
    min-height: 20px; /* 降低触摸目标大小，简化设计 */
    min-width: 20px;
  }

  /* 防止双击缩放 */
  a, button, input, textarea {
    touch-action: manipulation;
  }

  /* 移动端导航优化 */
  .nav-wrapper {
    padding: 0 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .logo {
    font-size: 13px;
    max-width: 60%;
  }

  .nav-right {
    gap: 8px;
  }

  /* 产品网格优化 */
  .products-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* 避免内容溢出 */
  .hero,
  .products-section,
  .about-section,
  .contact-section {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
}

/* 横屏移动设备优化 */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 40px 0 60px;
  }

  .hero-title {
    font-size: 24px;
  }

  .trust-indicators {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* 针对微信浏览器的特殊样式 - 通过user-agent检测 */
.wechat-browser {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}

.wechat-browser .floating-cart-btn {
  bottom: 120px;
}

.wechat-browser body {
  padding-bottom: 40px;
  width: 100vw;
  max-width: 100vw;
}

.wechat-browser .products-container {
  padding-bottom: 20px;
}

/* 微信浏览器中的产品卡片优化 */
.wechat-browser .product-card {
  margin-bottom: 8px;
}

/* 微信浏览器移动端优化 */
@media screen and (max-width: 768px) {
  .wechat-browser {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    /* 强制禁止字体缩放 */
    -webkit-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }
  
  .wechat-browser body {
    padding-bottom: 60px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    /* 强制统一字体 */
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "苹方-简", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif !important;
  }

  .wechat-browser .floating-cart-btn {
    bottom: 140px;
  }
  
  .wechat-browser .container {
    width: 100%;
    max-width: 100%;
    padding: 0 6px;
    margin: 0;
    box-sizing: border-box;
  }

  /* 防止微信浏览器中的点击高亮 */
  .wechat-browser * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    max-width: 100%;
    box-sizing: border-box;
    /* 强制统一字体 */
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "苹方-简", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif !important;
  }

  /* 微信浏览器中的图片优化 */
  .wechat-browser img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 防止微信浏览器的回弹效果 */
  .wechat-browser html, 
  .wechat-browser body {
    height: 100%;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
  }

  /* 微信浏览器商品列表特殊优化 - 固定一行两个商品 */
  .wechat-browser .products-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    gap: 8px;
    padding: 4px 0;
    box-sizing: border-box;
    overflow: hidden;
    grid-template-columns: repeat(2, 1fr); /* 强制一行两个商品 */
    display: grid;
  }
  
  /* 微信浏览器gap兼容性处理 */
  @supports not (gap: 6px) {
    .wechat-browser .products-container {
      margin: -3px;
    }
    .wechat-browser .products-container .product-card {
      margin: 3px;
    }
  }

  .wechat-browser .product-card {
    margin: 0;
    padding: 3px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #f5f5f5;
  }

  .wechat-browser .product-image {
    margin-bottom: 3px;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
    aspect-ratio: 1;
  }

  .wechat-browser .product-info {
    padding: 3px;
    width: 100%;
    box-sizing: border-box;
  }

  .wechat-browser .product-tags {
    gap: 1px;
    margin-bottom: 2px;
    display: flex;
  }

  .wechat-browser .product-tag {
    padding: 1px 2px;
    font-size: 5px;
    border-radius: 3px;
  }

  .wechat-browser .recommend-badge {
    padding: 1px 2px;
    font-size: 4px;
    border-radius: 0 0 2px 0;
  }

  .wechat-browser .discount-badge {
    top: 1px;
    right: 1px;
    padding: 1px 2px;
    font-size: 4px;
    border-radius: 3px;
  }

  .wechat-browser .product-name,
  .wechat-browser .product-spec {
    width: 100%;
    overflow: hidden;
    word-break: break-word; /* 允许长词换行 */
    white-space: normal; /* 允许换行 */
  }

  .wechat-browser .product-name {
    font-size: 10px; /* 增大字体从8px到10px */
    line-height: 1.3;
    margin-bottom: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .wechat-browser .product-spec {
    font-size: 7px; /* 增大字体从6px到7px */
    margin-bottom: 1px;
    display: block;
  }

  .wechat-browser .product-sales {
    gap: 1px;
    font-size: 6px; /* 增大字体从5px到6px */
    margin-bottom: 2px;
    display: flex;
  }

  .wechat-browser .product-pricing {
    margin-bottom: 3px;
  }

  .wechat-browser .price-row {
    gap: 2px;
    margin-bottom: 1px;
    align-items: center;
  }

  .wechat-browser .current-price {
    font-size: 11px; /* 增大字体从9px到11px */
    font-weight: bold;
  }

  .wechat-browser .original-price {
    font-size: 7px; /* 增大字体从6px到7px */
  }

  .wechat-browser .savings {
    font-size: 6px; /* 增大字体从5px到6px */
    display: inline;
  }

  .wechat-browser .quantity-controller {
    gap: 1px;
    padding: 1px;
    border-radius: 12px;
  }

  .wechat-browser .quantity-btn {
    width: 16px; /* 增大按钮从14px到16px */
    height: 16px;
    font-size: 9px; /* 增大字体从8px到9px */
  }

  .wechat-browser .quantity-display {
    min-width: 14px; /* 增大从12px到14px */
    font-size: 8px; /* 增大字体从7px到8px */
  }

  .wechat-browser .add-to-cart {
    width: 20px; /* 增大按钮从18px到20px */
    height: 20px;
    font-size: 8px; /* 增大字体从7px到8px */
    border-radius: 50%;
    flex-shrink: 0;
  }
}

/* 联系方式区域样式优化 */
.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  /* 移除justify-content以使内容左对齐 */
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.contact-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.contact-content i {
  color: #dc2626;
  font-size: 1rem;
  min-width: 18px;
}

.contact-content span {
  font-size: 0.95rem;
  word-break: break-all;
  line-height: 1.4;
}

/* 联系方式响应式设计 */
@media (max-width: 768px) {
  .contact-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .contact-item {
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.4rem;
  }
  
  .contact-content {
    justify-content: flex-start;
  }
}

/* Safari浏览器特殊样式 */
.safari-browser {
  -webkit-text-size-adjust: 100% !important;
  -ms-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

.safari-browser body {
  -webkit-overflow-scrolling: touch;
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  /* 强制统一字体 */
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "苹方-简", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif !important;
}

.safari-browser .container {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  width: 100%;
  max-width: 100%;
}

.safari-browser .products-container {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Safari商品网格特殊优化 - 响应式自适应 */
.safari-browser .products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 100%;
  padding: 4px 0;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Safari浏览器gap兼容性处理 */
@supports not (gap: 6px) {
  .safari-browser .products-container {
    margin: -3px;
  }
  .safari-browser .products-container .product-card {
    margin: 3px;
  }
}

.safari-browser .product-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 3px;
  border-radius: 4px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #f5f5f5;
}

.safari-browser .product-image {
  margin-bottom: 3px;
  border-radius: 3px;
  width: 100%;
  box-sizing: border-box;
  aspect-ratio: 1;
}

.safari-browser .product-info {
  padding: 3px;
  width: 100%;
  box-sizing: border-box;
}

.safari-browser .product-tags {
  gap: 1px;
  margin-bottom: 2px;
  display: flex;
}

.safari-browser .product-tag {
  padding: 1px 2px;
  font-size: 5px;
  border-radius: 3px;
}

.safari-browser .recommend-badge {
  padding: 1px 2px;
  font-size: 4px;
  border-radius: 0 0 2px 0;
}

.safari-browser .discount-badge {
  top: 1px;
  right: 1px;
  padding: 1px 2px;
  font-size: 4px;
  border-radius: 3px;
}

.safari-browser .product-name,
.safari-browser .product-spec {
  width: 100%;
  overflow: hidden;
  word-break: break-word; /* 允许长词换行 */
  white-space: normal; /* 允许换行 */
}

.safari-browser .product-name {
  font-size: 10px; /* 增大字体从8px到10px */
  line-height: 1.3;
  margin-bottom: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.safari-browser .product-spec {
  font-size: 7px; /* 增大字体从6px到7px */
  margin-bottom: 1px;
  display: block;
}

.safari-browser .product-sales {
  gap: 1px;
  font-size: 6px; /* 增大字体从5px到6px */
  margin-bottom: 2px;
  display: flex;
}

.safari-browser .product-pricing {
  margin-bottom: 3px;
}

.safari-browser .price-row {
  gap: 2px;
  margin-bottom: 1px;
  align-items: center;
}

.safari-browser .current-price {
  font-size: 11px; /* 增大字体从9px到11px */
  font-weight: bold;
}

.safari-browser .original-price {
  font-size: 7px; /* 增大字体从6px到7px */
}

.safari-browser .savings {
  font-size: 6px; /* 增大字体从5px到6px */
  display: inline;
}

.safari-browser .add-to-cart {
  width: 20px; /* 增大按钮从18px到20px */
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  font-size: 8px; /* 增大字体从7px到8px */
  border-radius: 3px;
}

/* 使用CSS变量修复viewport高度问题 */
:root {
  --vh: 1vh;
}

.safari-browser .hero {
  min-height: calc(var(--vh, 1vh) * 50);
}

/* 最终的兜底样式 - 确保任何情况下都不会水平溢出 */
@media screen and (max-width: 768px) {
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  html {
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100vw;
  }
  
  body {
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100vw;
    position: relative;
  }
  
  .container,
  .nav-wrapper,
  .hero-content,
  .products-container,
  .product-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
