        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background: linear-gradient(135deg, #e8eeff 0%, #f0f4ff 40%, #e8f0fe 100%);
            color: #1f2937;
            min-height: 100vh;
        }
        /* 磨砂玻璃卡片 */
        .glass {
            background: rgba(255,255,255,0.72);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255,255,255,0.5);
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
        }
        .glass-strong {
            background: rgba(255,255,255,0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.6);
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        }
        /* iOS 风格按钮 */
        .ios-btn {
            border-radius: 12px;
            font-weight: 600;
            letter-spacing: 0.01em;
            transition: all 0.15s ease;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }
        .ios-btn:active {
            transform: scale(0.97);
            opacity: 0.9;
        }
        .ios-btn-primary {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: #fff !important;
            box-shadow: 0 2px 8px rgba(59,130,246,0.25) !important;
        }
        .ios-btn-danger {
            background: rgba(239,68,68,0.1);
            color: #ef4444;
        }
        .ios-btn-ghost {
            background: rgba(0,0,0,0.04);
            color: #6b7280;
        }
        .ios-btn-ghost:active {
            background: rgba(59,130,246,0.08);
            transform: scale(0.95);
            box-shadow: 0 0 20px rgba(59,130,246,0.25), 0 0 60px rgba(59,130,246,0.10);
            border-color: rgba(59,130,246,0.2);
        }
        /* 收支类型切换按钮容器 */
        .type-toggle-container {
            background: rgba(0,0,0,0.03);
            position: relative;
        }
        .type-toggle-container .type-toggle {
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .type-toggle-container .type-toggle.bg-rose-500,
        .type-toggle-container .type-toggle.bg-emerald-500 {
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            position: relative;
            z-index: 2;
        }
        /* 输入框 */
        .ios-input {
            background: rgba(0,0,0,0.03);
            border: 1px solid rgba(0,0,0,0.08);
            border-radius: 12px;
            padding: 12px 16px;
            font-size: 15px;
            transition: border-color 0.2s;
        }
        .ios-input:focus {
            outline: none;
            border-color: #3b82f6;
            background: rgba(59,130,246,0.03);
        }
        /* 隐藏 number 输入框的上下箭头 */
        .ios-input[type="number"]::-webkit-outer-spin-button,
        .ios-input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .ios-input[type="number"] {
            -moz-appearance: textfield;
            appearance: textfield;
        }
        .ios-select {
            background: rgba(0,0,0,0.03);
            border: 1px solid rgba(0,0,0,0.08);
            border-radius: 12px;
            padding: 12px 16px;
            font-size: 15px;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%239ca3af'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
        }
        .ios-select option {
            background: #fff;
            color: #1f2937;
        }
        /* ✏️ 修改账目弹窗：与记账页保持一致的主题配色 */
        .edit-type-opt {
            background: rgba(0,0,0,0.03);
            border: 1px solid rgba(0,0,0,0.08);
            border-radius: 12px;
            color: #4b5563;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .edit-type-opt:has(input:checked) {
            background: rgba(59,130,246,0.12);
            border-color: rgba(59,130,246,0.45);
            color: #2563eb;
        }
        .edit-modal-title { color: #2563eb; }
        .edit-modal-close { color: #9ca3af; background: transparent; line-height: 1; }
        .edit-modal-divider { border-color: rgba(0,0,0,0.08); }
        html.dark-mode .edit-type-opt {
            background: rgba(255,255,255,0.06);
            border-color: rgba(255,255,255,0.1);
            color: #cbd5e1;
        }
        html.dark-mode .edit-type-opt:has(input:checked) {
            background: rgba(59,130,246,0.2);
            border-color: rgba(96,165,250,0.5);
            color: #93c5fd;
        }
        html.dark-mode .edit-modal-title { color: #60a5fa; }
        html.dark-mode .edit-modal-close { color: #94a3b8; }
        html.dark-mode .edit-modal-divider { border-color: rgba(255,255,255,0.12); }
        html.dark-mode .ios-select option { background: #1e1e32; color: #e2e8f0; }
        html.dark-mode .ios-input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(0.7); }
        /* 按钮 emoji 淡色（灰显） */
        .emoji-muted { filter: grayscale(1) opacity(0.35); transition: filter 0.2s; }
        .emoji-active { filter: none; opacity: 1; }
        /* 自定义下拉选项 */
        .dropdown-option {
            padding: 10px 14px;
            font-size: 13px;
            cursor: pointer;
            transition: background 0.12s;
            border-bottom: 1px solid rgba(0,0,0,0.04);
        }
        .dropdown-option:last-child { border-bottom: none; }
        .dropdown-option:hover { background: rgba(59,130,246,0.06); }
        .dropdown-option.selected { color: #3b82f6; font-weight: 600; background: rgba(59,130,246,0.04); }
        /* 标签 */
        .section-label {
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #9ca3af;
        }
        /* 统计卡片 */
        .stat-card {
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 16px;
            padding: 16px 12px;
            text-align: center;
            box-shadow: 0 1px 6px rgba(0,0,0,0.03);
        }
        /* 拖拽区 */
        .drop-zone {
            border: 2px dashed rgba(0,0,0,0.1);
            border-radius: 14px;
            padding: 18px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .drop-zone:hover, .drop-zone.drag-over {
            border-color: #3b82f6;
            background: rgba(59,130,246,0.04);
        }
        /* 移除旧 tg-card */
        .tg-card {
            background-color: transparent;
        }
        /* 顶部固定区 */
        .sticky-top {
            position: sticky;
            top: 0;
            z-index: 40;
            padding-top: 12px;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }
        /* 底部等距三按钮容器（用户已调整尺寸） */
        .nav-bar {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            gap: 20px;
            padding: 0 20px;
            z-index: 50;
            margin-bottom: env(safe-area-inset-bottom);
        }
        .nav-float {
            width: 60px;
            height: 60px;
            border-radius: 16px;
            font-size: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: 1px solid rgba(0, 0, 0, 0.08);
            background: rgba(0, 0, 0, 0.03);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: none;
            color: #6b7280;
            transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
        }
        .nav-float:active {
            background: rgba(59, 130, 246, 0.08);
            transform: scale(0.92);
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.25),
                        0 0 60px rgba(59, 130, 246, 0.10);
            border-color: rgba(59, 130, 246, 0.2);
        }
        /* 底部半屏弹窗 */
        .sheet-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.3);
            z-index: 60;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s;
        }
        .sheet-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
        .sheet-panel {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 61;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 24px 24px 0 0;
            max-height: 80vh;
            overflow-y: auto;
            padding: 14px 20px calc(20px + env(safe-area-inset-bottom));
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
            box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        }
        .sheet-panel.show {
            transform: translateY(0);
        }
        /* sheet 内 glass 卡片之间增加间距 */
        .sheet-panel .glass + .glass {
            margin-top: 14px;
        }
        .sheet-handle {
            width: 36px;
            height: 4px;
            background: rgba(0,0,0,0.15);
            border-radius: 2px;
            margin: 0 auto 12px;
        }
        /* 暗黑模式：由 html.dark-mode class 统一控制 */
        html.dark-mode body {
            background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #0f172a 100%);
            color: #e2e8f0;
        }
        html.dark-mode .glass {
            background: rgba(30,30,50,0.72);
            border-color: rgba(255,255,255,0.08);
            box-shadow: 0 2px 12px rgba(0,0,0,0.2);
        }
        html.dark-mode .glass-strong {
            background: rgba(30,30,50,0.88);
            border-color: rgba(255,255,255,0.1);
            box-shadow: 0 4px 16px rgba(0,0,0,0.3);
        }
        html.dark-mode .stat-card {
            background: rgba(30,30,50,0.6);
            box-shadow: 0 1px 6px rgba(0,0,0,0.15);
        }
        html.dark-mode .ios-input, html.dark-mode .ios-select {
            background: rgba(255,255,255,0.06);
            border-color: rgba(255,255,255,0.1);
            color: #e2e8f0;
        }
        html.dark-mode .ios-input:focus, html.dark-mode .ios-select:focus {
            background: rgba(59,130,246,0.08);
        }
        html.dark-mode .ios-btn-ghost {
            background: rgba(255,255,255,0.06);
            color: #94a3b8;
        }
        html.dark-mode .ios-btn-ghost:active {
            background: rgba(59,130,246,0.15);
            box-shadow: 0 0 20px rgba(59,130,246,0.3), 0 0 60px rgba(59,130,246,0.12);
            border-color: rgba(59,130,246,0.25);
        }
        html.dark-mode .type-toggle-container {
            background: rgba(255,255,255,0.06);
            border-color: rgba(255,255,255,0.12) !important;
        }
        html.dark-mode .type-toggle-container .type-toggle.bg-rose-500,
        html.dark-mode .type-toggle-container .type-toggle.bg-emerald-500 {
            box-shadow: 0 2px 10px rgba(0,0,0,0.35);
        }
        html.dark-mode .ios-btn-danger {
            background: rgba(239,68,68,0.15);
            color: #f87171;
        }
        html.dark-mode .drop-zone {
            border-color: rgba(255,255,255,0.1);
        }
        html.dark-mode .drop-zone:hover {
            background: rgba(59,130,246,0.08);
        }
        html.dark-mode .section-label { color: #64748b; }
        html.dark-mode .text-gray-400 { color: #94a3b8 !important; }
        html.dark-mode .text-gray-500 { color: #94a3b8 !important; }
        html.dark-mode .text-gray-700 { color: #cbd5e1 !important; }
        html.dark-mode .bg-gray-50 { background: rgba(255,255,255,0.04) !important; }
        html.dark-mode .bg-gray-100 { background: rgba(255,255,255,0.06) !important; }
        html.dark-mode .bg-blue-50 { background: rgba(59,130,246,0.1) !important; }
        html.dark-mode .border-gray-100 { border-color: rgba(255,255,255,0.06) !important; }
        html.dark-mode .border-gray-200 { border-color: rgba(255,255,255,0.1) !important; }
        html.dark-mode .border-b { border-color: rgba(255,255,255,0.06) !important; }
        html.dark-mode .border-t { border-color: rgba(255,255,255,0.06) !important; }
        html.dark-mode .text-blue-600, html.dark-mode .text-blue-500 { color: #60a5fa !important; }
        html.dark-mode .text-red-500 { color: #f87171 !important; }
        html.dark-mode .text-green-500 { color: #34d399 !important; }
        html.dark-mode .text-emerald-500 { color: #34d399 !important; }
        html.dark-mode .text-rose-500 { color: #f87171 !important; }
        html.dark-mode .text-amber-600 { color: #fbbf24 !important; }
        html.dark-mode .text-amber-700 { color: #fbbf24 !important; }
        html.dark-mode .text-amber-500 { color: #f59e0b !important; }
        html.dark-mode .text-gray-600 { color: #94a3b8 !important; }
        html.dark-mode .text-orange-600 { color: #fb923c !important; }
        html.dark-mode .bg-emerald-50 { background: rgba(52,211,153,0.1) !important; }
        html.dark-mode .bg-rose-50 { background: rgba(248,113,113,0.1) !important; }
        html.dark-mode .bg-amber-50 { background: rgba(251,191,36,0.1) !important; }
        html.dark-mode .bg-red-50 { background: rgba(248,113,113,0.1) !important; }
        html.dark-mode .bg-blue-50 { background: rgba(59,130,246,0.1) !important; }
        html.dark-mode .border-amber-200 { border-color: rgba(251,191,36,0.2) !important; }
        html.dark-mode .border-amber-300 { border-color: rgba(251,191,36,0.3) !important; }
        html.dark-mode .border-orange-100 { border-color: rgba(251,146,60,0.1) !important; }
        html.dark-mode .border-blue-100 { border-color: rgba(59,130,246,0.1) !important; }
        html.dark-mode .hover\:bg-gray-50:hover { background: rgba(255,255,255,0.06) !important; }
        html.dark-mode .hover\:bg-red-100:hover { background: rgba(248,113,113,0.15) !important; }
        html.dark-mode .hover\:text-red-700:hover { color: #fca5a5 !important; }

        /* VIP 卡片暗黑模式覆盖 */
        html.dark-mode .from-amber-50 { background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(251,191,36,0.15)) !important; }
        html.dark-mode .text-gray-800 { color: #e2e8f0 !important; }
        html.dark-mode .bg-gray-50\/90 { background: rgba(30,30,50,0.45) !important; border-color: rgba(255,255,255,0.08) !important; }
        html.dark-mode .from-gray-100 { background: linear-gradient(135deg, rgba(30,30,50,0.6), rgba(30,30,50,0.4)) !important; }
        html.dark-mode .from-gray-50 { background: linear-gradient(135deg, rgba(30,30,50,0.5), rgba(30,30,50,0.35)) !important; }
        html.dark-mode .bg-amber-700\/5 { background: rgba(251,191,36,0.1) !important; }
        html.dark-mode .bg-white\/80 { background: rgba(30,30,50,0.5) !important; border-color: rgba(255,255,255,0.1) !important; color: #e2e8f0 !important; }
        html.dark-mode .bg-white\/10 { background: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.06) !important; }
        html.dark-mode .nav-float { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: #94a3b8; }
        html.dark-mode #top-action-bar { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.1) !important; }
        html.dark-mode #top-action-bar .w-px { background: rgba(255,255,255,0.1) !important; }
        html.dark-mode #book-selector-dropdown { background: rgba(25,25,45,0.92) !important; border-color: rgba(255,255,255,0.1) !important; box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important; }
        html.dark-mode #book-selector-dropdown .dropdown-option:hover { background: rgba(255,255,255,0.08) !important; }
        html.dark-mode #book-selector-dropdown .dropdown-option.selected { background: rgba(59,130,246,0.15) !important; color: #60a5fa !important; }
        html.dark-mode #book-currency-dropdown, html.dark-mode #new-book-currency-dropdown { background: rgba(25,25,45,0.94) !important; border-color: rgba(255,255,255,0.1) !important; box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important; }
        html.dark-mode #book-currency-dropdown .dropdown-option:hover, html.dark-mode #new-book-currency-dropdown .dropdown-option:hover { background: rgba(255,255,255,0.08) !important; }
        html.dark-mode #book-currency-dropdown .dropdown-option.selected, html.dark-mode #new-book-currency-dropdown .dropdown-option.selected { background: rgba(59,130,246,0.15) !important; color: #60a5fa !important; }
        html.dark-mode #book-selector-trigger, html.dark-mode #book-currency-trigger, html.dark-mode #new-book-currency-trigger { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.1) !important; color: #e2e8f0 !important; }
        html.dark-mode .sheet-panel { background: rgba(20,20,35,0.96); box-shadow: 0 -4px 20px rgba(0,0,0,0.3); }
        html.dark-mode .sheet-handle { background: rgba(255,255,255,0.2); }
        html.dark-mode .ios-select option {
            background: #1e1e32;
            color: #e2e8f0;
        }

        /* 弱化滚动条（保持功能，视觉最小化） */
        * { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.12) transparent; }
        html.dark-mode * { scrollbar-color: rgba(255,255,255,0.1) transparent; }
        ::-webkit-scrollbar { width: 4px; height: 4px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.22); }
        html.dark-mode ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }
        html.dark-mode ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

        /* ======= 公告条（服务端 system_config.announcement 驱动） ======= */
        .app-announce {
            display: flex; align-items: flex-start; gap: 8px;
            margin: 8px 16px 0; padding: 10px 12px;
            border-radius: 14px; font-size: 12.5px; line-height: 1.6;
            background: rgba(59,130,246,0.1);
            border: 1px solid rgba(59,130,246,0.2);
            color: #1d4ed8;
        }
        html.dark-mode .app-announce {
            background: rgba(59,130,246,0.14);
            border-color: rgba(59,130,246,0.28);
            color: #93c5fd;
        }
        .app-announce-ico { flex: none; }
        .app-announce-txt { flex: 1; word-break: break-word; white-space: pre-wrap; }
        .app-announce-x {
            flex: none; background: transparent; border: 0; cursor: pointer;
            font-size: 12px; line-height: 1; padding: 2px 4px; color: inherit; opacity: .7;
        }
        .app-announce-x:hover { opacity: 1; }

        /* ======= 维护模式整页遮挡（管理员不展示） ======= */
        #maintenance-overlay {
            position: fixed; inset: 0; z-index: 9999;
            display: flex; align-items: center; justify-content: center;
            padding: 32px; text-align: center;
            background: linear-gradient(135deg, #0f172a, #1e293b);
        }
        #maintenance-overlay .mnt-card { max-width: 360px; color: #e2e8f0; }
        #maintenance-overlay .mnt-ico { font-size: 52px; line-height: 1; }
        #maintenance-overlay h2 { font-size: 20px; margin: 16px 0 8px; color: #f1f5f9; }
        #maintenance-overlay p { font-size: 13.5px; color: #94a3b8; margin: 0 0 10px; line-height: 1.7; }
        #maintenance-overlay .mnt-ann {
            margin-top: 16px; padding: 12px 14px; border-radius: 12px;
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
            color: #cbd5e1; white-space: pre-wrap;
        }

        /* sheet 面板完全隐藏滚动条（触屏滑动为主） */
        .sheet-panel { scrollbar-width: none; -ms-overflow-style: none; }
        .sheet-panel::-webkit-scrollbar { display: none; }
