/* 千舟星月商城 · 桌面网页版（参考主流电商 PC 站布局，通管局审核友好） */
:root {
  --mall-bg: #f5f5f5;
  --mall-card: #ffffff;
  --mall-text: #3c3c3c;
  --mall-sub: #666666;
  --mall-muted: #999999;
  --mall-line: #e8e8e8;
  --mall-accent: #ff5000;
  --mall-accent-dark: #e64500;
  --mall-price: #ff5000;
  --mall-link: #3c3c3c;
  --mall-blue: #1677ff;
  --mall-container: 1190px;
  --mall-sidebar: 200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--mall-text);
  background: var(--mall-bg);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--mall-blue); text-decoration: none; }
a:hover { color: var(--mall-accent); }

.mall-container {
  max-width: var(--mall-container);
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== 顶栏 ========== */
.mall-topbar {
  background: #f5f5f5;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #6c6c6c;
}
.mall-topbar-inner {
  max-width: var(--mall-container);
  margin: 0 auto;
  padding: 0 15px;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mall-topbar-left,
.mall-topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.mall-topbar a {
  color: #6c6c6c;
  text-decoration: none;
}
.mall-topbar a:hover { color: var(--mall-accent); }
.mall-topbar .sep { color: #ddd; user-select: none; }

/* ========== 主头部 ========== */
.mall-header {
  background: #fff;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--mall-line);
}
.mall-header-inner {
  max-width: var(--mall-container);
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.mall-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mall-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
}
.mall-logo:hover { color: var(--mall-text); text-decoration: none; }
.mall-logo img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}
.mall-logo-sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--mall-muted);
  margin-top: 2px;
  letter-spacing: 0;
}

.mall-search-wrap { min-width: 0; }
.mall-search {
  display: flex;
  height: 42px;
  border: 2px solid var(--mall-accent);
  background: #fff;
}
.mall-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}
.mall-search input::placeholder { color: #bbb; }
.mall-search button {
  background: var(--mall-accent);
  color: #fff;
  border: 0;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.mall-search button:hover { background: var(--mall-accent-dark); }
.mall-hotwords {
  margin-top: 6px;
  font-size: 12px;
  color: var(--mall-muted);
}
.mall-hotwords a {
  color: var(--mall-muted);
  margin-right: 12px;
  text-decoration: none;
}
.mall-hotwords a:hover { color: var(--mall-accent); }

.mall-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.mall-header-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
}
.mall-header-links a {
  color: var(--mall-sub);
  text-decoration: none;
}
.mall-header-links a:hover { color: var(--mall-accent); }

/* 登录区（顶栏 + 头部共用） */
.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 12px;
}
.auth-link {
  color: var(--mall-sub);
  text-decoration: none;
  padding: 2px 0;
}
.auth-link:hover { color: var(--mall-accent); text-decoration: none; }
.auth-register {
  color: var(--mall-accent) !important;
  font-weight: 600;
}
.auth-user {
  color: var(--mall-sub);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
button.auth-logout {
  border: 1px solid var(--mall-line);
  background: #fff;
  color: var(--mall-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 2px;
}
button.auth-logout:hover { border-color: var(--mall-accent); color: var(--mall-accent); }

/* ========== 主导航条 ========== */
.mall-navstrip {
  background: #fff;
  border-bottom: 1px solid var(--mall-line);
}
.mall-navstrip-inner {
  max-width: var(--mall-container);
  margin: 0 auto;
  padding: 0 15px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.mall-navstrip a {
  color: var(--mall-text);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}
.mall-navstrip a:hover,
.mall-navstrip a.active {
  color: var(--mall-accent);
  border-bottom-color: var(--mall-accent);
}

/* ========== 淘宝风首页 ========== */
.tb-home { background: #f4f4f4; }

.tb-promo-strip {
  background: linear-gradient(90deg, #ff8a65 0%, #ff6b6b 50%, #ff8a65 100%);
  color: #fff;
  font-size: 12px;
}
.tb-promo-strip-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 15px;
}
.tb-promo-chips { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.tb-chip {
  padding: 2px 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  white-space: nowrap;
}
.tb-promo-go {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
}
.tb-promo-go:hover { background: rgba(255,255,255,0.15); color: #fff; }

.tb-search-header {
  background: #fff;
  padding: 20px 0 12px;
}
.tb-search-header-inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.tb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--mall-text);
}
.tb-brand:hover { text-decoration: none; color: var(--mall-text); }
.tb-brand img { width: 80px; height: 80px; border-radius: 12px; }
.tb-brand-text { display: flex; flex-direction: column; }
.tb-brand-name {
  font-size: 42px;
  font-weight: 900;
  color: var(--mall-accent);
  line-height: 1;
  letter-spacing: -1px;
}
.tb-brand-tag {
  margin-top: 6px;
  font-size: 13px;
  color: var(--mall-muted);
  padding-left: 4px;
  border-left: 3px solid var(--mall-line);
}

.tb-search-area { padding-top: 8px; }
.tb-search-form {
  display: flex;
  height: 44px;
  border: 2px solid var(--mall-accent);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}
.tb-search-cat {
  border: 0;
  border-right: 1px solid #eee;
  padding: 0 12px;
  font-size: 13px;
  color: var(--mall-sub);
  background: #fafafa;
  max-width: 110px;
  outline: none;
  cursor: pointer;
}
.tb-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
}
.tb-search-form button {
  background: var(--mall-accent);
  color: #fff;
  border: 0;
  padding: 0 36px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 20px 20px 0;
}
.tb-search-form button:hover { background: var(--mall-accent-dark); }

/* 三栏 Hero */
.tb-hero {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  gap: 10px;
  margin-bottom: 12px;
  min-height: 400px;
}

.tb-cat-panel {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.tb-cat-title {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mall-accent);
  border-bottom: 1px solid #f5f5f5;
}
.tb-cat-list { list-style: none; padding: 4px 0; }
.tb-cat-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--mall-text);
}
.tb-cat-list li:hover,
.tb-cat-list li.active {
  background: #fff7f0;
  color: var(--mall-accent);
}
.tb-cat-icon { width: 18px; text-align: center; flex-shrink: 0; }
.tb-cat-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-cat-list .arrow { color: #ccc; font-size: 11px; }

.tb-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
  min-height: 400px;
}
.tb-carousel-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mall-muted);
  font-size: 14px;
  background: #f5f5f5;
}
.tb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: flex-end;
  background-color: #eee;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  color: #fff;
}
.tb-slide.active { opacity: 1; z-index: 1; }
.tb-slide:hover { text-decoration: none; color: #fff; }
.tb-slide-cap {
  width: 100%;
  padding: 48px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.08) 70%, transparent 100%);
}
.tb-slide-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  max-height: 2.7em;
  overflow: hidden;
}
.tb-slide-price {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.95;
}
.tb-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.tb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}
.tb-dot.active { background: #fff; width: 20px; border-radius: 4px; }

.tb-side-tiles {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
}
.tb-tile {
  border-radius: 10px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--mall-text);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.tb-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none;
  color: var(--mall-text);
}
.tb-tile img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
}
.tb-tile-body { min-width: 0; }
.tb-tile-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tb-tile-price {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--mall-price);
}
.tb-tile-cat {
  margin-top: 2px;
  font-size: 11px;
  color: var(--mall-muted);
}
.tb-tile-skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, #f0f0f0 25%, #fafafa 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: tb-shimmer 1.2s infinite;
}
.tb-tile-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mall-muted);
  font-size: 13px;
  background: #fff;
  border-radius: 10px;
}
@keyframes tb-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tb-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 12px;
  flex-wrap: wrap;
}
.tb-section-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--mall-text);
}
.tb-heart { color: var(--mall-accent); font-size: 18px; }
.tb-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.tb-float-bar {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  padding: 6px 0;
  width: 52px;
}
.tb-float-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  color: var(--mall-sub);
  text-decoration: none;
  font-size: 11px;
  border-bottom: 1px solid #f5f5f5;
}
.tb-float-item:last-child { border-bottom: 0; }
.tb-float-item span { font-size: 20px; line-height: 1.2; }
.tb-float-item:hover { color: var(--mall-accent); background: #fff7f0; text-decoration: none; }

/* ========== 首页布局（旧类保留兼容） ========== */
.mall-main { padding: 12px 0 40px; }

.mall-home-banner-row {
  display: grid;
  grid-template-columns: var(--mall-sidebar) 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.mall-cat-sidebar {
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  min-height: 360px;
  padding: 8px 0;
  font-size: 13px;
}
.mall-cat-sidebar li {
  list-style: none;
  padding: 9px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mall-cat-sidebar li:hover,
.mall-cat-sidebar li.active {
  background: var(--mall-accent);
}
.mall-cat-sidebar .arrow { opacity: 0.5; font-size: 11px; }

.mall-promo-panel {
  background: linear-gradient(135deg, #fff5f0 0%, #fff 50%, #f0f7ff 100%);
  border: 1px solid var(--mall-line);
  min-height: 360px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mall-promo-panel h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--mall-text);
  margin-bottom: 10px;
}
.mall-promo-panel p {
  font-size: 15px;
  color: var(--mall-sub);
  max-width: 520px;
  line-height: 1.7;
}
.mall-promo-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mall-promo-tags span {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--mall-line);
  font-size: 13px;
  color: var(--mall-sub);
}

.mall-filter-bar {
  background: #fff;
  border: 1px solid var(--mall-line);
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.mall-filter-bar .label {
  font-size: 13px;
  color: var(--mall-muted);
  margin-right: 4px;
}
.mall-cat-tab {
  padding: 4px 14px;
  font-size: 13px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mall-sub);
  cursor: pointer;
  border-radius: 2px;
}
.mall-cat-tab:hover { color: var(--mall-accent); }
.mall-cat-tab.active {
  color: var(--mall-accent);
  border-color: var(--mall-accent);
  background: #fff7f0;
}

.mall-shops-row {
  background: #fff;
  border: 1px solid var(--mall-line);
  padding: 10px 16px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--mall-sub);
}
.mall-shop-tag {
  display: inline-block;
  margin: 2px 8px 2px 0;
  padding: 2px 10px;
  background: #fafafa;
  border: 1px solid var(--mall-line);
  color: var(--mall-sub);
  font-size: 12px;
}

/* 商品网格 — 桌面 5 列 */
.mall-product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.mall-product-card {
  background: var(--mall-card);
  border: 1px solid var(--mall-line);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.mall-product-card:hover {
  border-color: var(--mall-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}
.mall-product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #fafafa;
}
.mall-product-card .body { padding: 10px 10px 12px; }
.mall-product-card .title {
  font-size: 13px;
  line-height: 1.45;
  height: 2.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--mall-text);
}
.mall-product-card .meta {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.mall-product-card .price {
  color: var(--mall-price);
  font-size: 18px;
  font-weight: 700;
}
.mall-product-card .price small { font-size: 12px; }
.mall-product-card .orig {
  color: var(--mall-muted);
  font-size: 12px;
  text-decoration: line-through;
}
.mall-product-card .sales {
  color: var(--mall-muted);
  font-size: 12px;
  margin-left: auto;
}
.mall-product-card .shop {
  margin-top: 6px;
  font-size: 12px;
  color: var(--mall-muted);
}
.mall-product-card .tag {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--mall-accent);
  border: 1px solid #ffd6c2;
  background: #fff7f0;
}

.mall-empty,
.mall-loading {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--mall-line);
  text-align: center;
  padding: 60px 20px;
  color: var(--mall-muted);
  font-size: 14px;
}

/* ========== 商品详情 — 桌面双栏 ========== */
.pd-breadcrumb {
  padding: 12px 0;
  font-size: 12px;
  color: var(--mall-muted);
}
.pd-breadcrumb a { color: var(--mall-muted); }
.pd-breadcrumb a:hover { color: var(--mall-accent); }

.pd-main {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}
.pd-gallery-box {
  background: #fff;
  border: 1px solid var(--mall-line);
  padding: 16px;
}
.pd-gallery-wrap {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.pd-gallery-thumbs-v {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}
.pd-gallery-thumbs-v img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border: 2px solid var(--mall-line);
  cursor: pointer;
  background: #fafafa;
  display: block;
}
.pd-gallery-thumbs-v img.active,
.pd-gallery-thumbs-v img:hover {
  border-color: var(--mall-accent);
}
.pd-gallery-main-wrap {
  position: relative;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}
.pd-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fafafa;
  display: block;
}
.pd-gallery-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 10px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 12px;
  border-radius: 10px;
}
.pd-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.pd-gallery-thumbs img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border: 2px solid var(--mall-line);
  cursor: pointer;
  background: #fafafa;
}
.pd-gallery-thumbs img.active,
.pd-gallery-thumbs img:hover {
  border-color: var(--mall-accent);
}

.pd-info-box {
  background: #fff;
  border: 1px solid var(--mall-line);
  padding: 20px 24px 24px;
  position: sticky;
  top: 12px;
}
.pd-promo-strip {
  margin: 0 -24px 16px;
  padding: 12px 24px;
  background: linear-gradient(90deg, #ff5000, #ff7a45);
  color: #fff;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.pd-promo-strip .pd-price { color: #fff; font-size: 36px; }
.pd-promo-strip .pd-price small { font-size: 18px; }
.pd-promo-strip .pd-price-orig { color: rgba(255,255,255,0.85); font-size: 14px; }
.pd-promo-label { font-size: 13px; opacity: 0.95; }
.pd-sales-row {
  font-size: 13px;
  color: var(--mall-muted);
  margin-bottom: 12px;
}
.pd-sales-row strong { color: var(--mall-text); font-weight: 600; }
.pd-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}
.pd-service-tag {
  font-size: 12px;
  color: var(--mall-sub);
  padding: 2px 0;
}
.pd-service-tag::before {
  content: "✓ ";
  color: var(--mall-accent);
  font-weight: 700;
}
.pd-info-box h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 14px;
}
.pd-price-panel {
  background: #fff7f0;
  border: 1px dashed #ffd6c2;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.pd-price {
  color: var(--mall-price);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.pd-price small { font-size: 16px; }
.pd-price-orig {
  color: var(--mall-muted);
  font-size: 14px;
  text-decoration: line-through;
}
.pd-price-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--mall-sub);
}
.pd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.pd-pill {
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid #ffd6c2;
  color: var(--mall-accent);
  background: #fff7f0;
}
.pd-pill-grey {
  border-color: var(--mall-line);
  color: var(--mall-sub);
  background: #fafafa;
}

.pd-kv-list { border-top: 1px solid var(--mall-line); }
.pd-kv-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}
.pd-kv-row .k {
  width: 72px;
  flex-shrink: 0;
  color: var(--mall-muted);
}
.pd-kv-row .v { flex: 1; color: var(--mall-text); }
.pd-kv-row.clickable { cursor: pointer; }
.pd-kv-row.clickable:hover .v { color: var(--mall-accent); }

.pd-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 13px;
}
.pd-qty {
  display: inline-flex;
  border: 1px solid var(--mall-line);
}
.pd-qty button {
  width: 32px;
  height: 32px;
  border: 0;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 16px;
}
.pd-qty input {
  width: 48px;
  height: 32px;
  border: 0;
  border-left: 1px solid var(--mall-line);
  border-right: 1px solid var(--mall-line);
  text-align: center;
  font-size: 14px;
}

.pd-buy-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.pd-btn-buy {
  min-width: 160px;
  height: 48px;
  border: 0;
  background: var(--mall-accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.pd-btn-buy:hover { background: var(--mall-accent-dark); }
.pd-btn-cart {
  min-width: 160px;
  height: 48px;
  border: 1px solid var(--mall-accent);
  background: #fff7f0;
  color: var(--mall-accent);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.pd-btn-cart:hover { background: #fff0e6; }

.pd-guarantee {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--mall-line);
  font-size: 12px;
  color: var(--mall-sub);
}
.pd-guarantee span::before {
  content: "✓ ";
  color: var(--mall-accent);
  font-weight: 700;
}

/* 详情下方全宽区块 */
.pd-section {
  background: #fff;
  border: 1px solid var(--mall-line);
  margin-bottom: 12px;
}
.pd-section-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--mall-line);
  font-size: 15px;
  font-weight: 700;
}
.pd-section-body { padding: 16px; }

.pd-shop-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}
.pd-shop-icon {
  width: 48px;
  height: 48px;
  background: #fff7f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid var(--mall-line);
}
.pd-shop-name { font-size: 15px; font-weight: 700; }
.pd-shop-sub { font-size: 12px; color: var(--mall-muted); margin-top: 4px; }
.pd-shop-btn {
  margin-left: auto;
  padding: 8px 20px;
  border: 1px solid var(--mall-accent);
  color: var(--mall-accent);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
}
.pd-shop-btn:hover { background: #fff7f0; text-decoration: none; }

.pd-rec-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 16px;
}
.pd-rec-item {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.pd-rec-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fafafa;
  border: 1px solid var(--mall-line);
}
.pd-rec-item .t {
  margin-top: 6px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pd-rec-item .p {
  color: var(--mall-price);
  font-size: 14px;
  font-weight: 700;
}

.pd-detail-text {
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.pd-long-imgs img {
  width: 100%;
  display: block;
  background: #fafafa;
}

/* 详情区 — 单页纵向滚动 + 锚点导航 */
.pd-detail-panel {
  background: #fff;
  border: 1px solid var(--mall-line);
  margin-bottom: 16px;
}
.pd-section-nav {
  display: flex;
  border-bottom: 2px solid #f0f0f0;
  padding: 0 16px;
  gap: 4px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}
.pd-section-nav a {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mall-sub);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}
.pd-section-nav a:hover { color: var(--mall-accent); }
.pd-section-nav a.active {
  color: var(--mall-accent);
  border-bottom-color: var(--mall-accent);
}
.pd-detail-section {
  padding: 24px 24px 32px;
  border-bottom: 1px solid #f0f0f0;
}
.pd-detail-section:last-child { border-bottom: 0; }
.pd-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px;
  padding-left: 10px;
  border-left: 3px solid var(--mall-accent);
}

.pd-spec-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #f0f0f0;
  border: 1px solid #f0f0f0;
  margin-bottom: 20px;
}
.pd-spec-hl {
  background: #fafafa;
  padding: 16px 14px;
  text-align: center;
}
.pd-spec-hl .hl-k {
  font-size: 12px;
  color: var(--mall-muted);
  margin-bottom: 6px;
}
.pd-spec-hl .hl-v {
  font-size: 14px;
  font-weight: 700;
  color: var(--mall-text);
  line-height: 1.35;
}

.pd-spec-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid #f0f0f0;
  font-size: 13px;
}
.pd-spec-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid #f5f5f5;
  min-height: 44px;
}
.pd-spec-row:nth-child(odd) { background: #fafafa; }
.pd-spec-row .sk {
  padding: 10px 14px;
  color: var(--mall-muted);
  border-right: 1px solid #f5f5f5;
}
.pd-spec-row .sv {
  padding: 10px 14px;
  color: var(--mall-text);
  font-weight: 500;
}

.pd-block-title {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--mall-accent);
}
.pd-block-title:first-child { margin-top: 0; }

.pd-package-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  font-size: 13px;
  color: var(--mall-sub);
}
.pd-package-list li { list-style: none; padding: 6px 0; }
.pd-package-list li::before { content: "· "; color: var(--mall-accent); font-weight: 700; }

.pd-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin: 16px 0;
}
.pd-feature-item {
  font-size: 13px;
  color: var(--mall-text);
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}
.pd-feature-item::before {
  content: "◆ ";
  color: var(--mall-accent);
  font-size: 10px;
}

.pd-detail-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--mall-text);
  margin-bottom: 20px;
  padding: 16px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}
.pd-detail-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--mall-sub);
  white-space: pre-wrap;
  margin-bottom: 20px;
}
.pd-detail-banner {
  text-align: center;
  padding: 32px 20px;
  background: linear-gradient(135deg, #1a3a5c, #2d5a87);
  color: #fff;
  margin-bottom: 16px;
}
.pd-detail-banner h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.pd-detail-banner p { font-size: 14px; opacity: 0.9; }

.pd-review {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
}
.pd-review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff7f0;
  color: var(--mall-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* 移动端底栏 — 仅小屏 */
.pd-bottom-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--mall-line);
  padding: 8px 12px;
}
.pd-bottom-inner {
  max-width: var(--mall-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== 通用面板 / 结算页 ========== */
.wrap-main { padding: 16px 0 40px; }
.panel {
  background: var(--mall-card);
  border: 1px solid var(--mall-line);
  padding: 20px;
  margin-bottom: 12px;
}
.panel h2, .panel h3 { font-size: 16px; margin-bottom: 12px; font-weight: 700; }
.muted { color: var(--mall-muted); font-size: 13px; }
.breadcrumb { font-size: 12px; color: var(--mall-muted); margin-bottom: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn-primary { background: var(--mall-accent); color: #fff; }
.btn-primary:hover { background: var(--mall-accent-dark); text-decoration: none; }
.btn-ghost {
  background: #fff;
  color: var(--mall-text);
  border: 1px solid var(--mall-line);
}
.btn-block { width: 100%; }
.price { color: var(--mall-price); font-weight: 700; }
.price-lg { font-size: 24px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--mall-sub); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--mall-line);
  font-size: 14px;
}
.field textarea { min-height: 72px; resize: vertical; }

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--mall-line);
  padding: 0;
}
.step {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--mall-muted);
  border-right: 1px solid var(--mall-line);
  text-align: center;
}
.step:last-child { border-right: 0; }
.step.active { color: var(--mall-accent); font-weight: 700; background: #fff7f0; }
.step.done { color: var(--mall-sub); }

.pay-options { display: flex; flex-direction: column; gap: 8px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--mall-line);
  cursor: pointer;
  background: #fff;
}
.pay-option.active { border-color: var(--mall-accent); background: #fff7f0; }
.notice {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #ad6800;
  font-size: 13px;
}

/* Sheet / 弹层 */
.sheet-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sheet-mask.open { display: flex; }
.sheet {
  width: min(560px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--mall-line);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--mall-line);
  font-weight: 700;
}
.sheet-head button {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: #999;
  cursor: pointer;
}
.param-row {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}
.param-row .k { width: 80px; color: var(--mall-muted); flex-shrink: 0; }

/* ========== 页脚 ========== */
.mall-footer {
  background: #fff;
  border-top: 1px solid var(--mall-line);
  margin-top: 24px;
  padding: 32px 0 24px;
  font-size: 12px;
  color: var(--mall-muted);
}
.mall-footer-grid {
  max-width: var(--mall-container);
  margin: 0 auto;
  padding: 0 15px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--mall-line);
}
.mall-footer-grid h4 {
  font-size: 14px;
  color: var(--mall-text);
  margin-bottom: 12px;
  font-weight: 700;
}
.mall-footer-grid a {
  display: block;
  color: var(--mall-muted);
  margin-bottom: 8px;
  text-decoration: none;
}
.mall-footer-grid a:hover { color: var(--mall-accent); }
.mall-footer-bottom {
  max-width: var(--mall-container);
  margin: 0 auto;
  padding: 16px 15px 0;
  text-align: center;
  line-height: 1.8;
}
.mall-footer-bottom a { color: var(--mall-muted); }

/* ========== 登录页 ========== */
.auth-wrap {
  max-width: 420px;
  margin: 32px auto 48px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--mall-line);
  padding: 28px 28px 24px;
}
.auth-card h1 { font-size: 20px; margin-bottom: 6px; }
.auth-card .sub { color: var(--mall-muted); font-size: 13px; margin-bottom: 18px; }
.tabs {
  display: flex;
  border-bottom: 1px solid var(--mall-line);
  margin-bottom: 20px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--mall-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.active { color: var(--mall-accent); border-bottom-color: var(--mall-accent); }
.pane { display: none; }
.pane.active { display: block; }

.loading-box {
  background: #fff;
  border: 1px solid var(--mall-line);
  padding: 80px 20px;
  text-align: center;
  color: var(--mall-muted);
}

/* ========== 响应式：平板 / 手机 ========== */
@media (max-width: 1100px) {
  .mall-product-grid { grid-template-columns: repeat(4, 1fr); }
  .pd-rec-grid { grid-template-columns: repeat(4, 1fr); }
  .mall-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .mall-header-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mall-header-actions { align-items: flex-start; }
  .tb-search-header-inner { grid-template-columns: 1fr; gap: 16px; }
  .tb-brand-name { font-size: 32px; }
  .tb-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .tb-carousel { min-height: 220px; aspect-ratio: 16/9; }
  .tb-side-tiles {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
  }
  .tb-cat-list { display: flex; flex-wrap: wrap; padding: 8px; }
  .tb-cat-list li { padding: 6px 10px; border-radius: 4px; }
  .tb-float-bar { display: none; }
  .mall-home-banner-row { grid-template-columns: 1fr; }
  .mall-cat-sidebar { min-height: auto; }
  .mall-cat-sidebar ul { display: flex; flex-wrap: wrap; padding: 4px; }
  .mall-cat-sidebar li { padding: 6px 12px; border-radius: 2px; }
  .mall-promo-panel { min-height: 200px; padding: 20px; }
  .mall-product-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-main { grid-template-columns: 1fr; }
  .pd-gallery-wrap { grid-template-columns: 1fr; }
  .pd-gallery-thumbs-v {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .pd-info-box { position: static; }
  .pd-spec-highlights { grid-template-columns: repeat(2, 1fr); }
  .pd-spec-table { grid-template-columns: 1fr; }
  .pd-feature-list { grid-template-columns: 1fr; }
  .pd-package-list { grid-template-columns: 1fr; }
  .pd-buy-row { display: none; }
  .pd-bottom-bar { display: block; }
  body.pd-page { padding-bottom: 64px; }
}

@media (max-width: 600px) {
  .mall-topbar-left .sep,
  .mall-topbar-left span:first-child { display: none; }
  .mall-product-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-rec-grid { grid-template-columns: repeat(3, 1fr); }
  .mall-footer-grid { grid-template-columns: 1fr; }
}
