/* templet4 内页样式 — 与 site.css 配套 */
.t4-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 14px 0;
  font-size: 13px;
  color: var(--t4-muted);
}
.t4-crumb a:hover { color: var(--t4-brand); }
.t4-crumb i { font-style: normal; opacity: .45; }
.t4-crumb-here {
  color: var(--t4-ink);
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t4-page-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.t4-page-link {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--t4-line);
  background: #fff;
  font-size: 13px;
}
.t4-page-link.is-on,
.t4-page-link:hover {
  background: var(--t4-brand);
  color: #fff;
  border-color: var(--t4-brand);
}

.t4-notice {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
}
.t4-notice-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.t4-notice-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

.t4-field { margin-bottom: 14px; }
.t4-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}
.t4-field input,
.t4-field select,
.t4-field textarea {
  width: 100%;
  border: 1px solid var(--t4-line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}
.t4-field input:focus,
.t4-field select:focus,
.t4-field textarea:focus {
  outline: 2px solid rgba(12, 74, 110, .25);
  border-color: var(--t4-brand);
}

.t4-mall-panel {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.t4-mall-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.t4-mall-row:last-child { margin-bottom: 0; }
.t4-mall-label {
  flex: 0 0 48px;
  font-size: 13px;
  color: var(--t4-muted);
  padding-top: 6px;
}
.t4-mall-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.t4-mall-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--t4-line);
  background: #fff;
  font-size: 13px;
}
.t4-mall-chip.is-on,
.t4-mall-chip:hover {
  border-color: var(--t4-brand);
  color: var(--t4-brand);
  background: var(--t4-soft);
}
.t4-mall-meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--t4-muted);
}
.t4-mall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.t4-mall-grid.t4-related-goods {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.t4-mall-grid.t4-related-goods > li:nth-child(n+7) { display: none; }
.t4-mall-card {
  display: block;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: 6px;
  overflow: hidden;
  transition: .15s ease;
  color: inherit;
}
.t4-mall-card:hover {
  border-color: #7dd3fc;
  box-shadow: var(--t4-shadow);
  transform: translateY(-2px);
}
.t4-mall-cover {
  display: block;
  aspect-ratio: 1;
  background: #f8fafc;
  overflow: hidden;
}
.t4-mall-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-mall-cover em {
  display: grid;
  place-items: center;
  height: 100%;
  font-style: normal;
  color: var(--t4-muted);
  font-size: 13px;
}
.t4-mall-body { display: block; padding: 10px 12px 12px; }
.t4-mall-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.t4-mall-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
.t4-mall-price {
  color: var(--t4-danger);
  font-weight: 800;
  font-size: 16px;
  font-style: normal;
}
.t4-mall-sales {
  font-style: normal;
  font-size: 12px;
  color: var(--t4-muted);
}

.t4-pd {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  padding: 18px;
  margin-bottom: 16px;
}
.t4-pd-stage {
  aspect-ratio: 1;
  background: #f8fafc;
  border-radius: 6px;
  overflow: hidden;
}
.t4-pd-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-pd-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.t4-pd-thumbs button {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #f1f5f9;
}
.t4-pd-thumbs button.is-on { border-color: var(--t4-brand); }
.t4-pd-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-pd-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}
.t4-pd-price-box {
  background: #fff7ed;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 14px;
}
.t4-pd-price {
  color: var(--t4-danger);
  font-size: 28px;
  font-weight: 800;
}
.t4-pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--t4-muted);
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}
.t4-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--t4-line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}
.t4-qty button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #f8fafc;
  cursor: pointer;
}
.t4-qty input {
  width: 56px;
  height: 36px;
  border: 0;
  border-left: 1px solid var(--t4-line);
  border-right: 1px solid var(--t4-line);
  text-align: center;
}
.t4-pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.t4-pd-panel {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  padding: 16px;
  margin-bottom: 16px;
}
.t4-pd-panel h2 {
  margin: 0 0 12px;
  font-size: 17px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--t4-line);
}
.t4-rich { line-height: 1.7; word-break: break-word; }
.t4-rich img { max-width: 100%; height: auto; }

.t4-related {
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  padding: 16px;
}
.t4-related-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.t4-related-head h2 { margin: 0; font-size: 16px; }
.t4-related-head a {
  font-size: 13px;
  color: var(--t4-brand);
  font-weight: 600;
}

.t4-posts-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: start;
}
.t4-side-panel {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  padding: 12px;
}
.t4-side-panel h2 { margin: 0 0 10px; font-size: 15px; }
.t4-side-link {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.t4-side-link.is-on,
.t4-side-link:hover {
  background: var(--t4-soft);
  color: var(--t4-brand);
}
.t4-media-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
}
.t4-media-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--t4-line);
}
.t4-media-item:last-child { border-bottom: 0; }
.t4-media-thumb {
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
}
.t4-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-media-body h3 { margin: 0 0 6px; font-size: 16px; }
.t4-media-body h3 a:hover { color: var(--t4-brand); }
.t4-media-body p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--t4-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t4-media-meta { font-size: 12px; color: var(--t4-muted); }

.t4-article {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  padding: 20px;
}
.t4-article h1 { margin: 0 0 10px; font-size: 24px; }
.t4-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--t4-muted);
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}
.t4-article-gallery {
  position: relative;
  margin-bottom: 16px;
  border-radius: 6px;
  overflow: hidden;
  background: #0f172a;
  min-height: 280px;
}
.t4-article-slide { display: none; }
.t4-article-slide.is-on { display: block; }
.t4-article-slide img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto;
}
.t4-article-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.t4-article-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
}
.t4-article-dots button.is-on {
  background: var(--t4-brand);
  width: 16px;
  border-radius: 999px;
}
.t4-related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.t4-related-card {
  display: block;
  border: 1px solid var(--t4-line);
  border-radius: 6px;
  overflow: hidden;
  color: inherit;
}
.t4-related-card:hover { border-color: #7dd3fc; }
.t4-related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #f1f5f9;
}
.t4-related-card strong {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
}

.t4-merchants-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 14px;
}
.t4-merchants-head h1 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  color: #0f172a;
}
.t4-merchants-head p {
  margin: 0;
  font-size: 14px;
  color: var(--t4-muted);
}
.t4-merchants-count {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--t4-muted);
}
.t4-merchants-count strong {
  color: var(--t4-brand, #0369a1);
  font-weight: 700;
}

.t4-merchant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.t4-merchant-card {
  display: block;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: .15s ease;
}
.t4-merchant-card:hover {
  box-shadow: var(--t4-shadow);
  transform: translateY(-2px);
  border-color: #bae6fd;
}
.t4-merchant-banner {
  margin: 0;
  height: 96px;
  background: linear-gradient(120deg, #0c4a6e, #0369a1);
  overflow: hidden;
}
.t4-merchant-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.t4-merchant-banner-fallback {
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), transparent 40%),
    linear-gradient(120deg, #0c4a6e, #0369a1 55%, #0ea5e9);
}
.t4-merchant-cover {
  height: 100px;
  background: linear-gradient(120deg, #0c4a6e, #0369a1);
}
.t4-merchant-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-merchant-card-body,
.t4-merchant-body {
  padding: 14px 16px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.t4-merchant-card-logo,
.t4-merchant-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 800;
  flex-shrink: 0;
  color: var(--t4-brand, #0369a1);
  border: 1px solid #e2e8f0;
  font-size: 18px;
}
.t4-merchant-card-logo img,
.t4-merchant-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.t4-merchant-card-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.t4-merchant-card-name,
.t4-merchant-card-info > strong,
.t4-merchant-body strong {
  display: block;
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  color: #0f172a;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t4-merchant-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t4-merchant-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 2px;
  font-size: 12px;
  color: #94a3b8;
}
.t4-merchant-card-meta span {
  display: inline-block;
}
.t4-merchant-phone {
  color: #64748b;
}
.t4-merchant-body span { font-size: 12px; color: var(--t4-muted); }

.t4-shop-head {
  position: relative;
  border-radius: var(--t4-radius);
  overflow: hidden;
  background: #0c4a6e;
  min-height: 180px;
  margin-bottom: 14px;
  color: #fff;
}
.t4-shop-banner { position: absolute; inset: 0; }
.t4-shop-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.t4-shop-head-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: flex-end;
  padding: 24px 18px 18px;
  min-height: 180px;
}
.t4-shop-logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--t4-brand);
  font-weight: 800;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--t4-shadow);
}
.t4-shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-shop-head h1 { margin: 0 0 6px; font-size: 22px; }
.t4-shop-stats {
  display: flex;
  gap: 14px;
  font-size: 13px;
  opacity: .9;
  list-style: none;
  padding: 0;
  margin: 0;
}
.t4-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: start;
}
.t4-shop-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.t4-shop-tab {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--t4-line);
  font-weight: 600;
  font-size: 13px;
}
.t4-shop-tab.is-on {
  background: var(--t4-brand);
  border-color: var(--t4-brand);
  color: #fff;
}

.t4-auth {
  max-width: 420px;
  margin: 28px auto;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  padding: 24px;
  box-shadow: var(--t4-shadow);
}
.t4-auth h1 {
  margin: 0 0 16px;
  font-size: 22px;
  text-align: center;
}
.t4-auth-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--t4-muted);
}
.t4-auth-foot a { color: var(--t4-brand); font-weight: 700; }

.t4-cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  overflow: hidden;
}
.t4-cart-table th,
.t4-cart-table td {
  padding: 12px;
  border-bottom: 1px solid var(--t4-line);
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}
.t4-cart-table th {
  background: #f8fafc;
  font-size: 13px;
  color: var(--t4-muted);
}
.t4-cart-prod {
  display: flex;
  gap: 10px;
  align-items: center;
}
.t4-cart-prod img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f5f9;
}
.t4-cart-bar {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.t4-cart-total {
  color: var(--t4-danger);
  font-size: 22px;
  font-weight: 800;
}

.t4-dash {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}
.t4-dash-side {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  padding: 12px;
}
.t4-dash-side a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 2px;
}
.t4-dash-side a.is-on,
.t4-dash-side a:hover {
  background: var(--t4-soft);
  color: var(--t4-brand);
}
.t4-dash-main {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: var(--t4-radius);
  padding: 16px;
  min-height: 280px;
}
.t4-dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.t4-dash-card {
  background: var(--t4-soft);
  border-radius: 6px;
  padding: 14px;
}
.t4-dash-card strong {
  display: block;
  font-size: 22px;
  color: var(--t4-brand);
}
.t4-dash-card span {
  font-size: 12px;
  color: var(--t4-muted);
}

.t4-info-cols {
  display: grid;
  grid-template-columns: repeat(var(--t4-cols, 3), 1fr);
  gap: 16px;
}
.t4-info-col h3 {
  margin: 0 0 8px;
  font-size: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--t4-accent);
  display: inline-block;
}
.t4-post-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t4-post-card {
  border: 1px solid var(--t4-line);
  border-radius: 6px;
  overflow: hidden;
  color: inherit;
}
.t4-post-card:hover { border-color: #7dd3fc; }
.t4-post-card-cover {
  aspect-ratio: 16/10;
  background: #f1f5f9;
  overflow: hidden;
}
.t4-post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-post-card h3 {
  margin: 0;
  padding: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.t4-housing-grid {
  display: grid;
  grid-template-columns: repeat(var(--t4-cols, 2), 1fr);
  gap: 12px;
}
.t4-housing-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  border: 1px solid var(--t4-line);
  border-radius: 6px;
  overflow: hidden;
  color: inherit;
}
.t4-housing-card:hover { border-color: #7dd3fc; }
.t4-housing-thumb {
  background: #f1f5f9;
  min-height: 100px;
}
.t4-housing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-housing-body { padding: 10px 10px 10px 0; }
.t4-housing-body h3 { margin: 0 0 6px; font-size: 15px; }
.t4-housing-body p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--t4-muted);
}
.t4-housing-meta {
  font-size: 12px;
  color: var(--t4-muted);
  display: flex;
  gap: 10px;
}
.t4-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.t4-shop-card {
  border: 1px solid var(--t4-line);
  border-radius: 6px;
  overflow: hidden;
  color: inherit;
}
.t4-shop-card:hover { box-shadow: var(--t4-shadow); }
.t4-shop-card .t4-shop-cover {
  height: 90px;
  background: #0c4a6e;
}
.t4-shop-card .t4-shop-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-shop-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
}
.t4-shop-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 800;
  flex-shrink: 0;
}
.t4-shop-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-shop-card-meta strong { display: block; font-size: 13px; }
.t4-shop-card-meta span { font-size: 12px; color: var(--t4-muted); }
.t4-shop-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.t4-shop-logo-cell {
  aspect-ratio: 1;
  border: 1px solid var(--t4-line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  color: inherit;
  font-weight: 800;
}
.t4-shop-logo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-ad { display: block; color: inherit; }
.t4-ad-media img {
  width: 100%;
  border-radius: 6px;
}
.t4-ad-body { padding: 8px 0; }
.t4-ad-body h2 { margin: 0 0 6px; font-size: 18px; }
.t4-ad-body p { margin: 0; color: var(--t4-muted); }

/* —— 商品详情（工业采购风） —— */
.t4-btn-commerce {
  background: #0f766e;
  color: #fff;
}
.t4-btn-commerce:hover { background: #0d9488; color: #fff; }
.t4-btn-outline-light {
  background: #fff;
  border: 1px solid #0f766e;
  color: #0f766e;
}
.t4-btn-outline-light:hover { background: #ecfdf5; }
.t4-btn-sm { padding: 6px 12px; font-size: 12px; }

.t4-pdp { padding-bottom: 20px; }
.t4-pdp-stage {
  background: #0f172a;
  padding: 18px 0 22px;
  margin-bottom: 16px;
}
.t4-pdp-stage-inner {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr) 240px;
  gap: 14px;
  align-items: start;
}
.t4-pdp-gallery,
.t4-pdp-buy,
.t4-pdp-side > * {
  background: #fff;
  border-radius: 8px;
}
.t4-pdp-gallery { padding: 12px; }
.t4-pdp-main {
  aspect-ratio: 1;
  background: #f8fafc;
  border-radius: 6px;
  overflow: hidden;
}
.t4-pdp-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.t4-pdp-main-empty {
  display: grid;
  place-items: center;
  color: var(--t4-muted);
  font-size: 14px;
}
.t4-pdp-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.t4-pdp-thumbs button {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #f1f5f9;
}
.t4-pdp-thumbs button.is-on { border-color: #0f766e; }
.t4-pdp-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-pdp-buy { padding: 16px 18px; }
.t4-pdp-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
  color: #0f172a;
}
.t4-pdp-price-card {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.t4-pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.t4-pdp-price-label {
  font-size: 13px;
  color: var(--t4-muted);
}
.t4-pdp-price {
  color: #dc2626;
  font-size: 28px;
  font-weight: 800;
}
.t4-pdp-price-row s {
  color: var(--t4-muted);
  font-size: 13px;
}
.t4-pdp-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.t4-pdp-bulk span {
  font-size: 12px;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  padding: 2px 8px;
}
.t4-pdp-attrs {
  margin: 0 0 14px;
  padding: 0;
}
.t4-pdp-attrs > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 13px;
}
.t4-pdp-attrs dt { color: var(--t4-muted); margin: 0; }
.t4-pdp-attrs dd { margin: 0; }
.t4-pdp-buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.t4-pdp-buy-label {
  font-size: 13px;
  color: var(--t4-muted);
  min-width: 64px;
}
.t4-pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.t4-pdp-actions .t4-btn { min-width: 140px; }
.t4-pdp-side { display: flex; flex-direction: column; gap: 10px; }
.t4-pdp-shop {
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.t4-pdp-shop-logo {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 800;
  color: var(--t4-brand);
  font-size: 22px;
}
.t4-pdp-shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-pdp-shop strong { font-size: 15px; }
.t4-pdp-shop span { font-size: 12px; color: var(--t4-muted); }
.t4-pdp-promise {
  padding: 14px;
}
.t4-pdp-promise h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.t4-pdp-promise ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--t4-muted);
  line-height: 1.8;
}

.t4-pdp-lower {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.t4-pdp-lower-solo {
  grid-template-columns: 1fr;
}
.t4-pdp-related {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: 8px;
  padding: 12px;
}
.t4-pdp-related h2 {
  margin: 0 0 10px;
  font-size: 15px;
}
.t4-pdp-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.t4-pdp-related li {
  border-bottom: 1px solid #f1f5f9;
  padding: 8px 0;
}
.t4-pdp-related li:last-child { border-bottom: 0; }
.t4-pdp-related a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  color: inherit;
}
.t4-pdp-related-cover {
  aspect-ratio: 1;
  background: #f8fafc;
  border-radius: 4px;
  overflow: hidden;
}
.t4-pdp-related-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-pdp-related-body strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.t4-pdp-related-body em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: #dc2626;
  font-weight: 800;
  font-size: 13px;
}
.t4-pdp-related-more {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: #0f766e;
  font-weight: 600;
}
.t4-pdp-detail {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: 8px;
  overflow: hidden;
}
.t4-pdp-tabs {
  display: flex;
  gap: 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--t4-line);
}
.t4-pdp-tabs button {
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--t4-muted);
  cursor: pointer;
  border-top: 2px solid transparent;
}
.t4-pdp-tabs button.is-on {
  background: #fff;
  color: #0f766e;
  border-top-color: #0f766e;
}
.t4-pdp-tab-panel { padding: 16px; }
.t4-pdp-tab-panel[hidden] { display: none !important; }
.t4-pdp-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.t4-pdp-spec-table th,
.t4-pdp-spec-table td {
  border: 1px solid var(--t4-line);
  padding: 10px 12px;
  text-align: left;
}
.t4-pdp-spec-table th {
  width: 28%;
  background: #f8fafc;
  color: var(--t4-muted);
  font-weight: 600;
}

/* —— 商品列表（采购列表风） —— */
.t4-plist { padding-bottom: 12px; }
.t4-plist-filter {
  background: #1e293b;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  color: #cbd5e1;
}
.t4-plist-filter-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.t4-plist-filter-label {
  flex: 0 0 48px;
  font-size: 13px;
  padding-top: 4px;
  color: #94a3b8;
}
.t4-plist-filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.t4-plist-filter-links a {
  font-size: 13px;
  color: #93c5fd;
}
.t4-plist-filter-links a:hover,
.t4-plist-filter-links a.is-on {
  color: #fff;
  font-weight: 700;
}
.t4-plist-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.t4-plist-sort {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.t4-plist-sort a {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t4-muted);
}
.t4-plist-sort a.is-on,
.t4-plist-sort a:hover {
  background: #ecfdf5;
  color: #0f766e;
}
.t4-plist-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--t4-muted);
}
.t4-plist-view {
  display: inline-flex;
  border: 1px solid var(--t4-line);
  border-radius: 4px;
  overflow: hidden;
}
.t4-plist-view a {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: var(--t4-muted);
}
.t4-plist-view a.is-on {
  background: #0f766e;
  color: #fff;
}
.t4-plist-table {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: 8px;
  overflow: hidden;
}
.t4-plist-thead,
.t4-plist-row {
  display: grid;
  grid-template-columns: minmax(280px, 2.2fr) 1fr .9fr .7fr .7fr 1.1fr;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
}
.t4-plist-thead {
  background: #f8fafc;
  font-size: 12px;
  color: var(--t4-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--t4-line);
}
.t4-plist-row {
  border-bottom: 1px solid #f1f5f9;
}
.t4-plist-row:last-child { border-bottom: 0; }
.t4-plist-row:hover { background: #f8fafc; }
.t4-plist-prod {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}
.t4-plist-thumb {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--t4-muted);
}
.t4-plist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-plist-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: #0369a1;
  line-height: 1.4;
}
.t4-plist-name:hover { color: #0f766e; }
.t4-plist-sku {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--t4-muted);
}
.t4-plist-cell {
  font-size: 13px;
  text-align: center;
  color: var(--t4-ink);
}
.t4-plist-price {
  color: #dc2626;
  font-weight: 800;
  font-size: 15px;
}
.t4-plist-act {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.t4-plist-grid { margin-top: 0; }

/* —— 信息列表 —— */
.t4-ilist-search {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  max-width: 420px;
}
.t4-ilist-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--t4-line);
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 13px;
}
.t4-ilist-table {
  background: #fff;
  border: 1px solid var(--t4-line);
  border-radius: 8px;
  overflow: hidden;
}
.t4-ilist-thead,
.t4-ilist-row {
  display: grid;
  grid-template-columns: minmax(280px, 2.4fr) .9fr .8fr .7fr .9fr .8fr;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
}
.t4-ilist-thead {
  background: #f8fafc;
  font-size: 12px;
  color: var(--t4-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--t4-line);
}
.t4-ilist-row {
  border-bottom: 1px solid #f1f5f9;
}
.t4-ilist-row:last-child { border-bottom: 0; }
.t4-ilist-row:hover { background: #f8fafc; }
.t4-ilist-main {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}
.t4-ilist-thumb {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.t4-ilist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t4-ilist-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: #0369a1;
  line-height: 1.4;
}
.t4-ilist-title:hover { color: #0f766e; }
.t4-ilist-excerpt {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--t4-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— 信息详情 —— */
.t4-idp { padding-bottom: 20px; }
.t4-idp-stage-inner {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr) 240px;
  gap: 14px;
  align-items: start;
}
.t4-idp-gallery {
  position: relative;
  min-height: 320px;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: 0;
}
.t4-idp-gallery .t4-article-slide {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
}
.t4-idp-gallery .t4-article-slide.is-on {
  display: grid;
}
.t4-idp-gallery .t4-article-slide img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}
.t4-idp-contact p {
  margin: 0 0 8px;
  font-size: 13px;
  display: flex;
  gap: 8px;
}
.t4-idp-contact p span {
  color: var(--t4-muted);
  min-width: 42px;
}
.t4-idp-muted {
  font-size: 12px;
  color: var(--t4-muted);
  margin: 0 0 10px;
}
.t4-idp-muted a { color: #0f766e; font-weight: 600; }
.t4-idp-tips {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
  color: var(--t4-muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .t4-mall-grid { grid-template-columns: repeat(3, 1fr); }
  .t4-mall-grid.t4-related-goods { grid-template-columns: repeat(3, 1fr); }
  .t4-pd { grid-template-columns: 1fr; }
  .t4-pdp-stage-inner,
  .t4-pdp-lower,
  .t4-idp-stage-inner { grid-template-columns: 1fr; }
  .t4-plist-thead,
  .t4-ilist-thead { display: none; }
  .t4-plist-row,
  .t4-ilist-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .t4-plist-cell,
  .t4-plist-act { text-align: left; justify-content: flex-start; }
  .t4-posts-layout,
  .t4-shop-layout,
  .t4-dash { grid-template-columns: 1fr; }
  .t4-merchant-grid,
  .t4-post-cards,
  .t4-shop-grid { grid-template-columns: repeat(2, 1fr); }
  .t4-related-list { grid-template-columns: 1fr; }
  .t4-info-cols { grid-template-columns: 1fr; }
  .t4-dash-cards { grid-template-columns: 1fr; }
  .t4-shop-logos { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .t4-mall-grid { grid-template-columns: repeat(2, 1fr); }
  .t4-mall-grid.t4-related-goods { grid-template-columns: repeat(2, 1fr); }
  .t4-media-item { grid-template-columns: 88px 1fr; }
  .t4-housing-card { grid-template-columns: 1fr; }
  .t4-pdp-actions .t4-btn { width: 100%; }
  .t4-ilist-search { max-width: none; width: 100%; }
  .t4-merchant-grid { grid-template-columns: 1fr; }
  .t4-merchants-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
