  :root {
            --primary-color: #2563eb;
            --primary-hover: #1d4ed8;
            --bg-color: #f3f4f6;
            --text-color: #1f2937;
            --text-secondary: #6b7280;
            --border-color: #e5e7eb;
            --success-bg: #f0fdf4;
            --success-border: #bbf7d0;
            --success-text: #166534;
            --warning-bg: #fffbeb;
            --warning-text: #92400e;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Noto Sans SC', sans-serif;
            background-color: var(--bg-color);
            background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
            background-size: 24px 24px;
            color: var(--text-color);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            
        }
        
        html,body{ font-size:inherit;}
        .website { padding: 90px 10px 20px !important;font-size: 14px;}
        .mnav {   font-size: 13px;}

        /* 主容器 */
        .main-container {
            width: 100%;
            max-width: 1180px;
            background: white;
            border-radius: 1rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            min-height: 700px;
            margin: 0 auto;
            z-index: 0;
        }

        @media (min-width: 768px) {
            .main-container {
                flex-direction: row;
            }
        }

        /* 左侧面板 */
        .left-panel {
            width: 100%;
            padding: 2rem;
            background-color: rgba(249, 250, 251, 0.8);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
        }

        @media (min-width: 768px) {
            .left-panel {
                width: 38%;
                border-bottom: none;
                border-right: 1px solid var(--border-color);
            }
        }

        header {
            margin-bottom: 2rem;
        }

        .header-title {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .icon-box {
            background-color: var(--primary-color);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        h1 {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1f2937;
        }

        .subtitle {
            font-size: 0.875rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        /* 拖拽区域 */
        .drop-zone {
            flex: 1;
            border: 2px dashed #d1d5db;
            border-radius: 0.75rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            text-align: center;
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
            min-height: 200px;
            margin-bottom: 1.5rem;
        }

        .drop-zone:hover, .drop-zone.drag-over {
            border-color: #60a5fa;
            background-color: #eff6ff;
            transform: scale(1.01);
        }

        .drop-zone input {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
            z-index: 999;
        }

        .upload-icon {
            color: #3b82f6;
            margin-bottom: 1rem;
            transition: transform 0.3s;
            font-size: 3rem; /* 对应之前的 48px */
        }

        .drop-zone:hover .upload-icon {
            transform: scale(1.1);
        }

        .drop-text {
            color: #374151;
            font-weight: 500;
            margin-bottom: 0.25rem;
        }

        .drop-subtext {
            font-size: 0.75rem;
            color: #9ca3af;
        }

        /* 设置面板 */
        .settings-panel {
            transition: opacity 0.3s;
        }

        .settings-panel.disabled {
            opacity: 0.5;
            pointer-events: none;
        }

        .label {
            display: block;
            font-size: 0.75rem;
            font-weight: 600;
            color: #4b5563;
            text-transform: uppercase;
            margin-bottom: 0.5rem;
        }

        .format-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .format-btn {
            background: white;
            border: 1px solid var(--border-color);
            color: #4b5563;
            padding: 0.5rem;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .format-btn:hover {
            background-color: #f9fafb;
        }

        .format-btn.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        /* 质量控制 */
        .quality-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.25rem;
        }

        .quality-val {
            font-size: 0.75rem;
            color: var(--primary-color);
            font-weight: 700;
        }

        input[type=range] {
            width: 100%;
            height: 0.5rem;
            background: #e5e7eb;
            border-radius: 0.5rem;
            appearance: none;
            cursor: pointer;
        }

        input[type=range]::-webkit-slider-thumb {
            appearance: none;
            width: 1rem;
            height: 1rem;
            background: var(--primary-color);
            border-radius: 50%;
            cursor: pointer;
        }

        /* 转换按钮 */
        .convert-btn {
            width: 100%;
            background-color: #111827;
            color: white;
            padding: 0.75rem;
            border-radius: 0.75rem;
            font-weight: 500;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            transition: all 0.2s;
            font-size: 1rem;
        }

        .convert-btn:hover {
            background-color: black;
            transform: translateY(-1px);
        }
        
        .convert-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            background-color: #374151;
        }

        /* 右侧面板 */
        .right-panel {
            width: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
            background: white;
            height: 100%;
        }

        @media (min-width: 768px) {
            .right-panel {
                width: 62%;
            }
        }

        /* 空状态 */
        .empty-state {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
            background: white;
            z-index: 10;
        }

        .empty-icon {
            opacity: 0.2;
            margin-bottom: 1rem;
            font-size: 4rem; /* 对应之前的 64px */
        }

        /* 列表区域 */
        .list-area {
            display: none;
            flex-direction: column;
            height: 100%;
            z-index: 20;
        }

        .list-area.active {
            display: flex;
        }

        .list-header {
            padding: 1.5rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: white;
        }

        .list-title h3 {
            font-size: 1rem;
            font-weight: 700;
            color: #1f2937;
        }
        
        .clear-btn {
            font-size: 0.75rem;
            color: #ef4444;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.25rem 0.5rem;
            border-radius: 0.25rem;
            transition: background 0.2s;
        }
        .clear-btn:hover {
            background: #fef2f2;
        }

        /* 文件列表 */
        .file-list {
            flex: 1;
            overflow-y: auto;
            padding: 1rem;
            background-color: #fafafa;
        }

        .file-item {
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            padding: 0.75rem;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: all 0.2s;
        }

        .file-item:hover {
            border-color: #d1d5db;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        }

        .file-thumb {
            width: 48px;
            height: 48px;
            border-radius: 0.375rem;
            background-color: #f3f4f6;
            object-fit: cover;
            border: 1px solid var(--border-color);
        }

        .file-info {
            flex: 1;
            min-width: 0; /* 允许文本截断 */
        }

        .file-name {
            font-size: 0.875rem;
            font-weight: 600;
            color: #374151;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .file-meta {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-top: 0.125rem;
        }

        .file-status {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
            border-radius: 9999px;
            font-weight: 500;
            white-space: nowrap;
        }

        .status-pending { background: #f3f4f6; color: #6b7280; }
        .status-processing { background: #eff6ff; color: #3b82f6; }
        .status-done { background: var(--success-bg); color: var(--success-text); }
        .status-error { background: #fef2f2; color: #b91c1c; }

        .file-action-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            color: #9ca3af;
            border-radius: 0.375rem;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
        }

        .file-action-btn:hover {
            background-color: #f3f4f6;
            color: #4b5563;
        }

        .file-action-btn.delete:hover {
            background-color: #fef2f2;
            color: #ef4444;
        }

        .file-action-btn.download {
            color: #16a34a;
        }
        .file-action-btn.download:hover {
            background-color: #f0fdf4;
        }

        /* 底部工具栏 */
        .bottom-bar {
            padding: 1rem 1.5rem;
            border-top: 1px solid var(--border-color);
            background: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .download-all-btn {
            background-color: #16a34a;
            color: white;
            padding: 0.6rem 1.2rem;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            font-weight: 500;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.2s;
        }
        
        .download-all-btn:hover {
            background-color: #15803d;
        }
        
        .download-all-btn:disabled {
            background-color: #dcfce7;
            color: #86efac;
            cursor: not-allowed;
        }

        /* 隐藏元素辅助类 */
        .hidden { display: none !important; }

        /* 滚动条 */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: #9ca3af; }