/* ============================================
   后暮蝉商城 - 像素级还原 wotu365.com
   原站：中企动力 portal-saas-mall 模板
   配色：主色 #D6001C/#EA5513，背景 #F4F5F5
   ============================================ */

:root {
  --main-color: #D6001C;
  --dark-red: #c31d1d;
  --orange: #EA5513;
  --gray: #666;
  --dark: #333;
  --light-gray: #f4f5f5;
  --white: #fff;
  --border: #e9e9e9;
  --text-muted: #999;
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #f4f5f5;
  line-height: 1.5;
}

a { color: #333; text-decoration: none; }
a:hover { color: var(--main-color); text-decoration: none; }
img { max-width: 100%; vertical-align: middle; }
ul, ol { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }

/* ========== Top Bar ========== */
.top-bar {
  background: #fff;
  height: 29px;
  line-height: 29px;
  font-size: 12px;
  color: #999;
  border-bottom: 1px solid #f0f0f0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 29px;
}
.top-bar-left { display: flex; align-items: center; gap: 15px; }
.top-bar-left .welcome { color: #999; }
.top-bar-left .welcome a { color: var(--main-color); }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar-right a { color: #999; padding: 0 5px; }
.top-bar-right a:hover { color: var(--main-color); }
.top-bar-right span { color: #ddd; }

/* ========== Header ========== */
.header {
  background: #fff;
  padding: 20px 0;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
}
.header-logo {
  flex: 0 0 201px;
}
.header-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}
.header-search {
  flex: 0 0 500px;
  margin: 0 auto;
}
.header-search .search-box {
  display: flex;
  border: 2px solid var(--main-color);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}
.header-search .search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 15px;
  font-size: 14px;
  color: #333;
}
.header-search .search-box input::placeholder { font-size: 12px; color: #ccc; }
.header-search .search-box button {
  background: var(--main-color);
  color: #fff;
  border: none;
  width: 72px;
  height: 44px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 22px;
  margin: -3px -1px -3px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-search .search-box button:hover { background: var(--dark-red); }
.header-search .hot-words {
  margin-top: 6px;
  font-size: 12px;
  color: #999;
}
.header-search .hot-words a {
  color: #999;
  margin-right: 10px;
}
.header-search .hot-words a:hover { color: var(--main-color); }
.header-cart {
  flex: 0 0 114px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 22px;
  padding: 8px 18px;
}
.header-cart:hover { border-color: var(--main-color); color: var(--main-color); }
.header-cart .cart-count {
  background: var(--main-color);
  color: #fff;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -6px;
}
.header-cart .cart-icon { font-size: 18px; }

/* ========== Navigation ========== */
.nav {
  background: var(--main-color);
  position: relative;
}
.nav .container {
  display: flex;
  align-items: center;
  max-width: var(--max-width);
}
.nav-all {
  flex: 0 0 256px;
  position: relative;
}
.nav-all-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 14px 20px;
  cursor: pointer;
  background: rgba(0,0,0,0.15);
}
.nav-all-title .icon { font-size: 18px; }

/* 全部分类下拉 */
.nav-all .category-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 256px;
  background: #fff;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
}
.nav-all:hover .category-dropdown { display: block; }
.category-dropdown .cat-item {
  padding: 0 20px;
  height: 48px;
  line-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}
.category-dropdown .cat-item:hover {
  color: var(--main-color);
  background: #fafafa;
}
.category-dropdown .cat-item .arrow { color: #ccc; font-size: 12px; }

/* 二级/三级分类弹出层 */
.cat-item .sub-menu {
  display: none;
  position: absolute;
  left: 256px;
  top: 0;
  width: 860px;
  min-height: 580px;
  background: #fff;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  z-index: 200;
  padding: 20px;
  overflow-y: auto;
}
.cat-item:hover .sub-menu { display: block; }
.sub-menu .sub-group {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f5f5f5;
}
.sub-menu .sub-group:last-child { border-bottom: none; }
.sub-menu .sub-title {
  flex: 0 0 120px;
  font-weight: bold;
  color: #333;
  font-size: 14px;
  padding-left: 20px;
  line-height: 28px;
}
.sub-menu .sub-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.sub-menu .sub-links a {
  color: #666;
  font-size: 13px;
  line-height: 28px;
  white-space: nowrap;
}
.sub-menu .sub-links a:hover { color: var(--main-color); }

/* 横向导航 */
.nav-horizontal {
  flex: 1;
  display: flex;
}
.nav-horizontal a {
  color: #fff;
  font-size: 15px;
  padding: 14px 22px;
  display: block;
  white-space: nowrap;
}
.nav-horizontal a:hover, .nav-horizontal a.active {
  background: rgba(0,0,0,0.12);
}

/* ========== Banner Section ========== */
.banner-section {
  margin-bottom: 0;
}
.banner-section .container {
  display: flex;
  max-width: var(--max-width);
}
/* 分类侧边在nav层已实现，这里做banner区域 */
.banner-main {
  flex: 1;
  height: 580px;
  overflow: hidden;
  position: relative;
  background: #000;
}
.banner-main .swiper-container {
  height: 100%;
  width: 100%;
}
.banner-main .swiper-wrapper { height: 100%; }
.banner-main .swiper-slide { height: 100%; }
.banner-main .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-main .banner-info {
  position: absolute;
  right: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  z-index: 9;
  text-align: center;
  color: #fff;
  width: 100%;
}
.banner-main .banner-info .banner-subtitle {
  line-height: 2;
  padding: 5px 0;
  display: none;
}
/* Swiper导航 */
.swiper-button-next, .swiper-button-prev {
  color: #ff5001 !important;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 16px !important;
  font-weight: bold;
}
.swiper-pagination-bullet { background: #ccc; opacity: 1; }
.swiper-pagination-bullet-active { background: var(--main-color); }

/* ========== 促销/广告区域 ========== */
.promo-section {
  background: #fff;
  padding: 30px 0;
}
.promo-section .container {
  display: flex;
  max-width: var(--max-width);
  gap: 20px;
}
.promo-left {
  flex: 0 0 350px;
  margin-right: 20px;
}
.promo-left img {
  width: 100%;
  height: 670px;
  object-fit: contain;
  border-radius: 4px;
}
.promo-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.promo-right .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.promo-right .section-header h3 {
  font-size: 18px;
  color: #333;
  font-weight: bold;
  padding-left: 10px;
  border-left: 3px solid var(--main-color);
}
.promo-right .section-header .more { color: #999; font-size: 13px; }
.promo-right .section-header .more:hover { color: var(--main-color); }

/* 商品网格 */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.goods-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.goods-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 4px 15px rgba(214,0,28,0.1);
  transform: translateY(-2px);
}
.goods-card .card-img {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fafafa;
  position: relative;
}
.goods-card .card-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s;
}
.goods-card:hover .card-img img { transform: scale(1.05); }
.goods-card .card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
}
.goods-card .card-info {
  padding: 12px 15px;
}
.goods-card .card-name {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}
.goods-card .card-name:hover { color: var(--main-color); }
.goods-card .card-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.goods-card .card-price .price {
  font-size: 18px;
  color: var(--main-color);
  font-weight: bold;
}
.goods-card .card-price .price::before { content: '¥'; font-size: 13px; }
.goods-card .card-price .original {
  font-size: 12px;
  color: #ccc;
  text-decoration: line-through;
}
.goods-card .card-sales {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

/* ========== 商品列表页 ========== */
.list-page {
  display: flex;
  gap: 20px;
  padding: 20px 0;
}
.list-sidebar {
  flex: 0 0 220px;
  background: #fff;
  border-radius: 4px;
  padding: 15px;
}
.list-sidebar h4 {
  font-size: 15px;
  color: #333;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.list-sidebar .cat-list li {
  padding: 8px 0;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  border-bottom: 1px dashed #f0f0f0;
  transition: color 0.2s;
}
.list-sidebar .cat-list li:hover,
.list-sidebar .cat-list li.active { color: var(--main-color); }
.list-main { flex: 1; }
.list-toolbar {
  background: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.list-toolbar .sort-btns { display: flex; gap: 5px; }
.list-toolbar .sort-btns button {
  padding: 6px 15px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
  color: #666;
}
.list-toolbar .sort-btns button.active,
.list-toolbar .sort-btns button:hover {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
}
.list-toolbar .result-count { color: #999; font-size: 13px; }

/* ========== 商品详情页 ========== */
.product-detail {
  background: #fff;
  padding: 30px;
  border-radius: 4px;
  margin: 20px 0;
  display: flex;
  gap: 40px;
}
.product-gallery {
  flex: 0 0 420px;
}
.product-gallery .main-img {
  width: 420px;
  height: 420px;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 15px;
  background: #fafafa;
}
.product-gallery .main-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.product-gallery .thumb-list {
  display: flex;
  gap: 10px;
}
.product-gallery .thumb-list .thumb {
  width: 70px;
  height: 70px;
  border: 2px solid #f0f0f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-gallery .thumb-list .thumb.active { border-color: var(--main-color); }
.product-gallery .thumb-list .thumb img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.product-info { flex: 1; }
.product-info .product-name {
  font-size: 20px;
  color: #333;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 15px;
}
.product-info .product-subtitle {
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 15px;
}
.product-info .price-box {
  background: #fdf2f2;
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.product-info .price-box .label { color: #999; font-size: 13px; }
.product-info .price-box .current-price {
  font-size: 28px;
  color: var(--main-color);
  font-weight: bold;
  margin: 5px 0;
}
.product-info .price-box .original-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}
.product-info .price-box .sales { font-size: 12px; color: #999; margin-top: 5px; }
.product-info .specs-table {
  width: 100%;
  margin: 15px 0;
}
.product-info .specs-table td {
  padding: 8px 0;
  font-size: 13px;
  color: #666;
  border-bottom: 1px dashed #f0f0f0;
}
.product-info .specs-table td:first-child {
  color: #999;
  width: 80px;
}
.product-info .qty-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.product-info .qty-box .label { color: #999; font-size: 13px; }
.product-info .qty-box input {
  width: 60px;
  height: 36px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
}
.product-info .btn-cart {
  background: var(--main-color);
  color: #fff;
  border: none;
  padding: 12px 40px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}
.product-info .btn-cart:hover { background: var(--dark-red); }

/* 详情Tab */
.product-tabs {
  background: #fff;
  border-radius: 4px;
  margin: 20px 0;
}
.product-tabs .tab-nav {
  display: flex;
  border-bottom: 2px solid #f0f0f0;
  padding: 0 30px;
}
.product-tabs .tab-nav button {
  padding: 12px 25px;
  border: none;
  background: none;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.product-tabs .tab-nav button.active {
  color: var(--main-color);
  border-bottom-color: var(--main-color);
  font-weight: bold;
}
.product-tabs .tab-content {
  padding: 30px;
  min-height: 300px;
}
.product-tabs .tab-panel { display: none; }
.product-tabs .tab-panel.active { display: block; }
.product-tabs .tab-panel p {
  line-height: 2;
  color: #666;
  margin-bottom: 10px;
}

/* 相关推荐 */
.related-products {
  margin: 30px 0;
}
.related-products h3 {
  font-size: 18px;
  color: #333;
  padding-left: 10px;
  border-left: 3px solid var(--main-color);
  margin-bottom: 20px;
}

/* ========== 购物车页 ========== */
.cart-page {
  background: #fff;
  border-radius: 4px;
  padding: 30px;
  margin: 20px 0;
}
.cart-page h3 { font-size: 18px; color: #333; margin-bottom: 20px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  background: #f9f9f9;
  padding: 12px 15px;
  font-size: 14px;
  color: #666;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cart-table td {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.cart-table .item-img {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-table .item-img img {
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
}
.cart-table .item-name {
  font-size: 14px;
  color: #333;
  max-width: 300px;
  line-height: 1.4;
}
.cart-table .item-price {
  font-size: 15px;
  color: var(--main-color);
  font-weight: bold;
}
.cart-table .qty-control {
  display: flex;
  align-items: center;
}
.cart-table .qty-control button {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  color: #666;
}
.cart-table .qty-control input {
  width: 50px;
  height: 28px;
  text-align: center;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
  font-size: 14px;
}
.cart-table .item-subtotal {
  font-size: 16px;
  color: var(--main-color);
  font-weight: bold;
}
.cart-table .btn-del {
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 13px;
}
.cart-table .btn-del:hover { color: var(--main-color); }
.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: #999;
}
.cart-empty .icon { font-size: 60px; margin-bottom: 20px; }
.cart-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 2px solid #f0f0f0;
  margin-top: 20px;
}
.cart-summary .total-label { font-size: 15px; color: #666; }
.cart-summary .total-price {
  font-size: 24px;
  color: var(--main-color);
  font-weight: bold;
}
.cart-summary .btn-checkout {
  background: var(--main-color);
  color: #fff;
  border: none;
  padding: 12px 50px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}
.cart-summary .btn-checkout:hover { background: var(--dark-red); }

/* ========== 购物车侧边栏 ========== */
.cart-sidebar {
  position: fixed;
  right: -360px;
  top: 0;
  width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transition: right 0.3s;
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-sidebar .sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  font-weight: bold;
}
.cart-sidebar .sidebar-header .btn-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}
.cart-sidebar .sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}
.cart-sidebar .sidebar-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}
.cart-sidebar .sidebar-item .item-img {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
.cart-sidebar .sidebar-item .item-img img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}
.cart-sidebar .sidebar-item .item-info { flex: 1; }
.cart-sidebar .sidebar-item .item-info .name {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  height: 36px;
  overflow: hidden;
}
.cart-sidebar .sidebar-item .item-info .price {
  color: var(--main-color);
  font-size: 14px;
  font-weight: bold;
}
.cart-sidebar .sidebar-footer {
  padding: 20px;
  border-top: 2px solid #f0f0f0;
}
.cart-sidebar .sidebar-footer .total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 16px;
}
.cart-sidebar .sidebar-footer .total .price {
  color: var(--main-color);
  font-size: 22px;
  font-weight: bold;
}
.cart-sidebar .sidebar-footer .btn-checkout {
  width: 100%;
  background: var(--main-color);
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
}
.cart-overlay.show { display: block; }

/* ========== Footer ========== */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.footer .container { max-width: var(--max-width); }
.footer-top {
  display: flex;
  padding: 30px 0;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-col { flex: 1; min-width: 180px; }
.footer-col h4 {
  font-size: 15px;
  color: #333;
  font-weight: bold;
  margin-bottom: 15px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: #666;
  line-height: 2;
}
.footer-col ul li a:hover { color: var(--main-color); }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #999;
  line-height: 2;
}
.footer-bottom .company-info { margin-bottom: 5px; }
.footer-bottom a { color: #999; }

/* ========== 帮助中心 ========== */
.help-page {
  background: #fff;
  border-radius: 4px;
  padding: 40px;
  margin: 20px 0;
  display: flex;
  gap: 40px;
}
.help-sidebar {
  flex: 0 0 200px;
  border-right: 1px solid #f0f0f0;
  padding-right: 20px;
}
.help-sidebar h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}
.help-sidebar .help-nav li {
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  border-bottom: 1px dashed #f0f0f0;
  transition: color 0.2s;
}
.help-sidebar .help-nav li:hover,
.help-sidebar .help-nav li.active { color: var(--main-color); }
.help-content { flex: 1; }
.help-content h3 { font-size: 20px; color: #333; margin-bottom: 20px; }
.help-content p {
  font-size: 14px;
  color: #666;
  line-height: 2;
  margin-bottom: 10px;
}

/* ========== 关于我们 ========== */
.about-page {
  background: #fff;
  border-radius: 4px;
  padding: 40px;
  margin: 20px 0;
}
.about-page h3 { font-size: 22px; color: #333; margin-bottom: 25px; text-align: center; }
.about-page .about-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.about-page .about-section:last-child { border-bottom: none; }
.about-page .about-section h4 {
  font-size: 17px;
  color: var(--main-color);
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 3px solid var(--main-color);
}
.about-page .about-section p {
  font-size: 14px;
  color: #666;
  line-height: 2;
  margin-bottom: 8px;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 10px 30px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 10000;
  animation: toastIn 0.3s ease;
}
.toast.toast-out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .header-search { flex: 1; margin: 0 20px; }
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .list-sidebar { display: none; }
  .nav-all .category-dropdown { width: 220px; }
  .cat-item .sub-menu { left: 220px; width: calc(100vw - 260px); }
  .promo-left { display: none; }
}

@media (max-width: 768px) {
  .header-logo { flex: 0 0 120px; }
  .header-logo img { height: 45px; }
  .header-search { flex: 1; margin: 0 10px; }
  .header-search .search-box button { width: 50px; height: 36px; }
  .header-cart { display: none; }
  .nav-all { flex: 0 0 auto; }
  .nav-all-title { padding: 12px 15px; font-size: 13px; }
  .nav-all .category-dropdown { width: 200px; }
  .nav-horizontal { overflow-x: auto; }
  .nav-horizontal a { padding: 12px 15px; font-size: 13px; }
  .banner-main { height: 280px; }
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-section .container { flex-direction: column; }
  .promo-left { flex: none; width: 100%; margin-right: 0; }
  .promo-left img { height: auto; max-height: 400px; }
  .footer-top { flex-direction: column; gap: 20px; }
  .product-detail { flex-direction: column; }
  .product-gallery { flex: none; }
  .product-gallery .main-img { width: 100%; height: 300px; }
  .cart-table { font-size: 12px; }
  .cart-table .item-name { max-width: 150px; }
  .help-page { flex-direction: column; }
  .help-sidebar { flex: none; border-right: none; border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; }
}
