/* 文生图片页面样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 生成的图片样式 */
.generated-image {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.generated-image:hover {
    transform: scale(1.03);
}

/* 按钮样式 */
.size-option {
    transition: all 0.2s ease;
}

.size-option:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.active-option {
    background-color: #ede9fe;
    border-color: #6366f1;
    color: #4f46e5;
}

.upscale-action-bar {
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
    background: #f9fafb;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: white;
    margin: 30px auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    max-height: 80vh;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.close-button {
    position: sticky;
    top: 0;
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 10;
    margin-bottom: 10px;
}

.close-button:hover {
    color: #000;
}

/* 提示词教程内容样式 */
.tutorial-content {
    padding-top: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.tutorial-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tutorial-content h2 {
    color: #4f46e5;
    margin-bottom: 1rem;
}

.tutorial-content h3 {
    color: #4338ca;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.tutorial-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.formula {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid #6366f1;
}

.example {
    color: #4b5563;
    font-style: italic;
    margin-left: 1rem;
}

/* 加载动画 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid rgba(99, 102, 241, 0.2);
    border-top-color: rgba(99, 102, 241, 1);
    animation: spin 1s linear infinite;
}

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

/* 响应式调整 */
@media (max-width: 1024px) {
    .image-preview {
        min-height: 250px;
    }
}

@media (max-width: 640px) {
    .image-preview {
        min-height: 200px;
    }
} 