/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0f0f14;
  --bg-secondary: #1a1a24;
  --bg-card: #1e1e2d;
  --bg-card-hover: #252535;
  --bg-modal: #16161f;
  --accent: #7c3aed;
  --accent-light: #9b59f5;
  --accent-hover: #6d28d9;
  --gold: #d4a853;
  --red: #e74c3c;
  --green: #27ae60;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #606080;
  --border: #2a2a3d;
  --border-light: #333348;
  --price-color: #e85d75;
  --star-color: #f39c12;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.3);
  --transition: 0.22s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,20,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: 1px;
}
.logo-icon { font-size: 20px; }
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.search-box:focus-within { border-color: var(--accent); }
.search-input {
  background: none;
  border: none;
  outline: none;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-primary);
  width: 200px;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  padding: 7px 12px;
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition);
}
.search-btn:hover { color: var(--accent-light); }
.nav-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all var(--transition);
}
.nav-icon-btn:hover { border-color: var(--accent); }

/* ===== Main Content ===== */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* ===== Page Header ===== */
.page-header { margin-bottom: 20px; }
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Category Tabs ===== */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tab-btn {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.tab-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.filter-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 5px 10px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}
.filter-select:focus { border-color: var(--accent); }
.color-filters {
  display: flex;
  align-items: center;
  gap: 6px;
}
.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
}
.color-dot:hover { transform: scale(1.2); border-color: var(--accent); }
.color-more { background: var(--bg-card); border-style: dashed; }
.filter-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-label { font-size: 13px; color: var(--text-muted); }
.sort-btn {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.sort-btn:hover, .sort-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.view-toggle {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.view-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.view-btn.active, .view-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Product Card ===== */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(124,58,237,0.2);
}
.card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
}
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .card-img { transform: scale(1.06); }
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
}
.badge-hot { background: #e74c3c; color: #fff; }
.badge-new { background: #27ae60; color: #fff; }
.badge-sale { background: var(--accent); color: #fff; }
.card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .card-fav { opacity: 1; }
.card-body {
  padding: 12px 14px 14px;
}
.card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.stars { color: var(--star-color); font-size: 12px; }
.rating-score {
  font-size: 12px;
  color: var(--text-secondary);
}
.rating-count {
  font-size: 11px;
  color: var(--text-muted);
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-price { color: var(--price-color); font-size: 17px; font-weight: 700; }
.card-old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}
.card-sold {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== Loading Indicator ===== */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-indicator p {
  margin: 0;
  font-size: 14px;
}

/* ===== Pagination ===== */
.pagination {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.page-ellipsis { color: var(--text-muted); padding: 0 4px; }
.page-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.page-input {
  width: 44px;
  height: 34px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}
.page-input:focus { border-color: var(--accent); }
.page-go-btn {
  padding: 5px 12px;
  height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: background var(--transition);
}
.page-go-btn:hover { background: var(--accent-hover); }

/* ===== Modal Overlay ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== Modal ===== */
.modal {
  background: var(--bg-modal);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  width: 90vw;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--red); border-color: var(--red); color: #fff; }
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 24px;
}
@media (max-width: 700px) { .modal-body { grid-template-columns: 1fr; } }

/* Modal Left */
.modal-left { padding-right: 20px; }
.modal-main-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
  margin-bottom: 10px;
}
.modal-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.modal-main-img:hover { transform: scale(1.04); }
.modal-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
.modal-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.thumb-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
  background: var(--bg-secondary);
}
.thumb-img.active, .thumb-img:hover { border-color: var(--accent); }

/* Modal Right */
.modal-right { padding-left: 4px; }
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}
.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}
.modal-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.modal-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--price-color);
}
.modal-old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.modal-discount-badge {
  padding: 2px 8px;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* Promo */
.modal-promo {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.promo-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.promo-tag {
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.promo-tag.purple { background: var(--accent); color: #fff; }
.promo-tag.gray { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
.promo-text { color: var(--text-secondary); }
.promo-link { color: var(--accent-light); margin-left: 4px; }

/* Options */
.modal-option-section { margin-bottom: 14px; }
.option-label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.modal-colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modal-color-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.modal-color-btn.active, .modal-color-btn:hover {
  border-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.3);
}
.modal-sizes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modal-size-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.modal-size-btn.active, .modal-size-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(124,58,237,0.15);
}

/* Service info */
.modal-service-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.service-item {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

/* Contact Buttons */
.modal-contact-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.contact-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.contact-btn .contact-icon {
  font-size: 15px;
  font-style: normal;
  width: 20px;
  height: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-btn.telegram { background: #229ED9; }
.contact-btn.facebook { background: #1877F2; }
.contact-btn.twitter { background: #000; border-color: #333; }
.contact-btn.ins {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.fixed-contact-btn {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #229ED9;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  transition: transform var(--transition), background var(--transition);
}
.fixed-contact-btn:hover {
  transform: translateY(-50%) scale(1.02);
  background: #1a86bb;
}
.fixed-contact-btn .contact-icon {
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .fixed-contact-btn {
    right: 16px;
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 0 24px;
}
.modal-tab {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.modal-tab:hover { color: var(--text-primary); }
.modal-tab.active {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
}
.modal-tab-content { padding: 20px 24px 24px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Product highlights */
.product-highlights h4 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 600;
}
.product-highlights ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.product-highlights li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
  line-height: 1.6;
}
.product-highlights li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-light);
}
.product-params-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.param-cell {
  background: var(--bg-secondary);
  padding: 10px 14px;
  font-size: 12px;
}
.param-cell .param-key { color: var(--text-muted); margin-bottom: 2px; }
.param-cell .param-val { color: var(--text-primary); font-weight: 500; }

/* Params Table */
.params-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.params-table tr { border-bottom: 1px solid var(--border); }
.params-table tr:last-child { border-bottom: none; }
.params-table td { padding: 10px 14px; }
.params-table td:first-child { color: var(--text-muted); width: 35%; background: var(--bg-secondary); }
.params-table td:last-child { color: var(--text-primary); }

/* Reviews */
.reviews-placeholder {
  text-align: center;
  padding: 30px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-card {
  animation: fadeInUp 0.35s ease both;
}
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

/* ===================================================
   📱 移动端适配 - Mobile Responsive
   =================================================== */

/* ===== 平板 ≤ 1024px ===== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .search-input { width: 150px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .filter-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .filter-right { width: 100%; justify-content: flex-end; }
}

/* ===== 手机 ≤ 768px ===== */
@media (max-width: 768px) {

  /* --- 导航栏 --- */
  .nav-inner {
    padding: 0 14px;
    height: 54px;
    gap: 12px;
  }
  .nav-logo { font-size: 15px; }
  .logo-icon { font-size: 17px; }
  .nav-links { display: none; }
  .search-box { flex: 1; }
  .search-input { width: 100%; min-width: 0; font-size: 14px; }
  .nav-icon-btn { flex-shrink: 0; }

  /* --- 主内容区 --- */
  .main-content { padding: 16px 12px 50px; }

  /* --- 页面标题 --- */
  .page-title { font-size: 18px; }
  .page-subtitle { font-size: 12px; }

  /* --- 分类标签 横向滚动 --- */
  .category-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 13px;
  }

  /* --- 筛选栏 折叠 --- */
  .filter-bar {
    padding: 10px 12px;
    gap: 10px;
  }
  .filter-left {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }
  .filter-group label { display: none; } /* 手机隐藏label节省空间 */
  .filter-select { font-size: 12px; padding: 5px 8px; }
  .color-filters { display: none; } /* 颜色筛选手机隐藏 */
  .filter-right {
    width: 100%;
    justify-content: space-between;
  }
  .sort-label { display: none; }
  .sort-btn { font-size: 12px; padding: 4px 10px; }

  /* --- 商品网格 手机2列 --- */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* --- 商品卡片 --- */
  .card-body { padding: 10px 10px 12px; }
  .card-name { font-size: 13px; }
  .card-desc { font-size: 11px; -webkit-line-clamp: 2; }
  .card-price { font-size: 15px; }
  .card-old-price { font-size: 11px; }
  .card-sold { font-size: 10px; }
  .stars { font-size: 11px; }
  .rating-score { font-size: 11px; }
  .rating-count { display: none; }

  /* --- 分页 --- */
  .pagination { gap: 4px; }
  .page-btn { min-width: 30px; height: 30px; font-size: 13px; }
  .page-jump { display: none; } /* 手机隐藏跳页 */
  /* 手机只显示前5个页码按钮 */
  .page-btn:nth-child(n+7):not(.next-btn):not(.prev-btn) { display: none; }
  .page-ellipsis { display: none; }

  /* --- 弹窗 --- */
  .modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
  }
  .modal-overlay {
    align-items: flex-end;
  }
  .modal-overlay.active .modal {
    transform: translateY(0) scale(1);
  }
  .modal-body {
    grid-template-columns: 1fr;
    padding: 16px 14px 0;
    gap: 0;
  }

  /* --- 弹窗左侧图片区 --- */
  .modal-left { padding-right: 0; margin-bottom: 14px; }
  .modal-main-img-wrap { padding-top: 75%; } /* 手机比例更宽 */
  .thumb-img { width: 46px; height: 46px; }

  /* --- 弹窗右侧信息区 --- */
  .modal-right { padding-left: 0; }
  .modal-title { font-size: 16px; }
  .modal-desc { font-size: 12px; }
  .modal-price { font-size: 22px; }
  .modal-old-price { font-size: 13px; }

  /* --- 弹窗优惠区 --- */
  .modal-promo { padding: 8px 10px; }
  .promo-text { font-size: 11px; }

  /* --- 客服按钮 手机2x2布局 --- */
  .modal-contact-btns {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 4px;
  }
  .contact-btn { padding: 9px 8px; font-size: 13px; }

  /* --- 弹窗底部标签 --- */
  .modal-tabs { padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
  .modal-tabs::-webkit-scrollbar { display: none; }
  .modal-tab { padding: 11px 14px; font-size: 13px; white-space: nowrap; }
  .modal-tab-content { padding: 16px 14px 20px; }

  /* --- 参数网格 手机2列 --- */
  .product-params-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-close { top: 10px; right: 12px; }

  /* --- 服务信息 --- */
  .modal-service-info { gap: 4px; }
  .service-item { font-size: 10px; padding: 2px 6px; }

  /* --- 选项区 --- */
  .modal-option-section { margin-bottom: 12px; }
  .modal-size-btn { font-size: 11px; padding: 5px 10px; }
}

/* ===== 小手机 ≤ 390px ===== */
@media (max-width: 390px) {
  .product-grid { gap: 8px; }
  .card-name { font-size: 12px; }
  .card-price { font-size: 14px; }
  .modal-title { font-size: 15px; }
  .modal-price { font-size: 20px; }
  .contact-btn { font-size: 12px; padding: 8px 6px; gap: 4px; }
  .tab-btn { padding: 5px 12px; font-size: 12px; }
}

/* ===== 移动端底部安全区（iPhone刘海屏）===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .modal {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .main-content {
    padding-bottom: calc(50px + env(safe-area-inset-bottom));
  }
}

/* ===== 汉堡菜单 & 移动端抽屉 ===== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
}
.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 8px 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.mobile-menu.open {
  max-height: 300px;
  padding: 8px 0;
}
.mobile-nav-link {
  padding: 12px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  display: block;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover, .mobile-nav-link:active {
  background: var(--bg-card);
  color: var(--text-primary);
  padding-left: 26px;
}

@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  .mobile-menu { display: flex; }
  .nav-icon-btn { display: none; } /* 手机隐藏头像按钮，节省空间 */
}
