/* 图标来源：项目已有 Lucide 0.468，ISC 许可；由组件导出，非手绘。 */
body:has(#product-center-view:not([hidden])) { --home-arrow: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231769e8%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22lucide%20lucide-arrow-right%22%3E%3Cpath%20d%3D%22M5%2012h14%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22m12%205%207%207-7%207%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); --home-clock: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2340516d%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22lucide%20lucide-clock3%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%3E%3C%2Fcircle%3E%3Cpolyline%20points%3D%2212%206%2012%2012%2016.5%2012%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E"); --home-help: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2340516d%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22lucide%20lucide-circle-help%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%3E%3C%2Fcircle%3E%3Cpath%20d%3D%22M9.09%209a3%203%200%200%201%205.83%201c0%202-3%203-3%203%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M12%2017h.01%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E"); }

/* 仅首页生效；报价表单、核价和报价单沿用原样式。 */
body:has(#product-center-view:not([hidden])) { background: #fff; }
body:has(#product-center-view:not([hidden])) .shell { display: block; }
body:has(#product-center-view:not([hidden])) .main { padding: 34px 28px; }
body:has(#product-center-view:not([hidden])) .sidebar-spacer { display: none; }
body:has(#product-center-view:not([hidden])) .nav-button {
  min-height: 44px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  text-align: center;
}
body:has(#product-center-view:not([hidden])) .nav-button-active { border-bottom-color: var(--blue); }

#product-center-view { max-width: 1200px; }
#product-center-view .product-center-panel { padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
#product-center-view .product-center-heading { gap: 24px; padding: 0; border: 0; margin-bottom: 28px; }
#product-center-view .product-center-heading h1 { font-size: 24px; line-height: 1.3; }
#product-center-view .product-center-search { flex: 0 1 380px; }
#product-center-view .product-center-search label,
#product-center-view #active-product-group > .product-group-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#product-center-view .product-search-input { border-color: var(--line); font-size: 16px; }
#product-center-view .product-group { margin-top: 0; }
#product-center-view #active-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
#product-center-view .product-card { border-color: #e1e8f1; border-radius: 8px; padding: 12px; gap: 10px; background: #fff; }
#product-center-view .product-card:hover { border-color: #8cb5ed; background: #f8fbff; box-shadow: none; transform: none; }
#product-center-view .product-card-visual { display: block; height: 176px; aspect-ratio: auto; background: #fff; }
#product-center-view .product-card-visual img { display: block; width: 100%; height: 100%; max-height: 100%; min-height: 0; transform: none; }
#product-center-view .product-card-title { min-height: 30px; justify-content: space-between; gap: 8px; }
#product-center-view .product-card-title strong { font-size: 18px; }
#product-center-view .product-card-active .product-card-title::after {
  content: "";
  flex: 0 0 20px;
  height: 20px;
  background: var(--home-arrow) center / contain no-repeat;
}
#product-center-view .continue-draft { min-height: 56px; margin-top: 24px; padding: 6px 14px; gap: 12px; border: 0; background: #f3f6fb; }
#product-center-view .continue-draft::before { content: ""; flex: 0 0 22px; height: 22px; background: var(--home-clock) center / contain no-repeat; }
#product-center-view .continue-draft-copy { display: flex; flex: 1; align-items: baseline; gap: 6px; min-width: 0; flex-wrap: wrap; }
#product-center-view .continue-draft-copy span { color: var(--ink); font-size: 14px; font-weight: 400; }
#product-center-view .continue-draft-copy strong { margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; }
#product-center-view #continue-draft-button { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 8px; border: 0; color: var(--blue); background: transparent; box-shadow: none; white-space: nowrap; }
#product-center-view #continue-draft-button::after { content: ""; width: 20px; height: 20px; background: var(--home-arrow) center / contain no-repeat; }
#product-center-view #coming-product-group { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
#product-center-view #coming-product-group .product-group-heading { justify-content: flex-start; gap: 10px; margin-bottom: 10px; }
#product-center-view #coming-product-group h2 { font-size: 16px; }
#product-center-view #coming-product-group .product-group-heading span { font-size: 14px; }
#product-center-view #coming-product-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px 10px; }
#product-center-view .product-card-prototype { min-height: 40px; border: 0; padding: 4px 8px; color: var(--blue); justify-content: center; text-align: left; }
#product-center-view .product-card-prototype .product-card-title { min-height: 0; justify-content: flex-start; }
#product-center-view .product-card-prototype strong { font-size: 15px; font-weight: 500; }

@media (min-width: 1021px) {
  body:has(#product-center-view:not([hidden])) .sidebar { position: fixed; top: 0; left: 36%; z-index: 21; width: auto; height: 68px; display: flex; flex-direction: row; align-items: stretch; gap: 24px; padding: 0; border: 0; background: transparent; }
  body:has(#product-center-view:not([hidden])) .sidebar .nav-button { padding: 0 12px; }
}

@media (min-width: 761px) and (max-width: 1020px) {
  body:has(#product-center-view:not([hidden])) .sidebar { justify-content: center; padding: 0; gap: 32px; }
  #product-center-view .product-card-visual { height: 140px; }
  #product-center-view #active-product-grid { gap: 12px; }
  #product-center-view #coming-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body:has(#product-center-view:not([hidden])) .topbar { height: 48px; min-height: 48px; padding: 0 12px; }
  body:has(#product-center-view:not([hidden])) .brand { font-size: 16px; gap: 8px; }
  body:has(#product-center-view:not([hidden])) .brand-mark { width: 26px; height: 26px; border: 0; }
  body:has(#product-center-view:not([hidden])) #help-button { width: 40px; min-height: 40px; padding: 0; border: 0; font-size: 0; background: transparent; }
  body:has(#product-center-view:not([hidden])) #help-button::before { content: ""; display: block; width: 22px; height: 22px; margin: auto; background: var(--home-help) center / contain no-repeat; }
  body:has(#product-center-view:not([hidden])) .sidebar { top: 48px; height: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 40px; gap: 0; padding: 0 12px; }
  body:has(#product-center-view:not([hidden])) .nav-button { min-height: 40px; height: 40px; font-size: 14px; }
  body:has(#product-center-view:not([hidden])) .main { padding: 12px 16px; }
  #product-center-view .product-center-heading { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 10px; margin-bottom: 12px; }
  #product-center-view .product-center-heading h1 { font-size: 20px; }
  #product-center-view .product-center-search { width: 100%; }
  #product-center-view #active-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #product-center-view .product-card { gap: 0; padding: 8px; border-radius: 7px; }
  #product-center-view .product-card-visual { height: 90px; }
  #product-center-view .product-card-visual img { transform: scale(1.16); }
  #product-center-view .product-card-title { min-height: 24px; }
  #product-center-view .product-card-title strong { font-size: 16px; }
  #product-center-view .product-card-active .product-card-title::after { flex-basis: 18px; height: 18px; }
  #product-center-view .continue-draft { min-height: 52px; margin-top: 12px; padding: 4px 8px; gap: 8px; }
  #product-center-view .continue-draft::before { flex-basis: 18px; height: 18px; }
  #product-center-view .continue-draft-copy { gap: 0 4px; }
  #product-center-view .continue-draft-copy span,
  #product-center-view .continue-draft-copy strong { font-size: 13px; }
  #product-center-view #continue-draft-button { font-size: 14px; gap: 4px; }
  #product-center-view #coming-product-group { margin-top: 12px; padding-top: 10px; }
  #product-center-view #coming-product-group .product-group-heading { gap: 8px; margin-bottom: 6px; }
  #product-center-view #coming-product-group h2,
  #product-center-view #coming-product-group .product-group-heading span { font-size: 14px; }
  #product-center-view #coming-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  #product-center-view .product-card-prototype { min-height: 28px; padding: 4px 8px; }
  #product-center-view .product-card-prototype strong { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  #product-center-view .product-card,
  #product-center-view .product-card-visual img { transition: none; }
}
