/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
    min-height: 100vh;
}

/* 主页面样式 */
.homepage {
    min-height: 100vh;
    background: white;
    padding: 2rem;
}

.homepage-header {
    text-align: center;
    color: white;
    margin-bottom: 1rem;
    background: #4a4a4a;
    padding: 3rem 2rem 4rem 2rem;
    border-radius: 15px;
    margin: 0 auto 1rem auto;
    max-width: 1200px;
    position: relative;
}

.homepage-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    color: white;
}

.homepage-content {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
    width: calc(100% - 2rem);
    padding: 0 1rem;
}

.auxiliary-section {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    position: relative;
    z-index: 1;
    width: calc(100% - 2rem);
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}

.auxiliary-section .category-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 350px;
}

.auxiliary-section .category-section:hover {
    transform: translateY(-5px);
}

.auxiliary-section .category-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auxiliary-section .category-buttons h2 {
    background: #b71c1c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.6rem;
    font-weight: normal;
}

/* 通用工具独立容器样式 */
.utility-tools-section {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    position: relative;
    z-index: 1;
    width: calc(100% - 2rem);
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.utility-header {
    margin-bottom: 2rem;
}

.utility-header h2 {
    background: #b71c1c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.6rem;
    font-weight: normal;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.4);
    margin: 0;
    white-space: nowrap;
    text-align: center;
}

.utility-content {
    display: flex;
    justify-content: center;
}

.utility-content .category-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    max-width: 350px;
}

.utility-content .category-section:hover {
    transform: translateY(-5px);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.4);
    margin: 0;
    white-space: nowrap;
    text-align: center;
}

.category-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 350px;
}

.category-section:hover {
    transform: translateY(-5px);
}

.category-buttons {
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    z-index: 10;
    width: calc(100% - 2rem);
    max-width: 1200px;
}

.category-buttons h2 {
    background: #b71c1c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.6rem;
    font-weight: normal;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.4);
    margin: 0;
    white-space: nowrap;
    text-align: center;
    flex: 1;
    max-width: 350px;
}



.function-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.function-btn {
    background: #ffcdd2;
    color: black;
    border: 2px solid #ffcdd2;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: auto;
    min-width: 160px;
    max-width: 220px;
}

.function-btn.clickable:hover {
    background: #f8bbd9;
    border-color: #f8bbd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.2);
}

.function-btn.clickable:active {
    transform: translateY(0);
}

/* 功能页面样式 */
.function-page {
    min-height: 100vh;
    background: #f8f9fa;
    padding: 2rem;
}

.back-button-container {
    margin-bottom: 2rem;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
}

.function-header {
    text-align: center;
    margin-bottom: 2rem;
}

.function-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 600;
}

/* 功能演示区域 */
.demo-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.demo-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.demo-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.demo-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.demo-image-item {
    text-align: center;
}

.demo-image-item img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.demo-description {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.demo-text {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
}

.demo-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

header {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 5px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

section {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 上传区域样式 */
.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

input[type="file"] {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

/* 预览区域样式 */
#preview-container {
    text-align: center;
}

#image-preview {
    max-width: 100%;
    max-height: 400px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 1rem;
}

/* 选项区域样式 */
.option-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.option-btn {
    min-width: 100px;
}

/* 场景预览区域样式 */
.scene-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.scene-item {
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.scene-item:hover, .scene-item.selected {
    border-color: #3498db;
}

.scene-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 结果区域样式 */
.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-item {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.result-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 场景预览区域样式 */
.scene-preview {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.scene-preview h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.scene-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.scene-option {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scene-option label {
    font-weight: 500;
    color: #34495e;
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin: 0;
}

/* 动作按钮容器 */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#reference-image-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#reference-image-btn:hover {
    background: #c0392b;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #2c3e50;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h4 {
    margin-bottom: 0.5rem;
    color: #34495e;
}

.reference-preview-container {
    margin-top: 1rem;
    text-align: center;
}

.reference-preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.modal-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.modal-buttons .btn-primary {
    background: #3498db;
    color: white;
}

.modal-buttons .btn-primary:hover {
    background: #2980b9;
}

.modal-buttons .btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.modal-buttons .btn-secondary {
    background: #95a5a6;
    color: white;
}

.modal-buttons .btn-secondary:hover {
    background: #7f8c8d;
}

/* 工具类 */
.hidden {
    display: none;
}

/* 响应式设计 */
/* 通用样式 */
.hidden {
    display: none !important;
}

.btn-primary {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 上传区域样式 */
.upload-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.upload-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.upload-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.upload-container input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #dc3545;
    border-radius: 8px;
    background: #f8f9fa;
}

.preview-container {
    text-align: center;
    margin-top: 1rem;
}

.preview-container h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.preview-container img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 颜色选择区域样式 */
.color-selection {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.color-selection h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.color-selection-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.selected-color-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-btn.selected {
    border: 3px solid #dc3545;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* 最终结果区域样式 */
.final-results {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.final-results h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.model-selection {
    margin-bottom: 1.5rem;
}

.model-selection label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.model-select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.custom-prompt-section {
    margin-bottom: 1.5rem;
}

.custom-prompt-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.custom-prompt-input {
    width: 100%;
    min-height: 100px;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.prompt-hint {
    display: block;
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.results-container {
    margin: 2rem 0;
    min-height: 200px;
    border: 2px dashed #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    section {
        padding: 1rem;
    }
    
    .homepage {
        padding: 1rem;
    }
    
    .homepage-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-section {
        padding: 1.5rem;
    }
    
    .function-page {
        padding: 1rem;
    }
    
    .scene-container, .results-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-content {
        grid-template-columns: 1fr;
    }
    
    .demo-images {
        grid-template-columns: 1fr;
    }
    
    .upload-container {
        flex-direction: column;
    }
    
    .color-selection-footer {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .scene-container, .results-container {
        grid-template-columns: 1fr;
    }
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    color: #777;
    font-size: 0.9rem;
}

/* 按钮样式 */
.btn-primary {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 加载状态指示器 */
.loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

/* 模型选择样式 */
.model-selection {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 16px;
    min-width: 250px;
}

/* 错误消息样式 */
.error {
    color: #d9534f;
    background-color: #f9eaea;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
}

/* 重试按钮样式 */
.retry-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.retry-btn:hover {
    background-color: #0056b3;
}

.retry-btn:active {
    transform: translateY(1px);
}

/* 自定义提示词输入区域样式 */
.custom-prompt-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.custom-prompt-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
    font-size: 14px;
}

.custom-prompt-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-prompt-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-prompt-input::placeholder {
    color: #6c757d;
    opacity: 1;
}

.prompt-hint {
    display: block;
    margin-top: 6px;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

.prompt-hint::before {
    content: "";
    margin-right: 4px;
}

/* 原始图片信息区域样式 */
.original-image-section {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.original-image-section h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.original-image-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.original-image-info p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.original-image-info strong {
    color: #495057;
    font-weight: 600;
}

.public-link {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background-color: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

.public-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.copy-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 8px;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: #218838;
}

.copy-btn:active {
    background-color: #1e7e34;
}

/* 颜色选择区域样式 */
#color-selection {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#color-selection h2 {
    margin: 0 0 30px 0;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.color-selection-content {
    margin-bottom: 30px;
}

.color-section {
    margin-bottom: 30px;
}

.color-section h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.color-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.color-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.color-btn:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.color-btn.selected {
    border-color: #3498db;
    background-color: #f8f9fa;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.color-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-btn span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.color-btn small {
    font-size: 12px;
    color: #666;
    font-family: 'Courier New', monospace;
}

.color-selection-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.selected-color-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.selected-color-info span:first-child {
    color: #666;
}

#selected-color-name {
    font-weight: 600;
    color: #333;
}

#selected-color-value {
    font-family: 'Courier New', monospace;
    color: #666;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
}

#confirm-color-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#confirm-color-btn:disabled:hover {
    background-color: #ccc;
}

/* 场景生成按钮组样式 */
.scene-generation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

/* 浮窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.upload-section, .prompt-section {
    margin-bottom: 1.5rem;
}

.upload-section label, .prompt-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.file-input {
    width: 100%;
    padding: 0.5rem;
    border: 2px dashed #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-input:hover {
    border-color: #007bff;
}

.image-preview-container {
    margin-top: 1rem;
    text-align: center;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reference-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.generated-image-container {
    text-align: center;
    margin-top: 1rem;
}

.generated-image-container img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* U1功能专用样式 */
.u1-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.u1-upload-area, .u1-generation-area, .u1-results-area {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.u1-upload-area h3, .u1-generation-area h3, .u1-results-area h3 {
    color: #b71c1c;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

#u1-results-container {
    min-height: 200px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

#u1-results-container:empty::before {
    content: "生成的视角变化效果图将在这里显示";
}

#u1-results-container .result-item {
    border: none;
    margin: 0.5rem;
}

@media (max-width: 768px) {
    .u1-section {
        gap: 1rem;
    }
    
    .u1-upload-area, .u1-generation-area, .u1-results-area {
        padding: 1rem;
    }
}