/* ==========================================================================
   SUWU (素物集) - 极简明淡色清爽风格电商样式系统
   规范：浅灰背景配合白色卡片，深灰文字增强阅读感，严守无AI垃圾标签与3区顶栏契约
   ========================================================================== */

:root {
  --bg-canvas: #f5f6f8;
  --bg-canvas-alt: #f0f2f5;
  --surface-card: #ffffff;
  --surface-subtle: #f9fafb;
  --border-light: #e5e7eb;
  --border-subtle: #eeeff2;
  --text-main: #182026;
  --text-body: #39424e;
  --text-muted: #717d8d;
  --text-light: #9ba6b5;
  --brand-black: #111827;
  --brand-hover: #2d3748;
  --accent-blue: #2563eb;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-red: #dc2626;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.06);
  --max-w-content: 1240px;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* 布局版心 */
.container {
  width: 100%;
  max-width: var(--max-w-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   顶栏导航 (Top Bar Contract: 3-Zone Clean Header)
   ========================================================================== */
.site-header {
  background-color: var(--surface-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Zone 1: Brand Wordmark */
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 7px;
  height: 7px;
  background-color: var(--brand-black);
  border-radius: 1px;
}

.brand-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  border-left: 1px solid var(--border-light);
  padding-left: 10px;
  margin-left: 4px;
}

/* Zone 2: Navigation Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--text-main);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-black);
}

/* Zone 3: Actions & Search & Cart */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 180px;
  height: 36px;
  padding: 0 12px 0 32px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  transition: all 0.2s ease;
}

.header-search input:focus {
  outline: none;
  border-color: var(--text-main);
  background-color: #fff;
  width: 220px;
}

.header-search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
  position: relative;
}

.cart-btn:hover {
  background-color: #eef1f5;
  border-color: #d1d5db;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background-color: var(--brand-black);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.user-action-btn {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.user-action-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-canvas);
}

/* ==========================================================================
   页面通用组件与白色卡片
   ========================================================================== */
.page-main {
  flex: 1;
  padding-top: 24px;
  padding-bottom: 60px;
}

.page-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.page-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--text-main);
}

.breadcrumb-sep {
  color: var(--text-light);
  user-select: none;
}

.card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.card-padded {
  padding: 24px;
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary {
  background-color: var(--brand-black);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--brand-hover);
}

.btn-secondary {
  background-color: var(--surface-card);
  border-color: var(--border-light);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-canvas);
  border-color: #d1d5db;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.btn-lg {
  height: 48px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
}

.btn-danger-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-muted);
}

.btn-danger-outline:hover {
  border-color: #fca5a5;
  color: var(--accent-red);
  background-color: #fef2f2;
}

/* ==========================================================================
   商品卡片网格规范 (Product Cards & Grid)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #d8dde6;
}

.product-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f4f5f7;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.product-card:hover .product-thumb {
  transform: scale(1.02);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.product-desc-snippet {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.product-price small {
  font-size: 12px;
  font-weight: 500;
  margin-right: 2px;
}

.product-original-price {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}

.product-card-btn {
  height: 32px;
  width: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.product-card-btn:hover {
  background-color: var(--brand-black);
  border-color: var(--brand-black);
  color: #fff;
}

/* ==========================================================================
   首页专属 Hero 与分类横幅
   ========================================================================== */
.hero-banner {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}

.hero-text-content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-media-wrap {
  position: relative;
  min-height: 360px;
  background-color: #f0f2f5;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 首页 4-5 个精选分类横条 */
.category-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.category-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.category-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
}

.category-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  display: block;
}

.category-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* 特色保障条 */
.feature-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding: 24px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background-color: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
}

.trust-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.trust-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   列表页 Filter 控制条与排序
   ========================================================================== */
.list-filter-bar {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.filter-label {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 60px;
  flex-shrink: 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background-color: transparent;
  border: 1px solid transparent;
  color: var(--text-body);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-tab-btn:hover {
  background-color: var(--bg-canvas);
  color: var(--text-main);
}

.filter-tab-btn.active {
  background-color: var(--brand-black);
  color: #fff;
  font-weight: 500;
}

.filter-sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-btn {
  background: none;
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.sort-btn:hover {
  border-color: #cbd5e1;
  color: var(--text-main);
}

.sort-btn.active {
  border-color: var(--brand-black);
  background-color: var(--bg-canvas);
  color: var(--brand-black);
  font-weight: 600;
}

/* ==========================================================================
   商品详情页 PDP (Product Detail Page)
   ========================================================================== */
.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.pdp-gallery {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.pdp-main-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f7f8fa;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

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

.pdp-thumb-list {
  display: flex;
  gap: 12px;
}

.pdp-thumb-item {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.15s ease;
}

.pdp-thumb-item:hover,
.pdp-thumb-item.active {
  opacity: 1;
  border-color: var(--brand-black);
}

.pdp-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-info-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.pdp-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pdp-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 12px;
}

.pdp-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pdp-price-panel {
  background-color: var(--bg-canvas);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pdp-price-current {
  font-size: 30px;
  font-weight: 700;
  color: var(--brand-black);
}

.pdp-price-current small {
  font-size: 18px;
  font-weight: 500;
}

.pdp-price-orig {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
}

.pdp-spec-block {
  margin-bottom: 20px;
}

.spec-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 10px;
}

.spec-options {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.spec-group {
  display: grid;
  grid-template-columns: minmax(52px, auto) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.spec-group-label {
  padding-top: 9px;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.spec-group-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.spec-btn {
  max-width: 100%;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: center;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: #fff;
  color: var(--text-body);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.spec-btn:hover {
  border-color: #94a3b8;
}

.spec-btn:focus-visible {
  outline: 2px solid var(--brand-black);
  outline-offset: 2px;
}

.spec-btn.active {
  border-color: var(--brand-black);
  background-color: var(--brand-black);
  color: #fff;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #fff;
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background-color: #fff;
  color: var(--text-body);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background-color: var(--bg-canvas);
}

.qty-input {
  width: 50px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.pdp-action-buttons {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.pdp-merchant-card {
  margin-top: 24px;
  padding: 16px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.merchant-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.merchant-avatar {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-main);
}

.merchant-name-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.merchant-sub-text {
  display: grid;
  gap: 4px;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.merchant-contact-login {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 详情页下方选项卡 */
.pdp-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.pdp-tab-item {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.pdp-tab-item:hover {
  color: var(--text-main);
}

.pdp-tab-item.active {
  color: var(--text-main);
  font-weight: 600;
}

.pdp-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-black);
}

.pdp-tab-panel {
  display: none;
}

.pdp-tab-panel.active {
  display: block;
}

/* ==========================================================================
   购物车 (Cart Page)
   ========================================================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.cart-table-wrap {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.cart-table-header {
  display: grid;
  grid-template-columns: 48px 1fr 140px 140px 120px 60px;
  padding: 14px 20px;
  background-color: var(--surface-subtle);
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  align-items: center;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 48px 1fr 140px 140px 120px 60px;
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  transition: background-color 0.15s ease;
}

.cart-item-row:last-child {
  border-bottom: none;
}

.cart-item-row:hover {
  background-color: #fafbfc;
}

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

.cart-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background-color: #f2f4f7;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cart-item-spec {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-price-num {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
}

.cart-subtotal-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.cart-summary-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.summary-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 12px;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  margin-top: 16px;
  margin-bottom: 24px;
}

.summary-total-amount {
  font-size: 24px;
  color: var(--brand-black);
}

/* ==========================================================================
   商家详情页面 (Merchant Detail Page)
   ========================================================================== */
.merchant-banner-hero {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.merchant-profile-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.merchant-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background-color: var(--brand-black);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.merchant-hero-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.merchant-badges-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   商家入驻 (Merchant Join)
   ========================================================================== */
.join-step-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.step-node {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.step-node.active {
  color: var(--text-main);
  font-weight: 600;
}

.step-node.completed {
  color: var(--accent-emerald);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.step-node.active .step-num {
  background-color: var(--brand-black);
  border-color: var(--brand-black);
  color: #fff;
}

.step-node.completed .step-num {
  background-color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #fff;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--accent-red);
  margin-left: 2px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--text-main);
  font-size: 14px;
  transition: border-color 0.15s ease;
}

.form-textarea {
  height: 100px;
  padding: 10px 14px;
  resize: vertical;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-black);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   登录 / 注册 表单卡片 (Auth Pages)
   ========================================================================== */
.auth-wrapper {
  max-width: 440px;
  margin: 40px auto;
}

.auth-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.auth-tab-btn.active {
  color: var(--text-main);
  font-weight: 600;
}

.auth-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-black);
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button input {
  flex: 1;
}

/* ==========================================================================
   页脚 (Footer)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--surface-card);
  border-top: 1px solid var(--border-light);
  padding: 40px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.footer-brand-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom-bar {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   轻量 Toast 提示弹窗 (Toast Notification)
   ========================================================================== */
.suwu-toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.suwu-toast {
  min-width: 260px;
  max-width: 380px;
  padding: 12px 18px;
  background-color: var(--brand-black);
  color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 模态框通用 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  background-color: var(--surface-subtle);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .pdp-layout {
    grid-template-columns: 1fr;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .header-search input {
    width: 130px;
  }
  .hero-banner {
    grid-template-columns: 1fr;
  }
  .hero-text-content {
    padding: 32px 24px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-trust-strip {
    grid-template-columns: 1fr 1fr;
  }
  .cart-table-header {
    display: none;
  }
  .cart-item-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .join-step-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .merchant-banner-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* Keep the existing header usable on narrow screens without changing desktop styling. */
@media (max-width: 600px) {
  .header-inner { height: auto; min-height: 68px; flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .header-brand { flex: 1 1 0; min-width: 0; overflow: hidden; }
  .brand-logo-text { min-width: 0; font-size: 16px; }
  .brand-logo-text .site-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions { flex-shrink: 0; gap: 8px; }
  .header-search { display: none; }
  .header-nav { display: flex; order: 3; flex: 0 0 100%; min-width: 0; overflow-x: auto; gap: 18px; }
}
@media (max-width: 600px) {
  #index-merchants-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}
@media (max-width: 600px) {
  .pdp-gallery, .pdp-info-card { min-width: 0; }
  .pdp-thumb-list { max-width: 100%; overflow-x: auto; }
  .pdp-action-buttons { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .spec-group { grid-template-columns: 1fr; gap: 6px; }
  .spec-group-label { padding-top: 0; }
}

/* Long site names and composition navigation need room at tablet widths. */
@media (max-width: 1400px) {
  .header-inner { height: auto; min-height: 68px; flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
  .header-brand { flex: 1 1 0; min-width: 0; white-space: normal; }
  .brand-logo-text { min-width: 0; }
  .brand-logo-text .site-name { line-height: 1.3; overflow-wrap: anywhere; }
  .header-actions { margin-left: auto; gap: 10px; }
  .header-nav { display: flex; order: 3; flex: 0 0 100%; min-width: 0; max-width: 100%; gap: 24px; overflow-x: auto; }
}
