/* ================================
   云祭扫 H5 - VR页面样式
   国风浅色主题
   ================================ */

/* ============ VR全景容器 ============ */
.vr-panorama {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #1A2E1A 0%, #2C3E2C 50%, #3D5A3D 100%);
    overflow: hidden;
    border-radius: 0;
}

.vr-panorama::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212,175,55,0.15), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(91,140,90,0.2), transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139,69,19,0.1), transparent 60%);
}

.vr-panorama-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
}

.vr-panorama-icon {
    font-size: 64px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.vr-panorama-title {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #F5DEB3;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.vr-panorama-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

/* ============ VR控制栏 ============ */
.vr-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.vr-ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.2s;
}

.vr-ctrl-btn:active {
    transform: scale(0.92);
    background: rgba(0,0,0,0.7);
}

.vr-ctrl-btn.active {
    background: rgba(91,140,90,0.8);
    border-color: rgba(91,140,90,0.4);
}

/* ============ VR视角信息 ============ */
.vr-info-bar {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.vr-scene-name {
    padding: 6px 14px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    color: #F5DEB3;
    font-size: 13px;
    font-weight: bold;
}

.vr-compass {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 18px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ============ 点位标记 ============ */
.vr-markers {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.vr-marker {
    position: absolute;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.vr-marker-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #E5C254);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 0 0 4px rgba(212,175,55,0.3), 0 4px 12px rgba(0,0,0,0.3);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(212,175,55,0.3), 0 4px 12px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(212,175,55,0.15), 0 4px 12px rgba(0,0,0,0.3); }
}

.vr-marker-label {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 3px 8px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
}

/* ============ 场景切换 ============ */
.vr-scenes {
    margin: 12px;
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(139,69,19,0.08);
}

.vr-scenes-title {
    font-size: 15px;
    font-weight: bold;
    color: #5C4033;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #5B8C5A;
}

.vr-scene-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.vr-scene-list::-webkit-scrollbar {
    display: none;
}

.vr-scene-thumb {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    cursor: pointer;
}

.vr-scene-thumb-img {
    width: 100px;
    height: 70px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2C3E2C, #4A6B4A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 6px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.vr-scene-thumb.active .vr-scene-thumb-img {
    border-color: #D4AF37;
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.vr-scene-thumb-name {
    font-size: 12px;
    color: #5C4033;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ AR导航 ============ */
.ar-nav {
    margin: 0 12px 14px;
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(139,69,19,0.08);
}

.ar-nav-title {
    font-size: 15px;
    font-weight: bold;
    color: #5C4033;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ar-nav-title .ar-badge {
    padding: 2px 8px;
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    color: #fff;
    font-size: 10px;
    border-radius: 8px;
    font-weight: bold;
}

.ar-nav-map {
    position: relative;
    height: 160px;
    border-radius: 10px;
    background: linear-gradient(135deg, #E8F0E8, #D4E0D4);
    overflow: hidden;
    margin-bottom: 12px;
}

.ar-nav-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(91,140,90,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91,140,90,0.15) 1px, transparent 1px);
    background-size: 30px 30px;
}

.ar-nav-route {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 4px;
    background: linear-gradient(90deg, #5B8C5A, #D4AF37);
    border-radius: 2px;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(91,140,90,0.4);
}

.ar-nav-start,
.ar-nav-end {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
}

.ar-nav-start {
    left: 20px;
    top: 50%;
    background: #5B8C5A;
    box-shadow: 0 0 0 4px rgba(91,140,90,0.3);
}

.ar-nav-end {
    right: 20px;
    top: 50%;
    background: #D4AF37;
    box-shadow: 0 0 0 4px rgba(212,175,55,0.3);
}

.ar-nav-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ar-nav-distance {
    font-size: 20px;
    font-weight: bold;
    color: #5B8C5A;
}

.ar-nav-distance-label {
    font-size: 12px;
    color: #A0826D;
    margin-top: 2px;
}

.ar-nav-detail {
    text-align: right;
}

.ar-nav-detail-label {
    font-size: 12px;
    color: #8B6F47;
}

.ar-nav-detail-value {
    font-size: 14px;
    font-weight: bold;
    color: #5C4033;
}

.ar-nav-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #5B8C5A, #6FA06E);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(91,140,90,0.3);
}

/* ============ VR功能列表 ============ */
.vr-features {
    margin: 0 12px 14px;
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(139,69,19,0.08);
}

.vr-features-title {
    font-size: 15px;
    font-weight: bold;
    color: #5C4033;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #8B4513;
}

.vr-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.vr-feature-item {
    text-align: center;
    padding: 10px 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.6);
    transition: all 0.2s;
}

.vr-feature-item:active {
    background: rgba(91,140,90,0.08);
}

.vr-feature-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 4px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5B8C5A, #6FA06E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.vr-feature-label {
    font-size: 11px;
    color: #5C4033;
}
