/* ============================================
   千韵福商城 全局样式  qianyunfu.cn
   东莞市鲁翟鑫电子商务有限公司
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #e1251b;
  --primary-dark: #c81623;
  --primary-bg: #fef0f0;
  --orange: #ff6700;
  --text-1: #1a1a1a;
  --text-2: #4a4a4a;
  --text-3: #999;
  --border: #e4e4e4;
  --border-light: #f0f0f0;
  --bg: #f5f5f5;
  --bg-2: #f8f8f8;
  --white: #fff;
  --green: #52c41a;
  --maxw: 1200px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: var(--text-1); background: var(--bg); line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; border: 0; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select { font-family: inherit; outline: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 12px; }

/* ---------- 顶部信息栏 ---------- */
.mall-topbar { background: #f2f2f2; border-bottom: 1px solid var(--border-light); font-size: 12px; color: var(--text-3); }
.mall-topbar .container { display: flex; justify-content: space-between; height: 32px; align-items: center; }
.topbar-left, .topbar-right { display: flex; gap: 18px; }
.topbar-left a:hover, .topbar-right a:hover { color: var(--primary); }

/* ---------- 搜索头部 ---------- */
.mall-header { background: var(--white); }
.mall-header .container { display: flex; align-items: center; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
.mall-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mall-logo-icon {
  width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, #e1251b, #ff6700);
  color: #fff; font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.mall-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.mall-logo-text .cn { font-size: 22px; font-weight: 800; color: var(--text-1); }
.mall-logo-text .en { font-size: 10px; letter-spacing: 2px; color: var(--text-3); }
.search-box { flex: 1; max-width: 620px; }
.search-form { display: flex; border: 2px solid var(--primary); border-radius: 4px; overflow: hidden; height: 40px; }
.search-select { border: none; border-right: 1px solid var(--border); background: #fafafa; padding: 0 10px; font-size: 13px; color: var(--text-2); }
.search-input { flex: 1; border: none; padding: 0 14px; font-size: 14px; }
.search-btn {
  background: var(--primary); color: #fff; padding: 0 28px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.search-btn:hover { background: var(--primary-dark); }
.search-hot { margin-top: 6px; font-size: 12px; color: var(--text-3); display: flex; gap: 14px; flex-wrap: wrap; }
.search-hot .hot { color: var(--text-3); }
.search-hot a:hover { color: var(--primary); }
.header-cart { flex-shrink: 0; }
.cart-btn {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--border);
  padding: 9px 18px; border-radius: 4px; color: var(--primary); font-weight: 600; position: relative; background: #fff;
}
.cart-btn:hover { border-color: var(--primary); }
.cart-btn .badge {
  position: absolute; top: -8px; right: -8px; background: var(--primary); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ---------- 主导航 ---------- */
.main-nav { background: var(--white); border-bottom: 2px solid var(--primary); }
.main-nav .container { display: flex; align-items: stretch; }
.nav-categories {
  width: 210px; background: var(--primary); color: #fff; padding: 0 18px;
  display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; position: relative; cursor: pointer;
}
.category-menu {
  position: absolute; top: 100%; left: 0; width: 210px; background: rgba(0,0,0,.78); z-index: 200;
  display: none; padding: 6px 0;
}
.nav-categories:hover .category-menu { display: block; }
.category-menu li {
  padding: 10px 18px; color: #fff; font-size: 14px; font-weight: 400; display: flex; justify-content: space-between; align-items: center;
}
.category-menu li:hover { background: var(--primary); }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: 20px; flex-wrap: wrap; }
.nav-menu a { padding: 0 16px; height: 100%; display: flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--text-1); }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

/* ---------- 首页 Hero ---------- */
.hero-section { padding: 12px 0; }
.hero-layout { display: grid; grid-template-columns: 210px 1fr 200px; gap: 12px; }
.side-categories { background: var(--white); border-radius: 6px; overflow: hidden; }
.side-categories li {
  padding: 11px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; cursor: pointer;
}
.side-categories li:hover { background: var(--primary-bg); color: var(--primary); }
.banner-carousel { position: relative; border-radius: 6px; overflow: hidden; height: 380px; }
.banner-slide { position: absolute; inset: 0; display: none; align-items: center; padding: 40px; color: #fff; }
.banner-slide.active { display: flex; }
.bs-content { flex: 1; z-index: 2; }
.bs-tag { display: inline-block; background: rgba(255,255,255,.25); padding: 3px 14px; border-radius: 20px; font-size: 13px; margin-bottom: 16px; }
.bs-content h2 { font-size: 32px; line-height: 1.35; margin-bottom: 14px; }
.bs-content p { font-size: 14px; opacity: .92; margin-bottom: 22px; line-height: 1.8; }
.bs-btn { display: inline-block; background: #fff; color: #333; padding: 11px 30px; border-radius: 24px; font-weight: 700; }
.banner-img { font-size: 130px; opacity: .5; }
.banner-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.banner-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.banner-dots span.active { background: #fff; width: 24px; border-radius: 5px; }
.side-user { background: var(--white); border-radius: 6px; padding: 16px; text-align: center; }
.user-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg,#e1251b,#ff6700); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.user-name { font-weight: 700; font-size: 14px; }
.user-level { font-size: 12px; color: var(--text-3); margin: 4px 0 12px; }
.user-btns { display: flex; gap: 8px; margin-bottom: 14px; }
.user-btns a { flex: 1; padding: 7px 0; border-radius: 4px; font-size: 13px; border: 1px solid var(--primary); color: var(--primary); }
.user-btns .btn-login { background: var(--primary); color: #fff; }
.user-assets { display: flex; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 12px 0; margin-bottom: 12px; }
.user-assets > div { flex: 1; }
.user-assets .num { font-size: 18px; font-weight: 700; }
.user-assets .label { font-size: 12px; color: var(--text-3); }
.user-menu-quick { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; font-size: 12px; }
.user-menu-quick a { color: var(--text-2); }
.user-menu-quick a:hover { color: var(--primary); }

/* 分类快速入口 */
.cat-entries { display: grid; grid-template-columns: repeat(10,1fr); gap: 8px; padding: 18px 12px; }
.cat-entry { text-align: center; font-size: 13px; }
.cat-entry-icon { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.cat-entry:hover { color: var(--primary); }

/* ---------- 区块通用 ---------- */
.section-block { background: var(--white); border-radius: 6px; padding: 18px; margin-bottom: 14px; }
.section-title-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; border-left: 4px solid var(--primary); padding-left: 12px; }
.section-title-bar h3 { font-size: 20px; font-weight: 700; }
.section-title-bar .more { font-size: 13px; color: var(--text-3); }
.section-title-bar .more:hover { color: var(--primary); }

/* ---------- 商品网格 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.product-grid.cols-6 { grid-template-columns: repeat(6,1fr); gap: 10px; }
.product-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: 6px; overflow: hidden;
  transition: box-shadow .2s, transform .2s; position: relative;
}
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-3px); z-index: 2; }
.product-img { position: relative; aspect-ratio: 1/1; background: #f6f6f6; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-tag { position: absolute; top: 0; left: 0; font-size: 11px; color: #fff; padding: 2px 8px; z-index: 2; border-bottom-right-radius: 8px; }
.product-tag.hot { background: var(--primary); }
.product-tag.new { background: var(--orange); }
.product-tag.promo { background: var(--green); }
.product-info { padding: 10px; }
.product-name {
  font-size: 13px; color: var(--text-2); line-height: 1.45; height: 38px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 8px;
}
.product-card:hover .product-name { color: var(--primary); }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.price-current { color: var(--primary); font-size: 18px; font-weight: 800; }
.price-current small { font-size: 12px; font-weight: 600; }
.price-original { color: var(--text-3); font-size: 12px; text-decoration: line-through; }
.product-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); }

/* ---------- 限时秒杀 ---------- */
.flash-sale { background: linear-gradient(135deg,#fff3f2,#fff); border-radius: 6px; padding: 18px; }
.flash-sale-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.flash-sale-title h3 { font-size: 20px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.flash-icon { animation: flash 1s infinite alternate; }
@keyframes flash { from{opacity:.6} to{opacity:1} }
.countdown { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); margin-left: 16px; }
.flash-sale-title { display: flex; align-items: center; }
.cd-num { background: #1a1a1a; color: #fff; padding: 2px 7px; border-radius: 4px; font-weight: 700; font-family: monospace; }
.cd-colon { font-weight: 700; }
.flash-sale-more { font-size: 13px; color: var(--text-3); }
.flash-sale-products { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }
.flash-product { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-light); }
.flash-product-img { aspect-ratio: 1/1; background: #f6f6f6; }
.flash-product-img img { width: 100%; height: 100%; object-fit: cover; }
.flash-product-info { padding: 8px; }
.flash-product-name { font-size: 12px; height: 34px; overflow: hidden; line-height: 1.4; color: var(--text-2); margin-bottom: 6px; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical; }
.flash-product-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.flash-product-price .new { color: var(--primary); font-weight: 800; font-size: 16px; }
.flash-product-price .new small { font-size: 11px; }
.flash-product-price .old { color: var(--text-3); font-size: 11px; text-decoration: line-through; }
.flash-progress { position: relative; height: 16px; background: #ffe0de; border-radius: 8px; overflow: hidden; font-size: 10px; }
.flash-progress-bar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg,#ff8a80,#e1251b); border-radius: 8px; }
.flash-progress span { position: relative; z-index: 2; color: #fff; font-weight: 600; display: block; text-align: center; line-height: 16px; }

/* ---------- 服务保障 ---------- */
.service-guarantee { background: #fff; border-radius: 6px; padding: 24px; display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.guarantee-item { display: flex; align-items: center; gap: 12px; justify-content: center; }
.guarantee-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.guarantee-text h4 { font-size: 15px; font-weight: 700; }
.guarantee-text p { font-size: 12px; color: var(--text-3); }

/* ---------- 面包屑 ---------- */
.list-breadcrumb, .detail-breadcrumb, .cart-breadcrumb { padding: 14px 0; font-size: 13px; color: var(--text-3); }
.list-breadcrumb a:hover, .detail-breadcrumb a:hover { color: var(--primary); }

/* ---------- 列表页 ---------- */
.list-layout { display: grid; grid-template-columns: 200px 1fr; gap: 14px; align-items: start; }
.sidebar-filter { background: #fff; border-radius: 6px; overflow: hidden; }
.filter-group { border-bottom: 1px solid var(--border-light); }
.filter-group-title { padding: 12px 16px; font-weight: 700; font-size: 14px; background: var(--bg-2); }
.filter-group-body { padding: 10px 16px; }
.filter-group-body ul li { padding: 6px 0; font-size: 13px; color: var(--text-2); cursor: pointer; display: flex; justify-content: space-between; }
.filter-group-body ul li:hover, .filter-group-body ul li.active { color: var(--primary); }
.filter-group-body .count { color: var(--text-3); font-size: 12px; }
.price-inputs { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.price-inputs input { width: 64px; border: 1px solid var(--border); border-radius: 4px; padding: 5px; font-size: 12px; }
.price-confirm { width: 100%; margin-top: 8px; background: var(--primary); color: #fff; padding: 6px; border-radius: 4px; font-size: 13px; }
.list-sort-bar { background: #fff; border-radius: 6px; padding: 0 16px; height: 44px; display: flex; align-items: center; gap: 24px; font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; }
.sort-item { cursor: pointer; }
.sort-item.active { color: var(--primary); font-weight: 700; }
.sort-item:hover { color: var(--primary); }
.list-sort-bar .divider { width: 1px; height: 16px; background: var(--border); }
.list-total { margin-left: auto; color: var(--text-3); font-size: 13px; }
.list-total b { color: var(--primary); }
.list-products .product-grid { grid-template-columns: repeat(4,1fr); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination a { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 13px; background: #fff; }
.pagination a.active, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 详情页 ---------- */
.detail-main { background: #fff; border-radius: 6px; padding: 20px; display: grid; grid-template-columns: 420px 1fr; gap: 30px; margin-bottom: 14px; }
.detail-main-img { border: 1px solid var(--border-light); border-radius: 6px; overflow: hidden; aspect-ratio: 1/1; background: #f6f6f6; }
.detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.detail-thumb { width: 64px; height: 64px; border: 2px solid var(--border); border-radius: 4px; overflow: hidden; cursor: pointer; }
.detail-thumb.active, .detail-thumb:hover { border-color: var(--primary); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.detail-subtitle { font-size: 13px; color: var(--primary); background: var(--primary-bg); padding: 8px 12px; border-radius: 4px; margin-bottom: 16px; }
.detail-price-block { background: linear-gradient(135deg,#fff3f2,#fff7f6); border-radius: 6px; padding: 16px 20px; margin-bottom: 16px; }
.detail-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.dp-label { color: var(--text-3); font-size: 13px; width: 50px; }
.dp-price { color: var(--primary); font-size: 32px; font-weight: 800; }
.dp-price small { font-size: 18px; }
.dp-original { color: var(--text-3); text-decoration: line-through; }
.dp-tag { background: var(--primary); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 4px; }
.detail-meta-row { display: flex; gap: 28px; font-size: 13px; color: var(--text-3); }
.detail-meta-row strong { color: var(--text-1); }
.detail-specs { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.detail-spec-group { display: flex; align-items: flex-start; margin-bottom: 14px; }
.spec-label { width: 50px; color: var(--text-3); font-size: 13px; padding-top: 5px; flex-shrink: 0; }
.spec-options { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-option { border: 1px solid var(--border); padding: 6px 14px; border-radius: 4px; font-size: 13px; cursor: pointer; }
.spec-option.active, .spec-option:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.detail-quantity { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.quantity-control { display: flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.quantity-control button { width: 32px; height: 32px; font-size: 18px; background: var(--bg-2); }
.quantity-control input { width: 50px; height: 32px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.stock-info { font-size: 13px; color: var(--text-3); }
.detail-actions { display: flex; gap: 12px; margin: 18px 0; }
.btn-add-cart, .btn-buy-now { flex: 1; height: 48px; border-radius: 4px; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-add-cart { background: #ffece8; color: var(--primary); border: 1px solid var(--primary); }
.btn-buy-now { background: var(--primary); color: #fff; }
.btn-buy-now:hover { background: var(--primary-dark); }
.btn-fav { width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 4px; color: var(--text-3); display: flex; align-items: center; justify-content: center; }
.btn-fav:hover { color: var(--primary); border-color: var(--primary); }
.detail-services { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-2); }
.svc-icon { color: var(--green); font-weight: 700; }
.detail-tabs { background: #fff; border-radius: 6px; overflow: hidden; }
.detail-tabs-header { display: flex; border-bottom: 2px solid var(--primary); }
.detail-tab { padding: 16px 28px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--text-2); }
.detail-tab.active { background: var(--primary); color: #fff; }
.detail-tab-content { padding: 28px; }
.detail-desc-section { margin-bottom: 36px; }
.detail-desc-section h4 { font-size: 18px; margin-bottom: 18px; padding-left: 10px; border-left: 4px solid var(--primary); }
.detail-desc-section p { color: var(--text-2); line-height: 2; margin-bottom: 14px; }
.detail-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.detail-feature { background: var(--bg-2); padding: 18px; border-radius: 6px; }
.detail-feature h5 { font-size: 15px; margin-bottom: 6px; }
.detail-feature p { font-size: 13px; color: var(--text-3); margin: 0; line-height: 1.7; }
.detail-img-show { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.detail-img-show img { border-radius: 6px; width: 100%; }
.detail-spec-table { width: 100%; border-collapse: collapse; }
.detail-spec-table td { border: 1px solid var(--border-light); padding: 11px 16px; font-size: 13.5px; }
.detail-spec-table td:first-child { width: 160px; background: var(--bg-2); color: var(--text-3); }
.review-summary { display: flex; gap: 30px; background: var(--bg-2); padding: 20px; border-radius: 6px; margin-bottom: 20px; align-items: center; }
.review-score { text-align: center; }
.review-score .score { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1; }
.review-score .stars { color: #ffa800; margin: 6px 0; }
.review-score .total { font-size: 12px; color: var(--text-3); }
.review-tags { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.review-tag { background: #fff; border: 1px solid var(--border); padding: 5px 12px; border-radius: 20px; font-size: 12.5px; cursor: pointer; }
.review-tag.active, .review-tag:hover { color: var(--primary); border-color: var(--primary); }
.review-item { padding: 18px 0; border-bottom: 1px solid var(--border-light); }
.review-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.review-user-name { font-weight: 600; font-size: 14px; }
.review-user-level { font-size: 12px; color: var(--text-3); }
.review-stars { margin-left: auto; color: #ffa800; }
.review-content { color: var(--text-2); line-height: 1.9; font-size: 14px; }
.review-imgs { display: flex; gap: 10px; margin: 10px 0; }
.review-imgs img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.review-meta { display: flex; gap: 24px; font-size: 12px; color: var(--text-3); margin-top: 8px; }

/* ---------- 购物车 ---------- */
.cart-title { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.cart-table { background: #fff; border-radius: 6px; overflow: hidden; }
.cart-table-header { display: grid; grid-template-columns: 50px 1fr 120px 140px 120px 80px; gap: 10px; padding: 14px 20px; background: var(--bg-2); font-size: 13px; color: var(--text-3); align-items: center; }
.cart-item { display: grid; grid-template-columns: 50px 1fr 120px 140px 120px 80px; gap: 10px; padding: 18px 20px; border-top: 1px solid var(--border-light); align-items: center; }
.cart-product-info { display: flex; gap: 12px; align-items: center; }
.cart-product-img { width: 72px; height: 72px; border: 1px solid var(--border-light); border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.cart-product-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-product-name { font-size: 13.5px; color: var(--text-1); display: block; margin-bottom: 6px; }
.cart-product-name:hover { color: var(--primary); }
.cart-product-spec { font-size: 12px; color: var(--text-3); background: var(--bg-2); display: inline-block; padding: 2px 8px; border-radius: 3px; }
.cart-price, .cart-subtotal { font-size: 14px; }
.cart-subtotal .subtotal { color: var(--primary); font-weight: 700; font-size: 16px; }
.cart-qty-control { display: inline-flex; border: 1px solid var(--border); border-radius: 4px; }
.cart-qty-control button { width: 28px; height: 28px; background: var(--bg-2); font-size: 16px; }
.cart-qty-control input { width: 44px; height: 28px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.cart-delete { color: var(--text-3); font-size: 13px; cursor: pointer; }
.cart-delete:hover { color: var(--primary); }
.cart-summary-bar { background: #fff; border-radius: 6px; margin-top: 14px; padding: 16px 20px; display: flex; align-items: center; gap: 24px; font-size: 14px; }
.batch-actions { display: flex; gap: 18px; color: var(--text-3); font-size: 13px; }
.batch-actions a:hover { color: var(--primary); }
.spacer { flex: 1; }
.cart-summary-info { display: flex; align-items: center; gap: 24px; }
.summary-item .label { color: var(--text-3); font-size: 13px; }
.summary-item .value { font-weight: 600; }
.summary-total { display: flex; align-items: baseline; }
.total-label { font-size: 13px; color: var(--text-2); }
.total-price { color: var(--primary); font-size: 26px; font-weight: 800; }
.total-price small { font-size: 15px; }
.btn-checkout { background: var(--primary); color: #fff; height: 50px; padding: 0 44px; border-radius: 4px; font-size: 17px; font-weight: 700; }
.btn-checkout:hover { background: var(--primary-dark); }

/* ---------- 内容页（about/contact） ---------- */
.page-card { background: #fff; border-radius: 6px; padding: 40px; }
.page-card h2 { font-size: 28px; text-align: center; margin-bottom: 24px; }
.page-prose { max-width: 920px; margin: 0 auto; color: var(--text-2); line-height: 2; font-size: 15px; }
.page-prose p { margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 36px 0; }
.stat-box { text-align: center; padding: 26px; background: var(--bg-2); border-radius: 8px; }
.stat-box .n { font-size: 34px; font-weight: 800; color: var(--primary); }
.stat-box .t { font-size: 14px; color: var(--text-3); margin-top: 6px; }
.info-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.info-table td { border: 1px solid var(--border-light); padding: 13px 16px; font-size: 14px; }
.info-table td:first-child { width: 150px; background: var(--bg-2); color: var(--text-3); }
.contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 36px; }
.contact-card { padding: 30px; background: var(--bg-2); border-radius: 8px; text-align: center; }
.contact-card .ci { font-size: 30px; margin-bottom: 12px; }
.contact-card h3 { font-size: 17px; margin-bottom: 8px; }
.contact-card .big { font-size: 22px; font-weight: 800; color: var(--primary); }

/* ---------- 页脚 ---------- */
.mall-footer { margin-top: 30px; background: #fff; border-top: 1px solid var(--border); }
.footer-help { border-bottom: 1px solid var(--border-light); }
.footer-help .container { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; padding: 32px 12px; }
.footer-col h5 { font-size: 15px; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; font-size: 13px; color: var(--text-3); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-hotline { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.footer-service-time { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.footer-kf-btn { display: inline-block; border: 1px solid var(--primary); color: var(--primary); padding: 6px 20px; border-radius: 4px; font-size: 13px; }
.footer-copyright { background: var(--bg-2); padding: 20px 0; font-size: 13px; color: var(--text-3); text-align: center; }
.footer-copyright p { margin-bottom: 8px; }
.footer-beian { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.footer-beian a:hover { color: var(--primary); }

/* ---------- 响应式：手机端 ---------- */
@media (max-width: 900px) {
  .mall-topbar { display: none; }
  .mall-header .container { flex-wrap: wrap; gap: 12px; }
  .mall-logo-text .cn { font-size: 18px; }
  .search-box { order: 3; flex-basis: 100%; max-width: 100%; }
  .header-cart { margin-left: auto; }
  .nav-categories { width: auto; flex: 1; font-size: 14px; }
  .category-menu { width: 100%; }
  .nav-menu { display: none; }
  .hero-layout { grid-template-columns: 1fr; }
  .side-categories { display: none; }
  .side-user { display: none; }
  .banner-carousel { height: 200px; }
  .banner-slide { padding: 20px; }
  .bs-content h2 { font-size: 20px; }
  .bs-content p { font-size: 12px; }
  .banner-img { font-size: 70px; }
  .cat-entries { grid-template-columns: repeat(5,1fr); }
  .product-grid, .product-grid.cols-6 { grid-template-columns: repeat(2,1fr); }
  .flash-sale-products { grid-template-columns: repeat(2,1fr); }
  .service-guarantee { grid-template-columns: repeat(2,1fr); gap: 18px; }
  .list-layout { grid-template-columns: 1fr; }
  .sidebar-filter { display: none; }
  .list-products .product-grid { grid-template-columns: repeat(2,1fr); }
  .list-sort-bar { gap: 14px; overflow-x: auto; white-space: nowrap; }
  .list-total { display: none; }
  .detail-main { grid-template-columns: 1fr; }
  .detail-features, .detail-img-show { grid-template-columns: 1fr; }
  .review-summary { flex-direction: column; gap: 14px; align-items: flex-start; }
  .cart-table-header { display: none; }
  .cart-item { grid-template-columns: 30px 1fr auto; grid-template-rows: auto auto; row-gap: 10px; }
  .cart-check { grid-row: span 2; }
  .cart-product-info { grid-column: 2/3; }
  .cart-price { display: none; }
  .cart-quantity-cell { grid-column: 2/3; }
  .cart-subtotal { grid-column: 3/4; grid-row: 1; }
  .cart-delete { grid-column: 3/4; grid-row: 2; }
  .cart-summary-bar { flex-wrap: wrap; gap: 12px; }
  .cart-summary-info { flex-wrap: wrap; gap: 12px; }
  .btn-checkout { width: 100%; }
  .footer-help .container { grid-template-columns: repeat(2,1fr); }
  .stat-grid, .contact-cards { grid-template-columns: 1fr; }
  .page-card { padding: 22px 16px; }
}
