/* ====== 3D 模型查看器 专属样式（布局/按钮等通用样式由 common.css 提供） ====== */

.viewer-wrapper {
    position: relative;
    min-height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.viewer-wrapper.drag-over {
    border: 2px dashed #8b5cf6;
}

.canvas-container {
    width: 100%;
    height: 500px;
}

.viewer-wrapper:fullscreen {
    width: 100vw;
    height: 100vh;
    background: #1f2937;
    border-radius: 0;
}

.viewer-wrapper:fullscreen .canvas-container {
    width: 100%;
    height: 100%;
}

.viewer-wrapper:fullscreen .empty-view {
    border: none;
    background: transparent;
}

.empty-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.empty-view:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.empty-hint {
    font-size: 13px;
    color: #9ca3af;
}

.format-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.format-tag {
    padding: 4px 10px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.color-options {
    display: flex;
    gap: 8px;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
}

.color-option:hover {
    border-color: #8b5cf6;
}

.color-option.active {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.color-picker-wrapper {
    display: flex;
}

.color-picker {
    width: 100%;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
}

.toggle-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}

.toggle-item input {
    cursor: pointer;
}

.slider {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.info-label {
    color: #6b7280;
}

.info-value {
    color: #374151;
    font-family: 'Consolas', 'Monaco', monospace;
}
