        /* ============================
           设计令牌 — 基于 Apple 设计系统，搭配深红色点缀
           ============================ */
        :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;

            /* 阴影 — Apple 风格多层 */
            --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;
        }

        /* ============================
           Reset & 基础
           ============================ */
        *, *::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::before {
            content: '';
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 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;
        }

        /* ============================
           顶部装饰线 — 深红点缀
           ============================ */
        .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-family: var(--font-family);
            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;
        }

        /* ============================
           容器布局
           ============================ */
        .container {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 960px;
            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);
        }

        /* ============================
           Toast 通知
           ============================ */
        .toast-container {
            position: fixed;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: var(--space-sm);
            pointer-events: none;
            width: max-content;
            max-width: 90%;
        }

        .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;
            white-space: nowrap;
            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); }
        }

        /* ============================
           页头
           ============================ */
        .header {
            text-align: center;
            animation: fadeUp 0.6s var(--ease-out) both;
        }

        .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);
            font-family: var(--font-family);
            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;
        }

        .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);
            margin-bottom: var(--space-sm);
        }

        /* 标题下方深红装饰线 */
        .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;
        }

        /* ============================
           上传区域
           ============================ */
        .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;
        }

        .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;
            border-color: var(--border-default);
            cursor: pointer;
        }

        .upload-zone.has-file:hover {
            border-color: var(--primary);
            background: var(--primary-subtle);
            box-shadow: var(--shadow-sm);
            transform: none;
        }

        /* 紧凑上传条 */
        .upload-compact {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: var(--space-md);
            padding: var(--space-md) var(--space-lg);
            color: var(--text-secondary);
            cursor: pointer;
            width: 100%;
        }

        .upload-compact-left {
            display: flex;
            align-items: center;
            gap: var(--space-sm);
            flex-shrink: 0;
        }

        .upload-compact-icon {
            width: 32px;
            height: 32px;
            border-radius: var(--radius-sm);
            background: var(--bg-subtle);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: var(--text-tertiary);
            transition: color var(--duration-fast), background var(--duration-fast);
        }

        .upload-zone.has-file:hover .upload-compact-icon {
            color: var(--primary);
            background: var(--primary-subtle);
            border-color: var(--primary);
        }

        .upload-compact-text {
            font-size: var(--fs-body);
            font-weight: var(--fw-medium);
            color: var(--text-secondary);
            flex-shrink: 0;
        }

        .upload-compact-hint {
            font-size: var(--fs-small);
            color: var(--text-tertiary);
            margin-left: auto;
        }

        .upload-icon {
            width: 48px;
            height: 48px;
            margin: 0 auto var(--space-md);
            color: var(--text-tertiary);
            transition: color var(--duration-normal), transform 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-family: var(--font-family);
            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(44, 111, 206, 0.14);
        }

        .upload-hint {
            font-size: var(--fs-small);
            color: var(--text-tertiary);
            margin-top: var(--space-md);
        }

        /* ============================
           文件信息卡片（选中文件后显示）
           ============================ */
        .file-info {
            width: 100%;
            display: flex;
            align-items: center;
            gap: var(--space-md);
            padding: var(--space-md) var(--space-lg);
            animation: fadeScale var(--duration-normal) var(--ease-spring);
        }

        .file-info-icon {
            width: 42px;
            height: 42px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: var(--fs-small);
            font-weight: var(--fw-bold);
            text-transform: uppercase;
            flex-shrink: 0;
            letter-spacing: 0.03em;
        }

        .file-info-icon.type-pdf {
            background: rgba(255, 59, 48, 0.1);
            color: #E0352B;
        }
        .file-info-icon.type-ppt {
            background: rgba(255, 149, 0, 0.1);
            color: #D48000;
        }
        .file-info-icon.type-word {
            background: rgba(52, 199, 89, 0.1);
            color: #2B9E48;
        }

        .file-info-text {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .file-name {
            font-size: var(--fs-body);
            font-weight: var(--fw-medium);
            color: var(--text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .file-size {
            font-size: var(--fs-small);
            color: var(--text-tertiary);
        }

        .file-remove {
            width: 28px;
            height: 28px;
            border: none;
            background: var(--bg-subtle);
            border-radius: var(--radius-full);
            color: var(--text-secondary);
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--duration-fast);
            flex-shrink: 0;
        }

        .file-remove:hover {
            background: var(--error-bg);
            color: var(--error);
        }

        /* ============================
           设置面板
           ============================ */
        .settings-panel {
            width: 100%;
            padding: var(--space-lg);
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            display: flex;
            flex-direction: column;
            gap: var(--space-lg);
            animation: fadeUp 0.6s var(--ease-out) 0.15s both;
            transition: opacity var(--duration-normal), transform var(--duration-normal);
        }

        .setting-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--space-md);
            flex-wrap: wrap;
        }

        .setting-row.page-row {
            align-items: flex-start;
        }

        .page-row-controls {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 8px;
        }

        .setting-label {
            font-size: var(--fs-caption);
            font-weight: var(--fw-medium);
            color: var(--text-secondary);
            flex-shrink: 0;
        }

        .pill-group {
            display: flex;
            background: var(--bg-subtle);
            border-radius: var(--radius-full);
            padding: 3px;
            gap: 2px;
            border: 1px solid var(--border-light);
        }

        .pill {
            padding: 7px 18px;
            font-family: var(--font-family);
            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);
            transform: scale(1.02);
        }

        .page-input-wrap {
            display: flex;
            align-items: center;
            gap: var(--space-sm);
            margin-top: var(--space-sm);
            width: 100%;
            justify-content: flex-end;
            animation: fadeScale var(--duration-normal) var(--ease-spring);
        }

        .page-input {
            width: 100px;
            padding: 8px 14px;
            font-family: var(--font-family);
            font-size: var(--fs-caption);
            color: var(--text-primary);
            background: var(--bg-input);
            border: 1px solid var(--border-default);
            border-radius: var(--radius-sm);
            text-align: center;
            outline: none;
            transition: border-color var(--duration-fast);
        }

        .page-input:focus {
            border-color: var(--border-focus);
            box-shadow: 0 0 0 3px rgba(139, 32, 32, 0.1);
        }

        .page-input::placeholder {
            color: var(--text-tertiary);
        }

        /* ============================
           转换按钮
           ============================ */
        .convert-btn {
            width: 100%;
            max-width: 400px;
            padding: 14px 32px;
            font-family: var(--font-family);
            font-size: var(--fs-body);
            font-weight: var(--fw-semibold);
            color: var(--text-on-primary);
            background: var(--primary);
            border: none;
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: all var(--duration-normal) var(--ease-out);
            box-shadow: 0 2px 8px rgba(139, 32, 32, 0.20);
            position: relative;
            overflow: hidden;
            animation: fadeUp 0.6s var(--ease-out) 0.2s both;
        }

        .convert-btn:hover:not(:disabled) {
            background: var(--primary-hover);
            box-shadow: 0 4px 16px rgba(139, 32, 32, 0.25);
            transform: translateY(-1px);
        }

        .convert-btn:active:not(:disabled) {
            background: var(--primary-active);
            transform: translateY(0);
            box-shadow: 0 1px 4px rgba(139, 32, 32, 0.15);
        }

        .convert-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            box-shadow: none;
        }

        .convert-btn .btn-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-sm);
            transition: opacity var(--duration-fast);
        }

        .convert-btn .btn-spinner {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity var(--duration-fast);
        }

        .convert-btn.loading .btn-content {
            opacity: 0;
        }
        .convert-btn.loading .btn-spinner {
            opacity: 1;
        }

        .convert-stats {
            text-align: center;
            font-size: var(--fs-small);
            color: var(--text-tertiary);
            margin-top: var(--space-md);
        }

        .convert-stats strong {
            color: var(--text-secondary);
            font-variant-numeric: tabular-nums;
        }

        .progress-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            margin-top: 6px;
        }

        .privacy-note-inline {
            font-size: var(--fs-caption);
            color: var(--primary);
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* 旋转加载器 */
        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .spin {
            animation: spin 1s linear infinite;
        }

        /* ============================
           剩余次数提示
           ============================ */
        .remaining-hint {
            font-size: var(--fs-small);
            color: var(--text-tertiary);
            text-align: center;
            animation: fadeUp 0.6s var(--ease-out) 0.25s both;
        }

        .total-count {
            font-size: var(--fs-small);
            color: var(--text-tertiary);
            text-align: center;
            animation: fadeUp 0.6s var(--ease-out) 0.3s both;
        }

        .total-count span {
            color: var(--primary);
            font-weight: var(--fw-semibold);
            font-variant-numeric: tabular-nums;
        }

        /* ============================
           进度条
           ============================ */
        .progress-section {
            width: 100%;
            animation: fadeScale var(--duration-normal) var(--ease-spring);
        }

        .progress-track {
            width: 100%;
            height: 4px;
            background: var(--bg-subtle);
            border-radius: 2px;
            overflow: hidden;
            position: relative;
        }

        .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;
            top: 0;
            left: 0;
            right: 0;
            bottom: 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-text {
            font-size: var(--fs-small);
            color: var(--text-secondary);
        }

        .progress-status {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .progress-percent {
            font-size: var(--fs-caption);
            font-weight: var(--fw-semibold);
            color: var(--primary);
            font-variant-numeric: tabular-nums;
            min-width: 32px;
            line-height: 1;
        }

        /* ============================
           结果区域
           ============================ */
        .results-section {
            width: 100%;
            animation: fadeUp 0.5s var(--ease-out);
        }

        .results-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: var(--space-md);
        }

        .results-title {
            font-size: var(--fs-title);
            font-weight: var(--fw-semibold);
            letter-spacing: -0.01em;
        }

        .results-count {
            font-size: var(--fs-caption);
            color: var(--text-tertiary);
        }

        .results-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: var(--space-md);
            margin-bottom: var(--space-lg);
        }

        .expire-hint {
            text-align: center;
            font-size: var(--fs-small);
            color: var(--text-tertiary);
            margin-top: var(--space-md);
            padding: 10px 16px;
            background: var(--bg-subtle);
            border-radius: var(--radius-md);
        }

        .expire-hint span {
            color: var(--primary);
            font-weight: var(--fw-semibold);
            font-variant-numeric: tabular-nums;
        }

        .result-card {
            background: var(--bg-card);
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: all var(--duration-normal) var(--ease-out);
            animation: fadeScale var(--duration-normal) var(--ease-spring) both;
            cursor: pointer;
            position: relative;
        }

        .result-card:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .result-card:nth-child(1) { animation-delay: 0.05s; }
        .result-card:nth-child(2) { animation-delay: 0.1s; }
        .result-card:nth-child(3) { animation-delay: 0.15s; }

        .result-card img {
            width: 100%;
            aspect-ratio: 16/10;
            object-fit: cover;
            display: block;
            background: var(--bg-subtle);
        }

        .result-card-label {
            padding: var(--space-sm) var(--space-md);
            font-size: var(--fs-small);
            color: var(--text-secondary);
            font-weight: var(--fw-medium);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .result-card-label .dl-icon {
            opacity: 0;
            transition: opacity var(--duration-fast);
            color: var(--primary);
        }

        .result-card:hover .dl-icon {
            opacity: 1;
        }

        .more-pages-card {
            background: var(--bg-subtle);
            border-radius: var(--radius-md);
            aspect-ratio: 16/10;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: var(--space-xs);
            color: var(--text-tertiary);
            font-size: var(--fs-caption);
            font-weight: var(--fw-medium);
            cursor: pointer;
            transition: all var(--duration-normal) var(--ease-out);
        }

        .more-pages-card:hover {
            background: var(--bg-card);
            box-shadow: var(--shadow-sm);
            color: var(--primary);
        }

        .more-pages-card:hover .count {
            color: var(--primary);
        }

        .more-pages-card .count {
            font-size: var(--fs-title);
            font-weight: var(--fw-bold);
            color: var(--text-primary);
        }

        /* 单张大图预览 */
        .result-single {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-md);
            animation: fadeScale var(--duration-normal) var(--ease-spring);
            margin-bottom: var(--space-lg);
        }

        .result-single img {
            width: 100%;
            display: block;
            background: var(--bg-subtle);
        }

        /* ============================
           下载按钮
           ============================ */
        .download-actions {
            display: flex;
            justify-content: center;
            gap: var(--space-md);
            flex-wrap: wrap;
        }

        .btn-download {
            display: inline-flex;
            align-items: center;
            gap: var(--space-sm);
            padding: 12px 24px;
            font-family: var(--font-family);
            font-size: var(--fs-body);
            font-weight: var(--fw-semibold);
            color: var(--text-on-primary);
            background: var(--primary);
            border: none;
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: all var(--duration-normal) var(--ease-out);
            box-shadow: 0 2px 8px rgba(139, 32, 32, 0.20);
        }

        .btn-download:hover {
            background: var(--primary-hover);
            box-shadow: 0 4px 16px rgba(139, 32, 32, 0.25);
            transform: translateY(-1px);
        }

        .btn-download svg {
            width: 18px;
            height: 18px;
        }

        /* ============================
           页脚
           ============================ */
        .footer {
            text-align: center;
            padding-top: var(--space-xl);
            border-top: 1px solid var(--border-light);
            animation: fadeUp 0.6s var(--ease-out) 0.3s both;
        }

        .footer p {
            font-size: var(--fs-small);
            color: var(--text-tertiary);
        }

        .footer a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color var(--duration-fast);
        }

        .footer a:hover {
            color: var(--primary);
        }

        .seo-keywords {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            margin: -1px;
            padding: 0;
            border: 0;
        }

        /* ============================
           限制提示横幅
           ============================ */
        .limit-banner {
            width: 100%;
            padding: var(--space-md) var(--space-lg);
            background: var(--warning-bg);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            gap: var(--space-sm);
            font-size: var(--fs-caption);
            color: #8B6914;
            animation: fadeScale var(--duration-normal) var(--ease-spring);
        }

        .limit-banner svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            color: var(--warning);
        }

        /* ============================
           动画关键帧
           ============================ */
        @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: 640px) {
            .container {
                padding: var(--space-2xl) var(--space-md) var(--space-xl);
                gap: var(--space-md);
            }

            .header h1 {
                font-size: 24px;
            }

            .upload-zone {
                padding: var(--space-xl) var(--space-md);
            }

            .setting-row {
                flex-direction: column;
                align-items: center;
                gap: var(--space-sm);
                text-align: center;
            }

            .setting-row.page-row {
                align-items: center;
            }

            .setting-row .pill-group {
                justify-content: center;
                flex-wrap: wrap;
                max-width: 100%;
            }

            .setting-row .pill-group .pill {
                padding: 6px 12px;
                font-size: 12px;
            }

            .setting-row.page-row > div:first-child {
                align-items: center;
                width: 100%;
            }

            .page-row-controls {
                align-items: center;
            }

            .page-input-wrap {
                width: 100%;
                display: flex;
                justify-content: center;
            }

            .page-input {
                width: 120px;
                text-align: center;
            }

            .results-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .convert-btn {
                max-width: none;
            }

            .progress-footer {
                flex-direction: column;
                gap: var(--space-xs);
            }

            .privacy-note-inline {
                text-align: center;
                white-space: normal;
            }

            /* 手机端顶部按钮缩小到两端 */
            .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;
            }

            /* 结果区域居中 */
            .results-section {
                text-align: center;
            }
            .results-header {
                justify-content: center;
            }
            .results-grid {
                justify-items: center;
            }
            .download-actions {
                justify-content: center;
                flex-direction: column;
                align-items: center;
            }

            .btn-download {
                justify-content: center;
            }
        }

        @media (max-width: 380px) {
            .results-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ============================
           图片格式转换页 — 新增组件
           ============================ */
        .file-list {
            width: 100%;
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
            animation: fadeScale var(--duration-normal) var(--ease-spring);
        }

        .file-info-thumbnail {
            padding: 0 !important;
            font-size: 0 !important;
            text-transform: none !important;
            letter-spacing: 0 !important;
            overflow: hidden;
        }

        .file-info-thumbnail img {
            display: block;
            width: 42px;
            height: 42px;
            border-radius: var(--radius-sm);
            object-fit: cover;
        }

        /* 质量滑块 */
        .quality-control {
            display: flex;
            align-items: center;
            gap: var(--space-md);
        }

        .quality-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 160px;
            height: 4px;
            border-radius: 2px;
            background: var(--bg-subtle);
            outline: none;
            cursor: pointer;
            transition: opacity var(--duration-fast);
        }

        .quality-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary);
            border: 3px solid var(--bg-card);
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            transition: box-shadow var(--duration-fast);
        }

        .quality-slider::-webkit-slider-thumb:hover {
            box-shadow: var(--shadow-md);
        }

        .quality-slider::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary);
            border: 3px solid var(--bg-card);
            box-shadow: var(--shadow-sm);
            cursor: pointer;
        }

        .quality-value {
            font-size: var(--fs-caption);
            font-weight: var(--fw-semibold);
            color: var(--primary);
            min-width: 36px;
            text-align: center;
            font-variant-numeric: tabular-nums;
        }

        .quality-disabled {
            opacity: 0.35;
            pointer-events: none;
        }

        .quality-disabled .quality-slider {
            cursor: not-allowed;
        }

        /* 文件大小控制 */
        .filesize-control {
            display: flex;
            align-items: center;
            gap: var(--space-sm);
        }

        .filesize-input {
            width: 90px;
            padding: 6px 10px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 14px;
            font-family: inherit;
            color: var(--text-primary);
            background: var(--bg-subtle);
            outline: none;
            transition: border-color var(--duration-fast);
        }

        .filesize-input:focus {
            border-color: var(--primary);
        }

        .filesize-unit {
            font-size: 13px;
            color: var(--text-tertiary);
        }

        /* 尺寸控制 */
        .size-row {
            align-items: flex-start !important;
        }

        .size-controls {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: var(--space-sm);
        }

        .size-input-wrap {
            display: flex;
            align-items: center;
            gap: var(--space-sm);
            animation: fadeScale var(--duration-normal) var(--ease-spring);
        }

        .size-separator {
            font-size: var(--fs-caption);
            color: var(--text-tertiary);
            font-weight: var(--fw-medium);
        }

        .size-lock {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            color: var(--text-secondary);
            transition: color var(--duration-fast);
            user-select: none;
            -webkit-user-select: none;
        }

        .size-lock:hover {
            color: var(--primary);
        }

        .size-lock input[type="checkbox"] {
            display: none;
        }

        .size-lock input[type="checkbox"] + svg {
            width: 16px;
            height: 16px;
        }

        .size-lock input[type="checkbox"]:checked + svg {
            color: var(--primary);
        }

        /* 响应式 — 移动端（图片转换页补充） */
        @media (max-width: 640px) {
            .setting-row.size-row {
                flex-direction: column;
                align-items: center;
                gap: var(--space-sm);
                text-align: center;
            }

            .size-controls {
                align-items: center;
            }

            .size-input-wrap {
                justify-content: center;
            }

            .quality-control {
                flex-direction: column;
                gap: var(--space-sm);
            }

            .quality-slider {
                width: 200px;
            }

            .results-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* ============================
           减少动效偏好
           ============================ */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
        }
