/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

input {
  outline: none;
  font-family: inherit;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 顶部导航 */
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  background: #f5f5f5;
  font-size: 12px;
  color: #999;
  padding: 8px 0;
}

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

.header-top a:hover {
  color: #ff6b00;
}

.header-top-right {
  display: flex;
  gap: 20px;
}

.header-main {
  padding: 20px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #ff6b00;
  flex-shrink: 0;
}

.logo span {
  color: #333;
}

.search-box {
  flex: 1;
  display: flex;
  max-width: 600px;
}

.search-box input {
  flex: 1;
  height: 42px;
  padding: 0 15px;
  border: 2px solid #ff6b00;
  border-right: none;
  border-radius: 21px 0 0 21px;
  font-size: 14px;
}

.search-box button {
  width: 80px;
  height: 42px;
  background: #ff6b00;
  color: #fff;
  border-radius: 0 21px 21px 0;
  font-size: 15px;
  transition: background 0.3s;
}

.search-box button:hover {
  background: #e65c00;
}

.header-actions {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  position: relative;
}

.header-action .icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.header-action:hover {
  color: #ff6b00;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* 导航菜单 */
.nav {
  background: #fff;
  border-bottom: 2px solid #ff6b00;
}

.nav .container {
  display: flex;
  gap: 5px;
}

.nav-item {
  padding: 12px 25px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-item:hover,
.nav-item.active {
  color: #ff6b00;
  background: #fff5ee;
}

/* 轮播图 */
.banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 30px;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.banner-dot.active {
  background: #fff;
  width: 30px;
  border-radius: 5px;
}

/* 分类入口 */
.categories-section {
  background: #fff;
  padding: 30px 0;
  margin-bottom: 30px;
  border-radius: 8px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 15px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
}

.category-item:hover {
  background: #fff5ee;
  transform: translateY(-3px);
}

.category-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.category-name {
  font-size: 14px;
  color: #333;
}

/* 商品列表 */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 22px;
  color: #333;
}

.section-title h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #ff6b00;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}

.sort-bar {
  display: flex;
  gap: 5px;
}

.sort-btn {
  padding: 6px 15px;
  background: #f5f5f5;
  color: #666;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.sort-btn:hover,
.sort-btn.active {
  background: #ff6b00;
  color: #fff;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

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

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}

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

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

.product-info {
  padding: 12px;
}

.product-name {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.price-current {
  font-size: 20px;
  font-weight: bold;
  color: #ff4d4f;
}

.price-current::before {
  content: '¥';
  font-size: 14px;
  font-weight: normal;
}

.price-original {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.price-original::before {
  content: '¥';
}

.product-sales {
  font-size: 12px;
  color: #999;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
  background: #ff6b00;
  color: #fff;
  border-color: #ff6b00;
}

.page-btn.disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* 底部 */
.footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 40px 0 20px;
  margin-top: 50px;
}

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

.footer-col h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #ff6b00;
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* 商品详情页 */
.product-detail {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  margin-top: 20px;
}

.product-detail-main {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.product-gallery {
  width: 450px;
  flex-shrink: 0;
}

.product-main-image {
  width: 450px;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  background: #f5f5f5;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
}

.product-thumbnail {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: #ff6b00;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-detail {
  flex: 1;
}

.product-info-detail h1 {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.product-info-detail .desc {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-price-box {
  background: #fff5ee;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.product-price-box .price-label {
  color: #666;
  font-size: 13px;
  margin-bottom: 8px;
}

.product-price-box .price-big {
  font-size: 36px;
  font-weight: bold;
  color: #ff4d4f;
}

.product-price-box .price-big::before {
  content: '¥';
  font-size: 20px;
  font-weight: normal;
}

.product-price-box .price-original-big {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
  margin-left: 15px;
}

.product-price-box .price-original-big::before {
  content: '¥';
}

.product-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.product-meta-item {
  font-size: 13px;
  color: #666;
}

.product-meta-item span {
  color: #333;
  font-weight: bold;
}

.product-quantity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.quantity-label {
  color: #666;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  font-size: 18px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.quantity-btn:hover {
  background: #e8e8e8;
}

.quantity-input {
  width: 60px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 15px;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.product-actions {
  display: flex;
  gap: 15px;
}

.btn-cart {
  flex: 1;
  height: 50px;
  background: #fff5ee;
  color: #ff6b00;
  border: 1px solid #ff6b00;
  border-radius: 25px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-cart:hover {
  background: #ffe4cc;
}

.btn-buy {
  flex: 1;
  height: 50px;
  background: #ff6b00;
  color: #fff;
  border-radius: 25px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s;
}

.btn-buy:hover {
  background: #e65c00;
}

.product-detail-section {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  margin-top: 20px;
}

.detail-tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 30px;
}

.detail-tab {
  padding: 12px 30px;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.detail-tab:hover,
.detail-tab.active {
  color: #ff6b00;
}

.detail-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ff6b00;
}

.detail-content {
  min-height: 300px;
  line-height: 1.8;
  color: #666;
}

.detail-content p {
  margin-bottom: 15px;
}

/* 购物车页面 */
.cart-page {
  padding: 30px 0;
}

.cart-header {
  display: grid;
  grid-template-columns: 50px 2fr 1fr 1fr 1fr 80px;
  padding: 15px 20px;
  background: #fff;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #666;
  align-items: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 50px 2fr 1fr 1fr 1fr 80px;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #f5f5f5;
  align-items: center;
  transition: background 0.3s;
}

.cart-item:hover {
  background: #fafafa;
}

.cart-item:last-child {
  border-radius: 0 0 8px 8px;
}

.cart-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.checkbox.checked {
  background: #ff6b00;
  border-color: #ff6b00;
  color: #fff;
  font-size: 12px;
}

.cart-product {
  display: flex;
  gap: 15px;
  align-items: center;
}

.cart-product-image {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}

.cart-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-product-name {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.cart-product-name:hover {
  color: #ff6b00;
}

.cart-price {
  font-size: 15px;
  color: #ff4d4f;
  font-weight: bold;
}

.cart-price::before {
  content: '¥';
  font-size: 12px;
  font-weight: normal;
}

.cart-quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  width: fit-content;
}

.cart-quantity-btn {
  width: 28px;
  height: 28px;
  background: #f5f5f5;
  font-size: 16px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-quantity-input {
  width: 45px;
  height: 28px;
  border: none;
  text-align: center;
  font-size: 14px;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.cart-subtotal {
  font-size: 16px;
  color: #ff4d4f;
  font-weight: bold;
}

.cart-subtotal::before {
  content: '¥';
  font-size: 12px;
  font-weight: normal;
}

.cart-delete {
  color: #999;
  cursor: pointer;
  font-size: 13px;
}

.cart-delete:hover {
  color: #ff4d4f;
}

.cart-footer {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  bottom: 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.cart-footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.cart-footer-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.cart-total-info {
  text-align: right;
}

.cart-total-count {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.cart-total-count span {
  color: #ff6b00;
  font-weight: bold;
  margin: 0 3px;
}

.cart-total-price {
  font-size: 22px;
  color: #ff4d4f;
  font-weight: bold;
}

.cart-total-price::before {
  content: '¥';
  font-size: 14px;
  font-weight: normal;
}

.btn-checkout {
  width: 150px;
  height: 50px;
  background: #ff6b00;
  color: #fff;
  border-radius: 25px;
  font-size: 16px;
  transition: background 0.3s;
}

.btn-checkout:hover {
  background: #e65c00;
}

.btn-checkout:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.empty-cart {
  text-align: center;
  padding: 80px 0;
  background: #fff;
  border-radius: 8px;
}

.empty-cart-icon {
  font-size: 80px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-cart-text {
  font-size: 16px;
  color: #999;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: #ff6b00;
  color: #fff;
  border-radius: 25px;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #e65c00;
}

/* 登录注册页面 */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-box {
  width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.auth-logo {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  color: #ff6b00;
  margin-bottom: 10px;
}

.auth-logo span {
  color: #333;
}

.auth-title {
  text-align: center;
  font-size: 20px;
  color: #333;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: #ff6b00;
}

.form-btn {
  width: 100%;
  height: 46px;
  background: #ff6b00;
  color: #fff;
  border-radius: 23px;
  font-size: 16px;
  margin-top: 10px;
  transition: background 0.3s;
}

.form-btn:hover {
  background: #e65c00;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #666;
}

.auth-footer a {
  color: #ff6b00;
}

/* 用户中心 */
.user-center {
  padding: 30px 0;
}

.user-layout {
  display: flex;
  gap: 25px;
}

.user-sidebar {
  width: 220px;
  flex-shrink: 0;
}

.user-card {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  margin-bottom: 20px;
}

.user-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ff6b00;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.user-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.user-menu {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.user-menu-item {
  padding: 14px 20px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.user-menu-item:hover,
.user-menu-item.active {
  background: #fff5ee;
  color: #ff6b00;
  border-left-color: #ff6b00;
}

.user-menu-item .icon {
  font-size: 18px;
}

.user-content {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  min-height: 500px;
}

.user-content-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.info-form {
  max-width: 500px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.info-label {
  width: 100px;
  color: #666;
  font-size: 14px;
  flex-shrink: 0;
}

.info-value {
  flex: 1;
  color: #333;
}

/* 订单列表 */
.order-status-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.order-status-tab {
  padding: 12px 25px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.order-status-tab:hover,
.order-status-tab.active {
  color: #ff6b00;
}

.order-status-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ff6b00;
}

.order-item {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}

.order-header-left {
  display: flex;
  gap: 20px;
  color: #666;
}

.order-no {
  color: #333;
}

.order-status {
  font-weight: bold;
}

.order-status.pending { color: #ff6b00; }
.order-status.shipped { color: #1890ff; }
.order-status.completed { color: #52c41a; }
.order-status.cancelled { color: #999; }

.order-body {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.order-product {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.order-product-image {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}

.order-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-product-info {
  flex: 1;
}

.order-product-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.order-product-price {
  font-size: 13px;
  color: #999;
}

.order-total {
  text-align: right;
  min-width: 150px;
}

.order-total-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

.order-total-price {
  font-size: 18px;
  color: #ff4d4f;
  font-weight: bold;
}

.order-total-price::before {
  content: '¥';
  font-size: 12px;
  font-weight: normal;
}

.order-actions {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-action-btn {
  padding: 6px 15px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.order-action-btn:hover {
  border-color: #ff6b00;
  color: #ff6b00;
}

.order-action-btn.primary {
  background: #ff6b00;
  color: #fff;
  border-color: #ff6b00;
}

.order-action-btn.primary:hover {
  background: #e65c00;
}

/* 结算弹窗 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  width: 500px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

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

.modal-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.modal-close {
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 25px;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 15px 25px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-default {
  padding: 10px 25px;
  background: #f5f5f5;
  color: #666;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-default:hover {
  background: #e8e8e8;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 2000;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 响应式 */
@media (max-width: 1024px) {
  .product-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .category-list {
    grid-template-columns: repeat(6, 1fr);
  }
  .product-detail-main {
    flex-direction: column;
  }
  .product-gallery {
    width: 100%;
  }
  .product-main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 768px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .header-main .container {
    flex-wrap: wrap;
    gap: 15px;
  }
  .search-box {
    order: 3;
    max-width: 100%;
  }
  .banner {
    height: 200px;
  }
  .cart-header, .cart-item {
    grid-template-columns: 30px 1fr 80px 100px 60px;
  }
  .cart-header > div:nth-child(3),
  .cart-item > div:nth-child(3) {
    display: none;
  }
  .user-layout {
    flex-direction: column;
  }
  .user-sidebar {
    width: 100%;
  }
  .user-menu {
    display: flex;
    overflow-x: auto;
  }
  .user-menu-item {
    flex-shrink: 0;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .user-menu-item:hover,
  .user-menu-item.active {
    border-left-color: transparent;
    border-bottom-color: #ff6b00;
  }
}
