/* 智仪全球 - 3D虚拟展馆样式 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body { overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

.showroom-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 25, 50, 0.9); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
}
.showroom-header-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px; max-width: 1400px; margin: 0 auto;
}
.showroom-back { color: #4fc3f7; text-decoration: none; font-size: 14px; white-space: nowrap; }
.showroom-back:hover { color: #81d4fa; }
.showroom-title h1 { color: #fff; font-size: 18px; font-weight: 500; letter-spacing: 1px; }
.showroom-controls { display: flex; gap: 8px; }
.showroom-btn {
    width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05); color: #fff; border-radius: 8px;
    cursor: pointer; font-size: 16px; transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.showroom-btn:hover { background: rgba(0, 188, 212, 0.2); border-color: #00bcd4; }

#showroom3d-container { width: 100vw; height: 100vh; position: relative; background: #0a0a1a; }
#showroom3d-container canvas { display: block; }

/* 加载动画 */
.loading-screen {
    position: absolute; inset: 0; background: #0a0a1a; z-index: 200;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; transition: opacity 0.5s;
}
.loading-screen.hidden { opacity: 0; pointer-events: none; }
.loading-spinner {
    width: 60px; height: 60px; border: 3px solid rgba(0, 188, 212, 0.2);
    border-top-color: #00bcd4; border-radius: 50%;
    animation: spin 1s linear infinite; margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen p { font-size: 16px; color: #4fc3f7; margin-bottom: 16px; }
.loading-bar { width: 240px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.loading-bar-fill { height: 100%; background: linear-gradient(90deg, #1a73e8, #00bcd4); width: 0%; transition: width 0.3s; }

/* 小地图 */
.minimap {
    position: absolute; top: 70px; right: 20px; z-index: 50;
    background: rgba(10, 25, 50, 0.8); backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 188, 212, 0.2); border-radius: 12px; padding: 12px;
}
.minimap-title { color: #4fc3f7; font-size: 11px; text-align: center; margin-bottom: 8px; letter-spacing: 1px; }
#minimapCanvas { border-radius: 8px; display: block; }

/* 信息面板 */
.info-panel {
    position: absolute; top: 70px; left: 20px; z-index: 50;
    width: 320px; background: rgba(10, 25, 50, 0.85); backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 188, 212, 0.2); border-radius: 12px;
    overflow: hidden; transition: transform 0.3s; max-height: calc(100vh - 200px); overflow-y: auto;
}
.info-panel.collapsed { transform: translateX(-340px); }
.info-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.info-panel-header h3 { color: #fff; font-size: 15px; font-weight: 500; }
.info-panel-close { background: none; border: none; color: #999; font-size: 18px; cursor: pointer; }
.info-panel-close:hover { color: #fff; }
.info-panel-body { padding: 16px; color: #ccc; font-size: 14px; line-height: 1.8; }
.info-panel-body .zone-desc { color: #4fc3f7; margin-bottom: 12px; }
.info-panel-body .product-item { padding: 10px; background: rgba(255,255,255,0.05); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: background 0.3s; }
.info-panel-body .product-item:hover { background: rgba(0, 188, 212, 0.15); }
.info-panel-body .product-item .p-name { color: #fff; font-size: 13px; font-weight: 500; }
.info-panel-body .product-item .p-price { color: #00bcd4; font-size: 13px; }

/* 底部展馆导航 */
.pavilion-nav {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 50;
    background: rgba(10, 25, 50, 0.85); backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 188, 212, 0.2); padding: 12px 0;
}
.pavilion-nav-inner { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.pavilion-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 16px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05); border-radius: 10px;
    cursor: pointer; transition: all 0.3s; min-width: 90px;
}
.pavilion-btn:hover { background: rgba(0, 188, 212, 0.15); border-color: #00bcd4; transform: translateY(-2px); }
.pavilion-btn.active { background: rgba(0, 188, 212, 0.2); border-color: #00bcd4; }
.pavilion-icon { font-size: 24px; }
.pavilion-name { color: #fff; font-size: 12px; white-space: nowrap; }

/* 操作提示 */
.controls-hint {
    position: absolute; bottom: 80px; right: 20px; z-index: 40;
    display: flex; flex-direction: column; gap: 4px;
}
.controls-hint span {
    background: rgba(10, 25, 50, 0.7); color: #4fc3f7; padding: 4px 10px;
    border-radius: 6px; font-size: 12px; backdrop-filter: blur(10px);
}

/* 产品详情弹窗 */
.product-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.product-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); }
.product-modal-content {
    position: relative; background: #fff; border-radius: 16px; padding: 32px;
    max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.product-modal-close {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
    border: none; background: #f5f5f5; border-radius: 50%; font-size: 16px; cursor: pointer;
}
.product-modal-close:hover { background: #e0e0e0; }

/* 响应式 */
@media (max-width: 768px) {
    .info-panel { width: calc(100vw - 40px); }
    .minimap { display: none; }
    .pavilion-name { display: none; }
    .pavilion-btn { min-width: 50px; padding: 8px; }
    .showroom-title h1 { font-size: 14px; }
    .controls-hint { display: none; }
}
