/* ========================================
   iOPEN Mall Clone - Main Stylesheet
   ======================================== */

/* CSS Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --primary-orange: #ff6600;
  --primary-orange-dark: #e55a00;
  --primary-green: #00a651;
  --primary-green-dark: #008f45;
  --primary-red: #d32f2f;
  --discount-red: #cc0000;
  --primary-yellow: #ffc107;

  /* Flash Sale Colors */
  --flash-sale-yellow: #f5a623;
  --flash-sale-orange: #f7931e;
  --flash-sale-gradient: linear-gradient(135deg, #f5a623 0%, #f7931e 100%);

  /* Promo Colors */
  --promo-red: #cc0000;
  --promo-red-gradient: linear-gradient(135deg, #cc0000 0%, #e63946 100%);

  /* Text Colors */
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #999;
  --text-white: #fff;

  /* Background Colors */
  --bg-white: #fff;
  --bg-light: #f5f5f5;
  --bg-gray: #e9e9e9;
  --bg-dark: #1a1a1a;
  --bg-section: #fafafa;

  /* Border Colors */
  --border-light: #e5e5e5;
  --border-gray: #ddd;
  --border-medium: #e0e0e0;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.18);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;

  /* Font */
  --font-family: 'Helvetica Neue', Helvetica, Arial, '文泉驛正黑', 'WenQuanYi Zen Hei', 'Hiragino Sans GB', '儷黑 Pro', 'LiHei Pro', 'Heiti TC', '微軟正黑體', 'Microsoft JhengHei UI', 'Microsoft JhengHei', sans-serif;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 0;
}

/* Mobile bottom nav padding */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px;
  }
}

/* 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .quick-links-grid {
    grid-template-columns: repeat(10, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .recommendations-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .group-brands-products {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .banner-slide img {
    height: 350px;
  }
  
  .product-card {
    flex: 0 0 170px;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-orange);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

button:active {
  transform: scale(0.96);
}

input,
select {
  font-family: inherit;
  border: none;
  outline: none;
}

/* Container */
.container {
  max-width: 1200px;
  width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* ========================================
   Top Utility Bar (浅灰色顶栏)
   ======================================== */
.top-utility-bar {
  background-color: #f5f5f5;
  color: #333;
  font-size: 13px;
  padding: 8px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  /* border-bottom: 1px solid #e0e0e0; */
}

.top-utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 1200px;
}

.open-store-btn-top {
  background-color: var(--primary-green);
  color: var(--text-white);
  width: 88px;
  height: 28px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.open-store-btn-top:hover {
  background-color: var(--primary-green-dark);
  color: var(--text-white);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-link {
  color: #666;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.top-link:hover {
  color: var(--primary-orange);
}

.checkout-link {
  color: var(--primary-orange);
  font-weight: 500;
}

.checkout-link:hover {
  color: var(--primary-orange-dark);
}

/* ========================================
   Main Header
   ======================================== */
.main-header {
  background-color: var(--bg-white);
  padding: 16px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition-normal);
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-header.shrink {
  padding: 10px 0;
}

.main-header.shrink .logo img {
  width: 160px;
  height: 48px;
}

.main-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo img {
  width: 200px;
  height: 60px;
  object-fit: contain;
  transition: all var(--transition-normal);
  display: block;
}

/* 搜索区域包装器 */
.search-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 500px;
}

.search-box {
  display: flex;
  border: 2px solid var(--primary-orange);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background-color: var(--bg-white);
  height: 42px;
}

.search-category {
  padding: 0 12px;
  background-color: #f8f8f8;
  border: none;
  /* border-right: 1px solid #eee; */
  font-size: 13px;
  color: #666;
  min-width: 100px;
  cursor: pointer;
  outline: none;
  height: 100%;
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 0 12px;
  font-size: 14px;
  border: none;
  outline: none;
  height: 100%;
  color: #333;
}

.search-btn {
  background-color: transparent;
  color: #999;
  padding: 0 16px;
  font-size: 20px;
  border: none;
  border-left: 1px solid #eee;
  cursor: pointer;
  transition: all var(--transition-fast);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  color: var(--primary-orange);
  background-color: #fff5eb;
}

.search-btn i {
  font-size: 20px;
}

.hot-keywords {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-left: 2px;
}

.hot-keywords a {
  font-size: 12px;
  color: #888;
  transition: all var(--transition-fast);
}

.hot-keywords a:hover {
  color: var(--primary-orange);
  text-decoration: none;
}

/* Dyson促销横幅 */
.promo-banner-header {
  flex-shrink: 0;
  width: 460px;
  height: 68px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}

.promo-banner-header:hover {
  transform: scale(1.02);
}

.promo-banner-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 卖家服务按钮 */
.seller-service-btn {
  flex-shrink: 0;
  background-color: var(--primary-orange);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.seller-service-btn:hover {
  background-color: var(--primary-orange-dark);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
}

/* Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  border: 1px solid var(--border-gray);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 200;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.search-suggestions.active {
  display: block;
  animation: slideDown 0.2s ease;
}

.search-suggestion-item {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: background-color var(--transition-fast);
}

.search-suggestion-item:hover,
.search-suggestion-item.selected {
  background-color: #f5f5f5;
}

.search-suggestion-item .icon {
  color: var(--text-light);
}

.search-suggestion-item .highlight {
  color: var(--primary-orange);
  font-weight: 600;
}

/* ========================================
   Category Navigation
   ======================================== */
.category-nav {
  background-color: #1a1a1a;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  height: 40px;
}

.category-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 1200px;
  height: 100%;
  margin: 0;
  padding: 0;
}

.category-list li {
  height: 100%;
  display: flex;
  align-items: center;
}

.category-list li a {
  color: #fff;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.category-list li a:hover,
.category-list li a.active {
  color: var(--primary-orange);
  background-color: #333;
  border-bottom-color: var(--primary-orange);
}

.category-list li a::after {
  display: none;
}

/* ========================================
   Main Content Area
   ======================================== */
.main-content {
  background-color: var(--bg-white);
}

/* Banner Section (轮播图) */
.banner-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  background-color: #fff;
}

.banner-slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-slide {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.banner-slide.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.5s ease;
}

.banner-slide a {
  display: block;
}

.banner-slide img {
  width: 100%;
  height: 430px;
  display: block;
  object-fit: cover;
}

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dot.active {
  background-color: #ff6f00;
  transform: scale(1.2);
  border-color: #ff6f00;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: #666;
  width: 35px;
  height: 35px;
  border-radius: var(--radius-full);
  font-size: 14px;
  z-index: 10;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.banner-nav:hover {
  background-color: rgba(255, 255, 255, 1);
  color: #333;
  transform: translateY(-50%) scale(1.1);
}

.banner-nav.prev {
  left: 12px;
}

.banner-nav.next {
  right: 12px;
}

/* ========================================
   Quick Links (快捷入口) - New it720_downbox Style
   ======================================== */
.quick-links {
  background-color: var(--bg-white);
  padding: 10px 0;
  /* border-bottom: 1px solid var(--border-light); */
}

.quick-links .container {
  max-width: 1200px;
  width: 1200px;
  padding: 0;
}

.it720_downbox {
  width: 100%;
  background-color: #fff;
}

.it720_downbox ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  justify-content: center;
}

.it720_downbox li {
  width: 10%; /* PC Default */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 10px 5px;
  transition: transform var(--transition-fast);
}

.it720_downbox li:hover {
  transform: translateY(-5px);
}

.it720_downbox a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  width: 100%;
}

.it720_downbox img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 8px;
  transition: all var(--transition-fast);
  /* Optional: Add a subtle shadow or bg like the old one if needed, 
     but the screenshot looks clean */
}

.it720_downbox p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
  font-weight: 500;
}

.it720_downbox p span {
  display: block;
}

/* ========================================
   Flash Sale (限时抢购)
   ======================================== */
.flash-sale .section-header {
  background: #fff;
  padding: 0;
  margin-top: 0;
  /* border-bottom: 1px solid #eee; */
}

.flash-sale .section-header {
  background: #fff; /* Changed to white to limit black area to container */
  padding: 0;
  margin-bottom: 0;
  border-bottom: none;
  width: 100%;
  display: flex;
  justify-content: center;
}

.flash-sale .section-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
  max-width: 1200px;
  width: 1200px;
}

.flash-sale .container {
  max-width: 1200px;
  width: 1200px;
}

.flash-sale .section-title {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  flex-shrink: 0;
}

.section-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Mobile specific overrides for Flash Sale */
@media (max-width: 768px) {
  .flash-sale .section-header {
    height: auto;
    padding: 15px;
    display: block; /* Allow block layout for inner container */
  }

  .flash-sale .section-header .container {
    display: block; /* Override flex */
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  /* Hide old elements if they exist */
  .flash-sale .section-title,
  .section-header-right,
  .countdown,
  .date-tabs {
    display: none !important; 
  }
}

.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #ccc;
  font-weight: 500;
  flex-shrink: 0;
}

.countdown-label {
  margin-right: 8px;
  font-size: 14px;
  color: #fff;
}

.time-box {
  background-color: #333;
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
  font-size: 16px;
  border: 1px solid #555;
}

.time-separator {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin: 0 2px;
}

.date-tabs {
  display: flex;
  gap: 4px;
  margin-left: 0;
  flex-shrink: 0;
}

.date-tab {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  background-color: #333;
  color: #ccc;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.date-tab.active {
  background-color: var(--primary-orange);
  color: #fff;
}

.date-tab:hover {
  background-color: #444;
}

.date-tab.active:hover {
  background-color: var(--primary-orange-dark);
}

/* Flash Sale产品区域 - PC端固定显示6个商品 */
.flash-sale .products-slider {
  padding: 20px 0;
  background-color: #fff;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.flash-sale .products-slider .container {
  max-width: 1200px;
  width: 1200px;
  padding: 0;
  position: relative;
}

.flash-sale .products-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 330px;
  padding: 0;
}

.flash-sale .product-card {
  width: 100%;
  background-color: var(--bg-white);
  border-radius: 6px;
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 2px solid #e8e8e8;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.flash-sale .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #ff6f00;
}

.flash-sale .product-image {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio */
  background-color: #f5f5f5;
  overflow: hidden;
}

.flash-sale .product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.flash-sale .product-card:hover .product-image img {
  transform: scale(1.05);
}

.flash-sale .product-info {
  padding: 12px;
  background-color: var(--bg-white);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.flash-sale .product-title {
  font-size: 12px;
  height: 34px;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--text-primary);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.flash-sale .product-card:hover .product-title {
  color: #ff6f00;
}

.flash-sale .product-price {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.flash-sale .current-price {
  font-size: 18px;
  font-weight: 700;
  color: #ff6f00;
}

.flash-sale .original-price {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

/* OPENPOINT标志 */
.openpoint-badge {
  position: absolute;
  bottom: 35px;
  left: 8px;
  background: linear-gradient(135deg, #ff6f00 0%, #ff8c00 100%);
  color: var(--text-white);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.3px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

/* ========================================
   Products Slider
   ======================================== */
.products-slider {
  position: relative;
  padding: 0;
}

.products-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--spacing-xs) 0;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.products-track:active {
  cursor: grabbing;
}

.products-track::-webkit-scrollbar {
  display: none;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--bg-white);
  border: 1px solid var(--border-gray);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  font-size: 16px;
  color: var(--text-secondary);
  z-index: 10;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav:hover {
  background-color: var(--primary-orange);
  color: var(--text-white);
  border-color: var(--primary-orange);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
  left: -18px;
}

.slider-nav.next {
  right: -18px;
}

/* ========================================
   Product Card
   ======================================== */
.product-card {
  flex: 0 0 190px;
  background-color: var(--bg-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: var(--border-light);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  background-color: #f5f5f5;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
  background-color: #f5f5f5;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.discount-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #cc0000 0%, #d32f2f 100%);
  color: var(--text-white);
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

.sale-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #ff6f00 0%, #ff5722 100%);
  color: var(--text-white);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  line-height: 1;
}

.free-shipping {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--primary-orange), #ff8c00);
  color: var(--text-white);
  padding: 4px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  z-index: 2;
  letter-spacing: 0.5px;
}

.product-info {
  padding: 10px;
}

.product-title {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.4;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
  transition: color var(--transition-fast);
}

.product-card:hover .product-title {
  color: var(--primary-orange);
}

.product-price {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: 4px;
}

.current-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-orange);
  line-height: 1;
}

.original-price {
  font-size: 11px;
  color: var(--text-light);
  text-decoration: line-through;
  line-height: 1;
}

.product-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-fast);
  background-color: var(--bg-white);
}

.action-btn:hover {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
  color: var(--text-white);
}

.action-btn.favorite.active {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--text-white);
}

/* ========================================
   OPENPOINT Banner
   ======================================== */
.openpoint-banner {
  padding: var(--spacing-md) 0;
  background-color: var(--bg-white);
  /* border-bottom: 1px solid var(--border-light); */
}

.openpoint-banner img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-fast);
}

.openpoint-banner img:hover {
  transform: scale(1.005);
}

/* ========================================
   Promo Banners
   ======================================== */
.promo-banner,
.ad-banner {
  padding: var(--spacing-md) 0;
  background-color: var(--bg-white);
  /* border-bottom: 1px solid var(--border-light); */
}

.promo-banner img,
.ad-banner img {
  width: 100%;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}

.promo-banner a:hover img,
.ad-banner a:hover img {
  transform: scale(1.005);
}

.triple-banners {
  padding: var(--spacing-md) 0;
  background-color: var(--bg-white);
  der-bottom: 1px solid var(--border-light);
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.banner-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.banner-item img {
  width: 100%;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-normal);
}

.banner-item:hover img {
  transform: scale(1.03);
}

/* ========================================
   Product Section
   ======================================== */
.product-section {
  background-color: var(--bg-white);
  padding: var(--spacing-lg) 0;
  /* border-bottom: 1px solid var(--border-light); */
}

/* ========================================
   Year Dishes Section (开运年菜) & Other Product Sections (Hot Top, OP Points)
   ======================================== */
@media (min-width: 769px) {
  .product-section .products-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    overflow-x: visible; /* Disable scroll for grid */
  }

  .product-section .product-card {
    width: 100%;
    flex: none; /* Override flex */
  }
}

/* ========================================
   New Product Banner
   ======================================== */
.new-product-banner {
  padding: var(--spacing-md) 0;
  background-color: var(--bg-white);
  /* border-bottom: 1px solid var(--border-light); */
}

.new-product-content {
  display: flex;
  align-items: stretch;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 280px;
}

.celebrating {
  flex: 0 0 300px;
  background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 50%, #1565c0 100%);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.celebrating img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-product-info {
  flex: 1;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  background-color: #f8f8f8;
}

.new-product-header {
  margin-bottom: var(--spacing-md);
}

.new-product-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.new-product-promo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.promo-text {
  font-size: 18px;
  color: var(--primary-orange);
  font-weight: 700;
  margin: 0;
}

.promo-sub {
  font-size: 14px;
  color: var(--primary-red);
  font-weight: 600;
  margin: 0;
}

.promo-link {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.new-products-slider {
  position: relative;
  flex: 1;
}

.new-products-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--spacing-xs) 0;
  -webkit-overflow-scrolling: touch;
}

.new-products-track::-webkit-scrollbar {
  display: none;
}

.new-product-card {
  flex: 0 0 160px;
  background-color: var(--bg-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid #e0e0e0;
  transition: all var(--transition-fast);
  position: relative;
}

.new-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-orange);
}

.new-product-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: var(--primary-orange);
  color: var(--text-white);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 9px;
  font-weight: 600;
  z-index: 2;
}

.new-product-image {
  width: 100%;
  height: 160px;
  background-color: #f5f5f5;
  overflow: hidden;
}

.new-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-product-details {
  padding: 8px;
}

.new-product-title {
  font-size: 11px;
  color: var(--text-primary);
  line-height: 1.3;
  height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 4px;
}

.new-product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-orange);
  margin: 0;
}

.new-products-slider .slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-gray);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
  z-index: 10;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.new-products-slider .slider-nav:hover {
  background-color: var(--primary-orange);
  color: var(--text-white);
  border-color: var(--primary-orange);
}

.new-products-slider .slider-nav.prev {
  left: -14px;
}

.new-products-slider .slider-nav.next {
  right: -14px;
}

/* ========================================
   Category Section
   ======================================== */
.category-section {
  background-color: var(--bg-white);
  padding: var(--spacing-lg) 0;
  /* border-bottom: 1px solid var(--border-light); */
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: var(--spacing-md);
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: transform var(--transition-fast);
  padding: var(--spacing-xs);
}

.category-item:hover {
  transform: translateY(-3px);
}

.category-item img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background-color: var(--bg-light);
  padding: 0;
  transition: box-shadow var(--transition-fast);
  object-fit: cover;
}

.category-item:hover img {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.category-item span {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 分类商品滑块 */
.category-products-slider {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  /* border-top: 1px solid var(--border-light); */
}

/* ========================================
   Store Cards
   ======================================== */
.store-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.store-card {
  background-color: var(--bg-white);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  transition: all var(--transition-fast);
}

.store-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-orange);
  transform: translateY(-2px);
}

.store-logo {
  text-align: center;
  padding: 0;
  background-color: var(--bg-white);
  border-radius: var(--radius-full); /* Circular border radius */
  margin-bottom: var(--spacing-md);
  border: 1px solid #f0f0f0;
  width: 80px;
  height: 80px;
  margin: 0 auto 10px auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}

.store-name {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  padding-bottom: 0;
  border-bottom: none; /* Remove bottom border */
}

.store-products {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.store-product {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition-fast);
  background-color: var(--bg-white);
}

.store-product:hover {
  border-color: var(--primary-orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.store-product img {
  width: 85px;
  height: 85px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid #f0f0f0;
}

.store-product .discount-badge {
  font-size: 10px;
  padding: 2px 5px;
}

.out-of-stock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  z-index: 5;
}

.store-product-info {
  flex: 1;
}

.store-product-info p {
  font-size: 11px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--spacing-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-product-price {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.store-product-price .current {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-orange);
}

.store-product-price .original {
  font-size: 11px;
  color: var(--text-light);
  text-decoration: line-through;
}

/* ========================================
   Group Brands
   ======================================== */
.group-brands {
  background-color: var(--bg-white);
  padding: var(--spacing-xl) 0;
  /* border-bottom: 1px solid var(--border-light); */
}

.group-brands-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.group-brands-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.group-brands-title .icon {
  font-size: 24px;
}

.group-brands-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.brands-tabs {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.brand-tab {
  padding: 8px 16px;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.brand-tab:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.brand-tab.active {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
  color: var(--text-white);
}

.group-brands-products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.group-brands-products .product-card {
  flex: none;
  width: 100%;
}

.group-brands-products .product-card .product-image {
  aspect-ratio: 1;
}

.group-brands-products .product-card .product-title {
  font-size: 13px;
  height: 38px;
  line-height: 1.4;
}

.group-brands-products .product-card .current-price {
  font-size: 16px;
}

.group-brands-products .product-card .original-price {
  font-size: 11px;
}

/* ========================================
   Products Grid
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-md);
}

.products-grid .product-card {
  flex: none;
}

/* ========================================
   More Recommendations
   ======================================== */
.more-recommendations {
  background-color: var(--bg-white);
  padding: var(--spacing-xl) 0;
  /* border-bottom: 1px solid var(--border-light); */
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: var(--spacing-xl);
}

.recommendations-grid .product-card {
  flex: none;
  width: 100%;
}

.recommendations-grid .product-card .product-image {
  aspect-ratio: 1;
}

.recommendations-grid .product-card .product-title {
  font-size: 13px;
  height: 38px;
  line-height: 1.4;
}

.recommendations-grid .product-card .current-price {
  font-size: 16px;
}

.recommendations-grid .product-card .original-price {
  font-size: 11px;
}

.load-more {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.load-more-btn {
  background-color: var(--bg-white);
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
  padding: 12px 48px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.load-more-btn:hover {
  background-color: var(--primary-orange);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

/* ========================================
   Regulation Banner
   ======================================== */
.regulation-banner {
  padding: var(--spacing-lg) 0;
}

.regulation-content {
  background-color: var(--bg-white);
  border: 2px solid var(--primary-red);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  text-align: center;
}

.regulation-content h3 {
  font-size: 24px;
  color: var(--primary-red);
  margin-bottom: var(--spacing-md);
}

.regulation-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.more-btn {
  display: inline-block;
  background-color: var(--text-primary);
  color: var(--text-white);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.more-btn:hover {
  background-color: #444;
  color: var(--text-white);
  transform: translateY(-2px);
}

/* ========================================
   iOPEN Footer (Source Style)
   ======================================== */
.iopen-footer {
  background-color: #333;
  color: #ccc;
  font-size: 13px;
  width: 100%;
}

.iopen-footer-link {
  /* border-bottom: 1px solid #444; */
  padding: 15px 0;
  background-color: #222;
}

.iopen-footer .link_area {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.iopen-footer .link_item a {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 14px;
  gap: 8px;
  transition: opacity 0.2s;
}

.iopen-footer .link_item a:hover {
  opacity: 0.8;
  color: var(--primary-orange);
}

/* Desktop Footer List */
.iopen-footer-list-web {
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
}

.iopen-footer-list-web .footer_menutitle ul {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #444;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.iopen-footer-list-web .footer_menutitle li {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  flex: 1;
}

.iopen-footer-list-web .outter {
  display: flex;
  justify-content: space-between;
}

.iopen-footer-list-web .outter > li {
  flex: 1;
}

.iopen-footer-list-web .inner li {
  margin-bottom: 10px;
}

.iopen-footer-list-web .inner a {
  color: #ccc;
  transition: color 0.2s;
}

.iopen-footer-list-web .inner a:hover {
  color: var(--primary-orange);
}

.iopen-footer-list-web .inner_flex {
  display: flex;
  gap: 10px;
}

.iopen-footer-list-web .download_icon {
  height: 40px;
}

.iopen-footer-list-mob {
  display: none;
}

.iopen-footer-downloadapp-mob {
  display: none;
}

/* Mobile Footer Styles (Overwrite in media query) */
@media (max-width: 768px) {
  .iopen-footer-list-web {
    display: none;
  }

  .iopen-footer-list-mob {
    display: block;
    padding: 0;
  }

  .iopen-footer-list-mob ul {
    padding: 0;
    margin: 0;
  }

  .iopen-footer-list-mob > ul > li {
    border-bottom: 1px solid #444;
  }

  .footer_menutitle_mob {
    padding: 15px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer_menutitle_mob::after {
    content: '❯';
    transform: rotate(0deg);
    transition: transform 0.3s;
    font-size: 12px;
  }

  .footer_menutitle_mob.active::after {
    transform: rotate(90deg);
  }

  .footer_menutext_mob {
    padding: 0 15px 15px 15px;
    background-color: #2a2a2a;
  }

  .footer_menutext_mob li {
    padding: 8px 0;
    /* border-bottom: 1px solid #333; */
  }
  
  .footer_menutext_mob li:last-child {
    border-bottom: none;
  }

  .footer_menutext_mob a {
    color: #ccc;
    font-size: 13px;
    display: block;
  }

  .iopen-footer-downloadapp-mob {
    display: block;
    text-align: center;
    padding: 20px 0;
    /* border-bottom: 1px solid #444; */
  }

  .iopen-footer-downloadapp-mob h5 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 14px;
  }

  .iopen-footer-downloadapp-mob .inner_flex {
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .iopen-footer-downloadapp-mob .download_icon {
    height: 36px;
  }
}

/* Mobile Bottom Navigation (Updated) */
.mobile-nav-list.fix_menu {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.mobile-nav-list.fix_menu li {
  flex: 1;
  text-align: center;
}

/* ========================================
   Mobile Bottom Navigation - 按照参考图片精确设计
   ======================================== */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: none;
  padding: 5px 0 6px 0;
  padding-bottom: env(safe-area-inset-bottom, 6px);
  /* border-top: 1px solid #e8e8e8; */
}

/* 移动端顶部导航 - 默认隐藏 */
.mobile-header {
  display: none;
}

body::before {
  content: '';
  display: none;
  height: 0;
}

.mobile-nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  color: #888;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  min-width: 60px;
  flex: 1;
}

.mobile-nav-item.active {
  color: #00a651;
}

.mobile-nav-item.active .nav-icon {
  transform: scale(1.05);
}

.mobile-nav-item .nav-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
  stroke-width: 2px;
}

.mobile-nav-item .nav-label {
  font-size: 10px;
  font-weight: 400;
  text-align: center;
  line-height: 1.2;
  margin-top: 1px;
}

.mobile-nav-item .cart-badge {
  position: absolute;
  top: 0;
  right: 10px;
  background-color: #ff3b30;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: block;
  }
  
  /* H5端 - 隐藏PC端元素 */
  .top-utility-bar,
  .main-header,
  .category-nav,
  .banner-nav,
  .slider-nav,
  .date-tabs {
    display: none !important;
  }
  
  /* H5端 - 顶部导航 430×50px */
  /* body::before removed to fix double spacing issue (handled by padding-top in mobile-enhancements.css) */
  /*
  body::before {
    content: '';
    display: block;
    height: 50px;
  }
  */
  
  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 430px;
    height: 50px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    margin: 0 auto;
  }
  
  .hamburger-menu {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
  }
  
  .hamburger-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
  }
  
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* 分类菜单移动端样式 */
  .category-nav {
    position: fixed;
    top: 50px;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 50px);
    background-color: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 999;
  }
  
  .category-nav.mobile-menu-open {
    left: 0;
  }
  
  .category-nav .category-list {
    flex-direction: column;
    padding: 10px 0;
  }
  
  .category-nav .category-list li {
    width: 100%;
    /* border-bottom: 1px solid #f0f0f0; */
  }
  
  .category-nav .category-list li a {
    width: 100%;
    padding: 15px 20px;
    color: #333;
    background-color: transparent;
  }
  
  .category-nav .category-list li a:hover,
  .category-nav .category-list li a.active {
    background-color: #f5f5f5;
    color: #ff6600;
  }
  
  .mobile-header .logo {
    flex: 0 0 120px;
  }
  
  .mobile-header .logo img {
    width: 120px;
    height: 36px;
    object-fit: contain;
  }
  
  .mobile-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .mobile-open-store {
    font-size: 12px;
    color: #00a651;
    white-space: nowrap;
    font-weight: 500;
  }
  
  .mobile-search-btn {
    width: 66px;
    height: 25px;
    background-color: #ff6600;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }
  
  /* H5端 - 容器 */
  .container {
    max-width: 430px;
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }
  
  /* H5端 - 轮播图 430×330px */
  .banner-section {
    margin-top: 0;
  }
  
  .banner-slider {
    max-width: 430px;
    width: 100%;
  }
  
  .banner-slide img {
    width: 100%;
    height: 330px;
    object-fit: cover;
  }
  
  .banner-dots {
    bottom: 10px;
  }
  
  /* H5端 - 快捷入口 430×210px (Updated for it720_downbox) */
  .quick-links {
    padding: 0;
    border: none;
  }
  
  .quick-links .container {
    max-width: 430px;
    width: 100%;
    padding: 0;
  }
  
  .it720_downbox {
    padding: 10px 0;
    width: 100%;
    height: auto;
    background-color: #fff;
  }
  
  .it720_downbox ul {
    flex-wrap: wrap !important; /* Allow wrapping for 2 rows */
    overflow-x: visible !important; /* Disable horizontal scroll */
    justify-content: flex-start;
    padding: 0 10px;
    gap: 0;
  }

  .it720_downbox ul::-webkit-scrollbar {
    display: none; 
  }

  .it720_downbox li {
    width: 20% !important; /* Strictly 20% for 5 items per row */
    flex-shrink: 0;
    padding: 0 5px;
    height: auto;
    box-sizing: border-box;
  }
  
  .it720_downbox img {
    width: 45px;
    height: 45px;
    margin-bottom: 5px;
  }
  
  .it720_downbox p {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
  
  /* H5端 - 限时抢购标题 430×120px */
  .flash-sale .section-header {
    width: 100%;
    max-width: 430px;
    height: 120px;
    background: #000;
    padding: 15px;
    margin: 0 auto;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
  }
  
  .flash-sale .section-header .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .flash-sale .section-title {
    font-size: 20px;
    margin: 0;
  }
  
  .countdown {
    font-size: 14px;
  }
  
  .time-box {
    padding: 6px 10px;
    font-size: 16px;
    min-width: 40px;
  }
  
  /* H5端 - 限时抢购商品 一行3个，可滑动 */
.flash-sale .products-slider {
  padding: 15px 0;
  background-color: #fff;
}
  
  .flash-sale .products-slider .container {
    max-width: 430px;
    width: 100%;
    padding: 0 10px;
  }
  
  .flash-sale .products-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none;
    width: auto;
    min-height: auto;
  }
  
  .flash-sale .products-track::-webkit-scrollbar {
    display: none;
  }
  
  .flash-sale .product-card {
    flex: 0 0 120px;
    min-width: 120px;
    max-width: 120px;
  }
  
  .flash-sale .product-title {
    font-size: 11px;
    height: 30px;
  }
  
  .flash-sale .current-price {
    font-size: 14px;
  }
  
  .flash-sale .original-price {
    font-size: 10px;
  }
  
  /* H5端 - Banner 430×130px */
  .openpoint-banner,
  .promo-banner,
  .ad-banner {
    padding: 10px 0;
  }
  
  .openpoint-banner .container,
  .promo-banner .container,
  .ad-banner .container {
    max-width: 430px;
    width: 100%;
    padding: 0;
  }
  
  .openpoint-banner img {
    width: 100%;
    height: 130px;
    border-radius: 0;
  }
  
  .promo-banner img,
  .ad-banner img {
    width: 100%;
    height: 45px;
    border-radius: 0;
  }
  
  /* H5端 - 其他产品区域 */
  .product-section {
    padding: 15px 0;
  }
  
  .product-section .container {
    max-width: 430px;
    width: 100%;
    padding: 0 10px;
  }
  
  .products-slider {
    padding: 0;
  }
  
  .products-track {
    gap: 8px;
    padding: 0;
  }
  
  .product-card {
    flex: 0 0 120px;
    min-width: 120px;
  }
  
  .product-title {
    font-size: 11px;
    height: 30px;
  }
  
  .current-price {
    font-size: 14px;
  }
  
  .original-price {
    font-size: 10px;
  }
  
  /* H5端 - 三联Banner */
  .triple-banners .container {
    max-width: 430px;
    width: 100%;
    padding: 0;
  }
  
  .banner-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 10px;
  }
  
  .banner-item img {
    width: 100%;
    height: 130px;
  }
  
  /* H5端 - 新品Banner */
  .new-product-banner .container {
    max-width: 430px;
    width: 100%;
    padding: 0;
  }
  
  .new-product-content {
    flex-direction: column;
    min-height: auto;
  }
  
  .celebrating {
    flex: 0 0 150px;
    width: 100%;
  }
  
  .new-product-info {
    padding: 15px;
  }
  
  .new-product-card {
    flex: 0 0 120px;
  }
  
  /* H5端 - 分类 (Category Section) - Horizontal Scroll */
  .category-section .container {
    max-width: 430px;
    width: 100%;
    padding: 0 10px;
  }
  
  .category-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding: 5px 0 15px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .category-grid::-webkit-scrollbar {
    display: none;
  }
  
  .category-item {
    flex: 0 0 70px;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
  }
  
  .category-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .category-item span {
    font-size: 12px;
    color: #333;
    text-align: center;
    white-space: nowrap;
  }
  
  /* H5端 - 统一集团 (Group Brands) - Horizontal Scroll */
  .group-brands .container {
    max-width: 430px;
    width: 100%;
    padding: 0 10px;
  }
  
  .group-brands-products {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .group-brands-products::-webkit-scrollbar {
    display: none;
  }
  
  /* Calculate width for 3.5 items visible (430px container)
     Each item approx 110px-115px wide */
  .group-brands-products .product-card {
    flex: 0 0 115px;
    width: 115px;
    min-width: 115px;
    scroll-snap-align: start;
    margin: 0;
  }

  .group-brands-products .product-image {
    height: 115px;
  }
  
  .group-brands-products .product-image img {
    height: 100%;
    object-fit: cover;
  }
  
  .group-brands-products .product-title {
    font-size: 12px;
    height: 34px; /* Limit to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  /* H5端 - 更多推荐 (More Recommendations) - 2 Columns */
  .more-recommendations .container {
    max-width: 430px;
    width: 100%;
    padding: 0 10px;
  }
  
  .recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Reset product card styles for grid layout */
  .recommendations-grid .product-card {
    width: auto;
    min-width: 0;
    margin: 0;
    background: #fff;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
  }

  .recommendations-grid .product-image {
    width: 100%;
    aspect-ratio: 1/1; /* Ensure square images */
    height: auto;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .recommendations-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Discount Badge Style */
  .recommendations-grid .discount-badge {
    position: absolute;
    top: 0;
    right: 10px;
    background-color: #e60012;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 0 0 4px 4px;
    line-height: 1.2;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  .recommendations-grid .product-info {
    padding: 8px 0 0 0;
  }

  .recommendations-grid .product-title {
    font-size: 14px;
    height: 40px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
    color: #333;
    font-weight: normal;
  }

  .recommendations-grid .product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  
  .recommendations-grid .current-price {
    font-size: 18px;
    color: #e60012;
    font-weight: bold;
  }
  
  .recommendations-grid .original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
  }
  
  /* H5端 - 店铺卡片 (New Store Section) */
  .more-products {
    background-color: #fff; /* Changed to white */
    padding: 20px 0;
  }

  .more-products .section-title {
    color: #333; /* Changed to dark */
    padding-left: 10px;
    margin-bottom: 15px;
  }

  .more-products .section-title .icon {
    filter: none; /* Reset icon color */
  }

  .store-cards {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 0 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -12px; /* Pull to edge */
  }
  
  .store-cards::-webkit-scrollbar {
    display: none;
  }
  
  .store-card {
    min-width: 280px;
    max-width: 280px;
    scroll-snap-align: center;
    flex-shrink: 0;
    background-color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .store-logo {
    border: none;
    padding: 5px 0;
    margin-bottom: 5px;
  }

  .store-name {
    border-bottom: none;
    margin-bottom: 10px;
    font-size: 15px;
  }

  .store-product {
    background-color: #f7f7f7;
    border: none;
    border-radius: 8px;
    padding: 8px;
    gap: 10px;
  }

  .store-product img {
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 6px;
  }

  .store-product-info p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
    color: #333;
  }

  .store-product .discount-badge {
    background: #008f45; /* Greenish teal */
    border-radius: 4px 0 8px 0;
    top: 0;
    left: 0;
    right: auto;
    padding: 2px 6px;
  }

  .store-product-price .current {
    color: #ff6600;
    font-size: 16px;
  }
  
  /* H5端 - 底部法规提示 (Regulation) */
  .regulation-section {
    padding: 10px 0;
  }
  
  .regulation-section .container {
    max-width: 430px;
    width: 100%;
    padding: 0 10px;
  }
  
  .regulation-content {
    width: 100%;
    height: 120px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
  }

  .regulation-content h3 {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .regulation-content p {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit text lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .regulation-content .more-btn {
    font-size: 12px;
    align-self: flex-end;
  }
  
  .main-footer .container {
    max-width: 430px;
    width: 100%;
    padding: 0 15px;
  }
  
  .footer-sections {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-social {
    flex-wrap: wrap;
    gap: 15px;
  }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========================================
   Responsive Utility Classes
   ======================================== */
.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block !important;
  }
  
  /* Mobile Regulation Banner Image Style */
  .regulation-content-mobile {
    padding: 0; 
  }
  
  .regulation-content-mobile img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  /* Mobile Load More Button */
  .load-more-btn {
    padding: 6px 24px;
    font-size: 13px;
    border-width: 1px;
    margin: 0 auto;
    display: inline-block;
  }

  .load-more {
    margin-top: 15px;
    padding-bottom: 10px;
  }
}

/* ========================================
   Back to Top Button
   ======================================== */
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: red;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

#myBtn:hover {
  background-color: #555;
}

@media (max-width: 768px) {
  #myBtn {
    bottom: 70px; /* Avoid overlap with mobile bottom nav */
    right: 10px;
    padding: 10px;
    font-size: 14px;
  }
}