        :root {
            --bg-page: #F7F8FA;
            --bg-card: #FFFFFF;
            --bg-card-hover: #FAFBFC;
            --bg-subtle: #F0F1F3;
            --bg-input: #F7F8FA;
            --text-primary: #1D1D1F;
            --text-secondary: #6E6E73;
            --text-tertiary: #AEAEB2;
            --text-on-primary: #FFFFFF;
            --border-default: #E5E5EA;
            --border-light: #F0F1F3;
            --border-focus: #8B2020;
            --primary: #8B2020;
            --primary-hover: #7A1C1C;
            --primary-active: #6A1818;
            --primary-subtle: rgba(139, 32, 32, 0.08);
            --accent-red: #8B2020;
            --accent-red-subtle: rgba(139, 32, 32, 0.06);
            --success: #34C759;
            --success-bg: #E8F9ED;
            --error: #FF3B30;
            --error-bg: #FFECEA;
            --warning: #FF9500;
            --warning-bg: #FFF6E5;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px -1px rgba(0,0,0,0.04);
            --shadow-md: 0 4px 8px -2px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
            --shadow-lg: 0 12px 32px -8px rgba(0,0,0,0.08), 0 4px 8px -4px rgba(0,0,0,0.04);
            --shadow-xl: 0 20px 48px -12px rgba(0,0,0,0.10);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
            --radius-full: 9999px;
            --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            --fs-display: 28px;
            --fs-title: 20px;
            --fs-body: 15px;
            --fs-caption: 13px;
            --fs-small: 12px;
            --lh-tight: 1.2;
            --lh-normal: 1.5;
            --fw-medium: 500;
            --fw-semibold: 600;
            --fw-bold: 700;
            --space-xs: 4px;
            --space-sm: 8px;
            --space-md: 16px;
            --space-lg: 24px;
            --space-xl: 32px;
            --space-2xl: 48px;
            --space-3xl: 64px;
            --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
            --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
            --duration-fast: 150ms;
            --duration-normal: 250ms;
            --duration-slow: 400ms;
        }
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
        body {
            font-family: var(--font-family);
            font-size: var(--fs-body);
            line-height: var(--lh-normal);
            color: var(--text-primary);
            background: var(--bg-page);
            min-height: 100vh;
            overflow-x: hidden;
        }
        body.no-scroll { overflow: hidden; }
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(44, 111, 206, 0.03), transparent),
                        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 32, 32, 0.02), transparent);
            pointer-events: none;
            z-index: 0;
        }
        [hidden] { display: none !important; }
        button, input { font-family: var(--font-family); }
        img { max-width: 100%; }
        .accent-bar {
            position: fixed; top: 0; left: 0; right: 0; height: 2px;
            background: linear-gradient(90deg, transparent 5%, var(--accent-red) 30%, var(--accent-red) 70%, transparent 95%);
            z-index: 1000;
        }
        .back-home {
            position: fixed; top: 14px; left: 20px; z-index: 999;
            display: inline-flex; align-items: center; gap: 5px;
            padding: 6px 14px; font-size: var(--fs-small); font-weight: var(--fw-medium);
            color: var(--text-secondary); text-decoration: none;
            background: rgba(255,255,255,0.85);
            backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
            border: 1px solid var(--border-default); border-radius: var(--radius-full);
            transition: all var(--duration-fast) var(--ease-out);
        }
        .back-home:hover {
            color: var(--primary); border-color: var(--primary);
            background: var(--bg-card); box-shadow: var(--shadow-sm);
        }
        .back-home svg { width: 14px; height: 14px; flex-shrink: 0; }
        .contact-service { position: fixed; top: 16px; right: 16px; z-index: 100; }
        .contact-btn {
            display: flex; align-items: center; gap: 6px;
            padding: 8px 16px; border: none; border-radius: var(--radius-full);
            background: var(--bg-card); color: var(--text-secondary);
            font-size: var(--fs-caption); cursor: pointer;
            transition: all var(--duration-fast) var(--ease-out);
            box-shadow: var(--shadow-sm);
        }
        .contact-btn:hover { color: var(--primary); box-shadow: var(--shadow-md); }
        .contact-dropdown {
            position: absolute; top: calc(100% + 8px); right: 0; width: 160px;
            background: var(--bg-card); border: 1px solid var(--border-light);
            border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
            padding: 12px; text-align: center;
            opacity: 0; visibility: hidden; transform: translateY(-4px);
            transition: all var(--duration-fast) var(--ease-out); pointer-events: none;
        }
        .contact-service:hover .contact-dropdown,
        .contact-service.open .contact-dropdown {
            opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
        }
        .contact-dropdown img { width: 100%; border-radius: var(--radius-md); display: block; }
        .qr-hint { margin-top: 8px; font-size: 11px; color: var(--text-tertiary); line-height: 1.3; }
        .qr-sub { margin-top: 4px; font-size: 10px; color: var(--text-tertiary); letter-spacing: 0.05em; }
        .toast-container {
            position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
            z-index: 10001; display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
            pointer-events: none; width: max-content; max-width: 92%;
        }
        .toast {
            pointer-events: auto; padding: 12px 20px; border-radius: var(--radius-full);
            font-size: var(--fs-caption); font-weight: var(--fw-medium); box-shadow: var(--shadow-lg);
            opacity: 0; transform: translateY(-12px) scale(0.96);
            animation: toastIn var(--duration-normal) var(--ease-out) forwards;
            max-width: 90vw; text-align: center;
        }
        .toast.removing { animation: toastOut var(--duration-fast) ease-in forwards; }
        .toast--error { background: var(--error); color: #fff; }
        .toast--success { background: var(--success); color: #fff; }
        .toast--warning { background: var(--warning); color: #fff; }
        .toast--info { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-default); }
        @keyframes toastIn { to { opacity: 1; transform: translateY(0) scale(1); } }
        @keyframes toastOut { to { opacity: 0; transform: translateY(-8px) scale(0.96); } }

        .container {
            position: relative; z-index: 1; width: 100%; max-width: 1420px;
            margin: 0 auto; padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
            display: flex; flex-direction: column; align-items: center; gap: var(--space-lg);
            min-height: calc(100vh - 48px);
        }
        .header { text-align: center; animation: fadeUp 0.6s var(--ease-out) both; padding-top: 6px; }
        .header h1 {
            font-size: var(--fs-display); font-weight: var(--fw-bold);
            letter-spacing: -0.02em; line-height: var(--lh-tight); color: var(--text-primary);
        }
        .header h1::after {
            content: ''; display: block; width: 32px; height: 2px;
            background: var(--accent-red); margin: var(--space-md) auto 0; border-radius: 1px;
        }
        .header p {
            font-size: var(--fs-caption); color: var(--text-secondary);
            margin-top: var(--space-md); letter-spacing: 0.01em; max-width: 680px;
        }
        /* 步骤 */
        .steps {
            display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
            gap: 6px; animation: fadeUp 0.6s var(--ease-out) 0.06s both;
        }
        .step {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 6px 13px; border-radius: var(--radius-full);
            background: var(--bg-card); border: 1px solid var(--border-default);
            font-size: var(--fs-small); color: var(--text-secondary);
            transition: all var(--duration-normal) var(--ease-out);
        }
        .step b {
            width: 18px; height: 18px; border-radius: 50%; background: var(--bg-subtle);
            display: inline-grid; place-items: center; font-size: 10px; font-weight: 700;
            color: var(--text-secondary); transition: all var(--duration-normal);
        }
        .step.active { background: var(--primary-subtle); border-color: rgba(139,32,32,0.35); color: var(--primary); font-weight: var(--fw-semibold); }
        .step.active b { background: var(--primary); color: #fff; }
        .step.done { color: var(--text-primary); border-color: var(--border-default); }
        .step.done b { background: var(--success); color: #fff; }
        .step-sep { color: var(--text-tertiary); font-size: 11px; }

        /* 上传区 */
        .upload-zone {
            width: 100%; padding: var(--space-2xl) var(--space-lg);
            border: 2px dashed var(--border-default); border-radius: var(--radius-xl);
            background: var(--bg-card); text-align: center; cursor: pointer;
            transition: all var(--duration-normal) var(--ease-out);
            animation: fadeUp 0.6s var(--ease-out) 0.1s both; position: relative;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            flex: 1 1 auto; min-height: 32vh;
        }
        .upload-zone:hover { border-color: var(--primary); background: var(--primary-subtle); box-shadow: var(--shadow-sm); }
        .upload-zone.drag-over {
            border-color: var(--accent-red); background: var(--accent-red-subtle);
            transform: scale(1.005); box-shadow: var(--shadow-md);
        }
        .upload-zone.has-file { padding: 0; border-style: dashed; flex: 0 0 auto; min-height: 0; max-height: 100px; }
        .upload-compact {
            display: flex; align-items: center; gap: var(--space-md);
            padding: var(--space-md) var(--space-lg); color: var(--text-secondary);
            cursor: pointer; width: 100%;
        }
        .upload-compact-icon {
            width: 32px; height: 32px; border-radius: var(--radius-sm);
            background: var(--bg-subtle); border: 1px solid var(--border-default);
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
            color: var(--text-tertiary); transition: all var(--duration-fast);
        }
        .upload-compact-text {
            font-size: var(--fs-body); font-weight: var(--fw-medium);
            color: var(--text-secondary); transition: color var(--duration-fast); margin-left: auto;
        }
        .upload-compact-meta { font-size: var(--fs-small); color: var(--text-tertiary); }
        .upload-zone.has-file:hover .upload-compact-icon { color: var(--primary); background: var(--primary-subtle); border-color: var(--primary); }
        .upload-zone.has-file:hover .upload-compact-text { color: var(--primary); }
        .upload-icon { width: 48px; height: 48px; margin: 0 auto var(--space-md); color: var(--text-tertiary); transition: all var(--duration-normal); }
        .upload-zone:hover .upload-icon { color: var(--primary); transform: translateY(-2px); }
        .upload-zone.drag-over .upload-icon { color: var(--accent-red); transform: translateY(-4px) scale(1.05); }
        .upload-text { font-size: var(--fs-body); color: var(--text-primary); margin-bottom: var(--space-sm); }
        .browse-btn {
            display: inline-block; padding: 8px 20px;
            font-size: var(--fs-caption); font-weight: var(--fw-semibold);
            color: var(--primary); background: var(--primary-subtle);
            border: none; border-radius: var(--radius-full); cursor: pointer;
            transition: all var(--duration-fast) var(--ease-out);
        }
        .browse-btn:hover { background: rgba(139, 32, 32, 0.14); }
        .upload-hint { font-size: var(--fs-small); color: var(--text-tertiary); margin-top: var(--space-md); }
        .model-idle-btn {
            display: inline-flex; align-items: center; gap: 5px; margin-top: 12px;
            padding: 5px 12px; border-radius: var(--radius-full);
            border: 1px solid var(--border-light); background: var(--bg-page);
            color: var(--text-secondary); font-family: var(--font-family);
            font-size: 11px; cursor: pointer;
            transition: all var(--duration-fast) var(--ease-out);
        }
        .model-idle-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--bg-card); }
        .model-idle-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

        /* 空状态功能条 */
        .feature-grid {
            width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--space-md); animation: fadeUp 0.6s var(--ease-out) 0.18s both;
        }
        .feature-card {
            display: flex; align-items: flex-start; gap: 12px;
            padding: 16px 18px; background: var(--bg-card); border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm); min-width: 0;
        }
        .feature-icon {
            width: 34px; height: 34px; border-radius: var(--radius-sm); flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            background: var(--primary-subtle); color: var(--primary);
        }
        .feature-icon svg { width: 18px; height: 18px; }
        .feature-card h3 { font-size: var(--fs-caption); font-weight: var(--fw-semibold); margin-bottom: 2px; }
        .feature-card p { font-size: var(--fs-small); color: var(--text-tertiary); }

        /* 工作区 */
        .workspace {
            width: 100%; display: grid; grid-template-columns: 330px minmax(0, 1fr);
            gap: var(--space-md); align-items: start;
            animation: fadeUp 0.5s var(--ease-out) both;
        }
        .card {
            background: var(--bg-card); border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm); min-width: 0;
        }
        .card-head {
            display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap;
            padding: var(--space-md) var(--space-lg);
            border-bottom: 1px solid var(--border-light);
        }
        .card-title { font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--text-secondary); }
        .head-right { margin-left: auto; display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
        .reset-btn {
            padding: 4px 12px; font-size: var(--fs-small);
            font-weight: var(--fw-medium); color: var(--text-secondary); background: var(--bg-subtle);
            border: none; border-radius: var(--radius-full); cursor: pointer; transition: all var(--duration-fast);
            white-space: nowrap;
        }
        .reset-btn:hover:not(:disabled) { color: var(--primary); background: var(--primary-subtle); }
        .reset-btn:disabled { opacity: 0.45; cursor: not-allowed; }
        .mini-primary {
            padding: 5px 13px; font-size: var(--fs-small); font-weight: var(--fw-semibold);
            color: var(--primary); background: var(--primary-subtle); border: none;
            border-radius: var(--radius-full); cursor: pointer; transition: all var(--duration-fast);
            white-space: nowrap;
        }
        .mini-primary:hover:not(:disabled) { background: rgba(139,32,32,0.14); }
        .mini-primary:disabled { opacity: 0.45; cursor: not-allowed; }
        .mini-plain {
            padding: 5px 13px; font-size: var(--fs-small); font-weight: var(--fw-medium);
            color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border-default);
            border-radius: var(--radius-full); cursor: pointer; transition: all var(--duration-fast);
            white-space: nowrap; text-decoration: none;
        }
        .mini-plain:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); }
        .mini-plain:disabled { opacity: 0.45; cursor: not-allowed; }
        .collapse-btn {
            display: none; width: 26px; height: 26px; border: none; background: var(--bg-subtle);
            border-radius: var(--radius-full); color: var(--text-secondary); cursor: pointer;
            align-items: center; justify-content: center; transition: transform var(--duration-normal) var(--ease-out);
            flex-shrink: 0;
        }
        .filter-card { position: sticky; top: 16px; }
        .filter-card.collapsed .collapse-btn { transform: rotate(-90deg); }
        .filter-card.collapsed .filter-body { display: none; }

        /* 筛选设置 */
        .filter-body { padding: var(--space-sm) var(--space-lg) var(--space-lg); }
        .rule-block { padding: var(--space-md) 0; border-bottom: 1px solid var(--border-light); }
        .rule-block:last-of-type { border-bottom: none; padding-bottom: var(--space-sm); }
        .rule-label {
            font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text-tertiary);
            letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px;
        }
        .inline-label { font-size: var(--fs-small); color: var(--text-tertiary); margin: 2px 0 8px; }
        .pill-group {
            display: flex; background: var(--bg-subtle); border-radius: var(--radius-full);
            padding: 3px; gap: 2px; border: 1px solid var(--border-light); align-self: flex-start;
            max-width: 100%;
        }
        .pill-group--wrap { flex-wrap: wrap; align-self: stretch; }
        .pill-group--sm .pill { padding: 5px 13px; font-size: var(--fs-small); }
        .pill {
            padding: 7px 15px; font-size: var(--fs-caption);
            font-weight: var(--fw-medium); color: var(--text-secondary); background: transparent;
            border: none; border-radius: var(--radius-full); cursor: pointer;
            transition: all var(--duration-normal) var(--ease-spring);
            white-space: nowrap; user-select: none; -webkit-user-select: none;
        }
        .pill:hover:not(.active) { color: var(--text-primary); background: rgba(0,0,0,0.03); }
        .pill:active:not(.active) { transform: scale(0.96); }
        .pill.active {
            background: var(--bg-card); color: var(--primary); font-weight: var(--fw-semibold);
            box-shadow: var(--shadow-sm), 0 0 0 1px rgba(139, 32, 32, 0.08);
        }
        .filter-sliders { display: flex; flex-direction: column; gap: 13px; margin-top: 12px; }
        .filter-sliders:first-child { margin-top: 0; }
        .slider-row { min-width: 0; }
        .slider-row--compact .slider-head { margin-bottom: 4px; }
        .slider-head {
            display: flex; align-items: center; justify-content: space-between; gap: 8px;
            font-size: var(--fs-small); color: var(--text-secondary); margin-bottom: 6px;
        }
        .slider-val {
            font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--primary);
            font-variant-numeric: tabular-nums; white-space: nowrap;
        }
        .range {
            -webkit-appearance: none; appearance: none; width: 100%; height: 20px;
            background: transparent; cursor: pointer; outline: none; display: block;
        }
        .range::-webkit-slider-runnable-track {
            height: 4px; border-radius: 2px;
            background: linear-gradient(90deg, var(--primary) 0%, var(--primary) var(--p, 50%), var(--border-default) var(--p, 50%), var(--border-default) 100%);
        }
        .range::-webkit-slider-thumb {
            -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -6px;
            border-radius: 50%; background: #fff; border: 2px solid var(--primary);
            box-shadow: 0 1px 4px rgba(0,0,0,0.16); transition: transform var(--duration-fast);
        }
        .range:active::-webkit-slider-thumb { transform: scale(1.12); }
        .range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--border-default); }
        .range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--primary); }
        .range::-moz-range-thumb {
            width: 14px; height: 14px; border-radius: 50%; background: #fff;
            border: 2px solid var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,0.16);
        }
        .hint-line { font-size: 11px; color: var(--text-tertiary); line-height: 1.5; margin-top: 10px; }
        .switch-row {
            display: flex; align-items: center; gap: var(--space-sm); cursor: pointer;
            font-size: var(--fs-caption); color: var(--text-secondary); font-weight: var(--fw-medium);
            user-select: none; -webkit-user-select: none; margin-top: 12px;
        }
        .switch-row:first-child { margin-top: 0; }
        .switch-input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
        .switch {
            width: 38px; height: 22px; border-radius: var(--radius-full);
            background: var(--bg-subtle); border: 1px solid var(--border-default);
            position: relative; transition: all var(--duration-fast); flex-shrink: 0;
        }
        .switch::after {
            content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
            border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm);
            transition: all var(--duration-normal) var(--ease-spring);
        }
        .switch-input:checked + .switch { background: var(--primary); border-color: var(--primary); }
        .switch-input:checked + .switch::after { transform: translateX(16px); }
        .model-entry {
            display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
            margin-top: 4px; padding: 12px; border-radius: var(--radius-md);
            background: var(--bg-page); border: 1px solid var(--border-light);
        }
        .model-entry-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
        .model-entry-title { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text-secondary); }
        .model-entry-status { font-size: 11px; color: var(--text-tertiary); }

        /* 照片网格 */
        .work-col { display: flex; flex-direction: column; gap: var(--space-md); min-width: 0; }
        .file-count { font-size: var(--fs-small); color: var(--text-tertiary); }
        .file-count strong { color: var(--primary); font-weight: var(--fw-semibold); }
        .select-all {
            display: flex; align-items: center; gap: 5px; cursor: pointer;
            font-size: var(--fs-small); color: var(--text-secondary); white-space: nowrap;
            user-select: none; -webkit-user-select: none;
        }
        .select-all input { width: 14px; height: 14px; accent-color: var(--primary); cursor: pointer; }
        .photo-grid {
            display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px; padding: 16px 20px 20px;
        }
        .photo-item {
            position: relative; background: var(--bg-page); border: 1px solid var(--border-default);
            border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
            transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast), border-color var(--duration-fast);
            animation: fadeUp 0.3s var(--ease-out) both; min-width: 0;
        }
        .photo-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
        .photo-item.picked { border-color: rgba(139,32,32,0.42); box-shadow: 0 0 0 1px rgba(139,32,32,0.12); }
        .photo-item.rejected { cursor: default; }
        .photo-item.rejected .photo-thumb img { filter: saturate(0.8) brightness(0.94); }
        .photo-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-subtle); overflow: hidden; }
        .photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .photo-item.rejected .photo-thumb::after {
            content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,59,48,0.12);
        }
        .pick { position: absolute; top: 8px; left: 8px; z-index: 2; cursor: pointer; display: block; }
        .pick input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
        .pick-box {
            width: 22px; height: 22px; border-radius: 50%;
            border: 1.5px solid rgba(255,255,255,0.8); background: rgba(0,0,0,0.30);
            backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
            display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
            transition: all var(--duration-fast);
        }
        .pick-box::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: transparent; transition: all var(--duration-fast); }
        .pick input:checked + .pick-box { background: var(--primary); border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
        .pick input:checked + .pick-box::before { background: #fff; }
        .score-badge {
            position: absolute; top: 8px; right: 8px; z-index: 2;
            padding: 3px 8px; border-radius: var(--radius-full);
            background: rgba(255,255,255,0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
            font-size: 10px; font-weight: var(--fw-semibold); color: var(--primary);
            font-variant-numeric: tabular-nums; white-space: nowrap;
        }
        .score-badge.good { color: #1F8B3B; }
        .score-badge.mid { color: #B27300; }
        .score-badge.bad { color: var(--error); }
        .score-badge.pending { color: var(--text-tertiary); }
        .photo-info { padding: 9px 11px 10px; display: flex; flex-direction: column; gap: 5px; }
        .photo-name {
            font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--text-primary);
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .photo-meta {
            display: flex; align-items: center; justify-content: space-between; gap: 6px;
            font-size: 10.5px; color: var(--text-tertiary); font-variant-numeric: tabular-nums;
        }
        .tag-row { display: flex; flex-wrap: wrap; gap: 4px; }
        .tag {
            font-size: 10px; padding: 2px 7px; border-radius: var(--radius-full);
            background: var(--bg-subtle); color: var(--text-secondary); white-space: nowrap;
        }
        .tag.good { background: var(--success-bg); color: #1F8B3B; }
        .tag.mid { background: var(--warning-bg); color: #A86A00; }
        .tag.bad { background: var(--error-bg); color: var(--error); }
        .tag.plain { background: var(--bg-card); border: 1px solid var(--border-light); }
        .item-btn-row { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
        .mini-btn {
            padding: 3px 9px; font-size: 10.5px; font-weight: var(--fw-medium);
            color: var(--text-secondary); background: var(--bg-card);
            border: 1px solid var(--border-default); border-radius: var(--radius-full);
            cursor: pointer; transition: all var(--duration-fast); white-space: nowrap;
        }
        .mini-btn:hover { color: var(--primary); border-color: var(--primary); }
        .mini-btn.danger:hover { color: var(--error); border-color: var(--error); background: var(--error-bg); }
        .grid-empty {
            padding: var(--space-2xl) var(--space-md); text-align: center;
            font-size: var(--fs-small); color: var(--text-tertiary); line-height: 1.6;
        }
        .grid-empty span { font-size: 11px; color: var(--text-tertiary); opacity: 0.8; }
        .rejected-card .card-head { border-bottom-color: rgba(255,59,48,0.10); }
        .rejected-card .card-title { color: var(--text-secondary); }

        /* 动作按钮 */
        .action-row {
            width: 100%; display: flex; align-items: center; justify-content: center;
            gap: var(--space-md); flex-wrap: wrap;
            animation: fadeUp 0.5s var(--ease-out) 0.05s both;
        }
        .btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            padding: 13px 28px; border-radius: var(--radius-full); border: none;
            font-size: var(--fs-body); font-weight: var(--fw-semibold);
            cursor: pointer; transition: all var(--duration-normal) var(--ease-out);
            white-space: nowrap; min-width: 0;
        }
        .btn-primary {
            background: var(--primary); color: var(--text-on-primary);
            box-shadow: 0 2px 8px rgba(139,32,32,0.20);
        }
        .btn-primary:hover:not(:disabled) {
            background: var(--primary-hover); box-shadow: 0 4px 16px rgba(139,32,32,0.25);
            transform: translateY(-1px);
        }
        .btn-primary:active:not(:disabled) { background: var(--primary-active); transform: translateY(0); }
        .btn-outline {
            background: var(--bg-card); color: var(--primary);
            border: 1px solid var(--primary); box-shadow: none;
        }
        .btn-outline:hover:not(:disabled) { background: var(--primary-subtle); box-shadow: var(--shadow-sm); }
        .btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
        .btn-sm { padding: 9px 20px; font-size: var(--fs-caption); }
        .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
        .retouch-num { font-size: var(--fs-small); font-weight: var(--fw-medium); opacity: 0.85; }

        /* 进度 */
        .progress-section { width: 100%; max-width: 560px; animation: fadeScale var(--duration-normal) var(--ease-spring); }
        .progress-track { width: 100%; height: 4px; background: var(--bg-subtle); border-radius: 2px; overflow: hidden; }
        .progress-fill {
            height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-red), #A52A2A);
            border-radius: 2px; transition: width 0.3s var(--ease-out); position: relative;
        }
        .progress-fill::after {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: shimmer 1.5s ease-in-out infinite;
        }
        @keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
        .progress-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; gap: 8px; }
        .progress-text { font-size: var(--fs-small); color: var(--text-secondary); }
        .progress-percent { font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--primary); font-variant-numeric: tabular-nums; }


        /* 结果 */
        .results-card { width: 100%; animation: fadeUp 0.5s var(--ease-out); }
        .results-meta { font-size: var(--fs-small); color: var(--text-tertiary); }
        .results-meta strong { color: var(--primary); font-weight: var(--fw-semibold); }
        .result-item { cursor: default; }
        .result-item .photo-thumb { aspect-ratio: 4 / 3; }
        .result-actions { display: flex; gap: 6px; flex-wrap: wrap; }
        .result-actions .mini-btn { flex: 1; text-align: center; }
        .result-actions .mini-btn.primary { color: var(--primary); border-color: rgba(139,32,32,0.3); background: var(--primary-subtle); }

        /* 弹窗 */
        .modal-overlay {
            position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center;
            padding: 20px; background: rgba(22,22,24,0.42);
            backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
            opacity: 0; visibility: hidden; transition: opacity var(--duration-normal), visibility var(--duration-normal);
        }
        .modal-overlay.open { opacity: 1; visibility: visible; }
        .modal {
            width: min(680px, 100%); max-height: calc(100vh - 40px);
            background: var(--bg-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
            display: flex; flex-direction: column; overflow: hidden; min-width: 0;
            transform: translateY(10px) scale(0.985); transition: transform var(--duration-normal) var(--ease-out);
        }
        .modal-overlay.open .modal { transform: translateY(0) scale(1); }
        .modal--wide { width: min(1040px, 100%); }
        .modal--retouch { height: min(86vh, 820px); overflow: visible; }
        .modal-head {
            padding: 20px 24px 14px; display: flex; align-items: flex-start; gap: 12px;
            border-bottom: 1px solid var(--border-light); flex-shrink: 0; min-width: 0;
        }
        .modal-head-text { min-width: 0; }
        .modal-head h2 { font-size: var(--fs-title); font-weight: var(--fw-semibold); letter-spacing: -0.01em; line-height: 1.25; }
        .modal-head p { font-size: var(--fs-small); color: var(--text-tertiary); margin-top: 3px; }
        .retouch-model-status {
            display: inline-flex; align-items: center; gap: 6px;
            margin-left: auto; padding: 5px 12px; font-size: var(--fs-small);
            border-radius: 9999px; background: var(--bg-subtle); color: var(--text-secondary);
            font-weight: var(--fw-medium); white-space: nowrap; flex-shrink: 0;
            transition: color var(--duration-fast), background var(--duration-fast);
        }
        .retouch-model-status.ms-loading { background: var(--primary-subtle); color: var(--primary); }
        .retouch-model-status.ms-ready   { background: var(--success-bg);  color: var(--success); }
        .retouch-model-status.ms-failed  { background: var(--warning-bg);  color: var(--warning); }
        .retouch-model-status::before {
            content: ''; width: 6px; height: 6px; border-radius: 50%;
            background: currentColor; opacity: 0.6;
        }
        .retouch-model-status.ms-loading::before { animation: ms-pulse 1.1s ease-in-out infinite; }
        @keyframes ms-pulse {
            0%, 100% { opacity: 0.3; transform: scale(0.8); }
            50%      { opacity: 1;   transform: scale(1); }
        }
        .modal-close {
            margin-left: auto; width: 32px; height: 32px; border: none; background: var(--bg-subtle);
            border-radius: 50%; color: var(--text-secondary); cursor: pointer; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center; transition: all var(--duration-fast);
        }
        .modal-close:hover { background: var(--error-bg); color: var(--error); }
        .modal-close svg { width: 15px; height: 15px; }
        .preset-row {
            display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
            padding: 12px 24px 0; flex-shrink: 0;
        }
        .preset-label { font-size: 11px; color: var(--text-tertiary); margin-right: 2px; }
        .preset-pill {
            padding: 5px 12px; font-size: 11px; font-weight: var(--fw-medium);
            color: var(--text-secondary); background: var(--bg-subtle);
            border: none; border-radius: var(--radius-full); cursor: pointer; transition: all var(--duration-fast);
            white-space: nowrap;
        }
        .preset-pill:hover { color: var(--text-primary); }
        .preset-pill.active { background: var(--primary-subtle); color: var(--primary); font-weight: var(--fw-semibold); box-shadow: 0 0 0 1px rgba(139,32,32,0.10); }
        .modal-tabs {
            display: flex; gap: 4px; padding: 12px 24px 0; overflow-x: auto; flex-shrink: 0;
            scrollbar-width: none; -webkit-overflow-scrolling: touch;
        }
        .modal-tabs::-webkit-scrollbar { display: none; }
        .tab-btn {
            padding: 7px 14px; border: none; border-radius: var(--radius-full);
            background: var(--bg-subtle); color: var(--text-secondary);
            font-size: var(--fs-small); font-weight: var(--fw-medium); cursor: pointer;
            transition: all var(--duration-fast); white-space: nowrap; flex-shrink: 0;
        }
        .tab-btn:hover { color: var(--text-primary); }
        .tab-btn.active { background: var(--primary-subtle); color: var(--primary); font-weight: var(--fw-semibold); }
        .modal-body {
            padding: 18px 24px 8px; overflow-y: auto; overscroll-behavior: contain;
            flex: 1; min-height: 0;
        }
        /* 精修弹窗左右分割：左侧实时预览，右侧参数设置 */
        .retouch-split {
            display: grid; grid-template-columns: minmax(0, 1fr) 380px;
            gap: 0; flex: 1; min-height: 0; min-width: 0;
        }
        .retouch-left {
            display: flex; flex-direction: column; min-width: 0; min-height: 0;
            padding: 18px 22px 14px; border-right: 1px solid var(--border-light);
        }
        .retouch-left-head {
            display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px;
        }
        .retouch-left-name {
            font-size: var(--fs-small); color: var(--text-secondary); font-weight: var(--fw-medium);
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
        }
        .retouch-right {
            display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden;
        }
        .retouch-right .modal-tabs { padding: 12px 22px 0; }
        .retouch-right .modal-body { padding: 14px 22px 8px; }
        .retouch-preview-wrap {
            position: relative; display: grid; place-items: center;
            background: var(--bg-subtle); border: 1px solid var(--border-light);
            border-radius: var(--radius-lg); padding: 10px; min-height: 260px; overflow: hidden;
            flex: 1 1 auto; min-width: 0;
        }
        .retouch-stage {
            position: relative; display: inline-block; max-width: 100%; line-height: 0;
            touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
        }
        #retouchPreview { display: block; max-width: 100%; max-height: 56vh; border-radius: 8px; }
        #retouchOrig { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px; display: block; }
        .retouch-orig-layer {
            position: absolute; inset: 0; overflow: hidden; border-radius: 8px;
            clip-path: inset(0 50% 0 0); pointer-events: none;
        }
        .retouch-split-line {
            position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
            background: rgba(255,255,255,0.92);
            box-shadow: 0 0 0 1px rgba(0,0,0,0.10), 0 2px 10px rgba(0,0,0,0.25);
            z-index: 2; cursor: ew-resize; touch-action: none;
        }
        .retouch-split-line::before {
            content: ''; position: absolute; top: 50%; left: 50%;
            width: 34px; height: 34px; transform: translate(-50%, -50%);
            background: #fff; border-radius: 50%;
            box-shadow: 0 4px 12px rgba(0,0,0,0.18);
            display: grid; place-items: center;
        }
        .retouch-split-line svg {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            width: 14px; height: 14px; color: var(--primary); pointer-events: none; z-index: 1;
        }
        .retouch-side-tag {
            position: absolute; bottom: 8px; z-index: 1;
            display: inline-flex; align-items: center; justify-content: center;
            padding: 4px 10px; border-radius: var(--radius-full);
            background: rgba(22,22,24,0.55); color: #fff;
            font-size: 10.5px; line-height: 1.2; white-space: nowrap;
            backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); pointer-events: none;
        }
        .retouch-side-tag--left { left: 10px; }
        .retouch-side-tag--right { right: 10px; }
        /* 无预览时的空态 */
        .retouch-preview-empty {
            position: absolute; inset: 0; display: grid; place-items: center;
            color: var(--text-tertiary); font-size: var(--fs-caption); text-align: center; padding: 20px;
        }
        .pane { display: none; }
        .pane.active { display: block; animation: fadeUp 0.25s var(--ease-out); }
        .slider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
        .modal-body .slider-head { font-size: var(--fs-caption); color: var(--text-secondary); }
        .ai-inline {
            padding: 12px 14px; margin-bottom: 18px; border-radius: var(--radius-md);
            background: var(--bg-page); border: 1px solid var(--border-light);
        }
        .ai-inline .switch-row { margin-top: 0; font-size: var(--fs-small); }
        .ai-inline .hint-line { margin-top: 6px; }
        .export-block { margin-bottom: 16px; }
        .export-label {
            font-size: 11px; font-weight: var(--fw-semibold); color: var(--text-tertiary);
            letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px;
        }
        .edge-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
        .custom-edge { display: flex; align-items: center; gap: 6px; }
        .custom-edge-unit { font-size: var(--fs-small); color: var(--text-tertiary); }
        .text-input {
            width: 100%; padding: 9px 14px; font-size: var(--fs-caption);
            color: var(--text-primary); background: var(--bg-input);
            border: 1px solid var(--border-default); border-radius: var(--radius-sm);
            outline: none; transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
        }
        .text-input::placeholder { color: var(--text-tertiary); }
        .text-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(139,32,32,0.1); }
        .text-input--sm { width: 108px; padding: 6px 10px; font-size: var(--fs-small); }
        .modal-foot {
            padding: 14px 24px 20px; display: flex; align-items: center; gap: 10px;
            border-top: 1px solid var(--border-light); flex-shrink: 0; flex-wrap: wrap;
            position: relative;
        }
        .foot-hint { font-size: 11px; color: var(--text-tertiary); }
        .foot-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

        /* 导出设置浮层 */
        .export-popover {
            position: absolute; left: 0; right: 0; bottom: calc(100% - 4px);
            background: var(--bg-card); border: 1px solid var(--border-light);
            border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
            padding: 18px 20px; z-index: 5;
            animation: popIn 180ms var(--ease-out) both;
        }
        @keyframes popIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
        .export-popover-inner { max-height: 62vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
        .export-popover-inner .export-block { margin: 0; }

        /* 模型中心 */
        .model-intro {
            padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-page);
            border: 1px solid var(--border-light); font-size: var(--fs-small); color: var(--text-secondary);
            line-height: 1.6; margin-bottom: 16px;
        }
        .model-intro strong { color: var(--primary); font-weight: var(--fw-semibold); }
        .model-list { display: flex; flex-direction: column; gap: 12px; }
        .model-card {
            border: 1px solid var(--border-default); border-radius: var(--radius-md);
            padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0;
        }
        .model-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .model-title { font-size: 14px; font-weight: var(--fw-semibold); color: var(--text-primary); }
        .badge-open {
            font-size: 10px; padding: 2px 7px; border-radius: var(--radius-full);
            background: var(--success-bg); color: #1F8B3B; font-weight: var(--fw-semibold);
        }
        .model-desc { font-size: var(--fs-small); color: var(--text-secondary); line-height: 1.55; }
        .model-pack-list {
            display: flex; flex-direction: column; gap: 4px;
            padding: 8px 10px; background: var(--bg-page);
            border-radius: var(--radius-sm); min-width: 0;
        }
        .model-pack-row {
            display: flex; align-items: center; justify-content: space-between; gap: 10px;
            font-size: 11px; color: var(--text-secondary); min-width: 0;
        }
        .model-pack-row b { font-weight: var(--fw-semibold); color: var(--text-primary); white-space: nowrap; }
        .model-pack-row span:last-child { color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .model-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
        .model-status {
            display: inline-flex; align-items: center; gap: 5px; font-size: 11px;
            color: var(--text-tertiary); white-space: nowrap;
        }
        .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-tertiary); flex-shrink: 0; }
        .dot.green { background: var(--success); }
        .dot.amber { background: var(--warning); }
        .dot.red { background: var(--error); }
        .model-progress { display: none; height: 3px; background: var(--bg-subtle); border-radius: 2px; overflow: hidden; margin-top: 2px; }
        .model-progress.show { display: block; }
        .model-progress-fill { height: 100%; width: 0%; background: var(--primary); transition: width 0.2s var(--ease-out); }
        .model-progress-text { font-size: 10px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
        .model-link { font-size: 11px; color: var(--text-tertiary); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
        .model-link:hover { color: var(--primary); }
        .model-pack {
            display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
            margin-top: 14px; padding: 14px 16px; border: 1px solid var(--border-default);
            border-radius: var(--radius-md); background: var(--bg-page);
        }
        .model-pack-info { min-width: 0; }
        .model-pack-title { font-size: 13px; font-weight: var(--fw-semibold); color: var(--text-primary); }
        .model-pack-desc { font-size: 11px; color: var(--text-tertiary); line-height: 1.45; margin-top: 2px; }

        /* 网盘下载选择 */
        .dl-choice { display: flex; flex-direction: column; gap: 10px; }
        .dl-option {
            display: flex; align-items: center; gap: 12px; width: 100%;
            padding: 13px 15px; border: 1px solid var(--border-default); border-radius: var(--radius-md);
            background: var(--bg-card); cursor: pointer; text-align: left;
            transition: all var(--duration-fast) var(--ease-out);
        }
        .dl-option:hover { border-color: var(--primary); background: var(--primary-subtle); }
        .dl-option-icon {
            width: 38px; height: 38px; border-radius: 10px; background: var(--bg-subtle);
            display: grid; place-items: center; color: var(--text-secondary); flex-shrink: 0;
            transition: all var(--duration-fast);
        }
        .dl-option-icon svg { width: 18px; height: 18px; }
        .dl-option:hover .dl-option-icon { background: var(--bg-card); color: var(--primary); }
        .dl-option-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
        .dl-option-title { font-size: 13px; font-weight: var(--fw-semibold); color: var(--text-primary); }
        .dl-option-sub { font-size: 11px; color: var(--text-tertiary); line-height: 1.4; }
        .dl-option-state { font-size: 11px; font-weight: var(--fw-semibold); color: var(--warning); white-space: nowrap; }
        .dl-option-state.ok { color: var(--success); }
        .dl-foot-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; }
        .dl-text-btn {
            padding: 2px; border: none; background: none; color: var(--text-secondary);
            font-size: 11px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
        }
        .dl-text-btn:hover { color: var(--primary); }
        .guide-tip {
            padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-page);
            border: 1px solid var(--border-light); font-size: 12px; color: var(--text-secondary); line-height: 1.7;
        }
        .guide-tip strong { display: block; color: var(--text-primary); margin-bottom: 4px; }
        .guide-tip ol { margin: 0; padding-left: 18px; }
        .guide-tip li { margin-top: 2px; }

        /* 使用指南 */
        .guide-link {
            display: inline-flex; align-items: center; gap: 5px;
            padding: 5px 12px; border-radius: var(--radius-full);
            border: 1px solid var(--border-default); background: var(--bg-card);
            color: var(--text-secondary); font-size: 11px; cursor: pointer;
            transition: all var(--duration-fast) var(--ease-out);
        }
        .guide-link:hover { color: var(--primary); border-color: var(--primary); }
        .guide-link svg { width: 12px; height: 12px; flex-shrink: 0; }
        .guide-step { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
        .guide-step:last-child { border-bottom: none; padding-bottom: 0; }
        .guide-num {
            width: 22px; height: 22px; border-radius: 50%; background: var(--primary-subtle);
            color: var(--primary); font-size: 11px; font-weight: var(--fw-bold);
            display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
        }
        .guide-step h3 { font-size: 13px; font-weight: var(--fw-semibold); color: var(--text-primary); margin-bottom: 3px; }
        .guide-step p { font-size: 12px; color: var(--text-secondary); line-height: 1.65; }
        .guide-step ul { margin: 5px 0 0 16px; padding: 0; font-size: 12px; color: var(--text-secondary); line-height: 1.65; }

        /* 对比 */
        .compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
        .compare-figure { min-width: 0; }
        .compare-figure img {
            width: 100%; max-height: 52vh; object-fit: contain; display: block;
            background: var(--bg-subtle); border-radius: var(--radius-md); border: 1px solid var(--border-light);
        }
        .compare-cap {
            font-size: var(--fs-small); color: var(--text-secondary); text-align: center;
            margin-top: 7px; font-weight: var(--fw-medium);
        }
        .compare-cap span { color: var(--text-tertiary); font-weight: 400; margin-left: 4px; }

        /* 调色预设 */
        .style-layout { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 18px; align-items: start; }
        .style-preview-col { min-width: 0; }
        .style-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
        .style-preview-name {
            font-size: var(--fs-small); color: var(--text-secondary); font-weight: var(--fw-medium);
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
        }
        .style-canvas-wrap {
            position: relative; display: grid; place-items: center;
            background: var(--bg-subtle); border: 1px solid var(--border-light);
            border-radius: var(--radius-lg); padding: 10px; min-height: 240px; overflow: hidden;
        }
        .style-split-tip { font-size: 11px; color: var(--text-tertiary); flex-shrink: 0; }
        .style-stage {
            position: relative; display: inline-block; max-width: 100%; line-height: 0;
            touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
        }
        #stylePreview { display: block; max-width: 100%; max-height: 56vh; border-radius: 8px; }
        #styleOriginal { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px; display: block; }
        .style-orig-layer {
            position: absolute; inset: 0; overflow: hidden; border-radius: 8px;
            clip-path: inset(0 50% 0 0); pointer-events: none;
        }
        .style-split {
            position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
            background: rgba(255,255,255,0.92);
            box-shadow: 0 0 0 1px rgba(0,0,0,0.10), 0 2px 10px rgba(0,0,0,0.25);
            z-index: 2; cursor: ew-resize; touch-action: none;
        }
        .style-split-handle {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            width: 28px; height: 28px; border-radius: 50%; background: #fff;
            box-shadow: 0 2px 8px rgba(0,0,0,0.22); display: grid; place-items: center;
            color: var(--primary);
        }
        .style-split-handle svg { width: 16px; height: 16px; }
        .style-side-tag {
            position: absolute; bottom: 8px; z-index: 1;
            display: inline-flex; align-items: center; justify-content: center;
            padding: 4px 10px; border-radius: var(--radius-full);
            background: rgba(22,22,24,0.55); color: #fff;
            font-size: 10.5px; line-height: 1.2; white-space: nowrap;
            backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); pointer-events: none;
        }
        .style-side-tag--left { left: 8px; }
        .style-side-tag--right { right: 8px; }
        .style-preview-badge {
            position: absolute; top: 8px; right: 8px; z-index: 1;
            padding: 3px 10px; border-radius: var(--radius-full);
            background: rgba(22,22,24,0.66); color: #fff; font-size: 10px; font-weight: var(--fw-medium);
            backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); pointer-events: none;
        }
        .style-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 2px; scrollbar-width: none; }
        .style-thumbs::-webkit-scrollbar { display: none; }
        .style-thumb {
            width: 42px; height: 42px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
            border: 2px solid transparent; padding: 0; background: var(--bg-subtle); cursor: pointer;
            transition: border-color var(--duration-fast);
        }
        .style-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .style-thumb.active { border-color: var(--primary); }
        .style-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; padding-right: 2px; }
        .style-item {
            display: flex; align-items: center; gap: 10px; width: 100%;
            padding: 8px 10px; text-align: left; cursor: pointer;
            background: var(--bg-card); border: 1px solid var(--border-default);
            border-radius: var(--radius-md); transition: all var(--duration-fast) var(--ease-out);
        }
        .style-item:hover { border-color: rgba(139,32,32,0.35); background: var(--bg-card-hover); }
        .style-item.active { border-color: var(--primary); background: var(--primary-subtle); box-shadow: 0 0 0 1px rgba(139,32,32,0.12); }
        .style-swatch { width: 44px; height: 36px; border-radius: 8px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }
        .style-item-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
        .style-item-name { font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--text-primary); }
        .style-item-desc { font-size: 10.5px; color: var(--text-tertiary); line-height: 1.35; }
        .style-item.active .style-item-name { color: var(--primary); }

        /* 供搜索引擎抓取的功能关键词：对用户不可见，但保留在 HTML 中可被正常收录 */
        .seo-keywords {
            position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
            overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
        }


        @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes fadeScale { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

        /* 平板 */
        @media (max-width: 980px) {
            .workspace { grid-template-columns: 1fr; }
            .filter-card { position: static; }
            .collapse-btn { display: flex; }
            .filter-card.collapsed .filter-body { display: none; }
            .feature-grid { grid-template-columns: repeat(3, 1fr); }
        }
        /* 手机 */
        @media (max-width: 640px) {
            .container { padding: var(--space-2xl) var(--space-md) var(--space-xl); gap: var(--space-md); }
            .header { padding-top: 10px; }
            .header h1 { font-size: 24px; }
            .header p { font-size: var(--fs-small); }
            .steps { gap: 4px; }
            .step { padding: 5px 10px; font-size: 11px; }
            .step-sep { display: none; }
            .upload-zone { padding: var(--space-xl) var(--space-md); }
            .upload-compact { padding: var(--space-md); gap: 10px; }
            .feature-grid { grid-template-columns: 1fr; }
            .card-head { padding: var(--space-md); gap: 6px; }
            .filter-body { padding: 0 var(--space-md) var(--space-md); }
            .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 12px; }
            .photo-info { padding: 8px 9px 9px; }
            .photo-name { font-size: 11.5px; }
            .photo-meta { font-size: 10px; }
            .tag { font-size: 9.5px; padding: 2px 6px; }
            .action-row { gap: 8px; }
            .btn { flex: 1 1 46%; padding: 12px 16px; font-size: var(--fs-caption); }
            .back-home { top: 8px; left: 8px; padding: 4px 8px; font-size: 11px; gap: 3px; }
            .back-home svg { width: 12px; height: 12px; }
            .contact-service { top: 8px; right: 8px; }
            .contact-btn { padding: 4px 8px; font-size: 11px; gap: 3px; }
            .contact-btn svg { width: 12px; height: 12px; }
            .modal-overlay { padding: 10px; align-items: flex-end; }
            .modal { max-height: calc(100vh - 20px); border-radius: var(--radius-xl) var(--radius-xl) 14px 14px; }
            .modal--retouch { height: calc(100vh - 20px); }
            .retouch-split { grid-template-columns: 1fr; }
            .retouch-left { border-right: none; border-bottom: 1px solid var(--border-light); padding: 14px 18px 12px; }
            .retouch-right .modal-tabs,
            .retouch-right .modal-body { padding-left: 18px; padding-right: 18px; }
            .modal-head { padding: 16px 18px 12px; }
            .modal-head h2 { font-size: 18px; }
            .preset-row { padding: 10px 18px 0; }
            .modal-tabs { padding: 10px 18px 0; }
            .modal-body { padding: 14px 18px 6px; }
            .slider-grid { grid-template-columns: 1fr; gap: 14px; }
            .modal-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
            .foot-hint { display: none; }
            .foot-actions { margin-left: 0; width: 100%; }
            .foot-actions .btn { flex: 1; padding: 10px 14px; }
            .model-card { padding: 12px 13px; }
            .compare-grid { grid-template-columns: 1fr; gap: 10px; }
            .compare-figure img { max-height: 34vh; }
            .style-layout { grid-template-columns: 1fr; gap: 12px; }
            .style-preview-col { order: 1; }
            .style-list { order: 2; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 2px 0 4px; }
            .style-item { flex-direction: column; align-items: flex-start; width: 150px; flex-shrink: 0; gap: 6px; }
            .style-swatch { width: 100%; height: 34px; }
            .style-canvas-wrap { min-height: 180px; padding: 8px; }
            #stylePreview { max-height: 32vh; }
            .style-thumbs { margin-top: 6px; }
            .results-card .head-right { width: 100%; margin-left: 0; }
            .results-card .head-right .mini-primary,
            .results-card .head-right .mini-plain { flex: 1; text-align: center; }
            .filter-card .card-head .head-right { margin-left: auto; }
        }
        @media (max-width: 420px) {
            .photo-grid { gap: 8px; padding: 10px; }
            .upload-hint { font-size: 11px; }
            .pill { padding: 6px 12px; }
            .pill-group--sm .pill { padding: 5px 10px; }
            .steps { gap: 3px; }
            .step { padding: 4px 8px; font-size: 10px; gap: 4px; }
            .step b { width: 15px; height: 15px; font-size: 9px; }
        }
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
        }
    