/* 产品详情内页（sp-view-*）· PC/移动端响应式 */
.sp-view { background:#fff; border:1px solid #e4e4e4; padding:26px; box-sizing:border-box; }
.sp-view-top { display:flex; gap:34px; align-items:flex-start; }

/* 图集 */
.sp-view-gallery { flex:0 0 420px; max-width:420px; width:100%; }
.sp-view-main { width:100%; aspect-ratio:1/1; background:#fff; border:1px solid #e4e4e4; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.sp-view-main img { max-width:100%; max-height:100%; object-fit:contain; display:block; transition:opacity .15s ease; }
.sp-view-thumbs { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.sp-view-thumb { width:74px; height:74px; padding:0; border:2px solid #e4e4e4; background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.sp-view-thumb img { max-width:100%; max-height:100%; object-fit:contain; }
.sp-view-thumb.on { border-color:#1e4fb8; }

/* 摘要信息 */
.sp-view-info { flex:1 1 auto; min-width:0; }
.sp-view-title { font-size:24px; line-height:1.4; color:#222; margin:0 0 16px; font-weight:700; }
.sp-view-no, .sp-view-cat { margin:0 0 8px; color:#666; font-size:14px; }
.sp-view-no b, .sp-view-cat b { color:#333; }
.sp-view-price { margin:18px 0; padding:14px 16px; background:#f7f9fc; border-left:3px solid #1e4fb8; }
.sp-view-price-label { color:#333; font-size:14px; margin-right:10px; }
.sp-view-price-value { color:#d8321e; font-size:22px; font-weight:700; }
.sp-view-price-login { color:#999; font-size:14px; }
.sp-view-price-login a { color:#1e4fb8; }

/* 操作按钮 */
.sp-view-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
.sp-view-btn { display:inline-block; height:44px; line-height:42px; padding:0 26px; font-size:15px; text-align:center; border-radius:3px; border:1px solid #1e4fb8; box-sizing:border-box; cursor:pointer; background:#fff; color:#1e4fb8; text-decoration:none; }
.sp-view-btn:hover { opacity:.88; }
.sp-view-btn-primary { background:#1e4fb8; color:#fff; }

/* 区块 */
.sp-view-section { margin-top:34px; }
.sp-view-h { font-size:18px; color:#222; border-bottom:2px solid #1e4fb8; padding-bottom:10px; margin:0 0 16px; }
.sp-view-specs { width:100%; border-collapse:collapse; }
.sp-view-specs th, .sp-view-specs td { border:1px solid #e4e4e4; padding:10px 14px; font-size:14px; text-align:left; }
.sp-view-specs th { background:#f7f9fc; color:#333; width:220px; font-weight:600; }
.sp-view-specs td { color:#555; }
.sp-view-desc { font-size:14px; line-height:2; color:#555; word-break:break-word; }
.sp-view-desc img { max-width:100%; height:auto; }

/* 相关产品 */
.sp-view-related { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.sp-view-related li a { display:block; border:1px solid #e4e4e4; background:#fff; text-decoration:none; transition:border-color .15s ease; }
.sp-view-related li a:hover { border-color:#1e4fb8; }
.sp-view-related-img { display:flex; width:100%; aspect-ratio:1/1; align-items:center; justify-content:center; overflow:hidden; }
.sp-view-related-img img { max-width:100%; max-height:100%; object-fit:contain; }
.sp-view-related-title { display:block; padding:10px 12px; font-size:13px; color:#444; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* 移动端 */
@media (max-width: 900px) {
  .sp-view { padding:14px; }
  .sp-view-top { flex-direction:column; gap:18px; }
  .sp-view-gallery { flex:none; max-width:none; }
  .sp-view-title { font-size:19px; }
  .sp-view-related { grid-template-columns:repeat(2, 1fr); }
  .sp-view-btn { flex:1 1 40%; }
}

/* ---------- 在线询价弹窗 ---------- */
.sp-ask-modal { position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; padding:20px; box-sizing:border-box; }
.sp-ask-modal[hidden] { display:none; }
.sp-ask-mask { position:absolute; inset:0; background:rgba(0,0,0,.5); }
.sp-ask-dialog { position:relative; background:#fff; border-radius:6px; width:min(560px, 100%); max-height:min(88vh, 760px); display:flex; flex-direction:column; overflow:hidden; box-shadow:0 12px 40px rgba(0,0,0,.25); }
.sp-ask-close { position:absolute; top:10px; right:10px; width:36px; height:36px; line-height:34px; border:none; background:transparent; font-size:26px; color:#999; cursor:pointer; z-index:2; }
.sp-ask-close:hover { color:#333; }
.sp-ask-head { padding:18px 48px 12px 22px; border-bottom:1px solid #eee; flex:none; }
.sp-ask-head h3 { margin:0 0 6px; font-size:19px; color:#222; }
.sp-ask-product { margin:0; font-size:13px; color:#1e4fb8; }
.sp-ask-body { padding:18px 22px 22px; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.sp-ask-row { margin-bottom:14px; }
.sp-ask-row label { display:block; font-size:14px; color:#333; margin-bottom:6px; }
.sp-ask-row label i { color:#d8321e; font-style:normal; margin-left:2px; }
.sp-ask-row input[type="text"], .sp-ask-row input[type="email"], .sp-ask-row textarea {
  width:100%; box-sizing:border-box; border:1px solid #d9d9d9; border-radius:3px;
  padding:10px 12px; font-size:15px; line-height:1.5; color:#333; outline:none; background:#fff;
}
.sp-ask-row input[type="text"]:focus, .sp-ask-row input[type="email"]:focus, .sp-ask-row textarea:focus { border-color:#1e4fb8; }
.sp-ask-row textarea { resize:vertical; }
.sp-ask-row input[type="file"] { width:100%; box-sizing:border-box; font-size:13px; color:#555; }
.sp-ask-tip { font-size:12px; color:#999; margin:2px 0 14px; }
.sp-ask-submit { display:block; width:100%; height:46px; line-height:46px; border:none; border-radius:3px; background:#1e4fb8; color:#fff; font-size:16px; cursor:pointer; text-align:center; }
.sp-ask-submit:hover { opacity:.9; }
.sp-ask-submit:disabled { opacity:.6; cursor:default; }
.sp-ask-done { text-align:center; padding:26px 6px 10px; }
.sp-ask-done-icon { width:54px; height:54px; line-height:54px; margin:0 auto 14px; border-radius:50%; background:#2fa35c; color:#fff; font-size:30px; }
.sp-ask-done-text { font-size:15px; color:#333; margin:0 0 20px; }

/* 弹窗移动端适配：近全屏、内部滚动、输入 16px 防 iOS 聚焦缩放 */
@media (max-width: 600px) {
  .sp-ask-modal { padding:0; align-items:flex-end; }
  .sp-ask-dialog { width:100%; max-height:92vh; border-radius:10px 10px 0 0; }
  .sp-ask-head { padding:14px 46px 10px 16px; }
  .sp-ask-head h3 { font-size:17px; }
  .sp-ask-body { padding:14px 16px calc(16px + env(safe-area-inset-bottom)); }
  .sp-ask-row input[type="text"], .sp-ask-row input[type="email"], .sp-ask-row textarea { font-size:16px; padding:11px 12px; }
}
