/* Style Transfer Demo 样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.style-transfer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.style-transfer-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.style-transfer-header h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #f0f8ff, #e6f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { filter: brightness(1) hue-rotate(0deg); }
    100% { filter: brightness(1.1) hue-rotate(10deg); }
}

.style-transfer-header p {
    font-size: 1.4rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 主表单容器 */
.style-transfer-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 上传区域 */
.upload-section {
    margin-bottom: 40px;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.upload-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.upload-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.upload-header h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* 拖拽上传区域 */
.upload-area {
    border: 3px dashed #d1d5db;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    background: white;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area.small {
    padding: 25px 15px;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f2ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.upload-area.dragover {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.upload-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.upload-area.small .upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.upload-text p {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-area.small .upload-text p {
    font-size: 1rem;
}

.upload-text small {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 已上传图片显示 */
.uploaded-image {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
}

.uploaded-image.small {
    padding: 15px;
}

.image-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.image-name {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-image-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.remove-image-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 18px rgba(255, 107, 107, 0.4);
}

.image-preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

.preview-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.uploaded-image.small .preview-img {
    height: 120px;
}

.preview-img:hover {
    transform: scale(1.05);
}

/* 风格选择区域 */
.preset-styles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.style-option {
    text-align: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 15px;
    border: 3px solid #e2e8f0;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.style-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.style-option:hover::before,
.style-option.active::before {
    opacity: 1;
}

.style-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.style-option.active {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.style-preview {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin: 0 auto 10px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.style-preview.impressionist { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%); }
.style-preview.abstract { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.style-preview.watercolor { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }
.style-preview.oilpainting { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }
.style-preview.sketch { background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%); }
.style-preview.cartoon { background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%); }
.style-preview.vintage { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.style-preview.custom { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px dashed rgba(255,255,255,0.5);
}

.style-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    position: relative;
    z-index: 1;
}

/* 自定义风格上传 */
.custom-style-upload {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 控制面板 */
.controls-section {
    margin-bottom: 40px;
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.controls-header h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
}

.controls-toggle {
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #4a5568;
}

.controls-toggle:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.controls-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.controls-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.controls-content.active {
    max-height: 600px;
    padding: 25px;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.control-group {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.control-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.control-label {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.control-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e0 100%);
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.control-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border: 3px solid white;
}

.control-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.5);
}

.control-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1rem;
    float: right;
    background: #f0f4ff;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.control-help {
    clear: both;
    color: #718096;
    font-size: 0.85rem;
    margin-top: 8px;
    line-height: 1.4;
}

/* 快速预设按钮 */
.preset-controls h4 {
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.preset-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.preset-btn:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f2ff 100%);
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.preset-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* 操作按钮区域 */
.action-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin: 50px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    border: 3px solid rgba(102, 126, 234, 0.1);
}

.action-btn {
    padding: 18px 25px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-btn:not(:disabled):hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.action-btn:not(:disabled):active {
    transform: translateY(-2px) scale(1.01);
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.secondary-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.success-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.danger-btn {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.btn-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 状态显示区域 */
.status-message {
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    transition: all 0.4s ease;
    transform: translateY(15px);
    opacity: 0;
    border-left: 5px solid;
}

.status-message.show {
    transform: translateY(0);
    opacity: 1;
}

.status-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
}

.status-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
}

.status-message.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left-color: #17a2b8;
}

.status-message.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left-color: #ffc107;
}

/* 进度条 */
.progress-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #e2e8f0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    border-radius: 6px;
    transition: width 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: gradientMove 2s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, .3) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .3) 50%,
        rgba(255, 255, 255, .3) 75%,
        transparent 75%,
        transparent
    );
    background-size: 30px 30px;
    animation: move 1.5s linear infinite;
}

@keyframes move {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

.progress-text {
    text-align: center;
    color: #4a5568;
    font-weight: 700;
    font-size: 1.1rem;
}

/* 结果展示区域 */
.result-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 25px;
    padding: 35px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.result-header h3 {
    color: #333;
    font-size: 1.6rem;
    font-weight: 700;
}

.result-info {
    display: flex;
    gap: 25px;
    font-size: 0.95rem;
    color: #64748b;
    flex-wrap: wrap;
}

.result-info span {
    background: white;
    padding: 10px 18px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.result-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.comparison-item {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #f1f5f9;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.comparison-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.comparison-item:hover::before {
    transform: scaleX(1);
}

.comparison-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.comparison-item h4 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
}

.comparison-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #f8fafc;
    aspect-ratio: 4/3;
}

.comparison-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.comparison-image-container:hover .comparison-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comparison-image-container:hover .image-overlay {
    opacity: 1;
}

.zoom-btn, .share-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.zoom-btn:hover, .share-btn:hover {
    background: rgba(102, 126, 234, 0.9);
    transform: scale(1.1);
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.result-action-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #4a5568;
    font-size: 1rem;
}

.result-action-btn:hover {
    background: #f8fafc;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

/* 历史记录区域 */
.history-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-header h3 {
    color: #333;
    font-weight: 700;
    font-size: 1.4rem;
}

.clear-history-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clear-history-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.history-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.history-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.history-info {
    text-align: center;
}

.history-style {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.history-date {
    color: #666;
    font-size: 0.8rem;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h4 {
    color: #333;
    font-weight: 700;
    font-size: 1.2rem;
}

.modal-close {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ff5252;
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

.modal-image-container {
    text-align: center;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
    
    .control-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .style-transfer-container {
        padding: 15px;
    }
    
    .style-transfer-form {
        padding: 25px;
        border-radius: 15px;
    }
    
    .style-transfer-header h1 {
        font-size: 2.5rem;
    }
    
    .action-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-comparison {
        grid-template-columns: 1fr;
    }
    
    .preset-styles {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .control-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .action-section {
        grid-template-columns: 1fr;
    }
    
    .style-transfer-header h1 {
        font-size: 2rem;
    }
    
    .preset-styles {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
}