/**
 * AImate - 3D虚拟展厅样式
 */

/* 主容器 */
.virtual-hall-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #f0f0f0;
    overflow: hidden;
}

/* 渲染画布 */
.virtual-hall-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* 控制栏 */
.virtual-hall-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.virtual-hall-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #2563eb;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.virtual-hall-btn:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

.virtual-hall-btn svg {
    width: 20px;
    height: 20px;
}

/* 产品信息卡 */
.virtual-hall-product-card {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 10;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.virtual-hall-product-card-header {
    padding: 15px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.virtual-hall-product-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.virtual-hall-product-card-body {
    padding: 15px;
}

.virtual-hall-product-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.virtual-hall-product-card-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.virtual-hall-product-card-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.virtual-hall-product-card-btn-primary {
    background: #2563eb;
    color: white;
}

.virtual-hall-product-card-btn-primary:hover {
    background: #1d4ed8;
}

.virtual-hall-product-card-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.virtual-hall-product-card-btn-secondary:hover {
    background: #e5e7eb;
}

/* 工具栏 */
.virtual-hall-toolbar {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.virtual-hall-toolbar-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: white;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.virtual-hall-toolbar-btn:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

.virtual-hall-toolbar-btn.active {
    background: #2563eb;
    color: white;
}

/* 加载状态 */
.virtual-hall-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.virtual-hall-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.virtual-hall-loading-text {
    margin-top: 15px;
    font-size: 14px;
    color: #6b7280;
}

/* 全屏模式 */
.virtual-hall-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
}

/* AR模式提示 */
.virtual-hall-ar-hint {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10;
    animation: fadeInOut 3s ease;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

/* 产品列表 */
.virtual-hall-product-list {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
    max-height: 400px;
    overflow-y: auto;
}

.virtual-hall-product-list-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 14px;
}

.virtual-hall-product-list-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.virtual-hall-product-list-item:hover {
    background: #f9fafb;
}

.virtual-hall-product-list-item:last-child {
    border-bottom: none;
}

.virtual-hall-product-list-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.virtual-hall-product-list-item-name {
    font-size: 13px;
    font-weight: 500;
}

/* 响应式 */
@media (max-width: 768px) {
    .virtual-hall-controls {
        bottom: 10px;
        padding: 8px 15px;
    }
    
    .virtual-hall-btn {
        width: 36px;
        height: 36px;
    }
    
    .virtual-hall-product-card {
        width: calc(100% - 40px);
        right: 20px;
    }
    
    .virtual-hall-product-list {
        display: none;
    }
}
