 /* 全局CSS变量：统一管理样式，便于主题切换 */
        :root {
            --primary-color: #8a2be2;
            --primary-light: #9a3be3;
            --primary-dark: #7c3aed;
            --bg-primary: #0f172a;
            --bg-secondary: #1e293b;
            --bg-card: rgba(255,255,255,0.03);
            --border-color: rgba(255,255,255,0.05);
            --text-primary: #e2e8f0;
            --text-secondary: #94a3b8;
            --text-tertiary: #cbd5e1;
            --shadow-sm: 0 2px 10px rgba(0,0,0,0.2);
            --shadow-md: 0 5px 15px rgba(138,43,226,0.2);
            --shadow-lg: 0 8px 20px rgba(138,43,226,0.4);
            --radius-sm: 12px;
            --radius-md: 18px;
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
            color: var(--text-primary);
            min-height: 100vh;
            padding: clamp(10px, 3vw, 20px);
            line-height: 1.6;
        }
        
        .container {
            display: flex;
            max-width: 1400px;
            margin: 0 auto;
            min-height: clamp(500px, 90vh, 800px);
            background: var(--bg-card);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        
        .left-panel {
            flex: 1;
            padding: clamp(20px, 5vw, 40px);
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            position: relative;
        }
        
        .right-panel {
            flex: 1;
            padding: clamp(20px, 5vw, 40px);
            display: flex;
            flex-direction: column;
        }
        
        h1 {
            text-align: center;
            font-size: clamp(1.8rem, 5vw, 3rem);
            margin-bottom: 15px;
            background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: var(--shadow-sm);
            font-weight: 700;
        }
        
        .subtitle {
            text-align: center;
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            color: var(--text-secondary);
            margin-bottom: clamp(20px, 5vw, 40px);
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }
        
        /* 上传区域优化 */
        .upload-area {
            border: 2px dashed rgba(138,43,226,0.3);
            border-radius: var(--radius-md);
            padding: clamp(30px, 8vw, 50px) 20px;
            text-align: center;
            margin-bottom: clamp(20px, 4vw, 35px);
            background: var(--bg-card);
            transition: var(--transition);
            cursor: pointer;
            position: relative;
            min-height: 200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .upload-area:hover, .upload-area.dragover {
            border-color: rgba(138,43,226,0.8);
            background: rgba(138,43,226,0.1);
            transform: translateY(-5px);
        }
        
        .upload-icon {
            font-size: clamp(3rem, 8vw, 5rem);
            margin-bottom: 20px;
            color: var(--primary-color);
            display: block;
        }
        
        /* 上传预览图样式 */
        .upload-preview {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 20px;
            display: none;
            z-index: 1;
			background: #1c232d;
        }
        
        .upload-preview.actives {
            display: block;
        }
        
        .upload-input {
            display: none;
        }
        
        .upload-label {
            cursor: pointer;
            color: var(--primary-color);
            font-weight: 500;
            display: inline-block;
            margin-top: 10px;
            transition: var(--transition);
        }
        
        .upload-label:hover {
            color: var(--primary-light);
            text-decoration: underline;
        }
        
        /* 按钮组优化 */
        .buttons {
            display: flex;
            gap: clamp(10px, 3vw, 20px);
            margin-bottom: clamp(20px, 4vw, 30px);
            flex-wrap: wrap; /* 移动端换行 */
            justify-content: center;
        }
        
        .clear-btn, .submit-btn {
            padding: clamp(10px, 3vw, 15px) clamp(20px, 4vw, 30px);
            border: none;
            border-radius: var(--radius-sm);
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            cursor: pointer;
            transition: var(--transition);
            font-weight: 600;
            min-width: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            /* 禁用状态样式 */
            opacity: 1;
            pointer-events: auto;
        }
        
        .clear-btn:disabled, .submit-btn:disabled {
            opacity: 0.6;
            pointer-events: none;
        }
        
        .clear-btn {
            background: linear-gradient(to right, #334155, #475569);
            color: var(--text-tertiary);
        }
        
        .clear-btn:hover {
            background: linear-gradient(to right, #475569, #64748b);
            transform: translateY(-3px);
        }
        
        .submit-btn {
            background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
            color: white;
            box-shadow: var(--shadow-md);
        }
        
        .submit-btn:hover {
            background: linear-gradient(to right, var(--primary-light), var(--primary-color));
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }
        
        /* 示例图片优化 */
        .example-section {
            margin-top: auto;
        }
        
        .example-title {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 10px;
            text-align: center;
        }
        
        .example-image {
            width: clamp(120px, 30vw, 180px);
            height: clamp(80px, 20vw, 120px);
            border-radius: var(--radius-sm);
            overflow: hidden;
            border: 1px solid var(--border-color);
            box-shadow: 0 8px 20px rgba(0,0,0,0.3);
            margin: 0 auto;
            transition: var(--transition);
            cursor: pointer; /* 添加鼠标指针样式 */
        }
        
        .example-image:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 25px rgba(0,0,0,0.4);
        }
        
        .example-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* 懒加载 */
            loading: lazy;
        }
        
        /* 结果区域优化 */
        .result-area {
            flex: 1;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: clamp(20px, 4vw, 30px);
            background: var(--bg-card);
            display: flex;
            flex-direction: column;
            min-height: 300px;
        }
        
        .result-area h2 {
            text-align: center;
            margin-bottom: clamp(15px, 3vw, 25px);
            color: var(--primary-color);
            font-size: clamp(1.2rem, 3vw, 1.8rem);
        }
        
        .output {
            flex: 1;
            background: rgba(0,0,0,0.15);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: clamp(0.9rem, 2vw, 1.2rem);
            padding: 20px;
            text-align: center;
            border: 1px dashed var(--border-color);
            position: relative;
            overflow: hidden;
        }
        
        /* 加载动画 */
        .loading {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15,23,42,0.8);
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }
        
        .loading.actives {
            display: flex;
        }
        
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(138,43,226,0.2);
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* 结果图片样式 */
        .result-image {
            max-width: 100%;
            max-height: 100%;
            border-radius: var(--radius-sm);
            display: none;
        }
     
        .result-image.actives {
            display: block;
        }
        
        /* 错误提示样式 */
        .error-message {
            color: #ef4444;
            margin-top: 15px;
            display: none;
        }
        
        .error-message.actives {
            display: block;
        }
        
        /* 响应式优化 */
        @media (max-width: 992px) {
            .container {
                flex-direction: column;
                min-height: auto;
            }
            
            .left-panel {
                border-right: none;
                border-bottom: 1px solid var(--border-color);
                padding-bottom: clamp(40px, 8vw, 60px);
            }
            
            .example-section {
                margin-top: 30px;
                position: relative;
                bottom: 0;
                left: 0;
            }
            
            .buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .clear-btn, .submit-btn {
                width: 100%;
                max-width: 300px;
            }
        }

        /* 无障碍访问优化：焦点样式 */
        :focus-visible {
            outline: 2px solid var(--primary-color);
            outline-offset: 4px;
            border-radius: 4px;
        }
