
        /* ============================================================
           设计变量 & 全局重置
           ============================================================ */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --primary: #007AFF; --primary-dark: #0055CC; --primary-light: #E5F0FF;
            --bg: #F2F2F7; --card: #FFFFFF; --border: #E5E5EA;
            --text: #1C1C1E; --text-secondary: #8E8E93; --text-light: #AEAEB2;
            --danger: #FF3B30; --success: #34C759;
            --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
            --radius: 16px; --radius-sm: 12px;
            --safe-top: env(safe-area-inset-top, 20px); --safe-bottom: env(safe-area-inset-bottom, 0px);
            --transition: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        /* ============================================================
           深夜模式（暗色）变量覆盖
           ============================================================ */
        html.dark-mode {
            --primary: #0A84FF; --primary-dark: #0066CC; --primary-light: #0A3D6B;
            --bg: #000000; --card: #1C1C1E; --border: #38383A;
            --text: #FFFFFF; --text-secondary: #98989D; --text-light: #636366;
            --danger: #FF453A; --success: #30D158;
            --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
        }

        html, body {
            height: 100%; font-family: -apple-system, 'Helvetica Neue', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5;
            -webkit-font-smoothing: antialiased; overflow: hidden; touch-action: manipulation;
            transition: background 0.25s, color 0.25s;
        }
        ::-webkit-scrollbar { width: 0; height: 0; }
        #app { display: flex; flex-direction: column; height: 100%; max-width: 480px; margin: 0 auto; background: var(--bg); position: relative; overflow: hidden; transition: background 0.25s; }

        /* 顶部导航 */
        .nav-bar { flex-shrink: 0; background: var(--card); padding: calc(var(--safe-top) + 8px) 18px 8px; display: flex; align-items: center; justify-content: space-between; border-bottom: 0.5px solid var(--border); position: relative; z-index: 10; min-height: 56px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02); transition: background 0.25s, border-color 0.25s; }
        .nav-bar .title { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; color: var(--text); }
        .nav-bar .sync-time { font-size: 12px; color: var(--text-secondary); background: var(--bg); padding: 4px 14px; border-radius: 30px; white-space: nowrap; flex-shrink: 0; font-weight: 500; }

        /* 内容区 */
        .main-content { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 14px 16px 8px; padding-bottom: calc(76px + 12px); }
        .panel { display: none; animation: fadeUp 0.3s ease; }
        .panel.active { display: block; }
        @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

        /* 底部Tab */
        .tab-bar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 0.5px solid var(--border); display: flex; align-items: stretch; padding: 4px 0 calc(var(--safe-bottom) + 4px); z-index: 20; max-width: 480px; margin: 0 auto; transition: background 0.25s, border-color 0.25s; }
        html.dark-mode .tab-bar { background: rgba(28, 28, 30, 0.92); }
        .tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 0; border: none; background: transparent; cursor: pointer; color: var(--text-light); font-size: 10px; font-weight: 500; gap: 2px; min-height: 54px; -webkit-tap-highlight-color: transparent; transition: color 0.2s, transform 0.1s; }
        .tab-item .tab-icon { font-size: 22px; line-height: 1; transition: transform 0.2s; }
        .tab-item .tab-label { font-size: 10px; letter-spacing: 0.2px; }
        .tab-item.active { color: var(--primary); }
        .tab-item.active .tab-icon { transform: scale(1.05); }
        .tab-item:active { opacity: 0.6; transform: scale(0.96); }

        /* 通用组件 */
        .card { background: var(--card); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); border: 0.5px solid var(--border); transition: background 0.25s, border-color 0.25s; }
        .card-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

        .input-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
        .input-group input { flex: 1; min-width: 80px; padding: 12px 18px; border-radius: 30px; border: 1.5px solid var(--border); background: var(--bg); font-size: 15px; color: var(--text); outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.25s, color 0.25s; -webkit-appearance: none; appearance: none; }
        .input-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12); }
        .input-group input::placeholder { color: var(--text-light); }
        html.dark-mode .input-group input { background: #2C2C2E; }

        .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 22px; border-radius: 30px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s, transform 0.1s, opacity 0.2s, color 0.25s; min-height: 44px; min-width: 44px; touch-action: manipulation; white-space: nowrap; background: var(--bg); color: var(--text); border: 1px solid transparent; }
        .btn:active { transform: scale(0.96); opacity: 0.8; }
        .btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
        .btn-primary:active { background: var(--primary-dark); }
        .btn-success { background: var(--success); color: #fff; }
        .btn-success:active { background: #2DB84E; }
        .btn-danger { background: var(--danger); color: #fff; }
        .btn-danger:active { background: #E0352B; }
        .btn-outline { background: transparent; border-color: var(--border); color: var(--text-secondary); }
        .btn-outline:active { background: var(--bg); }
        .btn-sm { padding: 6px 14px; font-size: 13px; min-height: 36px; min-width: 36px; }
        .btn:disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; }
        html.dark-mode .btn { background: #2C2C2E; }
        html.dark-mode .btn.btn-primary { background: var(--primary); }
        html.dark-mode .btn.btn-success { background: var(--success); }
        html.dark-mode .btn.btn-danger { background: var(--danger); }
        html.dark-mode .btn.btn-outline { background: transparent; }

        .empty-state { padding: 36px 12px; text-align: center; color: var(--text-secondary); font-size: 14px; }
        .empty-state .icon { font-size: 44px; display: block; margin-bottom: 10px; opacity: 0.6; }

        .text-muted { color: var(--text-secondary); font-size: 13px; }
        .text-small { font-size: 12px; }
        .flex-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
        .flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
        .mt-1 { margin-top: 10px; }
        .mb-1 { margin-bottom: 10px; }

        /* 首页 - 搜索结果 */
        .result-item { padding: 12px 4px; border-bottom: 0.5px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
        .result-item:last-child { border-bottom: none; }
        .result-item .goods { font-weight: 600; color: var(--text); }
        .result-item .goods .highlight { color: var(--primary); font-weight: 700; }
        .result-item .loc { color: var(--text-secondary); font-size: 14px; background: var(--bg); padding: 2px 16px; border-radius: 30px; }

        /* 差异标显 */
        .result-item .goods .goods-diff {
            color: #FF3B30; font-weight: 800; background: #FFECEB;
            padding: 0 3px; border-radius: 4px;
            text-decoration: underline; text-decoration-style: wavy;
            text-decoration-color: #FF3B30; text-underline-offset: 3px;
        }
        html.dark-mode .result-item .goods .goods-diff {
            color: #FF6B6B; background: #4A1A1A;
            text-decoration-color: #FF6B6B;
        }

        /* 数据卡片列表 */
        .data-card { background: var(--card); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 8px; border: 1px solid var(--border); display: flex; align-items: center; gap: 12px; transition: background 0.2s, border-color 0.2s; }
        .data-card:active { background: var(--bg); }
        .data-card .info { flex: 1; min-width: 0; }
        .data-card .info .goods { font-weight: 600; font-size: 15px; }
        .data-card .info .loc { font-size: 13px; color: var(--text-secondary); display: block; margin-top: 2px; }
        .data-card .actions { display: flex; gap: 6px; flex-shrink: 0; }
        .data-card .actions .btn { min-height: 36px; min-width: 36px; padding: 4px 12px; font-size: 13px; }
        .data-card.editing { background: var(--primary-light); border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.15); }
        .data-card.editing .info input { border: 1.5px solid var(--primary); border-radius: 8px; padding: 6px 12px; font-size: 14px; width: 100%; background: #fff; outline: none; margin-bottom: 4px; font-family: inherit; color: var(--text); }
        .data-card.editing .info input:focus { box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15); }
        html.dark-mode .data-card.editing .info input { background: #2C2C2E; }
        .data-card .checkbox { flex-shrink: 0; width: 24px; height: 24px; accent-color: var(--primary); cursor: pointer; margin: 0; display: none; }
        .select-mode .data-card .checkbox { display: inline-block; }

        .action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
        .action-bar .btn { font-size: 13px; padding: 6px 14px; min-height: 38px; }
        .batch-action-bar { display: none; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; padding: 8px 12px; background: var(--primary-light); border-radius: var(--radius-sm); border: 1px solid var(--primary); align-items: center; }
        .batch-action-bar.show { display: flex; }
        .batch-action-bar .btn { font-size: 13px; padding: 6px 14px; min-height: 36px; }
        .batch-action-bar .selected-count { font-weight: 500; color: var(--text); margin-right: auto; }

        .pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 12px 0 6px; flex-wrap: wrap; }
        .pagination .btn { min-height: 34px; min-width: 34px; padding: 4px 12px; font-size: 13px; }
        .pagination .page-info { font-size: 13px; color: var(--text-secondary); padding: 0 6px; }
        .pagination .page-btn { min-width: 34px; min-height: 34px; padding: 0 6px; font-size: 13px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
        .pagination .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
        .pagination .page-btn:active { opacity: 0.6; }

        .history-item { background: var(--card); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 8px; border: 0.5px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; box-shadow: var(--shadow); }
        .history-item .info { flex: 1; min-width: 0; }
        .history-item .info .desc { font-size: 14px; font-weight: 500; }
        .history-item .info .meta { font-size: 12px; color: var(--text-secondary); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
        .history-item .info .meta .count { background: var(--bg); padding: 0 12px; border-radius: 30px; }
        html.dark-mode .history-item .info .meta .count { background: #2C2C2E; }
        .history-item .btn { min-height: 34px; min-width: 34px; padding: 4px 14px; font-size: 12px; flex-shrink: 0; }

        .batch-area { width: 100%; min-height: 110px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); padding: 14px 16px; font-size: 14px; font-family: inherit; resize: vertical; background: var(--bg); color: var(--text); outline: none; }
        .batch-area:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1); }
        html.dark-mode .batch-area { background: #2C2C2E; }
        .batch-result { font-size: 13px; color: var(--text-secondary); margin-top: 8px; min-height: 22px; }

        .setting-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 0.5px solid var(--border); gap: 10px; }
        .setting-item:last-child { border-bottom: none; }
        .setting-item .label { font-size: 15px; }
        .setting-item .label .sub { font-size: 12px; color: var(--text-light); display: block; margin-top: 2px; font-weight: 400; }
        .about-text { font-size: 13px; color: var(--text-secondary); text-align: center; padding: 14px 0 4px; line-height: 1.7; }
        .about-text .highlight { color: var(--primary); font-weight: 600; }
        .about-text .wechat { color: var(--success); font-weight: 600; }

        .stat-chip { background: var(--bg); padding: 2px 16px; border-radius: 30px; font-size: 13px; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
        html.dark-mode .stat-chip { background: #2C2C2E; }
        .stat-chip .num { font-weight: 700; color: var(--text); }

        /* 下拉选择框 */
        .select-mini {
            padding: 8px 32px 8px 14px;
            border-radius: 30px;
            border: 1.5px solid var(--border);
            background: var(--bg) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%238E8E93' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
            background-size: 12px;
            font-size: 14px;
            color: var(--text);
            outline: none;
            -webkit-appearance: none;
            appearance: none;
            font-family: inherit;
            min-width: 90px;
            cursor: pointer;
        }
        .select-mini:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12); }
        html.dark-mode .select-mini {
            background: #2C2C2E url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%2398989D' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
            background-size: 12px;
        }

        /* ============================================================
           开关（Switch）
           ============================================================ */
        .switch {
            position: relative;
            display: inline-block;
            width: 51px;
            height: 31px;
            flex-shrink: 0;
        }
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
            position: absolute;
        }
        .switch .slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: #E5E5EA;
            transition: 0.3s;
            border-radius: 31px;
        }
        .switch .slider::before {
            content: "";
            position: absolute;
            height: 27px;
            width: 27px;
            left: 2px;
            bottom: 2px;
            background-color: #fff;
            transition: 0.3s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.08);
        }
        .switch input:checked + .slider {
            background-color: #34C759;
        }
        .switch input:checked + .slider::before {
            transform: translateX(20px);
        }
        .switch input:active + .slider::before {
            width: 31px;
        }
        .switch input:checked:active + .slider::before {
            transform: translateX(16px);
        }
        html.dark-mode .switch .slider {
            background-color: #39393D;
        }
        html.dark-mode .switch input:checked + .slider {
            background-color: #30D158;
        }

        /* Toast */
        .toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px); background: rgba(0, 0, 0, 0.8); color: #fff; padding: 12px 28px; border-radius: 40px; font-size: 14px; font-weight: 500; z-index: 9999; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: none; opacity: 0; transition: opacity 0.3s, transform 0.3s; max-width: 90%; text-align: center; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); }
        .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
        html.dark-mode .toast { background: rgba(60, 60, 60, 0.95); }

        /* 模态框 */
        .modal-overlay { position: fixed; inset: 0; z-index: 9998; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 24px; animation: fadeIn 0.3s; }
        html.dark-mode .modal-overlay { background: rgba(0, 0, 0, 0.65); }
        .modal-overlay.show { display: flex; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .modal-box { background: var(--card); border-radius: 32px; padding: 32px 24px 24px; max-width: 380px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); animation: fadeUp 0.35s var(--transition); }
        .modal-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; text-align: center; letter-spacing: -0.3px; }
        .modal-box .modal-desc { font-size: 15px; color: var(--text-secondary); text-align: center; margin-bottom: 24px; line-height: 1.6; }
        .modal-box .modal-desc strong { color: var(--text); font-weight: 600; }
        .modal-box .btn-row { display: flex; gap: 12px; }
        .modal-box .btn-row .btn { flex: 1; }

        /* 导出方式选择器 */
        .export-method-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .export-method-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border: 1.5px solid var(--border);
            border-radius: 12px;
            background: var(--bg);
            cursor: pointer;
            transition: all 0.2s;
            -webkit-tap-highlight-color: transparent;
        }
        html.dark-mode .export-method-option { background: #2C2C2E; }
        .export-method-option.selected {
            border-color: var(--primary);
            background: var(--primary-light);
        }
        .export-method-option.hidden { display: none; }
        .export-method-option input[type="radio"] {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
            flex-shrink: 0;
            margin: 0;
            cursor: pointer;
        }
        .export-method-option .em-body { flex: 1; min-width: 0; }
        .export-method-option .em-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text);
            line-height: 1.2;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .export-method-option .em-sub {
            font-size: 11px;
            color: var(--text-secondary);
            margin-top: 3px;
            line-height: 1.3;
        }
        .export-method-option .em-badge {
            font-size: 9px;
            font-weight: 700;
            background: var(--success);
            color: #fff;
            padding: 1px 6px;
            border-radius: 20px;
            letter-spacing: 0.3px;
        }

        /* 合并结果列表 */
        .merge-list { max-height: 320px; overflow-y: auto; margin-bottom: 20px; text-align: left; }
        .merge-item { padding: 10px 12px; border-bottom: 0.5px solid var(--border); font-size: 14px; }
        .merge-item:last-child { border-bottom: none; }
        .merge-item .mg-goods { font-weight: 700; color: var(--text); }
        .merge-item .mg-locs { color: var(--text-secondary); font-size: 13px; display: block; margin-top: 4px; word-break: break-all; }
        .merge-item .mg-locs .loc-tag { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 1px 10px; border-radius: 20px; margin: 2px 4px 2px 0; font-size: 12px; }

        /* ============================================================
           赞助计划卡片
           ============================================================ */
        .sponsor-card {
            background: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 40%);
            position: relative;
            overflow: hidden;
        }
        html.dark-mode .sponsor-card {
            background: linear-gradient(180deg, #15233A 0%, #1C1C1E 40%);
        }
        .sponsor-card::before {
            content: '';
            position: absolute;
            top: -60px; right: -40px;
            width: 160px; height: 160px;
            background: radial-gradient(circle, rgba(255, 200, 80, 0.18) 0%, rgba(255, 200, 80, 0) 70%);
            border-radius: 50%;
            pointer-events: none;
        }
        html.dark-mode .sponsor-card::before {
            background: radial-gradient(circle, rgba(255, 200, 80, 0.10) 0%, rgba(255, 200, 80, 0) 70%);
        }
        .sponsor-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
            position: relative;
            z-index: 1;
        }
        .sponsor-header .sponsor-titles { flex: 1; }
        .sponsor-header .sponsor-title {
            font-size: 18px;
            font-weight: 800;
            color: #2E7BE5;
            letter-spacing: -0.3px;
            line-height: 1.2;
        }
        html.dark-mode .sponsor-header .sponsor-title { color: #5B9EF0; }
        .sponsor-header .sponsor-subtitle {
            font-size: 10px;
            font-weight: 500;
            color: var(--text-light);
            letter-spacing: 1.5px;
            margin-top: 2px;
        }
        .sponsor-header .sponsor-emoji {
            font-size: 40px;
            line-height: 1;
            flex-shrink: 0;
            filter: drop-shadow(0 4px 8px rgba(255, 180, 40, 0.3));
        }

        .sponsor-slogan {
            font-size: 14px;
            font-weight: 700;
            color: #2E7BE5;
            margin-bottom: 8px;
            line-height: 1.4;
        }
        html.dark-mode .sponsor-slogan { color: #5B9EF0; }
        .sponsor-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.65;
            margin-bottom: 14px;
        }

        .sponsor-list {
            border-top: 0.5px solid var(--border);
            padding-top: 6px;
        }
        .sponsor-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 0.5px solid var(--border);
            gap: 10px;
            transition: background 0.2s;
        }
        .sponsor-row:last-child { border-bottom: none; }
        .sponsor-row .sp-left {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }
        .sponsor-row .sp-icon {
            font-size: 26px;
            line-height: 1;
            flex-shrink: 0;
            width: 34px;
            text-align: center;
        }
        .sponsor-row .sp-text {
            font-size: 15px;
            font-weight: 500;
            color: var(--text);
            line-height: 1.3;
        }
        .sponsor-row .sp-amount {
            font-size: 14px;
            font-weight: 700;
            color: #34A853;
            background: #E8F5E9;
            padding: 5px 16px;
            border-radius: 30px;
            flex-shrink: 0;
            letter-spacing: -0.2px;
        }
        html.dark-mode .sponsor-row .sp-amount {
            background: #1A3D24;
            color: #4ADE80;
        }

        .sponsor-footer {
            font-size: 11px;
            color: var(--text-light);
            text-align: center;
            margin-top: 12px;
            line-height: 1.6;
            padding-top: 10px;
            border-top: 0.5px dashed var(--border);
        }

        /* 说明页样式 */
        .doc-section { margin-bottom: 4px; }
        .doc-section-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .doc-subsection { margin-bottom: 14px; }
        .doc-subsection:last-child { margin-bottom: 0; }
        .doc-sub-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
            line-height: 1.4;
        }
        .doc-sub-title .badge {
            background: var(--primary);
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            padding: 1px 8px;
            border-radius: 20px;
            flex-shrink: 0;
        }
        .doc-sub-title .badge.red { background: #FF3B30; }
        .doc-sub-title .badge.green { background: var(--success); }
        .doc-text {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.75;
            margin-bottom: 4px;
        }
        .doc-text strong { color: var(--text); font-weight: 600; }
        .doc-text code {
            background: var(--bg);
            color: var(--danger);
            font-family: 'SF Mono', Menlo, Consolas, monospace;
            font-size: 12px;
            padding: 1px 6px;
            border-radius: 5px;
            margin: 0 2px;
        }
        html.dark-mode .doc-text code { background: #2C2C2E; }
        .doc-list { list-style: none; padding: 0; margin: 4px 0; }
        .doc-list li {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.75;
            padding-left: 18px;
            position: relative;
            margin-bottom: 2px;
        }
        .doc-list li::before {
            content: '·';
            position: absolute;
            left: 6px;
            color: var(--primary);
            font-weight: 900;
            font-size: 16px;
            line-height: 1.4;
        }
        .doc-list li strong { color: var(--text); font-weight: 600; }
        .doc-demo {
            background: var(--bg);
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.7;
            margin-top: 6px;
            font-family: 'SF Mono', Menlo, Consolas, monospace;
        }
        html.dark-mode .doc-demo { background: #2C2C2E; }
        .doc-demo .diff {
            color: #FF3B30;
            font-weight: 800;
            background: #FFECEB;
            padding: 0 3px;
            border-radius: 3px;
        }
        html.dark-mode .doc-demo .diff { color: #FF6B6B; background: #4A1A1A; }
        .doc-divider {
            height: 0.5px;
            background: var(--border);
            margin: 12px 0;
        }
        .doc-summary {
            background: linear-gradient(135deg, #E5F0FF 0%, #F5F8FF 100%);
            border-radius: 12px;
            padding: 12px 14px;
            font-size: 13px;
            color: var(--text);
            line-height: 1.7;
            border-left: 3px solid var(--primary);
        }
        html.dark-mode .doc-summary {
            background: linear-gradient(135deg, #0A2540 0%, #0F1F30 100%);
            border-left-color: #0A84FF;
        }
        .doc-summary strong { color: var(--primary); }

        /* 响应式 */
        @media (max-width: 420px) {
            .nav-bar .title { font-size: 17px; }
            .nav-bar .sync-time { font-size: 10px; padding: 2px 10px; }
            .btn { font-size: 13px; padding: 8px 14px; min-height: 38px; }
            .input-group input { font-size: 14px; padding: 10px 14px; }
            .data-card .info .goods { font-size: 14px; }
            .tab-item .tab-icon { font-size: 18px; }
            .tab-item .tab-label { font-size: 9px; }
            .card { padding: 14px 14px; }
            .ocr-btn-group .btn { padding: 6px 10px; font-size: 12px; min-height: 34px; min-width: 34px; }
            .ocr-btn-group .btn .icon { font-size: 16px; }
            .sponsor-header .sponsor-title { font-size: 16px; }
            .sponsor-header .sponsor-emoji { font-size: 34px; }
            .sponsor-row .sp-icon { font-size: 22px; width: 30px; }
            .sponsor-row .sp-text { font-size: 14px; }
            .sponsor-row .sp-amount { font-size: 13px; padding: 4px 12px; }
            .doc-section-title { font-size: 15px; }
            .doc-sub-title { font-size: 13px; }
            .doc-text, .doc-list li { font-size: 12.5px; }
            .modal-box { padding: 26px 18px 18px; border-radius: 26px; }
            .export-method-option { padding: 10px 12px; gap: 10px; }
            .export-method-option .em-title { font-size: 13px; }
            .export-method-option .em-sub { font-size: 10.5px; }
            .switch { width: 46px; height: 28px; }
            .switch .slider::before { height: 24px; width: 24px; }
            .switch input:checked + .slider::before { transform: translateX(18px); }
            .switch input:active + .slider::before { width: 28px; }
            .switch input:checked:active + .slider::before { transform: translateX(14px); }
        }
        @media (min-width: 481px) {
            #app { border-left: 0.5px solid var(--border); border-right: 0.5px solid var(--border); box-shadow: 0 0 40px rgba(0, 0, 0, 0.06); }
        }

        .setting-divider { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; }
        .setting-item.danger-item .label { color: var(--danger); font-weight: 600; }
        .setting-item.danger-item .btn { min-width: 80px; }

        .ocr-btn-group { display: flex; gap: 6px; flex-shrink: 0; }
        .ocr-btn-group .btn { min-height: 38px; min-width: 38px; padding: 4px 12px; font-size: 13px; background: var(--bg); border: 1px solid var(--border); color: var(--text-secondary); }
        .ocr-btn-group .btn:active { background: var(--primary-light); }
        .ocr-btn-group .btn .icon { font-size: 18px; }
        html.dark-mode .ocr-btn-group .btn { background: #2C2C2E; }

        .file-input-hidden { position: absolute; width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; z-index: -1; }

        /* 表单输入（导出对话框内） */
        .form-label { display: block; font-size: 14px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
        .form-input { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg); font-size: 15px; color: var(--text); outline: none; font-family: inherit; -webkit-appearance: none; appearance: none; }
        .form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12); }
        html.dark-mode .form-input { background: #2C2C2E; }
    