/* AUTIDE 本地版补充样式 */

[hidden] {
  display: none !important;
}

/* 报价车条目 */
.lq-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #e3e9ef);
}

.lq-item-main strong {
  display: block;
  font-size: 14px;
}

.lq-item-main span {
  color: var(--muted, #6b7c8f);
  font-size: 12px;
}

.lq-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lq-item-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-dark, #cbd6e0);
  border-radius: 3px;
  background: #fff;
  line-height: 1;
  cursor: pointer;
}

.lq-item-price {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.lq-item-remove {
  border: 0;
  background: transparent;
  color: var(--muted, #6b7c8f);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.lq-checkout {
  width: 100%;
  margin: 12px 0 4px;
  justify-content: center;
}

/* 商品详情弹窗 */
.lq-dialog {
  border: 1px solid var(--line-dark, #cbd6e0);
  border-radius: 8px;
  padding: 26px;
  width: min(560px, calc(100vw - 32px));
  box-shadow: 0 24px 70px rgba(6, 25, 46, 0.28);
}

.lq-dialog::backdrop {
  background: rgba(8, 22, 42, 0.55);
  backdrop-filter: blur(3px);
}

.lq-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lq-dialog-head h2 {
  font-size: 22px;
  margin: 4px 0 2px;
}

.lq-dialog-sub {
  color: var(--muted, #6b7c8f);
  font-size: 13px;
}

.lq-spec-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  max-height: 44vh;
  overflow: auto;
}

.lq-spec-list li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line, #e3e9ef);
  font-size: 13px;
}

.lq-spec-list li span:first-child {
  color: var(--muted, #6b7c8f);
}

.lq-dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* 表单提交状态 */
.lq-form-status {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark, #075e63);
}

/* 空结果提示 */
#catalog-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted, #6b7c8f);
  font-size: 14px;
}

/* COA 可点击提示 + 阅读器 */
.coa-preview,
.certificate-image-link {
  cursor: zoom-in;
}

.lq-coa-dialog {
  width: min(1040px, calc(100vw - 20px));
  height: min(92vh, 1180px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lq-coa-dialog[open] {
  display: flex;
}

.lq-coa-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line, #e3e9ef);
}

.lq-coa-title h2 {
  font-size: 20px;
  margin: 3px 0 2px;
}

.lq-coa-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #e9eef2;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.lq-coa-stage img {
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 12px 34px rgba(9, 26, 42, 0.22);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.lq-coa-stage img.is-loaded {
  opacity: 1;
}

.lq-coa-stage.is-actual img {
  max-width: none;
  width: auto;
}

.lq-coa-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 20px;
  border-top: 1px solid var(--line, #e3e9ef);
  flex-wrap: wrap;
}

.lq-coa-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted, #6b7c8f);
}

.lq-coa-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .lq-coa-dialog {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

  .lq-coa-head {
    padding: 12px 14px;
  }

  .lq-coa-title h2 {
    font-size: 17px;
  }

  .lq-coa-bar {
    padding: 10px 14px;
  }
}
