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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 32px;
    font-size: 22px;
}

/* 加载动画 */
.loading-box {
    padding: 60px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #1677ff;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

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

.loading-box p {
    color: #666;
    font-size: 15px;
}

/* 预览区域 */
.result-box {
    width: 100%;
}

.preview-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.preview-item h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: normal;
}

.preview-item img {
    width: 100%;
    border-radius: 8px;
    background: #f5f5f5;
    aspect-ratio: 4/3;
    object-fit: cover;
}

#status {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    min-height: 20px;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary {
    background: #1677ff;
    color: #fff;
}

.btn:hover {
    opacity: 0.9;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .preview-group {
        grid-template-columns: 1fr;
    }
}