/* ===== 鸡蛋托目录（每行一款列表 + 方价双价 + 自定义尺寸行 + 可展开图示） ===== */
/* 版式：用户确认示意图 + Codex 图示/复制询价；配色沿用 home.css 变量 */
.et-wrap { width: min(1240px, calc(100% - 44px)); margin: 0 auto; }

/* 自定义尺寸行 */
.custom-row { margin: 26px auto 6px; background: #FFF7F0; border: 1.5px dashed var(--orange); border-radius: 12px;
  display: grid; grid-template-columns: 110px 1fr auto 230px; gap: 22px; align-items: center; padding: 16px 22px 16px 16px; }
.custom-row .thumb { width: 110px; height: 82px; border-radius: 8px; background: #fff; border: 1.5px dashed var(--orange);
  display: grid; place-items: center; font-size: 34px; color: var(--orange); }
.custom-row .name { font-size: 17px; font-weight: 700; margin-bottom: 9px; }
.et-tag { color: var(--orange); font-size: 12px; border: 1px solid var(--orange); border-radius: 4px; padding: 1px 7px; margin-left: 8px; font-weight: 600; vertical-align: 2px; }
.dim-inputs { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dim { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; }
.dim input { width: 64px; border: none; outline: none; font-size: 14px; text-align: right; color: var(--navy); font-weight: 600; font-family: inherit; }

/* 价格格 */
.cube { display: flex; gap: 10px; flex-wrap: wrap; }
.cube .cell { border: 1px solid var(--line); border-radius: 8px; padding: 8px 13px; text-align: center; min-width: 104px; background: #FBFCFE; }
.cube .cell .lab { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.cube .cell .val { font-size: 16px; font-weight: 700; color: var(--navy); margin-top: 3px; }
.cube .cell .val.blue { color: var(--blue); }
.cube .cell .val .unit-small { font-size: 11px; font-weight: 400; }
.cube .cell .val input { width: 60px; border: none; outline: none; font-size: 16px; font-weight: 700; text-align: center; color: var(--blue); background: transparent; border-bottom: 1.5px dashed var(--blue); font-family: inherit; }
.cube .cell.edit { border-color: var(--blue); background: #EAF2FE; }
.cube .cell.rate { background: #F0F4F9; border-style: dashed; }
.cube .cell.rate .val { font-size: 14.5px; color: var(--ink-soft); }
.cube .cell.rate .val b { color: var(--navy); }

/* 成交区 */
.deal { text-align: right; border-left: 1px dashed var(--line); padding-left: 22px; }
.deal .qty { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.deal .qty input { width: 88px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; text-align: right; font-family: inherit; }
.deal .qty input:focus { outline: none; border-color: var(--blue); }
.deal .total { font-size: 22px; font-weight: 800; color: var(--navy); margin: 7px 0 3px; }
.deal .total small { font-size: 12px; color: var(--ink-soft); font-weight: 400; margin-left: 4px; }
.deal .total2 { font-size: 13px; color: var(--ink-soft); margin-bottom: 9px; }
.deal .btn-col { display: flex; gap: 8px; justify-content: flex-end; }
.ask { display: inline-block; background: var(--orange); color: #fff; font-size: 13.5px; font-weight: 600; padding: 8px 18px; border-radius: 6px; cursor: pointer; border: none; font-family: inherit; }
.ask:hover { filter: brightness(1.08); }
.ask.done { background: var(--green); }
.btn-ghost { display: inline-block; background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 6px; cursor: pointer; border: 1px solid var(--line); font-family: inherit; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* 工具条 */
.toolbar { margin: 20px auto 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.toolbar input[type=text] { flex: 0 0 320px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; }
.toolbar input[type=text]:focus { outline: none; border-color: var(--blue); }
.toolbar .hint { font-size: 13px; color: var(--ink-soft); }

/* 规格列表 */
.et-list { margin: 16px auto 50px; display: flex; flex-direction: column; gap: 14px; }
.et-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .15s, border-color .15s; overflow: hidden; }
.et-card:hover { border-color: var(--blue); box-shadow: 0 4px 18px rgba(14,42,71,.08); }
.et-card.is-expanded { border-color: var(--blue); }
.et-main { display: grid; grid-template-columns: 110px 1fr auto 230px; gap: 22px; align-items: center; padding: 16px 22px 16px 16px; }
.et-main .thumb { width: 110px; height: 82px; border-radius: 8px; object-fit: cover; background: #EDF2F7; border: 1px solid var(--line); }
.et-main .name { font-size: 17px; font-weight: 700; margin-bottom: 9px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12.5px; color: var(--ink-soft); background: #F0F4F9; border: 1px solid var(--line); border-radius: 5px; padding: 3px 10px; }
.chip b { color: var(--navy); font-weight: 600; }

/* 展开图示区（借鉴 Codex：俯视尺寸图 + 侧视高度图 + 尺寸说明） */
.et-detail { display: none; border-top: 1px dashed var(--line); background: #F7FAFD;
  grid-template-columns: 1fr 1fr 1.1fr; gap: 22px; padding: 20px 22px 24px; }
.et-card.is-expanded .et-detail { display: grid; }
.et-diagram { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; place-items: center; }
.et-diagram svg { width: 100%; height: auto; display: block; }
.et-detail-copy h3 { font-size: 16px; color: var(--navy); margin: 4px 0 10px; }
.et-detail-copy p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; margin: 0 0 8px; }
.et-detail-copy strong { color: var(--navy); }

.et-note { margin: 0 auto 60px; font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
.et-note b { color: var(--navy); }
.et-empty { text-align: center; color: var(--ink-soft); padding: 50px 0; }

@media (max-width: 1180px) {
  .custom-row, .et-main { grid-template-columns: 96px 1fr auto; }
  .deal { grid-column: 1 / -1; border-left: none; border-top: 1px dashed var(--line); padding: 12px 0 0; text-align: left; }
  .deal .qty { justify-content: flex-start; }
  .deal .btn-col { justify-content: flex-start; }
  .et-detail { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .custom-row, .et-main { grid-template-columns: 96px 1fr; }
  .cube { grid-column: 1 / -1; }
}

/* 异型材专区：实物大图展开 */
.et-diagram.et-photo { padding: 0; overflow: hidden; }
.et-photo-big { width: 100%; height: auto; display: block; }


/* ===== 复制询价后的确认弹层（鸡蛋托 / 异型材专区共用）：引导加微信或来电确认订单 ===== */
.ask-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(6,20,36,.62); backdrop-filter: blur(3px); }
.ask-modal.is-open { display: flex; }
.ask-modal-card { position: relative; width: min(480px, 100%); padding: 34px 30px 24px; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(6,20,36,.35); text-align: center; }
.ask-modal-card h3 { margin: 0 0 8px; font-size: 22px; color: var(--navy); }
.ask-modal-lead { margin: 0 0 20px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.ask-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ask-modal-qr, .ask-modal-tel { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #f8fbfe; }
.ask-modal-qr img { width: 122px; height: 122px; object-fit: cover; border-radius: 10px; }
.ask-modal-qr span { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.ask-modal-tel { display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.ask-modal-tel span { font-size: 12.5px; color: var(--ink-soft); }
.ask-modal-tel a { color: var(--blue); font-size: 21px; font-weight: 800; text-decoration: none; }
.ask-modal-tel em { font-style: normal; font-size: 12.5px; color: var(--ink-soft); }
.ask-modal-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #eef3f8; color: #52657a; font-size: 17px; cursor: pointer; }
.ask-modal-close:hover { background: #e2ebf5; }
.ask-modal-note { margin: 16px 0 0; font-size: 12px; color: #90a1b3; }
body.ask-lock { overflow: hidden; }
@media (max-width: 520px) {
  .ask-modal-grid { grid-template-columns: 1fr; }
}
