 /* --- 全局样式 Reset --- */
        :root {
            --primary: #4f46e5;
            --primary-hover: #4338ca;
            --bg-color: #f8fafc;
            --text-main: #0f172a;
            --text-sub: #64748b;
            --border-color: #e2e8f0;
            --white: #ffffff;
            --success: #10b981;
            --danger: #ef4444;
            --radius-lg: 1rem;
            --radius-md: 0.5rem;
            --shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            line-height: 1.5;
            min-height: 100vh;
        }
html,body{ font-size:inherit;}
        /* --- 布局工具 --- */
        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 20px 1rem;
        }
        .website{
            max-width: 1280px;
            margin: 0 auto; 
            padding: 0 1rem;
             padding-top: 80px;
            font-size: 14px;
        }

        .flex { display: flex; }
        .items-center { align-items: center; }
        .justify-between { justify-content: space-between; }
        .justify-center { justify-content: center; }
        .flex-col { flex-direction: column; }
        .gap-2 { gap: 0.5rem; }
        .gap-4 { gap: 1rem; }
        .hidden { display: none !important; }

        /* --- 头部 --- */
        header {
            background: var(--white);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 10;
            box-shadow: var(--shadow);
            height: 64px;
            display: flex;
            align-items: center;
        }

        .logo-box {
            background: var(--primary);
            padding: 0.5rem;
            border-radius: var(--radius-md);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 0.75rem;
        }

        h1 {
            font-size: 1.25rem;
            font-weight: 700;
            background: -webkit-linear-gradient(left, #4f46e5, #7c3aed);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .badge-html {
            font-size: 0.75rem;
            font-weight: normal;
            color: #94a3b8;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            padding: 0 4px;
            margin-left: 0.5rem;
            -webkit-text-fill-color: #94a3b8; /* 重置渐变 */
        }

        /* --- 主体区域 --- */
        main { padding: 2rem 0; }

        .grid-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        @media (min-width: 1024px) {
            .grid-layout { grid-template-columns: 1fr 2fr; }
        }

        /* --- 左侧边栏 --- */
        .sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

        /* 上传区域 */
        #drop-zone {
            border: 2px dashed #cbd5e1;
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 2rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        #drop-zone:hover {
            border-color: #818cf8;
            background-color: #f1f5f9;
        }

        .upload-icon-circle {
            background: #e0e7ff;
            width: 64px;
            height: 64px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem auto;
            color: var(--primary);
            font-size: 1.5rem;
        }

        /* 设置卡片 */
        .card {
            background: var(--white);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-color);
            padding: 1.5rem;
            box-shadow: var(--shadow);
        }

        .section-title {
            font-weight: 600;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .setting-group { margin-bottom: 1.5rem; }
        
        label {
            display: block;
            font-size: 0.875rem;
            font-weight: 500;
            color: #334155;
            margin-bottom: 0.5rem;
        }

        input[type="range"] {
            width: 100%;
            height: 6px;
            background: #e2e8f0;
            border-radius: 4px;
            appearance: none;
            outline: none;
        }
        input[type="range"]::-webkit-slider-thumb {
            appearance: none;
            width: 16px;
            height: 16px;
            background: var(--primary);
            border-radius: 50%;
            cursor: pointer;
        }

        input[type="number"] {
            width: 100%;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            font-size: 0.875rem;
        }
        input[type="number"]:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px #e0e7ff;
        }

        .format-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
        }

        .format-btn {
            padding: 0.5rem;
            font-size: 0.75rem;
            font-weight: 500;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
            background: var(--white);
            color: var(--text-sub);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .format-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        .format-btn:not(.active):hover { background: #f8fafc; }

        /* 按钮 */
        .btn {
            width: 100%;
            padding: 0.75rem;
            border-radius: 0.75rem;
            font-weight: 600;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: all 0.2s;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
        }
        .btn-primary:hover { background: var(--primary-hover); }
        
        .btn-disabled {
            background: #f1f5f9;
            color: #94a3b8;
            cursor: not-allowed;
            box-shadow: none;
        }

        /* --- 列表区域 --- */
        .list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .action-btn {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
            background: white;
            color: var(--text-sub);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .action-btn.danger:hover { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
        .action-btn.success { background: #059669; color: white; border-color: #059669; }
        .action-btn.success:hover { background: #047857; }

        /* 空状态 */
        #empty-state {
            background: var(--white);
            border-radius: var(--radius-lg);
            border: 2px dashed var(--border-color);
            height: 256px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #cbd5e1;
        }
        #empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

        /* 文件列表项 */
        #file-list {
            display: grid;
            gap: 1rem;
        }

        .file-item {
            background: var(--white);
            padding: 1rem;
            border-radius: 0.75rem;
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: var(--shadow);
            animation: fadeIn 0.3s ease-in-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .thumb-box {
            position: relative;
            width: 96px;
            height: 96px;
            background: #f1f5f9;
            border-radius: var(--radius-md);
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .thumb-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .item-badge {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(16, 185, 129, 0.9);
            color: white;
            font-size: 10px;
            text-align: center;
            font-weight: bold;
            padding: 2px 0;
        }

        .item-info { flex: 1; min-width: 0; }
        .item-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        
        .item-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: var(--text-sub);
            margin-top: 0.25rem;
            align-items: center;
        }

        .tag {
            background: #f1f5f9;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.75rem;
        }
        .tag-success { background: #ecfdf5; color: #047857; border: 1px solid #d1fae5; }

        .icon-btn {
            padding: 0.5rem;
            border-radius: var(--radius-md);
            border: none;
            background: transparent;
            cursor: pointer;
            color: #94a3b8;
            transition: color 0.2s;
        }
        .icon-btn:hover { color: var(--danger); background: #fef2f2; }
        .icon-btn.download { color: var(--primary); background: #e0e7ff; }
        .icon-btn.download:hover { background: #c7d2fe; }

        /* 响应式调整 */
        @media (max-width: 640px) {
            .file-item { flex-direction: column; text-align: center; }
            .item-meta { justify-content: center; }
            .format-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
            .format-btn { font-size: 10px; padding: 4px; }
        }