.parts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fffdf9;
  border: 1px solid #ead9c3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--lh-shadow-sm, 0 6px 18px rgba(66, 37, 14, 0.08));
}

.parts-list li {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #f4e8d6;
  min-height: 62px;
}

.parts-list li:last-child {
  border-bottom: none;
}

.parts-list li:hover {
  background: #fff8ed;
}

.image-container {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #fbf3e6;
  border: 1px solid #f0dfc6;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-container:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 18px rgba(66, 37, 14, 0.14);
}

.image-container.enlarged {
  position: fixed;
  z-index: 10000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 86vw);
  height: auto;
  max-height: 86vh;
  background: #fffdf9;
  box-shadow: 0 24px 70px rgba(37, 16, 6, 0.36);
}

.image-container.enlarged img {
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
}

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

.product-name {
  color: #4b3929;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.product-price {
  position: relative;
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  color: var(--lh-brand-deep, #a8330f);
}

.price-mask {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.price-canvas {
  width: 100%;
  height: 100%;
}

.product-price.hidden .price-text {
  visibility: hidden;
}

.backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(37, 16, 6, 0.5);
}

.backdrop.active {
  display: block;
}

.fullname-tooltip {
  display: none;
  position: absolute;
  z-index: 20000;
  max-width: min(520px, 92vw);
  background: #fffdf9;
  color: #4b3929;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e0c9a8;
  box-shadow: 0 12px 28px rgba(66, 37, 14, 0.18);
}

.fullname-tooltip.active {
  display: block;
}

.refresh-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30000;
  background: rgba(37, 16, 6, 0.5);
  align-items: center;
  justify-content: center;
}

.refresh-overlay.active {
  display: flex;
}

.refresh-progress {
  background: #fffdf9;
  border-radius: 18px;
  padding: 28px 40px;
  text-align: center;
  box-shadow: var(--lh-shadow, 0 14px 40px rgba(66, 37, 14, 0.12));
}

.refresh-progress .label {
  margin-top: 10px;
  color: #6f563e;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .parts-list li {
    grid-template-columns: 56px minmax(0, 1fr) 98px;
    gap: 8px;
  }
  .image-container {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }
}
/* ══ 移动端补丁（行情列表） ══ */
@media (max-width: 480px) {
  .parts-list li { grid-template-columns: 48px minmax(0, 1fr) 84px; gap: 4px; }
  .image-container { width: 44px; }
  .product-name { font-size: 12px; line-height: 1.35; }
  .product-price { font-size: 13px; }
}
