/**
 * 网络祭祀三场景样式（祭拜厅/实景墓/网络墓地 + 双人/宗祠），PC与移动共用
 */

/* ============ 场景tab ============ */
.scene-tabs-wrap { display: flex; justify-content: center; padding: 14px 0 0; }
.scene-tabs { display: inline-flex; background: #fff; border: 1px solid var(--gold-light); border-radius: 24px; padding: 4px; gap: 2px; }
.scene-tab { border: 0; background: transparent; border-radius: 20px; padding: 8px 20px; font-size: 14px; color: var(--text-light); transition: all .15s; }
.scene-tab.on { background: var(--brown); color: #fff; font-weight: 600; }
.scene-tab:hover:not(.on) { color: var(--brown); }

/* 馆信息条 */
.hall-meta { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0 4px; font-size: 13px; color: var(--text-light); flex-wrap: wrap; }
.hall-meta .hm-cat { background: var(--gold-light); color: var(--brown-dark); border-radius: 12px; padding: 2px 12px; font-weight: 600; }
.hall-meta .hm-no { font-family: monospace; letter-spacing: 1px; }

/* 逝者横排（双人/宗祠） */
.person-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding: 14px 0 4px; }
.hh-person { text-align: center; min-width: 120px; }
.hh-photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold-light); margin: 0 auto 6px; background: #d8e9f8; }
.hh-photo img { width: 100%; height: 100%; object-fit: cover; }
.hh-name { font-size: 15px; font-weight: 600; color: var(--brown-dark); }
.hh-rel { font-size: 12px; color: var(--gold); }
.hh-dates { font-size: 12px; color: var(--text-light); }
.hall-epitaph { text-align: center; color: var(--text-light); font-style: italic; padding: 8px 0; font-size: 14px; }

/* ============ 场景容器 ============ */
.scene-box { position: relative; margin: 12px 0; border-radius: 14px; overflow: hidden; min-height: 300px; }

/* ---- 祭拜厅 ---- */
.scene-hall { background: linear-gradient(180deg, #7a5c42 0%, #8d6f52 55%, #6b4f3a 100%); padding: 0 0 0; }
.sh-wall { position: relative; height: 150px; background: repeating-linear-gradient(90deg, #8a6a4c 0 84px, #7d5f44 84px 88px); border-bottom: 6px solid #54382a; display: flex; align-items: center; justify-content: center; }
.sh-plaque { width: 56px; height: 56px; border-radius: 8px; background: #54382a; color: var(--gold); font-family: "KaiTi", serif; font-size: 30px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 3px #c9a063, 0 4px 10px rgba(0,0,0,.3); }
.sh-altar { position: relative; display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: -58px; padding: 0 16px; }
.sh-candle, .sh-incense { font-size: 42px; filter: drop-shadow(0 0 8px rgba(255, 190, 90, .55)); }
.sh-portraits { display: flex; gap: 22px; }
.sh-portrait { text-align: center; position: relative; }
.sh-portrait img { width: 108px; height: 132px; object-fit: cover; border: 4px solid #e8d5b5; border-radius: 8px; background: #2e241c; box-shadow: 0 8px 22px rgba(0,0,0,.4); display: block; }
.sh-portrait span { position: absolute; left: 4px; right: 4px; bottom: 4px; display: block; padding: 3px 0; background: rgba(30, 22, 14, .72); color: #f3e9db; font-size: 13px; letter-spacing: 2px; border-radius: 0 0 5px 5px; }
.sh-table { margin: 10px auto 0; max-width: 520px; height: 22px; background: linear-gradient(180deg, #54382a, #3d2a1e); border-radius: 4px 4px 10px 10px; box-shadow: 0 10px 18px rgba(0,0,0,.25); position: relative; }
.sh-fruits { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 20px; letter-spacing: 6px; }

/* ---- 实景墓 ---- */
.scene-tomb { min-height: 340px; background: #dfe8ee; }
.st-photo { width: 100%; height: 380px; object-fit: cover; display: block; }
.st-plate { position: absolute; right: 18px; bottom: 18px; background: rgba(60, 45, 32, .82); color: #f3e9db; border: 1px solid rgba(232, 213, 181, .5); border-radius: 10px; padding: 10px 16px; max-width: 60%; }
.st-plate b { display: block; font-size: 15px; font-family: "KaiTi", serif; letter-spacing: 2px; }
.st-plate span { font-size: 12px; opacity: .85; }
.st-virtual { position: relative; height: 380px; overflow: hidden; }
.stv-sky { position: absolute; inset: 0 0 30% 0; background: linear-gradient(180deg, #cfe0ec, #eee9da); }
.stv-hill { position: absolute; left: -10%; right: -10%; bottom: 26%; height: 34%; background: #7d9374; border-radius: 50% 50% 0 0; opacity: .75; }
.stv-stone { position: absolute; left: 50%; transform: translateX(-50%); bottom: 22%; width: 170px; height: 130px; background: linear-gradient(180deg, #9aa5a8, #7e898c); border-radius: 14px 14px 6px 6px; box-shadow: 0 12px 24px rgba(40,50,40,.35), inset 0 2px 0 rgba(255,255,255,.35); }
.stv-plate { margin: 18px auto 0; width: 120px; text-align: center; color: #4c555a; font-family: "KaiTi", serif; font-size: 17px; letter-spacing: 3px; border-top: 2px solid #6e797d; border-bottom: 2px solid #6e797d; padding: 10px 0; }
.stv-tree { position: absolute; bottom: 24%; font-size: 34px; }
.stv-tree.t1 { left: 10%; } .stv-tree.t2 { right: 10%; font-size: 42px; } .stv-tree.t3 { left: 22%; bottom: 20%; font-size: 26px; }
.stv-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, #93a878, #7c9264); }
.stv-tip { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; color: rgba(50,60,45,.75); font-size: 12px; }

/* ---- 网络墓地 ---- */
.scene-cemetery { min-height: 380px; background: linear-gradient(180deg, #dcebf3 0%, #eef2e6 60%, #dfe8d2 100%); }
.sc-sky { position: absolute; inset: 0 0 55% 0; }
.sc-sun { position: absolute; right: 12%; top: 14%; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #ffe9a8, #f7d774); box-shadow: 0 0 30px rgba(247, 215, 116, .8); }
.sc-cloud { position: absolute; font-size: 22px; opacity: .8; animation: scFloat 26s linear infinite; }
.sc-cloud.c1 { top: 10%; } .sc-cloud.c2 { top: 26%; font-size: 16px; animation-duration: 38s; animation-direction: reverse; }
@keyframes scFloat { from { left: -6%; } to { left: 104%; } }
.sc-mountains { position: absolute; left: 0; right: 0; bottom: 42%; height: 30%; }
.sc-mt { position: absolute; bottom: 0; width: 60%; height: 100%; background: #90a886; border-radius: 48% 52% 0 0; opacity: .65; }
.sc-mt.m1 { left: -12%; } .sc-mt.m2 { right: -12%; background: #7f9a78; }
.sc-trees { position: absolute; left: 0; right: 0; bottom: 40%; height: 44px; }
.sc-tree { position: absolute; bottom: 0; font-size: 38px; filter: drop-shadow(0 3px 4px rgba(50,70,40,.3)); }
.sc-stones { position: absolute; left: 0; right: 0; bottom: 17%; display: flex; justify-content: center; gap: 34px; }
.sc-stone { width: 92px; height: 104px; background: linear-gradient(180deg, #a8b3b6, #8b969a); border-radius: 12px 12px 5px 5px; box-shadow: 0 10px 18px rgba(40,50,40,.3), inset 0 2px 0 rgba(255,255,255,.4); text-align: center; padding-top: 10px; box-sizing: border-box; }
.scs-top { font-size: 18px; }
.scs-name { margin-top: 6px; font-family: "KaiTi", serif; font-size: 15px; color: #455055; font-weight: 700; letter-spacing: 1px; }
.scs-sub { font-size: 11px; color: #5a656a; margin-top: 2px; }
.sc-grass { position: absolute; left: 0; right: 0; bottom: 0; height: 20%; background: linear-gradient(180deg, #a4bc82, #8ba76a); }
.sc-lantern { position: absolute; bottom: 14%; font-size: 26px; filter: drop-shadow(0 0 10px rgba(255, 120, 60, .5)); animation: scSway 3.4s ease-in-out infinite alternate; transform-origin: top center; }
.sc-lantern.l1 { left: 8%; } .sc-lantern.l2 { right: 8%; animation-delay: -1.6s; }
@keyframes scSway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.sc-tip { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 12px; color: rgba(60,70,50,.6); }

/* ============ 单位展示增强（环境图集/墓型卡/周边陵园） ============ */
.gallery-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.gallery-item { margin: 0; flex-shrink: 0; width: 240px; height: 150px; border-radius: 10px; overflow: hidden; background: #d8e9f8; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.05); }

.tomb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tomb-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: all .18s; }
.tomb-card:hover { border-color: var(--gold); box-shadow: 0 6px 16px rgba(40,90,150,.12); }
.tomb-img { height: 130px; overflow: hidden; background: #eef0ea; }
.tomb-img img { width: 100%; height: 100%; object-fit: cover; }
.tomb-body { padding: 10px 12px 12px; }
.tomb-body b { font-size: 14.5px; color: var(--brown-dark); }
.tomb-price { float: right; color: var(--red); font-weight: 600; font-size: 13.5px; }
.tomb-body p { margin: 6px 0 0; font-size: 12.5px; color: var(--text-light); line-height: 1.6; }

.nearby-unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.nu-card { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; transition: all .18s; }
.nu-card:hover { border-color: var(--gold); }
.nu-cover { width: 86px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #d8e9f8; }
.nu-cover img { width: 100%; height: 100%; object-fit: cover; }
.nu-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nu-body b { font-size: 13.5px; color: var(--text); }
.nu-addr { font-size: 11.5px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-meta { font-size: 11.5px; color: var(--gold); }
