/* 橙采网 — 参考百度爱采购 B2B 架构 · 极简浅橙留白去边框设计 */

:root {
  /* 60% 浅橙轻盈画布 */
  --bg-canvas: #FFF6EE;
  --bg-canvas-soft: #FFF1E4;
  /* 30% 纯白去边框卡片表面 */
  --bg-card: #FFFFFF;
  --bg-surface-muted: #FDF8F3;
  /* 深灰文字阶梯 */
  --text-primary: #2D3035;
  --text-secondary: #555962;
  --text-muted: #868B94;
  /* 10% 暖橙交互强调色 */
  --accent: #EA6A20;
  --accent-hover: #D25812;
  --accent-soft: #FFF0E5;
  --success: #217A4B;
  --success-soft: #ECF7F0;
  --danger: #C53929;
  /* 去边框柔和阴影 */
  --shadow-card: 0 12px 32px -12px rgba(132, 74, 34, 0.08);
  --shadow-card-hover: 0 18px 40px -12px rgba(132, 74, 34, 0.14);
  --shadow-drawer: -12px 0 40px rgba(45, 48, 53, 0.10);
  /* 圆角与间距 */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container-max: 1280px;
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

main {
  flex: 1;
}

/* ========================
   顶部导航栏 (Strict 3-Zone Contract)
   ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.brand-wordmark {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-wordmark span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 0;
  transition: color 180ms var(--ease-settle);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms var(--ease-settle);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.mobile-nav-panel {
  display: none;
  background: var(--bg-card);
  padding: 20px 28px 28px;
  box-shadow: var(--shadow-card);
}

.mobile-nav-panel.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ========================
   按钮与交互控件 (去边框、高留白)
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 160ms var(--ease-settle), color 160ms var(--ease-settle), transform 160ms var(--ease-settle), box-shadow 160ms var(--ease-settle);
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-white {
  background-color: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
}

.btn-white:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.btn-soft {
  background-color: var(--bg-surface-muted);
  color: var(--text-primary);
}

.btn-soft:hover {
  background-color: var(--accent-soft);
  color: var(--accent-hover);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
}

/* ========================
   百度爱采购风格：首屏综合搜索条
   ======================== */
.b2b-search-band {
  padding: 18px 0 24px;
}

.b2b-search-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.b2b-search-main {
  flex: 1;
  min-width: 300px;
}

.search-mode-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.search-mode-btn {
  border: none;
  background: transparent;
  padding: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.search-mode-btn.is-active {
  color: var(--accent);
}

.search-mode-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-muted);
  padding: 6px 6px 6px 16px;
  border-radius: var(--radius-md);
}

.search-input-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-primary);
  min-width: 0;
  padding: 8px 0;
}

.search-input-box input::placeholder {
  color: var(--text-muted);
}

.hot-keywords {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.hot-keywords a {
  color: var(--text-secondary);
  transition: color 150ms ease;
}

.hot-keywords a:hover {
  color: var(--accent);
}

.b2b-search-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ========================
   百度爱采购风格：三栏首屏交易工作台
   ======================== */
.b2b-hero-grid {
  display: grid;
  grid-template-columns: 270px 1fr 290px;
  gap: 24px;
  align-items: stretch;
}

/* 左栏：行业品类目录 */
.cat-sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 4px 12px 12px;
  margin: 0;
}

.cat-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-menu-item {
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.cat-menu-item:hover,
.cat-menu-item.is-active {
  background-color: var(--bg-surface-muted);
}

.cat-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cat-menu-item.is-active .cat-menu-head {
  color: var(--accent);
}

.cat-sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.cat-sub-links a:hover {
  color: var(--accent);
}

/* 中栏：焦点专场看板 */
.center-showcase-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.showcase-banner {
  position: relative;
  flex: 1;
  min-height: 290px;
  overflow: hidden;
  background: var(--bg-surface-muted);
}

.showcase-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 30, 34, 0.80) 0%, rgba(28, 30, 34, 0.42) 55%, rgba(28, 30, 34, 0.08) 100%);
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #FFFFFF;
}

.showcase-kicker {
  font-size: 13px;
  font-weight: 600;
  color: #FFB685;
  margin: 0 0 10px 0;
}

.showcase-title {
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 12px 0;
  max-width: 20ch;
  text-wrap: balance;
}

.showcase-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 24px 0;
  max-width: 38ch;
}

.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-card);
}

.showcase-tab-btn {
  border: none;
  background: transparent;
  padding: 16px 14px;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.showcase-tab-btn:hover {
  background: var(--bg-surface-muted);
}

.showcase-tab-btn.is-active {
  background: var(--accent-soft);
}

.showcase-tab-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.showcase-tab-btn.is-active .showcase-tab-title {
  color: var(--accent-hover);
}

.showcase-tab-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* 右栏：买家/卖家快捷入口卡片 */
.workbench-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.wb-user-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wb-greeting {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.wb-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.wb-action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wb-metrics {
  background: var(--bg-surface-muted);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wb-metric-item .val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.wb-metric-item .lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========================
   区块间距与排版层级
   ======================== */
.section-space {
  padding-top: 52px;
  padding-bottom: 52px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 6px 0;
}

.section-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 8px 0 0 0;
  max-width: 58ch;
}

/* ========================
   全网求购大厅 (B2B 采购需求卡片)
   ======================== */
.rfq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.rfq-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 180ms var(--ease-settle), box-shadow 180ms var(--ease-settle);
}

.rfq-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.rfq-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.rfq-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
}

.rfq-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(45, 48, 53, 0.06);
  flex-wrap: wrap;
}

/* ========================
   实力供应商名录条
   ======================== */
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.supplier-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 180ms var(--ease-settle), box-shadow 180ms var(--ease-settle);
}

.supplier-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.supplier-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.supplier-scope {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* ========================
   产品网格与卡片 (3列去边框高留白)
   ======================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 180ms var(--ease-settle), box-shadow 180ms var(--ease-settle);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.product-thumb-wrap {
  aspect-ratio: 4 / 3;
  background-color: var(--bg-surface-muted);
  overflow: hidden;
  position: relative;
}

.product-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms var(--ease-settle);
}

.product-card:hover .product-thumb-wrap img {
  transform: scale(1.03);
}

.product-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.product-title {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-spec-summary {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(45, 48, 53, 0.06);
}

.price-block .price-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.price-block .price-unit {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========================
   百度爱采购列表页：横向B2B供应条目视图
   ======================== */
.product-list-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.supply-row-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 240px 1fr 230px;
  gap: 28px;
  align-items: center;
  transition: transform 180ms var(--ease-settle), box-shadow 180ms var(--ease-settle);
}

.supply-row-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.supply-row-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-muted);
}

.supply-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supply-row-mid h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.supply-row-mid h2 a:hover {
  color: var(--accent);
}

.supply-row-mid p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 14px 0;
  max-width: 60ch;
}

.supply-row-vendor {
  font-size: 13px;
  color: var(--text-muted);
}

.supply-row-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding-left: 24px;
  border-left: 1px solid rgba(45, 48, 53, 0.06);
}

/* ========================
   列表页筛选面板
   ======================== */
.page-banner {
  padding: 36px 0 24px;
}

.page-title {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  color: var(--text-primary);
  text-wrap: balance;
}

.page-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 62ch;
}

.filter-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.filter-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.segmented-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-surface-muted);
  padding: 5px;
  border-radius: var(--radius-md);
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 150ms var(--ease-settle), color 150ms var(--ease-settle), box-shadow 150ms var(--ease-settle);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.is-active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(132, 74, 34, 0.08);
}

.filter-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(45, 48, 53, 0.06);
}

.filter-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.input-field,
.select-field,
.textarea-field {
  border: none;
  background-color: var(--bg-surface-muted);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  transition: background-color 150ms var(--ease-settle), box-shadow 150ms var(--ease-settle);
}

.input-field:focus,
.select-field:focus,
.textarea-field:focus {
  background-color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(234, 106, 32, 0.25);
  outline: none;
}

.textarea-field {
  width: 100%;
  resize: vertical;
  min-height: 108px;
}

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

/* ========================
   详情页：左图右买 + 供应商信息条
   ======================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 24px 0 18px;
}

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

.vendor-top-strip {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px 26px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 36px;
  align-items: start;
}

.pdp-gallery-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 92px;
}

.pdp-main-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-muted);
  margin-bottom: 14px;
}

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

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pdp-thumb-btn {
  border: none;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-surface-muted);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 150ms ease;
}

.pdp-thumb-btn.is-active,
.pdp-thumb-btn:hover {
  opacity: 1;
}

.pdp-thumb-btn.is-active {
  box-shadow: 0 0 0 2px var(--accent);
}

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

.pdp-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.pdp-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 10px 0;
}

.pdp-summary {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0 0 22px 0;
}

.tier-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--bg-surface-muted);
  padding: 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.tier-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background-color 150ms ease;
}

.tier-item.is-current-tier {
  background: var(--bg-card);
  box-shadow: 0 4px 12px rgba(132, 74, 34, 0.08);
}

.tier-item .tier-qty {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.tier-item .tier-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.variant-group {
  margin-bottom: 22px;
}

.variant-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-btn {
  border: none;
  background: var(--bg-surface-muted);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
}

.variant-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
}

.qty-buy-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-muted);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.qty-stepper button {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
}

.qty-stepper button:hover {
  background: var(--bg-card);
}

.qty-stepper input {
  width: 60px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.supplier-strip {
  padding-top: 22px;
  border-top: 1px solid rgba(45, 48, 53, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.spec-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  margin-top: 36px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid rgba(45, 48, 53, 0.06);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table th,
.spec-table td {
  padding: 15px 12px;
  text-align: left;
  font-size: 14.5px;
}

.spec-table th {
  width: 240px;
  color: var(--text-muted);
  font-weight: 500;
}

.spec-table td {
  color: var(--text-primary);
  font-weight: 500;
}

/* ========================
   表单与入驻/发布工作台页面
   ======================== */
.split-workspace {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.info-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  padding-top: 18px;
  border-top: 1px solid rgba(45, 48, 53, 0.06);
}

.step-item:first-child {
  padding-top: 0;
  border-top: none;
}

.step-num {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label .req {
  color: var(--accent);
  margin-left: 4px;
}

.form-group .input-field,
.form-group .select-field {
  width: 100%;
}

.form-error {
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}

.image-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.image-choice {
  border: none;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--bg-surface-muted);
  opacity: 0.68;
  transition: opacity 150ms ease, box-shadow 150ms ease;
}

.image-choice.is-selected {
  opacity: 1;
  box-shadow: 0 0 0 2.5px var(--accent);
}

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

.success-state-box {
  display: none;
  background: var(--success-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 22px;
}

.success-state-box h4 {
  margin: 0 0 8px 0;
  font-size: 17px;
  color: var(--success);
}

.success-state-box p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ========================
   登录注册页
   ======================== */
.auth-section {
  padding: 56px 0 80px;
}

.auth-shell {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: stretch;
}

.auth-editorial-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
}

/* ========================
   滑出式采购清单抽屉 & 快捷弹窗
   ======================== */
.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 48, 53, 0.28);
  z-index: 90;
  display: none;
}

.drawer-backdrop.is-open,
.modal-backdrop.is-open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  box-shadow: var(--shadow-drawer);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 220ms var(--ease-settle);
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: calc(100% - 32px);
  max-width: 520px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 24px 60px rgba(45, 48, 53, 0.16);
  z-index: 110;
  display: none;
}

.modal-dialog.is-open {
  display: block;
}

.drawer-header {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(45, 48, 53, 0.06);
}

.drawer-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.drawer-close {
  border: none;
  background: var(--bg-surface-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  color: var(--text-primary);
  cursor: pointer;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(45, 48, 53, 0.06);
}

.cart-item-img {
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-surface-muted);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 10px 0;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-footer {
  padding: 20px 26px 26px;
  background: var(--bg-surface-muted);
}

.drawer-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* ========================
   轻量提示 Toast
   ======================== */
.toast-notice {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text-primary);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast-notice.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================
   无图降级容器 (Zero-Broken-Image Policy)
   ======================== */
.img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFF3E8 0%, #F9E5D2 100%);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 16px;
  text-align: center;
}

/* ========================
   页脚
   ======================== */
.site-footer {
  margin-top: 48px;
  padding: 44px 0 36px;
  background-color: var(--bg-card);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  transition: color 150ms ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(45, 48, 53, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.empty-state {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 56px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.empty-state h3 {
  margin: 0 0 8px 0;
  font-size: 19px;
}

.empty-state p {
  margin: 0 0 22px 0;
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* ========================
   响应式适配
   ======================== */
@media (max-width: 1120px) {
  .b2b-hero-grid {
    grid-template-columns: 240px 1fr;
  }

  .workbench-card {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .supplier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .b2b-hero-grid,
  .pdp-grid,
  .split-workspace,
  .auth-shell,
  .supply-row-card {
    grid-template-columns: 1fr;
  }

  .supply-row-right {
    border-left: none;
    padding-left: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(45, 48, 53, 0.06);
    align-items: flex-start;
    text-align: left;
  }

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

  .pdp-gallery-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .header-inner {
    height: 64px;
    gap: 14px;
  }

  .product-grid,
  .rfq-grid,
  .supplier-grid,
  .form-grid-2,
  .tier-price-grid,
  .showcase-tabs {
    grid-template-columns: 1fr;
  }

  .image-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
