/* R4 component enhancement: original PC v1 CSS unchanged */
.product-image{position:relative}.yp-discount-tag{position:absolute;right:12px;top:12px;background:#e53e3e;color:#fff;padding:4px 8px;border-radius:4px;font-weight:700;font-size:12px;z-index:4;box-shadow:0 2px 6px rgba(229,62,62,.35);letter-spacing:.5px}.yp-old-price{color:#9ba0a8;text-decoration:line-through;font-size:13px;margin-left:8px;font-weight:400}.yp-detail-discount{display:inline-flex;align-items:center;gap:8px;margin-left:12px;vertical-align:middle}.yp-detail-discount del{color:#9ca3af;font-size:16px;text-decoration:line-through}.yp-detail-discount b{background:#e53e3e;color:#fff;padding:3px 8px;border-radius:4px;font-size:12px;font-weight:700}.yp-detail-discount small{color:#718096;font-size:12px;background:#edf2f7;padding:2px 6px;border-radius:3px}.yp-presale-flow-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:16px 20px;margin:20px 0}.yp-flow-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.yp-flow-card-title{display:flex;align-items:center;gap:6px;font-size:14px;color:#1e293b}.yp-flow-badge-dot{color:#0071e3;font-size:13px}.yp-flow-badge-tag{font-size:11px;color:#0071e3;background:#eff6ff;padding:2px 8px;border-radius:99px;font-weight:500}.yp-flow-timeline{display:flex;align-items:flex-start;justify-content:space-between;position:relative}.yp-flow-node{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;position:relative}.yp-flow-node-badge{width:28px;height:28px;border-radius:50%;background:#0071e3;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;z-index:2;box-shadow:0 2px 4px rgba(0,113,227,.25)}.yp-flow-node-title{font-size:13px;font-weight:600;color:#1e293b;margin-top:6px}.yp-flow-node-desc{font-size:11px;color:#64748b;margin-top:2px;max-width:85px;line-height:1.3}.yp-flow-node-line{position:absolute;top:14px;left:50%;width:100%;height:2px;background:#cbd5e1;z-index:1}.yp-plan{border:1px solid #e5e5ea;border-radius:12px;padding:16px;margin:20px 0;background:#fff}.yp-plan>p{font-size:12px;color:#858992;margin:5px 0 15px}.yp-plan-track{display:flex;justify-content:space-between;gap:3px;overflow-x:auto}.yp-plan-node{min-width:75px;flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;position:relative;text-align:center}.yp-plan-node span{width:28px;height:28px;border-radius:50%;background:#edf4ff;color:#0071e3;display:grid;place-items:center;font-weight:700}.yp-plan-node b{font-size:11px;white-space:nowrap}.yp-plan-node small{font-size:10px;color:#868b94}.yp-right-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.yp-right-overlay{position:fixed;inset:0;background:rgba(12,19,29,.70);z-index:9999;display:grid;place-items:center;padding:18px}.yp-right-dialog{max-height:95vh;overflow-y:auto;width:min(560px,96vw);border-radius:14px;background:white;padding:16px;box-shadow:0 20px 60px #0004}.yp-right-dialog img{display:block;width:100%;max-height:74vh;object-fit:contain;background:#f7f7f9}.yp-right-toolbar{display:flex;justify-content:space-between;align-items:center;font-size:14px;padding-bottom:10px}.yp-right-toolbar button{border:0;background:none;font-size:26px;cursor:pointer}.yp-right-buttons{display:flex;gap:10px;padding-top:10px}.yp-right-buttons button{flex:1}.journey-steps{flex-wrap:wrap;gap:12px}.journey-step small{display:block;font-size:10px;color:#e09a12}@media(max-width:650px){.yp-plan-track{justify-content:flex-start}.yp-plan-node{min-width:82px}.yp-right-dialog{max-height:94vh}}

/* R5 site branding; original layout untouched */
.r5-pc-brand{height:42px;max-width:124px;object-fit:contain;display:block;flex:none}

/* Global Typography Upgrade: High-fidelity Cross-platform Font Stack */
body, button, input, select, textarea {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* DEV-28: PC Product Detail Sticky Gallery & Trust Escrow Cards (Option B) */
@media (min-width: 811px) {
  .detail-top {
    grid-template-columns: 48% 52%;
    gap: 48px;
    align-items: start;
  }
  .detail-gallery {
    position: -webkit-sticky;
    position: sticky;
    top: 88px;
    align-self: start;
    z-index: 10;
  }
}

.detail-art {
  transition: all 0.3s ease;
  background: #f8fafc;
}
.detail-art img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}
.art-view-1 {
  transform: scale(1.08) translateY(-6px);
}
.art-view-2 {
  transform: scale(1.18) rotate(-1deg);
}
.gallery-view-caption {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 11px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.gallery-view-caption span {
  color: #0071e3;
  font-weight: 700;
}
.gallery-thumbs .thumb {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s ease;
}
.gallery-thumbs .thumb:hover {
  border-color: #0071e3;
  background: #f0f7ff;
}
.gallery-thumbs .thumb.selected {
  border-color: #0071e3;
  background: #edf5ff;
  box-shadow: 0 0 0 1px #0071e3;
}
.thumb-lbl {
  font-size: 9px;
  color: #64748b;
  margin-top: 1px;
}
.thumb-ico {
  font-size: 13px;
  color: #0071e3;
}

/* Trust & Escrow Guarantee Card */
.yp-detail-trust-card {
  margin-top: 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  letter-spacing: normal;
}
.yp-trust-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}
.yp-trust-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.yp-trust-badge-shield {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #edf5ff;
  color: #0071e3;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 113, 227, 0.12);
}
.yp-trust-badge-shield svg {
  display: block;
}
.yp-trust-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}
.yp-trust-subtitle {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}
.yp-trust-bank-pill {
  font-size: 11px;
  color: #0071e3;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 9px;
  border-radius: 99px;
  font-weight: 600;
  white-space: nowrap;
}
.yp-trust-card-body {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yp-trust-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.yp-trust-dot-col {
  padding-top: 5px;
}
.yp-trust-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0071e3;
}
.yp-trust-dot.bank-dot {
  background: #0071e3;
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}
.yp-trust-dot.contract-dot {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.yp-trust-dot.refund-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}
.yp-trust-content {
  flex: 1;
  min-width: 0;
}
.yp-trust-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.yp-trust-row-head strong {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}
.yp-trust-pill-soft {
  font-size: 10px;
  color: #475569;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
}
.yp-trust-content p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.55;
}
.yp-trust-quick-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.yp-trust-action-link {
  font-size: 11px;
  color: #0071e3;
  text-decoration: none;
  font-weight: 500;
}
.yp-trust-action-link:hover {
  text-decoration: underline;
}
.yp-trust-footer-strip {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #475569;
  background: #f8fafc;
  border-radius: 6px;
  padding: 6px 10px;
}
.yp-trust-foot-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
}
.yp-trust-foot-item i {
  color: #0071e3;
  font-style: normal;
  font-weight: 700;
}
.yp-trust-foot-sep {
  color: #cbd5e1;
}

/* ==========================================================================
   DEV-33: 方案 A 业务重构 — 品牌馆 (FE-04)、制造商家街 (FE-05) 与独立分类子视窗
   ========================================================================== */

/* Sub-filter Bar & Tabs */
.yp-sub-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 32px;
  flex-wrap: wrap;
}
.yp-sub-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.yp-sub-tab {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.yp-sub-tab:hover {
  border-color: #0071e3;
  color: #0071e3;
  background: #f8fafc;
}
.yp-sub-tab.active {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.28);
}
.yp-sub-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  padding: 4px 6px 4px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.yp-sub-search input {
  border: none;
  outline: none;
  font-size: 13px;
  color: #1e293b;
  width: 220px;
  background: transparent;
}
.yp-sub-search button {
  border: none;
  background: #f1f5f9;
  color: #475569;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.yp-sub-search button:hover {
  background: #0071e3;
  color: #fff;
}

/* Card Specific Badges for Presale & Stock */
.yp-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
  flex-wrap: wrap;
}
.yp-meta-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.yp-meta-pill.presale-escrow {
  background: #eff6ff;
  color: #0071e3;
  border: 1px solid #bfdbfe;
}
.yp-meta-pill.presale-date {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.yp-meta-pill.stock-express {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-weight: 600;
}
.yp-meta-pill.stock-inventory {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* ================= FE-04: 品牌馆 (Brand Showcase) ================= */
.yp-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}
.yp-brand-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.yp-brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}
.yp-brand-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.yp-brand-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.yp-brand-titles {
  flex: 1;
  min-width: 0;
}
.yp-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
}
.yp-brand-en {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 1px;
}
.yp-brand-auth-badge {
  font-size: 11px;
  color: #0071e3;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 9px;
  border-radius: 99px;
  font-weight: 600;
  white-space: nowrap;
}
.yp-brand-slogan {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 16px 0 6px;
  line-height: 1.45;
}
.yp-brand-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px;
}
.yp-brand-showcase-bar {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.yp-brand-showcase-imgs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.yp-brand-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px;
  object-fit: contain;
}
.yp-brand-count-hint {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}
.yp-brand-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  font-size: 12px;
  color: #64748b;
}
.yp-brand-stats-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.yp-brand-stat-item b {
  color: #0f172a;
  font-weight: 700;
}
.yp-brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #0071e3;
  background: #eff6ff;
  padding: 6px 14px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.yp-brand-card:hover .yp-brand-cta {
  background: #0071e3;
  color: #ffffff;
}

/* Brand Drilldown Banner */
.yp-detail-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 36px 32px;
  color: #ffffff;
  margin-bottom: 32px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
}
.yp-back-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  transition: all 0.2s;
}
.yp-back-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.yp-detail-hero-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.yp-detail-hero-info h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  color: #ffffff;
}
.yp-detail-hero-info p {
  font-size: 14px;
  color: #94a3b8;
  max-width: 650px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.yp-detail-hero-stats {
  display: flex;
  gap: 24px;
}
.yp-hero-stat-block {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
}
.yp-hero-stat-block span {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}
.yp-hero-stat-block strong {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
  display: block;
}

/* ================= FE-05: 认证制造商家街 (Store Showcase) ================= */
.yp-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}
.yp-store-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.yp-store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}
.yp-store-head {
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.yp-store-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.yp-store-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.yp-store-legal {
  font-size: 12px;
  color: #64748b;
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.yp-store-legal i {
  color: #10b981;
  font-style: normal;
  font-weight: 700;
}
.yp-store-escrow-badge {
  margin-top: 12px;
  background: linear-gradient(90deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 8px;
}
.yp-store-escrow-badge strong {
  color: #0071e3;
  font-weight: 700;
}
.yp-store-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.yp-store-metric-item span {
  font-size: 11px;
  color: #64748b;
  display: block;
}
.yp-store-metric-item strong {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
  display: block;
}
.yp-store-metric-item.accent strong {
  color: #0071e3;
}
.yp-store-info-row {
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}
.yp-store-info-row strong {
  color: #1e293b;
}
.yp-store-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  font-size: 12px;
  color: #64748b;
}
.yp-store-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #0071e3;
  background: #eff6ff;
  padding: 6px 16px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.yp-store-card:hover .yp-store-enter-btn {
  background: #0071e3;
  color: #ffffff;
}

/* ================= Global Search Multi-faceted Results ================= */
.yp-search-bar-hero {
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.yp-search-input-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #0071e3;
  border-radius: 99px;
  padding: 6px 8px 6px 20px;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.08);
}
.yp-search-input-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #0f172a;
  background: transparent;
}
.yp-search-input-box button {
  background: #0071e3;
  color: #ffffff;
  border: none;
  border-radius: 99px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.yp-hot-keywords {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
}
.yp-hot-keyword-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}
.yp-hot-keyword-pill:hover {
  background: #eff6ff;
  color: #0071e3;
  border-color: #bfdbfe;
}
.yp-facet-heading {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.yp-facet-heading span {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 400;
}

