/* 3D 服饰展示页面样式 */

.3d-page {
    min-height: 100vh;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-description {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 3D 展示区域 */
.3d-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* 空状态 */
.3d-empty {
    text-align: center;
    padding: 80px 20px;
}

.3d-empty-icon {
    color: #ddd;
    margin-bottom: 24px;
}

.3d-empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.3d-empty-description {
    font-size: 16px;
    color: #666;
}

/* 3D 模型网格 */
.3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* 3D 卡片 */
.3d-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.3d-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.3d-card-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.3d-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.3d-card-placeholder {
    color: #ddd;
}

.3d-card-body {
    padding: 20px;
}

.3d-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.3d-card-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.3d-card-dynasty,
.3d-card-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}

.3d-card-dynasty {
    background: #e7f3ff;
    color: #0066cc;
}

.3d-card-category {
    background: #f0f0f0;
    color: #666;
}

.3d-card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 3D 查看器模态框 */
.3d-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.3d-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.3d-viewer-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}

.3d-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e9ecef;
}

.3d-viewer-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.3d-viewer-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s;
}

.3d-viewer-close:hover {
    background: #f8f9fa;
    color: #333;
}

.3d-viewer-body {
    position: relative;
    height: calc(100% - 60px);
}

.3d-viewer-canvas {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
}

.3d-viewer-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.3d-viewer-control-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
}

.3d-viewer-control-btn:hover {
    background: #667eea;
    color: white;
}

/* 响应式 */
@media (max-width: 768px) {
    .3d-grid {
        grid-template-columns: 1fr;
    }

    .3d-viewer-container {
        width: 95%;
        height: 90%;
    }

    .3d-viewer-controls {
        bottom: 12px;
        padding: 8px;
        gap: 8px;
    }

    .3d-viewer-control-btn {
        width: 36px;
        height: 36px;
    }
}
