﻿/* ============================================
   墓园详细页面样式 - 手机端修复版 v4
   只修改 @media screen and (max-width: 768px) 部分
   电脑版完全不动
   ============================================ */

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    width: 100%;
    height: 100%;
    font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #000;
    overflow-x: hidden;
}

/* ===== 左上角区域：返回首页 + 音乐 ===== */
.top-left-area {
    position: absolute;
    top: 5px;
    left: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.back-home {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 12px;
    background: rgba(0,0,0,0.7);
    padding: 6px 12px;
    border-radius: 3px;
    white-space: nowrap;
}

/* ===== 音乐播放器开关 ===== */
.music-toggle {
    cursor: pointer;
}

.mp-toggle {
    width: 32px;
    height: 100px;
    background: #c00;
    color: #000;
    font-size: 14px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    cursor: pointer;
    letter-spacing: 4px;
    padding: 12px 0;
    line-height: 1.4;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

.mp-toggle.active { color: #fff; }

.mp-toggle-icon {
    font-size: 12px;
    margin-bottom: 6px;
    display: block;
}

.mp-toggle-text { display: block; }

/* ===== 音乐播放器面板 ===== */
.music-panel {
    position: absolute;
    top: 40px;
    left: 42px;
    z-index: 1000;
    display: none;
    width: 260px;
    background: rgba(0,0,0,0.95);
    border-radius: 5px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.mp-box { color: #fff; }

.mp-now-playing {
    font-size: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.mp-now-label { color: #aaa; }
.mp-now-name { font-size: 14px; font-weight: bold; color: #24a378; }

.mp-song-list {
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 12px;
}
.mp-song-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    font-size: 13px;
    margin-bottom: 2px;
}
.mp-song-item:hover { background: rgba(255,255,255,0.1); }
.mp-song-item.active {
    background: rgba(36,163,120,0.3);
    color: #24a378;
}
.mp-song-num {
    width: 22px;
    text-align: center;
    margin-right: 8px;
    color: #aaa;
    font-size: 12px;
}
.mp-song-item.active .mp-song-num { color: #24a378; }
.mp-song-name { flex: 1; }
.mp-song-status {
    width: 22px;
    text-align: center;
    font-size: 10px;
    color: #24a378;
}

.mp-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    align-items: center;
    justify-content: center;
}
.mp-ctrl-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-ctrl-btn:hover { background: rgba(255,255,255,0.4); }

.mp-pro {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    position: relative;
    margin-bottom: 6px;
}
.mp-pro-current {
    width: 0%;
    height: 100%;
    background: #24a378;
    border-radius: 2px;
    transition: width 0.3s;
}

.mp-time {
    text-align: center;
    font-size: 11px;
    color: #aaa;
}

/* ===== 右上角区域：祭品记录 ===== */
.top-right-area {
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.main-cbl-right {
    position: fixed;
    right: 0;
    top: 50px;
    width: 260px;
    background: rgba(0,0,0,0.92);
    border-radius: 5px 0 0 5px;
    color: #fff;
    z-index: 1000;
    display: block;
    box-shadow: -2px 0 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.main_cbl_gb {
    padding: 10px 15px;
    background: #000;
    border-radius: 5px 0 0 0;
    cursor: pointer;
    text-align: right;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    transition: all 0.3s;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255,255,255,0.1);
}

.main_cbl_gb:hover { background: #333; }

.cbl-header {
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    pointer-events: none;
}

.cbl {
    list-style: none;
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
    pointer-events: auto;
}

.cbl li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    line-height: 1.6;
    color: #ddd;
    pointer-events: none;
}

.cbl li:last-child { border-bottom: none; }
.no-record { text-align: center; color: #999; padding: 20px; pointer-events: none; }

.main-cbl-right-dk {
    position: fixed;
    right: 0;
    top: 50px;
    z-index: 999;
    display: none;
}

.main_cbl_dkan {
    width: 75px;
    height: 42px;
    background: #000;
    color: #fff;
    line-height: 42px;
    text-align: center;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    font-size: 13px;
    padding-left: 28px;
    position: relative;
    transition: all 0.3s;
    font-weight: bold;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255,255,255,0.1);
}

.main_cbl_dkan:hover {
    background: #333;
    width: 80px;
}

.main_cbl_dkan img {
    position: absolute;
    left: 6px;
    top: 9px;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

/* ===== 登录弹窗 ===== */
.login-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    display: none;
}
.login-popup-box {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    z-index: 9999;
    display: none;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.login-popup-box h3 { text-align: center; margin-bottom: 20px; color: #333; }
.login-popup-box .form-row { margin-bottom: 15px; }
.login-popup-box .form-row label { display: block; margin-bottom: 5px; color: #666; font-size: 14px; }
.login-popup-box .form-row input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; font-size: 14px; }
.login-popup-box .btn-login-submit { width: 100%; padding: 12px; background: #c9302c; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; margin-top: 10px; }
.login-popup-box .btn-login-submit:hover { background: #a02622; }
.login-popup-box .login-links { text-align: center; margin-top: 15px; font-size: 13px; }
.login-popup-box .login-links a { color: #c9302c; text-decoration: none; margin: 0 10px; }
.login-popup-box .login-close { position: absolute; top: 10px; right: 15px; font-size: 24px; color: #999; cursor: pointer; line-height: 1; }
.login-popup-box .login-close:hover { color: #333; }

/* ===== 祭品区域 - 移到墓碑前红线圈范围内 [电脑版] ===== */
.area-incense {
    position: absolute;         /* [电脑版香烛区域定位] */
    top: 500px;                /* [电脑版香烛区域顶部位置-墓碑底部平台] */
    left: 50%;                 /* [电脑版香烛区域水平居中] */
    transform: translateX(-50%); /* [电脑版香烛区域居中偏移] */
    width: 20%;                /* [电脑版香烛区域宽度] */
    height: 60px;             /* [电脑版香烛区域高度-红线圈范围内] */
    background: transparent;   /* [电脑版香烛区域背景透明] */
    z-index: 20;              /* [电脑版香烛区域层级] */
    pointer-events: none;     /* [电脑版香烛区域不阻挡点击] */
}

.area-other {
    position: absolute;         /* [电脑版祭品区域定位] */
    top: 540px;                /* [电脑版祭品区域顶部位置-红线圈范围内] */
    left: 50%;                 /* [电脑版祭品区域水平居中] */
    transform: translateX(-50%); /* [电脑版祭品区域居中偏移] */
    width: 45%;                /* [电脑版祭品区域宽度-红线圈范围内] */
    height: 100px;           /* [电脑版祭品区域高度-红线圈范围内] */
    background: transparent;   /* [电脑版祭品区域背景透明] */
    z-index: 15;             /* [电脑版祭品区域层级] */
    pointer-events: none;    /* [电脑版祭品区域不阻挡点击] */
}

.scene-item {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    cursor: pointer;
}
.scene-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 3px 4px rgba(0,0,0,0.5));
}
.scene-item:hover {
    transform: scale(1.3) !important;
    z-index: 100 !important;
}
.scene-item .item-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    margin-bottom: 6px;
    text-align: center;
    line-height: 1.6;
}
.scene-item:hover .item-tooltip {
    opacity: 1;
}

.area-incense .scene-item { width: 30px; height: 45px; }
.area-other .scene-item { width: 50px; height: 50px; }

/* ===== 主场景 ===== */
.scene-wrapper {
    width: 1280px;
    margin: 0 auto;
    position: relative;
    background: #000;
    min-height: 700px;
    overflow: hidden;
}

.scene-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 480px;
    z-index: 1;
}

.scene-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.scene-fill-1 {
    position: absolute;
    top: 480px;
    left: 0;
    width: 100%;
    height: calc(100% - 480px);
    z-index: 2;
    overflow: hidden;
}

.scene-fill-img-1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.scene-fill-2 {
    position: absolute;
    top: 480px;
    left: 0;
    width: 100%;
    height: calc(100% - 480px);
    z-index: 3;
    overflow: hidden;
}

.scene-fill-img-2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ===== 墓碑 ===== */
.tombstone {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 480px;
    z-index: 6;
    text-align: center;
}

.tombstone-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center top;
    display: block;
}

.tomb-scene {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 480px;
    z-index: 15;
    text-align: center;
    pointer-events: none;
}

.tomb-photo {
    position: absolute;
    top: 103px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 62px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    z-index: 15;
    pointer-events: auto;
}

.tomb-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tomb-name-vertical {
    position: absolute;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 13px;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.95), 0 0 5px rgba(0,0,0,0.8);
    letter-spacing: 5px;
    z-index: 15;
    line-height: 1.8;
    text-align: center;
    pointer-events: auto;
}

.incense-burner {
    position: absolute;
    bottom: 235px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: auto;
}

.incense-burner img {
    width: 40px;
    height: 55px;
    display: block;
}

/* 烟雾特效 */
.smoke {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 100px;
    pointer-events: none;
}

.smoke-line {
    position: absolute;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to top, rgba(255,255,255,0.7), rgba(200,200,200,0.3), rgba(255,255,255,0));
    border-radius: 2px;
    opacity: 0;
    filter: blur(1px);
    animation: smokeWave 3.5s infinite ease-in-out;
}

.smoke-line:nth-child(1) {
    left: 10px;
    animation-delay: 0s;
    height: 80px;
}

.smoke-line:nth-child(2) {
    left: 24px;
    animation-delay: 0.6s;
    height: 95px;
}

.smoke-line:nth-child(3) {
    left: 38px;
    animation-delay: 1.2s;
    height: 85px;
}

@keyframes smokeWave {
    0% {
        bottom: 0;
        opacity: 0.8;
        transform: translateX(0) scaleY(0.2);
    }
    20% {
        opacity: 0.6;
        transform: translateX(6px) scaleY(0.5);
    }
    40% {
        opacity: 0.5;
        transform: translateX(-8px) scaleY(0.7);
    }
    60% {
        opacity: 0.3;
        transform: translateX(5px) scaleY(0.9);
    }
    80% {
        opacity: 0.15;
        transform: translateX(-4px) scaleY(1);
    }
    100% {
        bottom: 100px;
        opacity: 0;
        transform: translateX(2px) scaleY(1.1);
    }
}

/* ===== 底部信息栏 ===== */
.bottom-info {
    width: 1280px;
    margin: 0 auto;
    background: url('/static/muyuan/images/bgdb.jpg') repeat;
    z-index: 100;
    padding: 0;
    border-top: none;
    position: relative;
}

.bottom-info-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 20px 30px;
    background: rgba(128,128,128,0.85);
    border-radius: 0;
    position: relative;
    z-index: 2;
}

.bottom-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    height: 4px;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 3;
}

.user-photo {
    text-align: center;
    flex-shrink: 0;
    position: relative;
    background: transparent;
}

.photo-frame {
    width: 110px;
    height: 140px;
    border-radius: 0;
    overflow: hidden;
    border: 15px solid #000;
    background: #000;
    box-shadow: none;
    position: relative;
    z-index: 1;
    padding: 0;
}

.photo-frame img {
    position: absolute;
    top: -6px;
    left: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    object-fit: cover;
    display: block;
}

.btn-firecracker {
    font-family: Verdana, "Microsoft YaHei", sans-serif;
    background-color: #be9567;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    cursor: pointer;
    padding: 5px 15px;
    font-size: 13px;
    border-radius: 3px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.btn-firecracker:hover { background-color: #a87d52; }

.user-info {
    color: #fff;
    flex: 1;
    padding-top: 5px;
}

.user-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.user-name {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.info-row {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.info-label {
    color: #fff;
    margin-right: 5px;
}

.info-value {
    color: #fff;
    margin-right: 25px;
}

.info-desc {
    margin-top: 10px;
    color: #fff;
    font-size: 13px;
    max-width: 100%;
    background: rgba(255,255,255,0.05);
    padding: 8px 12px;
    border-radius: 3px;
}

.info-desc marquee {
    color: #fff;
    font-size: 13px;
}

/* ===== 底部导航 ===== */
.bottom-nav {
    width: 1280px;
    margin: 0 auto;
    background: rgba(100,100,100,0.5);
    z-index: 100;
    border-top: none;
}

.bottom-nav-inner {
    max-width: 100%;
    margin: 0 auto;
}

.nav-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.nav-item {
    padding: 12px 5px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    border-right: 1px solid rgba(255,255,255,0.15);
    line-height: 1.6;
    transition: all 0.3s;
    width: 14.28%;
    font-weight: bold;
}

.nav-item:last-child { border-right: none; }
.nav-item:hover { background: #24a378; color: #fff; }

.nav-item a {
    color: #fff;
    text-decoration: none;
    display: block;
    font-weight: bold;
}

.nav-item a:hover { color: #fff; }

.nav-jibai {
    position: relative;
    padding-top: 5px;
}

.finger-gif {
    position: absolute;
    top: 29px;
    left: 70%;
    transform: translateX(-20%);
    width: 38px;
    height: 38px;
    z-index: 10;
    pointer-events: none;
}

/* ===== 弹窗 ===== */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
}

.popup-box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    z-index: 2001;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    width: 520px;
    max-width: 95vw;
    max-height: 85vh;
}

.popup-scroll {
    overflow-y: auto;
    max-height: 75vh;
}

.popup-content { padding: 15px; }

.popup-bottom {
    width: 100%;
    height: 50px;
    border-radius: 0 0 12px 12px;
    background-color: #FFF;
}

/* ===== Tab标签 ===== */
.shopfenlei {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px 8px;
    border-bottom: 1px solid #eee;
    margin: 0;
    list-style: none;
    background: #f8f8f8;
}

.shopfenlei li {
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    background: #e0e0e0;
    transition: all 0.2s;
    overflow: hidden;
}

.shopfenlei li.selectTag {
    background: #888;
    color: #fff;
}

.shopfenlei li:hover {
    background: #999;
    color: #fff;
}

.shopfenlei li span {
    cursor: pointer;
    display: block;
    padding: 8px 18px;
    font-size: 14px;
    color: inherit;
    background: inherit;
    transition: all 0.2s;
    user-select: none;
}

.shopfenlei li.selectTag span {
    background: #888;
    color: #fff;
}

/* ===== 标签内容 ===== */
.tagContent-wrapper {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    background: #fff;
}

.tagContent {
    display: none;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    padding: 20px;
    min-height: 100px;
}

.tagContent.selectTag {
    display: flex !important;
}

/* ===== 祭品卡片 ===== */
.cli.shop1 {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
}

.cli.shop1:hover {
    background: #e8e8e8;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.cli.shop1 img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
    flex-shrink: 0;
    border-radius: 4px;
}

.cli.shop1 .goods-name {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
    margin-bottom: 6px;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 36px;
    width: 100%;
}

.cli.shop1 .goods-price {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
    margin-top: auto;
    width: 100%;
}

.empty-tip {
    width: 100%;
    text-align: center;
    padding: 50px 0;
    color: #999;
    font-size: 14px;
}

/* ===== 购买表单 ===== */
form[id^="buyform"] {
    display: none;
    width: 100%;
    box-sizing: border-box;
    clear: both;
}

form[id^="buyform"].active,
form.shopform[style*="block"] {
    display: block !important;
}

.section-detailbox {
    padding: 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.title { margin-bottom: 10px; }

.title h2 {
    font-size: 16px;
    color: #333;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.title h2 .t3 {
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #24a378;
    margin-right: 8px;
}

.detail_cen {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.buyimg {
    width: 85px;
    height: 85px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.buyimg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.buyinfo {
    flex: 1;
    min-width: 200px;
}

.buyinfo div {
    margin-bottom: 6px;
    font-size: 13px;
    color: #666;
}

.buyinfo div:first-child {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.white_btn {
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 24px;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    vertical-align: middle;
    transition: all 0.2s;
}

.white_btn:hover { background: #f0f0f0; }

.buyliuyan {
    width: 100%;
    margin-top: 10px;
}

.buyliuyan textarea {
    width: 100%;
    height: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    resize: vertical;
    font-size: 13px;
    font-family: inherit;
}

.deal-price {
    padding: 15px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
}

.btnlogin {
    width: 85%;
    padding: 12px;
    background: #c9302c;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btnlogin:hover { background: #a52a2a; }

/* ===== 过往记事 ===== */
.mtit {
    display: flex;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.mtit .selectTag {
    flex: 1;
    padding: 14px;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    transition: all 0.3s;
    text-align: center;
}

.mtit .selectTag:hover {
    background: #fff;
    color: #24a378;
}

.wangshi-content { padding: 15px; }

.wangshilist {
    max-height: 450px;
    overflow-y: auto;
}

.wangshi { display: none; }

.memoir-item {
    border-bottom: 1px solid #eee;
    padding: 12px;
    margin-bottom: 10px;
    background: #fafafa;
    border-radius: 5px;
}

.memoir-time {
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.memoir-text {
    color: #333;
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.6;
}

.memoir-photo { margin-top: 8px; }

.memoir-photo img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
    border: 1px solid #eee;
}

/* ===== 表单样式 ===== */
.form-area { padding: 15px; }

.regBoxT1 {
    font-weight: bold;
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.rightgo { padding: 10px 0; }

.form-row { padding: 8px 0; }

.tyys {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    margin-top: 5px;
}

.f-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    margin-top: 5px;
}

.btn-submit {
    background: #FF4C06;
    border: 1px solid #FF4C06;
    border-radius: 3px;
    color: #FFF;
    font-size: 15px;
    width: 120px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s;
}

.btn-submit:hover { background: #e04405; }

.btn-back {
    background: #FF4C06;
    border: 1px solid #FF4C06;
    border-radius: 3px;
    color: #FFF;
    font-size: 15px;
    width: 120px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s;
}

.btn-back:hover { background: #e04405; }

.msg {
    padding: 5px;
    color: #ff0000;
    font-size: 12px;
}

/* ===== 族谱/宗祠 ===== */
#jiapu {
    padding: 40px 15px;
    text-align: center;
    font-size: 16px;
    color: #666;
}

.btn-bind {
    margin: 20px auto;
    width: 80%;
    padding: 12px;
    background: #24a378;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    text-align: center;
}

.btn-bind:hover { background: #1e8a63; }

.bind-item {
    margin-bottom: 10px;
    background: #24a378;
    height: 30px;
    line-height: 30px;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bind-name {
    color: #fff;
    font-size: 14px;
}

.bind-action input {
    color: #fff;
    border: 1px solid #fff;
    height: 28px;
    line-height: 28px;
    width: 60px;
    font-size: 14px;
    background: none;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s;
}

.bind-action input:hover { background: rgba(255,255,255,0.2); }

/* ===== 其他弹窗标签样式统一 ===== */
#tagss .shopfenlei,
#tagsss .shopfenlei {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px 8px;
    border-bottom: 1px solid #eee;
    margin: 0;
    list-style: none;
    background: #f8f8f8;
}

#tagss .shopfenlei li,
#tagsss .shopfenlei li {
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    background: #e0e0e0;
    transition: all 0.2s;
    overflow: hidden;
}

#tagss .shopfenlei li.selectTag,
#tagsss .shopfenlei li.selectTag {
    background: #888;
    color: #fff;
}

#tagss .shopfenlei li:hover,
#tagsss .shopfenlei li:hover {
    background: #999;
    color: #fff;
}

#tagss .shopfenlei li span,
#tagsss .shopfenlei li span {
    cursor: pointer;
    display: block;
    padding: 8px 18px;
    font-size: 14px;
    color: inherit;
    background: inherit;
    transition: all 0.2s;
    user-select: none;
}

#tagss .shopfenlei li.selectTag span,
#tagsss .shopfenlei li.selectTag span {
    background: #888;
    color: #fff;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #24a378; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1e8a63; }

.clear { clear: both; }
.hidden { display: none !important; }

/* ===== 电脑版弹窗优化 - 图片排3个一行，增加关闭按钮 ===== */
@media screen and (min-width: 769px) {
    .popup-box {
        width: 600px;              /* [电脑版弹窗宽度-适配3列] */
        max-width: 600px;
    }

    .popup-scroll {
        max-height: 70vh;
    }

    /* 关闭按钮 */
    .popup-close {
        position: absolute;         /* [电脑版关闭按钮定位] */
        top: 10px;                 /* [电脑版关闭按钮顶部] */
        right: 10px;               /* [电脑版关闭按钮右侧] */
        width: 30px;               /* [电脑版关闭按钮宽度] */
        height: 30px;              /* [电脑版关闭按钮高度] */
        line-height: 30px;         /* [电脑版关闭按钮行高] */
        text-align: center;        /* [电脑版关闭按钮居中] */
        font-size: 20px;          /* [电脑版关闭按钮字号] */
        color: #999;              /* [电脑版关闭按钮颜色] */
        cursor: pointer;          /* [电脑版关闭按钮手型] */
        z-index: 10;              /* [电脑版关闭按钮层级] */
        background: #f5f5f5;      /* [电脑版关闭按钮背景] */
        border-radius: 50%;       /* [电脑版关闭按钮圆形] */
        transition: all 0.3s;   /* [电脑版关闭按钮过渡] */
    }

    .popup-close:hover {
        background: #e0e0e0;      /* [电脑版关闭按钮悬停背景] */
        color: #333;              /* [电脑版关闭按钮悬停颜色] */
    }

    /* 标签内容 - 3列布局 */
    .tagContent {
        gap: 15px;                 /* [电脑版祭品卡片间距] */
        padding: 15px;             /* [电脑版祭品区域内边距] */
    }

    .tagContent.selectTag {
        display: flex !important;
        flex-wrap: wrap;           /* [电脑版祭品卡片换行] */
    }

    /* 祭品卡片 - 3个一行 */
    .cli.shop1 {
        width: calc(33.333% - 10px); /* [电脑版祭品卡片宽度-3个一行] */
        min-width: calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
        height: 200px;             /* [电脑版祭品卡片高度] */
        min-height: 200px;
        margin-bottom: 5px;       /* [电脑版祭品卡片底部间距] */
    }

    .cli.shop1 img {
        width: 80px;               /* [电脑版祭品图片宽度] */
        height: 80px;              /* [电脑版祭品图片高度] */
        margin-bottom: 10px;
    }

    .cli.shop1 .goods-name {
        font-size: 14px;          /* [电脑版祭品名称字号] */
    }

    .cli.shop1 .goods-price {
        font-size: 13px;          /* [电脑版祭品价格字号] */
    }
}

/* ============================================
   ===== 响应式适配 - 手机端优化版 v4 =====
   修正内容：
   1. 底部信息栏下移到更靠近底部
   2. 墓碑拉长与地砖对齐，长度与宽度对称
   3. 墓碑相片和姓名放到墓碑合适位置
   4. 只针对手机端修改，电脑版完全不动
   ============================================ */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* ===== 左上角：音乐按钮 ===== */
    .top-left-area {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 1000;
    }

    .back-home {
        display: none;
    }

    .mp-toggle {
        width: 28px;
        height: 80px;
        font-size: 12px;
        letter-spacing: 2px;
        padding: 8px 0;
        line-height: 1.3;
    }

    .mp-toggle-icon {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .music-panel {
        left: 36px;
        top: 30px;
        width: 210px;
        padding: 10px;
    }

    .mp-now-playing {
        font-size: 11px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .mp-now-name {
        font-size: 12px;
    }

    .mp-song-list {
        max-height: 120px;
    }

    .mp-song-item {
        padding: 6px 8px;
        font-size: 12px;
    }

    .mp-controls {
        gap: 8px;
        margin-bottom: 8px;
    }

    .mp-ctrl-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .mp-time {
        font-size: 10px;
    }

    /* ===== 右上角区域：祭品信息（默认展开，点击关闭才收缩） ===== */
    .top-right-area {
        position: absolute;         /* [手机版右上角祭品信息区域定位] */
        top: 8px;                  /* [手机版右上角祭品信息区域顶部] */
        right: 8px;                /* [手机版右上角祭品信息区域右侧] */
        z-index: 1000;            /* [手机版右上角祭品信息区域层级] */
    }

    .main-cbl-right {
        width: 200px;               /* [手机版右上角祭品信息宽度] */
        top: 40px;                 /* [手机版右上角祭品信息顶部位置] */
        max-height: 280px;        /* [手机版右上角祭品信息最大高度] */
        display: block !important; /* [手机版右上角祭品信息强制显示] */
        z-index: 1001;           /* [手机版右上角祭品信息层级] */
        pointer-events: auto;     /* [手机版右上角祭品信息可点击] */
        background: transparent !important; /* [手机版右上角祭品信息背景改透明] */
    }

    .main_cbl_gb {
        padding: 8px 12px;       /* [手机版祭品关闭按钮内边距] */
        font-size: 13px;        /* [手机版祭品关闭按钮字号] */
        cursor: pointer;       /* [手机版祭品关闭按钮手型] */
        pointer-events: auto !important; /* [手机版祭品关闭按钮可点击] */
        touch-action: manipulation; /* [手机版祭品关闭按钮触摸优化] */
        -webkit-tap-highlight-color: rgba(255,255,255,0.2); /* [手机版祭品关闭按钮高亮] */
        position: relative;    /* [手机版祭品关闭按钮定位] */
        z-index: 1002;       /* [手机版祭品关闭按钮层级] */
        background: rgba(0,0,0,0.4); /* [手机版祭品关闭按钮半透明背景] */
        color: #fff;         /* [手机版祭品关闭按钮文字颜色] */
        display: block;      /* [手机版祭品关闭按钮块级显示] */
        width: 100%;         /* [手机版祭品关闭按钮宽度] */
        text-align: right;  /* [手机版祭品关闭按钮文字右对齐] */
    }

    .main_cbl_gb:hover { background: #333; }

    .cbl-header {
        padding: 8px 12px;       /* [手机版祭品标题内边距] */
        font-size: 14px;        /* [手机版祭品标题字号] */
        pointer-events: auto;   /* [手机版祭版祭品标题可点击] */
        background: transparent; /* [手机版祭品标题背景透明] */
        color: #fff;           /* [手机版祭品标题文字颜色] */
    }

    .cbl {
        padding: 8px;           /* [手机版祭品列表内边距] */
        max-height: 220px;    /* [手机版祭品列表最大高度] */
        pointer-events: auto; /* [手机版祭品列表可点击] */
        background: transparent; /* [手机版祭品列表背景透明] */
        color: #ddd;          /* [手机版祭品列表文字颜色] */
    }

    .cbl li {
        padding: 6px 0;
        font-size: 11px;
        pointer-events: none;
    }

    .main-cbl-right-dk {
        top: 40px;               /* [手机版祭品打开按钮顶部位置] */
        display: none;           /* [手机版祭品打开按钮默认隐藏-点击关闭后显示打开] */
        z-index: 1001;          /* [手机版祭品打开按钮层级] */
        background: transparent; /* [手机版祭品打开按钮背景透明] */
    }

    .main_cbl_dkan {
        width: 65px;             /* [手机版祭品打开按钮宽度] */
        height: 36px;           /* [手机版祭品打开按钮高度] */
        line-height: 36px;     /* [手机版祭品打开按钮行高] */
        font-size: 12px;      /* [手机版祭品打开按钮字号] */
        padding-left: 24px;  /* [手机版祭品打开按钮左内边距] */
        cursor: pointer;     /* [手机版祭品打开按钮手型] */
        pointer-events: auto !important; /* [手机版祭品打开按钮可点击] */
        touch-action: manipulation; /* [手机版祭品打开按钮触摸优化] */
        -webkit-tap-highlight-color: rgba(255,255,255,0.2); /* [手机版祭品打开按钮高亮] */
        position: relative;    /* [手机版祭品打开按钮定位] */
        z-index: 1002;       /* [手机版祭品打开按钮层级] */
        background: rgba(0,0,0,0.5); /* [手机版祭品打开按钮半透明背景] */
        color: #fff;         /* [手机版祭品打开按钮文字颜色] */
        border-radius: 4px;  /* [手机版祭品打开按钮圆角] */
    }

    .main_cbl_dkan img {
        left: 4px;
        top: 7px;
        width: 20px;
        height: 20px;
    }

    /* ===== 登录弹窗 ===== */
    .login-popup-box {
        min-width: 280px;
        width: 85vw;
        padding: 20px;
    }

    .login-popup-box h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .login-popup-box .form-row input {
        padding: 8px;
        font-size: 14px;
    }

    .login-popup-box .btn-login-submit {
        padding: 10px;
        font-size: 15px;
    }

    /* ===== 主场景 - 手机端修复 v4 ===== */
    .scene-wrapper {
        width: 100%;
        min-height: 75%;          /* [手机版主场景高度] */
        overflow: hidden;
        background: url('/static/muyuan/images/download.jpg') repeat; /* [手机版场景背景-灰色瓷砖替代草坪] */
        position: relative;
    }

    .scene-bg {
        height: 380px;
        width: 100%;
    }

    .scene-bg-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* ===== 墓碑 - 拉长与地砖对齐，长度与宽度对称 ===== */
    .tombstone {
        height: 980px;              /* [手机版墓碑高度] */
        width: 100%;                /* [手机版墓碑宽度] */
        top: 74p;                     /* [手机版墓碑顶部位置] */
        left: 50%;                  /* [手机版墓碑水平居中] */
        transform: translateX(-50%); /* [手机版墓碑居中偏移] */
        background: url('/static/muyuan/images/mb_113-2.png') no-repeat center top 135px; /* [手机版墓碑背景图-往草坪方向移75px] */
        background-size: contain;   /* [手机版墓碑背景图尺寸-保持比例] */
    }

    .tombstone-img {
        display: none;              /* [手机版墓碑图片隐藏-用背景图替代] */
    }

    /* ===== 墓碑场景 - 加宽适配 ===== */
    .tomb-scene {
        width: 400px;               /* [手机版墓碑场景宽度] */
        height: 480px;            /* [手机版墓碑场景高度] */
        top: 70;                     /* [手机版墓碑场景顶部] */
        left: 50%;                 /* [手机版墓碑场景居中] */
        transform: translateX(-50%); /* [手机版墓碑场景偏移] */
    }

    /* ===== 逝者照片 - 放到墓碑碑面中央黑色区域 ===== */
    .tomb-photo {
        position: absolute;         /* [手机版墓碑相片定位-跟红线圈一样] */
        top: 160px;                 /* [手机版墓碑相片顶部位置-红线圈位置] */
        left: 49.8%;                 /* [手机版墓碑相片水平居中] */
        transform: translateX(-50%); /* [手机版墓碑相片居中偏移] */
        width: 34px;               /* [手机版墓碑相片宽度-跟红线圈一样大小] */
        height: 45px;              /* [手机版墓碑相片高度-跟红线圈一样大小] */
        border-radius: 2px;        /* [手机版墓碑相片圆角] */
        overflow: hidden;          /* [手机版墓碑相片溢出隐藏] */
        border: 1px solid rgba(255,255,255,0.2); /* [手机版墓碑相片边框] */
        background: #000;          /* [手机版墓碑相片背景] */
        z-index: 25;               /* [手机版墓碑相片层级-高于地砖] */
        box-shadow: 0 1px 4px rgba(0,0,0,0.3); /* [手机版墓碑相片阴影] */
    }

    .tomb-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* ===== 逝者姓名 - 放到照片下方墓碑碑面上 ===== */
    .tomb-name-vertical {
        position: absolute;         /* [手机版墓碑姓名定位-跟红线圈一样] */
        top: 203px;                /* [手机版墓碑姓名顶部位置-红线圈位置] */
        left: 50%;                 /* [手机版墓碑姓名水平居中] */
        transform: translateX(-50%); /* [手机版墓碑姓名居中偏移] */
        writing-mode: vertical-rl;   /* [手机版墓碑姓名竖排] */
        text-orientation: mixed;    /* [手机版墓碑姓名文字方向] */
        font-size: 6px;           /* [手机版墓碑姓名字号-跟红线圈一样大小] */
        color: #fff;              /* [手机版墓碑姓名颜色] */
        font-weight: bold;        /* [手机版墓碑姓名加粗] */
        text-shadow: 1px 1px 2px rgba(0,0,0,0.95), 0 0 4px rgba(0,0,0,0.8); /* [手机版墓碑姓名阴影] */
        letter-spacing: 2px;      /* [手机版墓碑姓名字间距-跟红线圈一样] */
        z-index: 28;              /* [手机版墓碑姓名层级-高于地砖] */
        line-height: 1.5;        /* [手机版墓碑姓名行高-跟红线圈一样] */
        text-align: center;      /* [手机版墓碑姓名居中] */
        background: rgba(0,0,0,0.2); /* [手机版墓碑姓名背景] */
        padding: 2px 2px;        /* [手机版墓碑姓名内边距-跟红线圈一样] */
        border-radius: 2px;     /* [手机版墓碑姓名圆角] */
    }

    /* ===== 香炉 - 移到墓碑前面蓝线圈位置 ===== */
    .incense-burner {
        position: absolute;         /* [手机版香炉定位-移到墓碑前蓝线圈] */
        top: 200px;                /* [手机版香炉顶部位置-墓碑前面蓝线圈白色平台] */
        left: 50%;                 /* [手机版香炉水平居中] */
        transform: translateX(-50%); /* [手机版香炉居中偏移] */
        z-index: 40;               /* [手机版香炉层级-高于地砖低于墓碑] */
    }

    .incense-burner img {
        width: 28px;               /* [手机版香炉图片宽度-蓝线圈位置缩小] */
        height: 38px;              /* [手机版香炉图片高度-蓝线圈位置缩小] */
        display: block;
    }

    /* ===== 烟雾 - 跟随香炉移到墓碑前面蓝线圈位置 ===== */
    .smoke {
        position: absolute;         /* [手机版烟雾定位] */
        bottom: 100%;              /* [手机版烟雾底部对齐香炉顶部] */
        left: 50%;                 /* [手机版烟雾水平居中] */
        transform: translateX(-50%); /* [手机版烟雾居中偏移] */
        width: 50px;             /* [手机版烟雾宽度] */
        height: 80px;            /* [手机版烟雾高度-手机端适配] */
        pointer-events: none;     /* [手机版烟雾不阻挡点击] */
    }

    .smoke-line:nth-child(1) { height: 45px; } /* [手机版烟雾线1高度] */
    .smoke-line:nth-child(2) { height: 55px; } /* [手机版烟雾线2高度] */
    .smoke-line:nth-child(3) { height: 50px; } /* [手机版烟雾线3高度] */

    @keyframes smokeWave {
        0% { bottom: 0; opacity: 0.8; transform: translateX(0) scaleY(0.2); }
        20% { opacity: 0.6; transform: translateX(4px) scaleY(0.5); }
        40% { opacity: 0.5; transform: translateX(-5px) scaleY(0.7); }
        60% { opacity: 0.3; transform: translateX(3px) scaleY(0.9); }
        80% { opacity: 0.15; transform: translateX(-3px) scaleY(1); }
        100% { bottom: 50px; opacity: 0; transform: translateX(1px) scaleY(1.1); } /* [手机版烟雾上升高度] */
    }

    /* ===== 墓碑和地砖中间换成地砖背景 ===== */
    .scene-fill-1,
    .scene-fill-2 {
        position: absolute;       /* [手机版地砖定位] */
        top: 380px;               /* [手机版地砖顶部位置] */
        left: 0;                  /* [手机版地砖左侧] */
        width: 100%;             /* [手机版地砖宽度] */
        height: calc(100% - 380px); /* [手机版地砖高度] */
        z-index: 2;             /* [手机版地砖层级] */
        display: block !important; /* [手机版地砖强制显示] */
        background: url('/static/muyuan/images/download.jpg') repeat; /* [手机版墓碑与瓷砖中间背景图-改为download.jpg] */
    }

    .scene-fill-img-1,
    .scene-fill-img-2 {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* ===== 祭品区域 - 移到墓碑前红线圈范围内 [手机版] ===== */
    .area-incense {
        position: absolute;         /* [手机版香烛区域定位] */
        top: 385px;                /* [手机版香烛区域顶部位置-墓碑底部红线圈上方] */
        left: 50%;                 /* [手机版香烛区域水平居中] */
        transform: translateX(-50%); /* [手机版香烛区域居中偏移] */
        width: 35%;                /* [手机版香烛区域宽度] */
        height: 70px;             /* [手机版香烛区域高度-红线圈范围内] */
        z-index: 30;              /* [手机版香烛区域层级] */
        pointer-events: none;     /* [手机版香烛区域不阻挡点击] */
    }

    .area-other {
        position: absolute;         /* [手机版祭品区域定位] */
        top: 420px;                /* [手机版祭品区域顶部位置-红线圈范围内] */
        left: 50%;                 /* [手机版祭品区域水平居中] */
        transform: translateX(-50%); /* [手机版祭品区域居中偏移] */
        width: 75%;                /* [手机版祭品区域宽度-红线圈范围内] */
        height: 100px;           /* [手机版祭品区域高度-红线圈范围内] */
        z-index: 30;             /* [手机版祭品区域层级] */
        pointer-events: none;    /* [手机版祭品区域不阻挡点击] */
    }

    .area-incense .scene-item {
        width: 26px;               /* [手机版香烛祭品宽度] */
        height: 38px;             /* [手机版香烛祭品高度] */
        z-index: 31;              /* [手机版香烛祭品层级] */
    }
    .area-other .scene-item {
        width: 42px;               /* [手机版其他祭品宽度] */
        height: 42px;             /* [手机版其他祭品高度] */
        z-index: 31;             /* [手机版其他祭品层级] */
    }

    /* ===== 底部信息栏 - 下移到红箭头位置（更靠近底部） ===== */
    .bottom-info {
        width: 100%;               /* [手机版底部信息栏宽度] */
        background: url('/static/muyuan/images/bgdb.jpg') repeat; /* [手机版底部信息栏背景] */
        position: relative;        /* [手机版底部信息栏定位] */
        margin-top: 0;            /* [手机版底部信息栏上边距] */
    }

    .bottom-info-inner {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 12px 15px;
        gap: 15px;
        max-width: 100%;
        background: rgba(128,128,128,0.85);
    }

    .user-photo {
        flex-shrink: 0;
        text-align: center;
    }

    .photo-frame {
        width: 90px;
        height: 115px;
        border: 10px solid #000;
        background: #000;
        position: relative;
        overflow: hidden;
    }

    .photo-frame img {
        position: absolute;
        top: -4px;
        left: -4px;
        width: calc(100% + 8px);
        height: calc(100% + 8px);
        object-fit: cover;
    }

    .btn-firecracker {
        padding: 4px 10px;
        font-size: 11px;
    }

    .user-info {
        width: auto;
        flex: 1;
        padding-top: 3px;
    }

    .user-info-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    .user-name {
        font-size: 18px;
        margin-bottom: 0;
    }

    .info-row {
        font-size: 12px;
        margin-bottom: 3px;
        line-height: 1.5;
    }

    .info-value {
        margin-right: 10px;
    }

    .info-desc {
        margin-top: 6px;
        font-size: 11px;
        padding: 5px 8px;
    }

    .info-desc marquee {
        font-size: 11px;
    }

    /* ===== 底部导航 ===== */
    .bottom-nav {
        width: 100%;               /* [手机版底部导航宽度] */
        background: rgba(30,30,30,0.95); /* [手机版底部导航背景改灰黑色] */
    }

    .nav-item {
        font-size: 11px;
        padding: 6px 2px;
        line-height: 1.5;
    }

    .nav-jibai {
        padding-top: 3px;
    }

    .finger-gif {
        top: 18px;
        width: 26px;
        height: 26px;
    }

    /* ===== 弹窗 ===== */
    .popup-box {
        width: 95vw;
        max-width: 100%;
        border-radius: 8px;
    }

    .popup-scroll {
        max-height: 70vh;
    }

    .popup-bottom {
        height: 40px;
    }

    /* Tab标签 */
    .shopfenlei {
        gap: 5px;
        padding: 10px 8px 6px;
    }

    .shopfenlei li span {
        padding: 6px 12px;
        font-size: 13px;
    }

    .tagContent-wrapper {
        max-height: 380px;
    }

    .tagContent {
        padding: 12px;
        gap: 10px;
    }

    /* 祭品卡片 */
    .cli.shop1 {
        width: 45%;
        min-width: 120px;
        max-width: none;
        height: 160px;
        min-height: 160px;
        padding: 10px;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
    }

    .cli.shop1:active {
        background: #d0d0d0;
        transform: scale(0.98);
    }

    .cli.shop1 img {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
        pointer-events: none;
    }

    .cli.shop1 .goods-name {
        font-size: 13px;
        margin-bottom: 4px;
        -webkit-line-clamp: 1;
    }

    .cli.shop1 .goods-price {
        font-size: 12px;
    }

    /* 购买表单 */
    .section-detailbox {
        padding: 10px;
    }

    .detail_cen {
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .buyimg {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }

    .buyinfo {
        min-width: auto;
        width: 100%;
    }

    .buyinfo div {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .buyinfo div:first-child {
        font-size: 14px;
    }

    .buyinfo div:nth-child(4) {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .buyinfo div:nth-child(4) input {
        width: 50px;
        text-align: center;
        margin: 0 5px;
    }

    .white_btn {
        width: 36px;
        height: 36px;
        line-height: 34px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .buyliuyan textarea {
        height: 50px;
        font-size: 12px;
    }

    .deal-price {
        padding: 10px;
    }

    .btnlogin {
        padding: 12px;
        font-size: 15px;
        width: 100%;
    }

    .empty-tip {
        padding: 30px 0;
        font-size: 13px;
    }
}

/* ===== 超小屏幕手机优化 ===== */
@media screen and (max-width: 375px) {
    .scene-wrapper {
        min-height: 460px;
    }

    .scene-bg {
        height: 340px;
    }

    .tombstone {
        height: 340px;
    }

    .tomb-scene {
        width: 260px;
        height: 340px;
    }

    .tomb-photo {
        top: 65px;
        width: 55px;
        height: 72px;
    }

    .tomb-name-vertical {
        top: 145px;
        font-size: 13px;
        letter-spacing: 5px;
    }

    .incense-burner {
        bottom: 28px;
    }

    .incense-burner img {
        width: 32px;
        height: 44px;
    }

    .scene-fill-1,
    .scene-fill-2 {
        top: 340px;
        height: calc(100% - 340px);
    }

    .nav-item {
        font-size: 10px;
        padding: 5px 2px;
    }

    .cli.shop1 {
        width: 100%;
        min-width: auto;
        height: 140px;
    }

    .cli.shop1 img {
        width: 50px;
        height: 50px;
    }

    .white_btn {
        width: 32px;
        height: 32px;
        line-height: 30px;
        font-size: 16px;
    }
}

/* ===== 平板适配 ===== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .scene-wrapper,
    .bottom-info,
    .bottom-nav { width: 100%; }

    .bottom-info-inner {
        max-width: 90%;
        padding: 15px 20px;
    }

    .user-info-header { gap: 15px; }

    .popup-box {
        width: 80vw;
        max-width: 520px;
    }
}