/* 落地页 H5 前台渲染 - 阶段11
   独立于编辑器,极致轻量 (<15KB),移动端优先
*/
* { box-sizing: border-box; }
body { margin: 0; padding: 0; background: #f5f6f8; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #1a1d21; font-size: 14px; }
#landing-root { max-width: 480px; margin: 0 auto; background: #fff; min-height: 100vh; box-shadow: 0 0 20px rgba(0,0,0,0.05); }

/* block 通用样式 */
.lp-block { position: relative; }
.lp-block-title { padding: 16px; }
.lp-block-paragraph { padding: 8px 16px; line-height: 1.7; }
.lp-block-image { text-align: center; }
.lp-block-image img { max-width: 100%; display: block; margin: 0 auto; }
.lp-block-divider { margin: 12px 16px; }
.lp-block-video, .lp-block-avatar_video { background: #000; }
.lp-block-video video, .lp-block-avatar_video video { width: 100%; display: block; }
.lp-block-countdown { padding: 14px 16px; text-align: center; background: #fef3c7; color: #92400e; font-weight: 600; font-size: 15px; }
.lp-block-countdown .digits { font-family: "Courier New", monospace; letter-spacing: 1px; }

/* 表单 */
.lp-form-item { padding: 10px 16px; }
.lp-form-item label { display: block; font-size: 13px; margin-bottom: 6px; color: #374151; font-weight: 500; }
.lp-form-item .req { color: #dc2626; }
.lp-form-item input[type=text], .lp-form-item input[type=tel], .lp-form-item input[type=email], .lp-form-item input[type=number], .lp-form-item input[type=date], .lp-form-item textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 15px; box-sizing: border-box; outline: none; background: #fff;
}
.lp-form-item input:focus, .lp-form-item textarea:focus { border-color: #3b82f6; }
.lp-form-item textarea { min-height: 80px; resize: vertical; }
.lp-form-item .opts { display: flex; flex-direction: column; gap: 8px; }
.lp-form-item .opt { padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.lp-form-item .opt.checked { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; }
.lp-form-item .opt input { margin: 0; }

/* 按钮 */
.lp-block-button { padding: 16px; }
.lp-block-button button { width: 100%; padding: 14px; border: none; border-radius: 999px; font-size: 16px; font-weight: 600; cursor: pointer; }
.lp-block-button button:active { opacity: 0.85; }

/* 报价器 */
.lp-block-quote_configurator { padding: 12px 16px; background: #f9fafb; margin: 8px 0; }
.lp-quote-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.lp-quote-list { display: flex; flex-direction: column; gap: 10px; }
.lp-quote-item { display: flex; gap: 10px; padding: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; align-items: center; }
.lp-quote-item.selected { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.15); }
.lp-quote-item .img { width: 60px; height: 60px; background: #f3f4f6; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 22px; flex-shrink: 0; overflow: hidden; }
.lp-quote-item .img img { width: 100%; height: 100%; object-fit: cover; }
.lp-quote-item .info { flex: 1; min-width: 0; }
.lp-quote-item .name { font-size: 14px; font-weight: 500; }
.lp-quote-item .desc { font-size: 11px; color: #6b7280; margin-top: 2px; }
.lp-quote-item .price { font-size: 14px; color: #dc2626; font-weight: 600; margin-top: 4px; }
.lp-quote-item .add { padding: 6px 12px; background: #3b82f6; color: #fff; border: none; border-radius: 999px; font-size: 12px; cursor: pointer; flex-shrink: 0; }
.lp-quote-item .add.selected { background: #10b981; }
.lp-quote-total { margin-top: 12px; padding: 12px 14px; background: #fef2f2; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #dc2626; }

/* 提交成功 */
.lp-thanks { padding: 60px 20px; text-align: center; }
.lp-thanks .icon { font-size: 56px; color: #10b981; margin-bottom: 12px; }
.lp-thanks h2 { font-size: 20px; margin: 0 0 8px; }
.lp-thanks p { color: #6b7280; font-size: 13px; }

/* 加载遮罩 */
.lp-loading { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 999; }
.lp-loading .box { background: #fff; padding: 20px 30px; border-radius: 12px; }
