/* 全局变量 */
:root {
  --bright-blue: #004ea1;
  --bright-red: #e4002b;
  --bright-dark: #003670;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
}

/* 顶部导航样式 */
header {
  height: 64px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 100;
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--border-color);
}
.bi-heart-fill{
  color: var(--bright-red)!important;
}
header .text-sm {
  font-size: 16px;
}

header i {
  font-size: 24px;
}

header .w-8 {
  width: 32px;
}

header .h-8 {
  height: 32px;
}

/* 下单模式菜单样式 */
.order-mode-nav a {
  transition: all 0.2s ease;
}

.order-mode-nav a:hover {
  background-color: #f3f4f6;
  color: var(--bright-blue);
}

.order-mode-nav a.active {
  background-color: #dbeafe;
  color: var(--bright-blue);
  font-weight: bold;
}

/* 基础样式 */
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 主体容器 */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

.shrink-0 {
  flex-shrink: 0;
}

.items-center {
  align-items: center;
}

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

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-2 {
  gap: 0.5rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.h-16 {
  height: 4rem;
}

.h-10 {
  height: 2.5rem;
}

.w-64 {
  width: 16rem;
}

.w-72 {
  width: 18rem;
}

.border {
  border: 1px solid #e5e7eb;
}

.border-b {
  border-bottom: 1px solid #e5e7eb;
}

.border-r {
  border-right: 1px solid #e5e7eb;
}

.border-l {
  border-left: 1px solid #e5e7eb;
}

.bg-white {
  background-color: #ffffff;
}

.bg-slate-50 {
  background-color: #f9fafb;
}

.bg-slate-800 {
  background-color: #1f2937;
}

.text-slate-400 {
  color: #9ca3af;
}

.text-slate-500 {
  color: #6b7280;
}

.text-slate-600 {
  color: #4b5563;
}

.text-slate-700 {
  color: #374151;
}

.text-slate-900 {
  color: #111827;
}

.text-white {
  color: #ffffff;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.rounded {
  border-radius: 0.25rem;
}

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

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

.rounded-full {
  border-radius: 9999px;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.z-10 {
  z-index: 10;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.top-1\/2 {
  top: 50%;
}

.-translate-y-1\/2 {
  transform: translateY(-50%);
}

.left-4 {
  left: 1rem;
}

.top-2 {
  top: 0.5rem;
}

.left-2 {
  left: 0.5rem;
}

.right-2 {
  right: 0.5rem;
}

.inset-0 {
  inset: 0;
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lg\:grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xl\:grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-6 {
  gap: 1.5rem;
}

.p-4 {
  padding: 1rem!important;
}

.p-6 {
  padding: 1.5rem;
}

.h-40 {
  height: 10rem;
}

.object-cover {
  object-fit: cover;
}

.pointer-events-none {
  pointer-events: none;
}

.pointer-events-auto {
  pointer-events: auto;
}

.leading-tight {
  line-height: 1.25;
}

.italic {
  font-style: italic;
}

.line-through {
  text-decoration: line-through;
}

.items-baseline {
  align-items: baseline;
  white-space: nowrap;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.shrink-0 {
  flex-shrink: 0;
}

.mb-4 {
  margin-bottom: 1rem!important;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.pt-4 {
  padding-top: 1rem;
}

.border-t {
  border-top: 1px solid #e5e7eb;
}

.border-dashed {
  border-style: dashed;
}

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

.min-w-0 {
  min-width: 0;
}

.min-h-0 {
  min-height: 0;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.hover\:bg-slate-100:hover {
  background-color: #f3f4f6;
}

.hover\:bg-slate-50:hover {
  background-color: #f9fafb;
}

.hover\:bg-blue-500:hover {
  background-color: #3b82f6;
}

.hover\:bg-red-500:hover {
  background-color: #ef4444;
}

.hover\:text-blue-600:hover {
  color: #2563eb;
}

.hover\:text-red-500:hover {
  color: #ef4444;
}

.hover\:opacity-90:hover {
  opacity: 0.9;
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:border-blue-500:hover {
  border-color: #3b82f6;
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-0:focus {
  ring: 0;
}

.focus\:ring-2:focus {
  ring: 2px;
}

.focus\:ring-bright-blue\/20:focus {
  ring-color: rgba(0, 78, 161, 0.2);
}

.focus\:border-bright-blue:focus {
  border-color: var(--bright-blue);
}
.border-bright-blue {
  border-color: var(--bright-blue);
  border-bottom: 2px solid var(--bright-blue)!important;
}
.active {
  color: var(--bright-blue);
  font-weight: bold;
}

.tabActive {
  border-color: var(--bright-blue);
  border-bottom: 2px solid var(--bright-blue)!important;
  color: var(--bright-blue);
  font-weight: 700;
}

.hidden {
  display: none;
}

/* 清除浮动 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* 文本溢出 */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 滚动条 */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 3px;
}

/* 无滚动条 */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* 响应式工具类 */
@media (max-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .xl\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .xl\:grid-cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .flex-col {
    flex-direction: column;
  }
  
  .w-64 {
    width: 100%;
  }
  
  .w-72 {
    width: 100%;
  }
  
  .h-16 {
    height: auto;
    padding: 0.5rem;
  }
  
  .h-10 {
    height: auto;
    padding: 0.5rem;
  }
  
  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .px-8 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .py-4 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .py-3 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .gap-6 {
    gap: 1rem;
  }
  
  .gap-4 {
    gap: 0.75rem;
  }
  
  .gap-3 {
    gap: 0.5rem;
  }
  
  .gap-2 {
    gap: 0.25rem;
  }
  
  .p-4 {
    padding: 0.75rem;
  }
  
  .p-6 {
    padding: 1rem;
  }
  
  .h-40 {
    height: 8rem;
  }
  
  .text-sm {
    font-size: 0.75rem;
  }
  
  .text-xs {
    font-size: 0.625rem;
  }
  
  .text-xl {
    font-size: 1rem;
  }
  
  .flex {
    flex-wrap: wrap;
  }
  
  .flex-1 {
    flex: 1 1 100%;
  }
  
  .shrink-0 {
    flex-shrink: 1;
  }
  
  .overflow-hidden {
    overflow: auto;
  }
  
  .overflow-y-auto {
    overflow: auto;
  }
  
  .border-r {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .border-l {
    border-left: none;
    border-top: 1px solid #e5e7eb;
  }
  
  .mb-4 {
    margin-bottom: 0.75rem;
  }
  
  .mb-3 {
    margin-bottom: 0.5rem;
  }
  
  .mb-2 {
    margin-bottom: 0.25rem;
  }
  
  .mt-4 {
    margin-top: 0.75rem;
  }
  
  .pt-4 {
    padding-top: 0.75rem;
  }
}

/* 确保主容器占满高度 */
.flex.flex-1 {
  min-height: 0;
}

/* 确保商品网格占满高度 */
#productGrid {
  min-height: 0;
}

/* 确保订单列表占满高度 */
#order-list-container {
  min-height: 0;
}

/* 确保购物车摘要占满高度 */
#orderSummary {
  min-height: 0;
}

/* 顶部导航 */
.sticky-header {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 自定义滚动条 */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* 颜色工具类 */
.text-bright-blue {
  color: var(--bright-blue);
}

.bg-bright-blue {
  background-color: var(--bright-blue);
}

.text-bright-red {
  color: var(--bright-red);
}

/* 品牌名称样式 */
.brand-name {
  background-color: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  display: inline-block;
}

/* 隐藏数字输入框的箭头 */
.js-quantity-input::-webkit-outer-spin-button,
.js-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.js-quantity-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* 已售数量样式 */
.js-product-card .sold-count {
  background-color: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  display: inline-block;
  width: auto !important;
  max-width: fit-content !important;
}

/* 下单模式激活状态 */
.order-mode-active {
  color: var(--bright-blue);
  border-bottom: 3px solid var(--bright-blue);
}

/* 搜索栏 */
#searchInput {
  transition: all 0.3s ease;
  border-radius: 4px;
}

#searchInput:focus {
  box-shadow: 0 0 0 2px rgba(0, 78, 161, 0.1);
  border-color: var(--bright-blue);
}

/* 分类菜单 */
.js-category-header {
  cursor: pointer;
  transition: all 0.2s ease;
}

.js-category-header:hover {
  color: var(--bright-blue);
}

.js-category-content li {
  transition: all 0.2s ease;
  padding: 4px 0;
}

.js-category-content li:hover {
  color: var(--bright-blue);
}

.js-category-content li.active {
  color: var(--bright-blue);
  font-weight: bold;
}

/* 筛选按钮 */
.js-filter-btn {
  transition: all 0.2s ease;
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 12px;
}

.js-filter-btn:hover {
  border-color: var(--bright-blue);
  color: var(--bright-blue);
}

.js-filter-btn.active {
  background-color: var(--bright-blue);
  color: white;
  border-color: var(--bright-blue);
}

/* 商品卡片 */
.js-product-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 300px;
}

.js-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--bright-blue);
}

.js-product-card .h-40 {
  height: 160px;
  overflow: hidden;
  position: relative;
}

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

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

/* 商品卡片内容 */
.js-product-card .p-4 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 商品标题 */
.js-product-card h4 {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
}

/* 商品价格 */
.js-product-card .text-xl {
  font-size: 18px;
  font-weight: bold;
}

/* 价格单位 */
.price-unit {
  font-size: 10px !important;
  line-height: 1;
  font-weight: normal;
  color: #9ca3af;
  margin-left: 4px;
}

/* 商品卡片底部 */
.js-product-card .flex.items-end {
  margin-top: auto;
  align-items: end;
}

/* 心形图标样式 */
.js-favorite-btn {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.js-favorite-btn:hover {
  background-color: white;
  transform: scale(1.1);
}

.js-favorite-btn i {
  color: #c1c1c1;
  transition: color 0.3s ease;
}

.js-favorite-btn:hover i {
  color: #ef4444;
}

/* 确保商品卡片高度一致 */
#productGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* 响应式商品网格 */
@media (min-width: 1600px) {
  #productGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1800px) {
  #productGrid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 2900px) {
  #productGrid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 数量控制 */
.js-quantity-control {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.js-quantity-control button {
  transition: all 0.2s ease;
  width: 28px;
  height: 28px;
  border: none;
  background-color: #f9f9f9;
}

.js-quantity-control button:hover {
  background-color: #f0f0f0;
}

.js-quantity-input {
  transition: all 0.2s ease;
  width: 36px;
  height: 28px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.js-quantity-input:focus {
  outline: none;
  box-shadow: none;
  background-color: #f0f0f0;
}

/* 加入购物车按钮 */
.js-add-to-cart {
  transition: all 0.2s ease;
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 12px;
  border: none;
  background-color: var(--bright-blue);
  color: white;
}

.js-add-to-cart:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 78, 161, 0.3);
}

/* 分页按钮 */
.js-page-btn {
  transition: all 0.2s ease;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background-color: white;
}

.js-page-btn:hover {
  background-color: #f0f0f0;
  border-color: var(--bright-blue);
}

.js-page-btn.active {
  background-color: var(--bright-blue);
  color: white;
  border-color: var(--bright-blue);
}

/* 购物车项目 */
#orderSummary {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 8px;
}

#orderSummary .group\/item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

#orderSummary .group\/item:last-child {
  border-bottom: none;
}

.js-remove-item {
  transition: all 0.2s ease;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: #666;
  border: none;
  cursor: pointer;
}

.js-remove-item:hover {
  background-color: var(--bright-red);
  color: white;
}

/* 购物车摘要 */
#orderSummary + .mt-4 {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e0e0e0;
}

/* 订单详情和下单按钮 */
.js-order-detail-btn,
.js-submit-order-btn {
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  height: 36px;
  border: none;
  font-size: 14px;
  font-weight: bold;
  width: 100%;
  margin-bottom: 8px;
  cursor: pointer;
}

.js-order-detail-btn {
  background-color: #1e40af;
  color: white;
  outline: none;
}

.js-submit-order-btn {
  background-color: #1e40af;
  color: white;
  outline: none;
}

.js-order-detail-btn:hover {
  background-color: #1e3a8a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 78, 161, 0.3);
}

.js-submit-order-btn:hover {
  background-color: #1e3a8a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 78, 161, 0.3);
}

/* 订单详情和下单按钮 */
.js-order-detail-btn,
.js-submit-order-btn {
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  height: 36px;
  border: none;
  font-size: 14px;
  font-weight: bold;
  width: 100%;
  margin-bottom: 8px;
  cursor: pointer;
}

.js-order-detail-btn {
  background-color: #1e40af;
  color: white;
  outline: none;
}

.js-submit-order-btn {
  background-color: #1e40af;
  color: white;
  outline: none;
}

.js-order-detail-btn:hover {
  background-color: #1e3a8a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 78, 161, 0.3);
}

.js-submit-order-btn:hover {
  background-color: #1e3a8a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 78, 161, 0.3);
}

/* 分类菜单 */
.js-category-header {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.js-category-header:hover {
  color: var(--bright-blue);
}
.cursor-pointer{
  cursor: pointer;
}
.js-category-content {
  margin-left: 16px;
  margin-top: 0px;
  margin-bottom: 16px;
}

.js-category-content li {
  transition: all 0.2s ease;
  padding: 4px 0;
  cursor: pointer;
}

.js-category-content li:hover {
  color: var(--bright-blue);
}

.js-category-content li.active {
  color: var(--bright-blue);
  font-weight: bold;
}

/* 筛选按钮 */
.js-filter-btn {
  transition: all 0.2s ease;
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 12px;
  cursor: pointer;
}

.js-filter-btn:hover {
  border-color: var(--bright-blue);
  color: var(--bright-blue);
}

.js-filter-btn.active {
  background-color: var(--bright-blue);
  color: white;
  border-color: var(--bright-blue);
}

/* 响应式设计优化 */
@media (max-width: 1200px) {
  /* 调整商品网格 */
  #productGrid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* 调整侧边栏宽度 */
  aside.w-64 {
    width: 14rem;
  }
  
  aside.w-72 {
    width: 16rem;
  }
}

@media (max-width: 992px) {
  /* 调整商品网格 */
  #productGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 调整侧边栏宽度 */
  aside.w-64 {
    width: 12rem;
  }
  
  aside.w-72 {
    width: 14rem;
  }
  
  /* 调整顶部导航 */
  header .flex.items-center.gap-6 {
    gap: 0.5rem;
  }
  
  header .text-sm {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  /* 调整商品网格 */
  #productGrid {
    grid-template-columns: 1fr;
  }
  
  /* 调整布局为垂直 */
  .flex.flex-1 {
    flex-direction: column;
  }
  
  /* 调整侧边栏 */
  aside.w-64,
  aside.w-72 {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  /* 调整顶部导航 */
  header {
    flex-wrap: wrap;
    height: auto;
    padding: 0.5rem;
  }
  
  header .flex.items-center.gap-6 {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  /* 调整搜索栏 */
  .bg-white.border-b.px-8.py-4 {
    padding: 0.5rem;
  }
  
  /* 调整购物车摘要 */
  #orderSummary {
    max-height: 200px;
  }
  
  /* 调整订单列表 */
  #order-list-container {
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  /* 调整商品卡片 */
  .js-product-card .h-40 {
    height: 120px;
  }
  
  /* 调整字体大小 */
  .text-sm {
    font-size: 12px;
  }
  
  .text-xs {
    font-size: 10px;
  }
  
  .text-xl {
    font-size: 16px;
  }
  
  /* 调整间距 */
  .p-4 {
    padding: 0.75rem;
  }
  
  .p-6 {
    padding: 1rem;
  }
  
  .gap-2 {
    gap: 0.25rem;
  }
  
  .gap-3 {
    gap: 0.5rem;
  }
  
  .gap-4 {
    gap: 0.75rem;
  }
  
  .gap-6 {
    gap: 1rem;
  }
  
  /* 调整按钮大小 */
  .js-order-detail-btn,
  .js-submit-order-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  /* 调整数量控制 */
  .js-quantity-control button {
    width: 24px;
    height: 24px;
  }
  
  .js-quantity-input {
    width: 32px;
    height: 24px;
  }
  
  /* 调整加入购物车按钮 */
  .js-add-to-cart {
    padding: 4px 8px;
    font-size: 10px;
  }
}

/* 标签切换 */
/* #tab-recent,
#tab-most {
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-bottom: 2px solid transparent;
} */

#tab-recent:hover,
#tab-most:hover {
  color: var(--bright-blue);
}

#tab-recent.active,
#tab-most.active {
  color: var(--bright-blue);
  border-bottom-color: #e0e0e0;
  font-weight: bold;
}

/* 无滚动条 */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* 最近订单列表 */
.order-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background-color: white;
  transition: all 0.2s ease;
}

.order-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: var(--bright-blue);
}

.order-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-item-title {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.order-item-date {
  font-size: 12px;
  color: #999;
}

.order-item-content {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.4;
}

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

.order-item-total {
  font-weight: bold;
  color: var(--bright-red);
}

.order-item-button {
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--bright-blue);
  border-radius: 4px;
  color: var(--bright-blue);
  background-color: white;
  transition: all 0.2s ease;
}

.order-item-button:hover {
  background-color: var(--bright-blue);
  color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  aside {
    width: 200px !important;
  }
  
  main {
    flex: 1;
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .xl\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .h-screen {
    height: auto !important;
    min-height: 100vh;
  }
  
  .flex-col {
    flex-direction: column;
  }
  
  aside {
    width: 100% !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
  }
  
  .grid-cols-2,
  .lg\:grid-cols-3,
  .xl\:grid-cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  footer {
    flex-direction: column;
    height: auto !important;
    padding: 1rem;
    gap: 0.5rem;
    font-size: 12px;
  }
  
  .flex-1 {
    flex: none;
  }
  
  .overflow-hidden {
    overflow: auto;
  }
  
  .overflow-y-auto {
    overflow: auto;
  }
  
  .h-40 {
    height: 140px;
  }
  
  .max-w-4xl {
    max-width: 100%;
  }
  
  .px-8 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .gap-6 {
    gap: 1rem;
  }
  
  .p-6 {
    padding: 1rem;
  }
  
  .p-4 {
    padding: 1rem;
  }
  
  .h-16 {
    height: auto;
    padding: 0.5rem;
  }
  
  .flex.items-center.gap-6 {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .flex.items-center.gap-4 {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .w-72 {
    width: 100%;
  }
  
  .w-64 {
    width: 100%;
  }
  
  /* 移动端顶部导航 */
  header .flex.items-center.gap-6 {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  header .text-sm {
    font-size: 12px;
  }
  
  /* 移动端商品卡片 */
  .js-product-card .p-4 {
    padding: 0.75rem;
  }
  
  /* 移动端购物车 */
  #orderSummary {
    max-height: 200px;
  }
}