/* ===== H5 展示页 · 表单 / 计算器 / 悬浮栏 / 弹层 ===== */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 16px; }

/* 按钮 */
.btn-gold, .btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 22px; border-radius: 23px; border: 0; font-size: 15px; font-weight: 600; white-space: nowrap; }
.btn-gold { background: var(--gold-grad); color: #fff; box-shadow: 0 6px 16px rgba(187, 143, 79, .35); }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #cfc8bd; }
.btn-gold svg, .btn-line svg { width: 18px; height: 18px; }
.block { display: flex; width: 100%; }
button:disabled { opacity: .6; cursor: default; }

/* 表单字段 */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field > span i { color: var(--price); font-style: normal; margin-left: 2px; }
.field input, .field select, .field textarea { display: block; width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f7; padding: 0 12px; font-size: 15px; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .2s, background .2s; }
.field textarea { height: 84px; padding: 10px 12px; resize: none; line-height: 1.5; }
.field select { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b9099' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: #fff; }

/* 报价计算器 */
.c-dims { display: flex; align-items: flex-end; gap: 8px; }
.c-dims .field { flex: 1; min-width: 0; }
.c-x { padding-bottom: 26px; color: var(--muted); }
.stepper { display: flex; height: 46px; width: 150px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { width: 46px; flex: none; border: 0; background: #f3f0ea; font-size: 20px; color: var(--ink-2); }
.field .stepper input { flex: 1; width: auto; min-width: 0; height: 100%; border: 0; border-radius: 0; background: #fff; text-align: center; padding: 0; }
.c-result { margin: 2px 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--ink) radial-gradient(circle at 100% 0, rgba(191, 150, 86, .3), transparent 60%); color: #fff; }
.c-result div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.c-result span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.c-result b { font: 700 28px/1.1 var(--num); color: var(--gold-l); }
.c-result p { font-size: 11px; color: rgba(255, 255, 255, .55); margin-top: 6px; line-height: 1.5; }
.c-note { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* 预约表单 */
.booking .card { overflow: hidden; }
.bk-head { margin: -18px -16px 18px; padding: 22px 18px 20px; color: #fff; background: var(--ink) radial-gradient(circle at 100% 0, rgba(191, 150, 86, .35), transparent 60%); }
.bk-head h3 { font-size: 19px; letter-spacing: .5px; }
.bk-head p { font-size: 12px; color: rgba(255, 255, 255, .66); margin-top: 4px; }
.bk-chip { display: none; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; background: var(--gold-bg); color: var(--gold-d); font-size: 12.5px; }
.bk-chip.show { display: flex; }
.bk-chip button { border: 0; background: none; color: var(--muted); font-size: 12px; flex: none; }
.privacy { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: var(--muted); margin-top: 10px; }
.privacy svg { width: 12px; height: 12px; }
.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 3px rgba(191, 150, 86, .55), var(--shadow); } }

/* 底部悬浮栏 */
.dock { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; align-items: center; gap: 6px; padding: 8px 12px calc(8px + var(--safe-b)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -4px 20px rgba(0, 0, 0, .06); }
.dock-item { width: 54px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; color: var(--ink-2); background: none; border: 0; }
.dock-item svg { width: 22px; height: 22px; }
.dock .btn-gold { flex: 1; height: 46px; margin-left: 4px; }

/* 弹层 */
.sheet { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet.open { pointer-events: auto; }
.sheet-mask { position: absolute; inset: 0; background: rgba(15, 17, 21, .5); opacity: 0; transition: opacity .3s; }
.sheet.open .sheet-mask { opacity: 1; }
.sheet-panel { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 480px; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); border-radius: 20px 20px 0 0; transform: translate(-50%, 100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.sheet.open .sheet-panel { transform: translate(-50%, 0); }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-foot { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, .05); }
.sheet-foot .btn-gold, .sheet-foot .btn-line { flex: 1; padding: 0 10px; }
.sheet-x { position: absolute; z-index: 3; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .42); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.sheet-x svg { width: 18px; height: 18px; }
.sheet.center .sheet-panel { bottom: auto; top: 50%; width: calc(100% - 48px); max-width: 360px; border-radius: 20px; background: #fff; transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .25s, opacity .25s; }
.sheet.center.open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; }
.sheet.center .sheet-x { background: #f1efeb; color: var(--muted); }
.pop { padding: 28px 22px 22px; text-align: center; }
.pop h3 { font-size: 18px; }
.pop p { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.pop .btn-gold { margin-top: 18px; }

/* 产品 / 案例详情 */
.gallery { position: relative; background: #eceef0; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
.gallery.wide .g-track img { aspect-ratio: 16 / 10; }
.g-idx { position: absolute; right: 12px; bottom: 12px; font-size: 11px; padding: 2px 10px; border-radius: 10px; background: rgba(0, 0, 0, .45); color: #fff; }
.d-main { background: #fff; padding: 16px; }
.d-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; color: var(--price); }
.d-price b { font: 700 30px/1 var(--num); }
.d-price small { font-size: 15px; font-weight: 700; }
.d-price span { font-size: 13px; color: var(--muted); }
.d-price del { font-size: 13px; color: #b5b9bf; margin-left: 6px; }
.d-main h2 { font-size: 18px; line-height: 1.4; margin-top: 10px; }
.d-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.d-block { background: #fff; margin-top: 10px; padding: 16px; }
.d-block h5 { font-size: 15px; margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--gold); line-height: 1.1; }
.d-block p { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; white-space: pre-line; }
.specs { display: grid; grid-template-columns: 88px 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13px; }
.specs dt, .specs dd { padding: 10px 12px; border-top: 1px solid var(--line); line-height: 1.5; }
.specs dt:first-of-type, .specs dt:first-of-type + dd { border-top: 0; }
.specs dt { background: #faf8f4; color: var(--muted); }
.guarantee { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; }
.guarantee li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); padding: 10px; border-radius: 10px; background: #faf8f4; }
.guarantee svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.d-tel { width: 52px; flex: none !important; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--ink-2); }
.d-tel svg { width: 22px; height: 22px; }

/* 微信弹窗 */
.wx-qr { width: 180px; height: 180px; margin: 16px auto 4px; border-radius: 12px; object-fit: contain; box-shadow: 0 0 0 1px var(--line); }
.wx-id { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #faf8f4; font-size: 13px; color: var(--muted); }
.wx-id b { font: 600 17px/1 var(--num); color: var(--ink); letter-spacing: .5px; }
.ok-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #fff; box-shadow: 0 8px 20px rgba(187, 143, 79, .35); }
.ok-icon svg { width: 32px; height: 32px; }

/* 轻提示 */
.toast { position: fixed; left: 50%; top: 45%; z-index: 99; transform: translate(-50%, -50%) scale(.92); max-width: 76%; padding: 12px 18px; border-radius: 12px; background: rgba(20, 22, 26, .9); color: #fff; font-size: 14px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
