        :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; }
        .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;
        }
        .toast-container {
            position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
            z-index: 10001; display: flex; flex-direction: column; align-items: center; justify-content: center;
            gap: var(--space-sm); pointer-events: none; width: max-content; max-width: 92vw;
        }
        .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,
                       toastOut .3s ease 2s forwards;
            max-width: 90vw; text-align: center;
        }
        .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; visibility: hidden; transform: translateY(-8px) scale(0.98); } }
        @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes popIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
        @keyframes fadeScale { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

        .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); }

        .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); }

        .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;
        }
        .action-row .btn { padding: 10px 20px; font-size: var(--fs-caption); gap: 6px; }
        .action-row .btn svg { width: 15px; height: 15px; }
        .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-ghost {
            background: transparent; color: var(--text-secondary);
            border: 1px solid var(--border-default);
        }
        .btn-ghost:hover:not(:disabled) { background: var(--bg-subtle); color: var(--text-primary); }
        .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; }

        .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; }
        .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; }

        .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;
        }
        .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; }

        .workspace {
            width: 100%; display: flex; justify-content: center; align-items: flex-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; }

        .btn-tag { font-size: var(--fs-small); font-weight: var(--fw-medium); opacity: 0.6; }

        .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); }

        .work-col { display: flex; flex-direction: column; gap: var(--space-md); width: 100%; max-width: 960px; margin: 0 auto; 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); }

        /* 滑动对比预览 */
        .slider-preview {
            position: relative; width: 100%; padding: 16px 20px;
        }
        .slider-container {
            position: relative; width: 100%; aspect-ratio: 4/3; max-height: 62vh;
            background: var(--bg-page); border: 1px solid var(--border-default);
            border-radius: var(--radius-md); overflow: hidden; user-select: none;
        }
        .slider-layer {
            position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
            overflow: hidden; pointer-events: none;
        }
        .slider-layer img, .slider-layer canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
        .slider-layer--after {
            background-image:
                linear-gradient(45deg, #ccc 25%, transparent 25%),
                linear-gradient(-45deg, #ccc 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #ccc 75%),
                linear-gradient(-45deg, transparent 75%, #ccc 75%);
            background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
            background-color: #fff;
            pointer-events: none;
            clip-path: inset(0 0 0 50%);
        }
        .slider-handle {
            position: absolute; top: 0; bottom: 0; width: 2px; left: 50%;
            background: var(--primary); cursor: ew-resize; z-index: 3;
            box-shadow: 0 0 0 4px rgba(139,32,32,0.15);
            transition: box-shadow var(--duration-fast);
        }
        .slider-handle:hover { box-shadow: 0 0 0 6px rgba(139,32,32,0.25); }
        .slider-handle::before {
            content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
            box-shadow: var(--shadow-md);
        }
        .slider-handle::after {
            content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            font-size: 14px; color: #fff; font-weight: var(--fw-bold);
        }
        .slider-label {
            position: absolute; top: 10px; z-index: 4;
            padding: 3px 8px; border-radius: var(--radius-full);
            background: rgba(22,22,24,0.55); color: #fff; font-size: 10.5px;
            backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); pointer-events: none;
        }
        .slider-label--before { left: 10px; }
        .slider-label--after { right: 10px; }
        .slider-hint {
            position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 4;
            padding: 2px 8px; border-radius: var(--radius-full);
            background: rgba(255,255,255,0.85); color: var(--text-secondary); font-size: 10px;
            pointer-events: none; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
        }
        .slider-empty {
            position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
            font-size: 11px; color: var(--text-tertiary); z-index: 1;
        }

        /* 照片网格 */
        .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.done .photo-thumb::after {
            content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(52,199,89,0.45);
            pointer-events: none;
        }
        .photo-item.error .photo-thumb::after {
            content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(255,59,48,0.50);
            pointer-events: none;
        }
        .photo-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-subtle); overflow: hidden; }
        .photo-thumb img, .photo-thumb canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
        .photo-dl-btn {
            position: absolute; bottom: 8px; right: 8px; z-index: 3;
            width: 30px; height: 30px; border-radius: 50%; border: none;
            background: rgba(139,32,32,0.9); color: #fff; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            box-shadow: var(--shadow-md); transition: all var(--duration-fast);
        }
        .photo-dl-btn:hover { background: var(--primary-hover); transform: scale(1.1); }
        .photo-dl-btn svg { width: 15px; height: 15px; }
        .status-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); white-space: nowrap;
        }
        .status-badge.success { color: #1F8B3B; }
        .status-badge.error { color: var(--error); }
        .status-badge.processing { color: var(--primary); }
        .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;
        }
        .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; }

        .results-card { width: 100%; animation: fadeUp 0.5s var(--ease-out); }

        /* Modal */
        .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(1180px, 100%); }
        #previewSliderContainer { aspect-ratio: 16 / 10; max-height: 68vh; }
        .modal-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .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; }
        .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; }
        .modal-body {
            padding: 18px 24px 8px; overflow-y: auto; overscroll-behavior: contain;
            flex: 1; min-height: 0;
        }
        .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;
        }
        .foot-hint { font-size: 11px; color: var(--text-tertiary); }
        .foot-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

        .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-main { display: flex; flex-direction: column; gap: 4px; 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 input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }

        /* 模型下载/加载进度弹窗 */
        .model-loading-steps {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        .step-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            flex: 0 0 auto;
            min-width: 0;
        }
        .step-circle {
            width: 40px; height: 40px; border-radius: 50%;
            background: var(--bg-subtle); border: 1.5px solid var(--border-default);
            color: var(--text-tertiary);
            display: flex; align-items: center; justify-content: center;
            transition: all var(--duration-normal) var(--ease-out);
        }
        .step-circle svg { width: 18px; height: 18px; }
        .step-text {
            font-size: 11.5px; color: var(--text-tertiary);
            font-weight: var(--fw-medium); white-space: nowrap;
        }
        .step-item.active .step-circle {
            background: var(--primary); border-color: var(--primary); color: #fff;
            box-shadow: 0 0 0 4px rgba(139,32,32,0.12);
        }
        .step-item.active .step-text { color: var(--primary); font-weight: var(--fw-semibold); }
        .step-item.done .step-circle {
            background: var(--success); border-color: var(--success); color: #fff;
        }
        .step-item.done .step-text { color: var(--success); }
        .step-line {
            flex: 1 1 auto; height: 2px; background: var(--border-light);
            margin: 19px 8px 0; border-radius: 1px;
            transition: background var(--duration-normal);
        }
        .step-line.done { background: var(--success); }

        .model-loading-progress-wrap { margin-bottom: 14px; }
        .model-loading-bar {
            width: 100%; height: 8px; background: var(--bg-subtle);
            border-radius: 4px; overflow: hidden;
        }
        .model-loading-bar-fill {
            height: 100%; width: 0%;
            background: linear-gradient(90deg, var(--accent-red), #A52A2A);
            border-radius: 4px; transition: width 0.25s var(--ease-out); position: relative;
        }
        .model-loading-bar-fill::after {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
            animation: shimmer 1.4s ease-in-out infinite;
        }
        .model-loading-status {
            margin-top: 8px; font-size: var(--fs-small);
            color: var(--text-secondary); font-variant-numeric: tabular-nums;
        }
        .model-loading-info {
            font-size: 11px; color: var(--text-tertiary); line-height: 1.6;
            padding: 10px 12px; background: var(--bg-page);
            border: 1px solid var(--border-light); border-radius: var(--radius-sm);
        }

        /* 响应式 */
        @media (max-width: 1024px) {
            #previewSliderContainer { aspect-ratio: 4 / 3; max-height: 60vh; }
        }
        @media (max-width: 720px) {
            .container { padding: var(--space-2xl) var(--space-md); }
            .photo-grid { grid-template-columns: repeat(2, 1fr); }
            .header h1 { font-size: 22px; }
            .btn { padding: 11px 20px; font-size: var(--fs-caption); }
            .modal-overlay { padding: 10px; }
            .modal { max-height: calc(100dvh - 20px); }
            .modal-head { padding: 14px 16px 10px; }
            .modal-body { padding: 10px 12px 4px; }
            .modal-foot { padding: 10px 16px 14px; }
            #previewSliderContainer { aspect-ratio: 4 / 3; max-height: 46vh; }
            .modal--wide .slider-label { font-size: 10px; padding: 4px 8px; }
            .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; }
            .contact-dropdown { width: 140px; }
        }
        @media (prefers-reduced-motion: reduce) {
            * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
        }
