body {
    background-color: #0f172a;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
}
.gradient-text {
    background: linear-gradient(135deg, #2cd2f0 0%, #2cd2f0 25%, #8b5cf6 40%, #ec4899 60%, #f59e0b 80%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-text-title {
    background: linear-gradient(135deg, #2cd2f0 0%, #2cd2f0 25%, #2cd2f0 40%, #2cd2f0 60%, #2cd2f0 80%, #2cd2f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.language-selector {
    position: relative;
}
.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #1e293b;
    border-radius: 0.5rem;
    overflow: hidden;
    width: 150px;
    z-index: 10;
    transition: all 0.3s ease-in-out;
}
.language-dropdown.show {
    display: block;
}
#current-language{
    padding-left: 0.2rem;
}
.toggle-bg {
    transition: background-color 0.2s ease-in-out;
}
.toggle-circle {
    transition: transform 0.2s ease-in-out;
}
.aspect-checkbox {
    position: relative;
}
.aspect-checkbox.active::after {
    content: "";
    position: absolute;
    left: 1px;
    top: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background-color: #6366f1;
}
.menu-button {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}
.menu-button svg {
    width: 0.85rem;
    height: 0.85rem;
}
.dropdown-option {
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
}
.dropdown-option svg {
    width: 0.85rem;
    height: 0.85rem;
}
/* 移动端菜单样式 */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}
#mobile-menu.hidden {
    display: none;
}
/* 默认隐藏图片显示区域 */
#image_display_area {
    display: none;
}

/* 图片上传预览样式 */
#image-preview-container {
    transition: all 0.3s ease-in-out;
}

#image-preview {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#remove-image {
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

#remove-image:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

/* 拖拽上传样式 */
.drag-over {
    border: 2px dashed #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
}

/* 图片上传按钮悬停效果 */
#add-image-bt {
    transition: all 0.2s ease-in-out;
}

#add-image-bt:hover {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .language-dropdown {
        right: auto;
        left: 0;
    }
}

/* High Quality对话框样式 */
#high-quality-modal {
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

#high-quality-modal .bg-gray-800 {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图片预览模态框样式 */
#image-preview-modal {
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

#image-preview-modal .modal-content {
    animation: slideUp 0.3s ease-out;
}

#image-preview-modal .preview-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
}

@media (max-width: 768px) {
    #image-preview-modal .preview-image {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    #image-preview-modal .modal-content {
        padding: 2rem 1rem;
    }
    
    #download-preview-image {
        bottom: 1rem !important;
        right: 1rem !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }
}

/* 微信保存提示模态框样式 */
#wechat-save-modal {
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

#wechat-save-modal .bg-gray-800 {
    animation: slideUp 0.3s ease-out;
}

/* 响应式布局优化 */
#main-content-area {
    transition: all 0.3s ease-in-out;
}

@media (min-width: 1024px) {
    #image-preview-container {
        max-width: 400px; /* 限制最大宽度 */
    }
    
    #image-preview-container.show {
        animation: slideInLeft 0.3s ease-out;
    }
    
    /* 当图片显示时，使用flex布局 */
    #main-content-area.has-image {
        display: flex;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    #main-content-area.has-image #image-preview-container {
        float: none;
        margin: 0;
        flex-shrink: 0;
    }
    
    #main-content-area.has-image .prompt-area {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 1023px) {
    #image-preview-container {
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 1.5rem !important;
    }
    
    #main-content-area.has-image {
        display: block !important;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 影响力滑动条样式 */
.slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #1e293b;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease-in-out;
}

.slider::-webkit-slider-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #1e293b;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease-in-out;
}

.slider::-moz-range-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

/* 回到顶部按钮样式 */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

#back-to-top.show {
    opacity: 0.6;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    opacity: 1;
}

#back-to-top svg {
    width: 20px;
    height: 20px;
    color: white;
}

@media (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    
    #back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* 粒子效果Canvas样式 */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: transparent;
    opacity: 0.9;
    mix-blend-mode: screen;
}

/* 在移动设备上降低粒子效果强度 */
@media (max-width: 768px) {
    #particle-canvas {
        opacity: 0.6;
    }
}

/* 为低性能设备提供选项 */
@media (prefers-reduced-motion: reduce) {
    #particle-canvas {
        display: none;
    }
}
