        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            outline: none;
        }

        :root {
            --primary: #FF9AA2;
            --primary-light: #FFB7B2;
            --secondary: #FFDAC1;
            --accent: #E2F0CB;
            --accent-blue: #B5EAD7;
            --accent-purple: #C7CEEA;
            --text: #5A5A5A;
            --text-light: #8A8A8A;
            --bg: #FDF8F9;
            --card-bg: #FFFFFF;
            --shadow: 0 4px 20px rgba(0,0,0,0.08);
            --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
        }

        body {
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #F8F9FA 0%, #F5F6F7 100%);
            min-height: 100vh;
            color: var(--text);
        }

        /* 金额数字使用等宽字体，提升纵向扫读稳定性 */
        .hero-metric-value,
        .hero-balance-value,
        .record-amount,
        .date-income,
        .date-expense,
        .month-stat-value,
        .month-total,
        .month-category-amount-value,
        .month-detail-item-amount,
        .amount-input-lg,
        .amount-symbol-lg,
        .result-amount {
            font-variant-numeric: tabular-nums;
            font-feature-settings: "tnum";
        }

        /* 启动屏 — 轻量简约：素净暖白底，小字距标题，发丝线滑移加载 */
        .splash-screen {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #FDFCFA;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.45s ease, visibility 0.45s ease;
        }

        .splash-screen.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .splash-content {
            text-align: center;
            animation: splashEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        .splash-title {
            font-size: 17px;
            font-weight: 600;
            color: #6B645C;
            letter-spacing: 6px;
            padding-left: 6px; /* 抵消末字间距，视觉居中 */
            margin-bottom: 22px;
        }

        .splash-loader {
            width: 56px;
            height: 2px;
            margin: 0 auto;
            background: #F0EDE8;
            border-radius: 2px;
            overflow: hidden;
        }

        .splash-bar {
            width: 100%;
            height: 100%;
            background: #C8BFA9;
            border-radius: 2px;
            transform: translateX(-100%);
            animation: splashSlide 1.1s ease-in-out infinite;
        }

        /* 入场：淡入 + 轻微上浮，一次性 */
        @keyframes splashEnter {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 加载条：transform 滑移（合成器动画） */
        @keyframes splashSlide {
            from { transform: translateX(-100%); }
            to { transform: translateX(100%); }
        }

        /* 登录页面 */
        .login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }

        .login-box {
            background: var(--card-bg);
            border-radius: 30px;
            padding: 50px 40px;
            box-shadow: var(--shadow);
            text-align: center;
            max-width: 400px;
            width: 100%;
        }

        .login-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
        }

        .login-tab {
            flex: 1;
            padding: 12px;
            border: 2px solid #FFE5E5;
            border-radius: 12px;
            background: white;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
            font-size: 15px;
        }

        .login-tab.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .login-icon {
            font-size: 80px;
            margin-bottom: 20px;
        }

        .login-title {
            font-size: 28px;
            color: var(--primary);
            margin-bottom: 10px;
            font-weight: 600;
        }

        .login-subtitle {
            color: var(--text-light);
            margin-bottom: 30px;
        }

        .input-group {
            margin-bottom: 20px;
        }

        /* 登录/注册输入框：下划线风格，与全站表单统一 */
        .input-group input {
            width: 100%;
            padding: 13px 2px;
            border: none;
            border-bottom: 1.5px solid #F0E3E3;
            border-radius: 0;
            background: transparent;
            font-size: 16px;
            transition: border-color 0.25s;
            outline: none;
        }

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

        .input-group input::placeholder {
            color: #C9BCBC;
        }

        .btn {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 15px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(255, 154, 162, 0.4);
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }

        /* 清新保存按钮：白底 + 玫瑰描边，融入白色卡片体系（与支出实心粉形成轻重对比） */
        #saveBtn,
        #editSaveBtn,
        #ledgerFormSaveBtn {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 50px;
            padding: 12px 28px;
            border: 1.5px solid rgba(255, 154, 162, 0.45);
            border-radius: 9999px;
            background: linear-gradient(160deg, #FFFFFF 0%, #FFF5F7 100%);
            color: #E8798F;
            font-size: 16px;
            font-weight: 700;
            letter-spacing: 3px;
            text-shadow: none;
            box-shadow:
                0 4px 16px rgba(255, 154, 162, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        #saveBtn:hover,
        #editSaveBtn:hover,
        #ledgerFormSaveBtn:hover {
            transform: translateY(-2px);
            background: linear-gradient(160deg, #FFFFFF 0%, #FFEDF1 100%);
            border-color: rgba(255, 154, 162, 0.7);
            box-shadow:
                0 8px 22px rgba(255, 154, 162, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        #saveBtn:active,
        #editSaveBtn:active,
        #ledgerFormSaveBtn:active {
            transform: translateY(0) scale(0.98);
            background: linear-gradient(160deg, #FFF7F9 0%, #FFE9EE 100%);
            box-shadow:
                0 3px 10px rgba(255, 154, 162, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        /* 收入模式：保存按钮跟随淡青绿（账本表单保存键不在表单内，保持玫瑰色） */
        #addView:has(.type-btn.active.income) #saveBtn,
        #editModal:has(.type-btn.active.income) #editSaveBtn,
        #addView.mode-income #saveBtn,
        #editModal.mode-income #editSaveBtn {
            border-color: rgba(78, 205, 196, 0.45);
            background: linear-gradient(160deg, #FFFFFF 0%, #F2FBFA 100%);
            color: #4ECDC4;
            box-shadow:
                0 4px 16px rgba(78, 205, 196, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        #addView:has(.type-btn.active.income) #saveBtn:hover,
        #editModal:has(.type-btn.active.income) #editSaveBtn:hover,
        #addView.mode-income #saveBtn:hover,
        #editModal.mode-income #editSaveBtn:hover {
            background: linear-gradient(160deg, #FFFFFF 0%, #E8F8F6 100%);
            border-color: rgba(78, 205, 196, 0.7);
            box-shadow:
                0 8px 22px rgba(78, 205, 196, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        #addView:has(.type-btn.active.income) #saveBtn:active,
        #editModal:has(.type-btn.active.income) #editSaveBtn:active,
        #addView.mode-income #saveBtn:active,
        #editModal.mode-income #editSaveBtn:active {
            background: linear-gradient(160deg, #F2FBFA 0%, #E0F5F2 100%);
            box-shadow:
                0 3px 10px rgba(78, 205, 196, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        #saveBtn:disabled,
        #editSaveBtn:disabled,
        #ledgerFormSaveBtn:disabled {
            opacity: 1;
            transform: none;
            cursor: not-allowed;
            background: #F7F7F8;
            border-color: rgba(0, 0, 0, 0.06);
            color: #C0C4CC;
            box-shadow: none;
        }

        /* 保存成功状态：青色 + 一次性弹跳 */
        #saveBtn.save-success,
        #editSaveBtn.save-success {
            color: #fff;
            background: linear-gradient(135deg, #3DBDB3 0%, #4ECDC4 55%, #7EDDD2 100%);
            box-shadow:
                0 6px 20px rgba(78, 205, 196, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.35),
                inset 0 -2px 0 rgba(0, 0, 0, 0.06);
            animation: saveSuccessPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes saveSuccessPop {
            0% { transform: scale(1); }
            45% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .error-msg {
            color: #FF6B6B;
            margin-top: 15px;
            font-size: 14px;
        }

        /* 主应用 */
        .app-container {
            display: none;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* 页头：无独立底色，与页面背景融为一体 */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 26px;
            flex-wrap: wrap;
            gap: 15px;
            /* 轻微内缩：标题与卡片内容区对齐，避免贴边 */
            padding: 0 5px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            font-size: 40px;
            animation: logoFloat 3s ease-in-out infinite;
        }

        .logo-icon img {
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .logo-icon img:hover {
            transform: scale(1.15) rotate(-5deg);
        }

        /* logo 飞入 AI 对话框后，原位置留空（关闭对话框时归位） */
        .logo-icon img.logo-away {
            opacity: 0;
            transform: scale(0.4);
            pointer-events: none;
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        @keyframes logoBounce {
            0%, 100% { transform: translateY(0) scale(1); }
            25% { transform: translateY(-8px) scale(1.05); }
            50% { transform: translateY(0) scale(0.95); }
            75% { transform: translateY(-4px) scale(1.02); }
        }

        .login-icon img {
            animation: logoBounce 2s ease-in-out infinite;
            transition: transform 0.3s ease;
        }

        .login-icon img:hover {
            animation: logoBounce 0.6s ease-in-out infinite;
            transform: scale(1.1);
        }

        .logo-text-group {
            display: flex;
            flex-direction: column;
            gap: 3px;
            line-height: 1;
        }

        .logo-text {
            font-size: 22px;
            font-weight: 800;
            letter-spacing: 1.5px;
            margin-right: -1.5px; /* 抵消末字后的字距空隙，保证视觉右边缘精确 */
            background: linear-gradient(120deg, #6B6560 0%, #7E766F 55%, #A1968C 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 1.5px 1.5px rgba(90, 78, 70, 0.15));
        }

        .logo-sub {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 5px;
            color: #A89C93;
        }

        .logo-sub::before,
        .logo-sub::after {
            content: '';
            flex: 1;
            height: 1px;
            min-width: 10px;
            border-radius: 1px;
        }

        .logo-sub-text {
            margin-right: -5px; /* 抵消末字后的字距空隙，使文字在两线间绝对居中 */
        }

        .logo-sub::before {
            background: linear-gradient(90deg, transparent, rgba(138, 122, 110, 0.4));
        }

        .logo-sub::after {
            background: linear-gradient(90deg, rgba(138, 122, 110, 0.4), transparent);
        }

        .header-actions {
            display: flex;
            gap: 10px;
        }

        .btn-small {
            padding: 10px 20px;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }

        .btn-logout {
            background: #FFE5E5;
            color: #FF6B6B;
        }

        .btn-logout:hover {
            background: #FFD5D5;
        }

        /* 月度总览面板（合并式·磨砂玻璃） */
        .hero-summary {
            position: relative;
            background: rgba(255, 255, 255, 0.62);
            backdrop-filter: blur(18px) saturate(1.35);
            -webkit-backdrop-filter: blur(18px) saturate(1.35);
            border: 1px solid rgba(200, 191, 169, 0.32);
            border-radius: 20px;
            padding: 14px 16px 12px;
            box-shadow: 0 4px 20px rgba(90, 70, 60, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            margin-bottom: 30px;
            overflow: hidden;
        }

        .hero-summary-deco {
            position: absolute;
            border-radius: 50%;
            filter: blur(45px);
            pointer-events: none;
        }

        .hero-summary-deco-1 {
            width: 200px;
            height: 200px;
            background: rgba(255, 154, 162, 0.16);
            top: -70px;
            right: -50px;
        }

        .hero-summary-deco-2 {
            width: 180px;
            height: 180px;
            background: rgba(181, 234, 215, 0.2);
            bottom: -60px;
            left: -50px;
        }

        .hero-metrics {
            position: relative;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .hero-metric {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 12px;
            border-radius: 14px;
            cursor: pointer;
            transition: background-color 0.25s ease;
        }

        .hero-metric:hover { background-color: rgba(90, 70, 60, 0.04); }

        .hero-metric:active { background-color: rgba(90, 70, 60, 0.07); }

        .hero-metric-label {
            font-size: 11px;
            color: var(--text-light);
            letter-spacing: 1px;
        }

        .hero-metric-value {
            font-size: 24px;
            font-weight: 700;
            letter-spacing: -0.5px;
        }

        .hero-metric-value.income { color: #44A08D; }
        .hero-metric-value.expense { color: #E57373; }

        .hero-footer {
            position: relative;
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 14px;
        }

        /* 收支双轨道：长度按占比动态分配，结余胶囊夹中间 */
        .hero-track {
            min-width: 28px;
            height: 5px;
            border-radius: 999px;
            flex-grow: 50;
            flex-basis: 0;
            transition: flex-grow 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
        }

        .hero-track.income {
            background: linear-gradient(90deg, #A8DDD0, #6FBFA8);
        }

        .hero-track.expense {
            background: linear-gradient(90deg, #FFAAB3, #FF8C98);
        }

        .hero-balance {
            align-self: center;
            display: inline-flex;
            align-items: baseline;
            padding: 4px 10px;
            background: #F7F8FA;
            border-radius: 999px;
        }

        .hero-balance-value {
            font-size: 14px;
            font-weight: 600;
            color: #8B9DC3;
        }

        .hero-balance-value.positive { color: #44A08D; }
        .hero-balance-value.negative { color: #E57373; }

        /* 主要内容区 */
        .main-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
        }

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

        .card {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 25px;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

        /* 只有包含记录列表的卡片需要限制高度 */
        .card:has(.records-list) {
            max-height: 600px;
        }

        .card-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* 表单样式 */
        .form-group {
            margin-bottom: 18px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            color: var(--text-light);
            font-weight: 500;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            border: none;
            border-bottom: 1.5px solid #ECECEC;
            border-radius: 0;
            font-size: 15px;
            transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
            outline: none;
            background: transparent;
            color: var(--text);
            box-sizing: border-box;
        }

        .form-group select {
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23FF9AA2' stroke-width='1.5' stroke-linecap='round'/></svg>");
            background-repeat: no-repeat;
            background-position: right 4px center;
            padding-right: 22px;
        }

        .form-group input,
        .form-group select {
            height: 42px;
            padding: 0 2px;
            line-height: 38px;
        }

        .form-group textarea {
            height: auto;
            min-height: 42px;
            padding: 10px 2px;
            line-height: 1.4;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-bottom-color: var(--primary-light);
            background: transparent;
            box-shadow: none;
        }

        /* 支出模式：金额聚焦时保留粉色光晕框 */
        #addView .amount-input.amount-input-lg:focus,
        #editModal .amount-input.amount-input-lg:focus {
            box-shadow: 0 0 0 3px rgba(255, 154, 162, 0.16) !important;
            border-radius: 14px;
        }

        /* 记账页/编辑弹窗中的分类、备注：下划线风格 */
        #addView .form-group select,
        #editModal .form-group select,
        #addView .form-group textarea,
        #editModal .form-group input[type="text"] {
            font-weight: 600;
        }

        /* 分类选择：自绘下拉菜单 */
        .category-select-wrap {
            position: relative;
        }

        /* 原生 select 只作为取值容器，彻底隐藏 */
        .category-select-wrap select {
            display: none;
        }

        .category-select-display {
            height: 42px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            border-bottom: 1.5px solid #ECECEC;
            font-size: 15px;
            font-weight: 600;
            color: var(--text);
            transition: border-color 0.25s;
            cursor: pointer;
        }

        .category-select-wrap.open .category-select-display,
        .category-select-wrap:focus-within .category-select-display {
            border-bottom-color: var(--primary-light);
        }

        .category-select-display .cat-arrow {
            font-size: 10px;
            color: var(--primary);
            transition: transform 0.25s;
        }

        .category-select-wrap.open .cat-arrow {
            transform: rotate(180deg);
        }

        /* 下拉面板（打开时由 JS 改为 fixed 定位，避免被卡片 overflow 裁剪） */
        .category-menu {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            background: #fff;
            border: 1px solid #F0F0F0;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            padding: 5px;
            z-index: 60;
            max-height: 240px;
            overflow-y: auto;
        }

        .category-menu.fixed {
            position: fixed;
            top: auto;
            left: auto;
            right: auto;
        }

        .category-select-wrap.open .category-menu {
            display: block;
            animation: catMenuIn 0.18s ease;
        }

        @keyframes catMenuIn {
            from { opacity: 0; transform: translateY(-4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .category-option {
            display: flex;
            align-items: center;
            padding: 9px 12px;
            font-size: 14px;
            color: var(--text);
            border-radius: 8px;
            cursor: pointer;
            white-space: nowrap;
        }

        .category-option:hover {
            background: #FAFAFA;
        }

        .category-option.selected {
            color: var(--primary);
            background: rgba(255, 154, 162, 0.1);
            font-weight: 600;
        }

        /* ==================== SVG 细线图标体系 ==================== */
        /* 基类：统一线宽与端点，尺寸由各组件覆盖 */
        .i {
            width: 18px;
            height: 18px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.7;
            stroke-linecap: round;
            stroke-linejoin: round;
            display: block;
            flex-shrink: 0;
        }

        /* 顶部导航标签 */
        .nav-tab {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
        }

        .nav-tab .i { width: 17px; height: 17px; }

        /* 底部导航 Dock */
        .bottom-nav-item .nav-icon {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .bottom-nav-item .nav-icon .i { width: 20px; height: 20px; }

        /* 记账页支出/收入切换按钮 */
        .type-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .type-btn .i { width: 15px; height: 15px; }

        /* 记录列表分类图标：无底色，仅图标着色（支出玫瑰 / 收入青绿） */
        .record-icon {
            color: #E8798F;
        }

        .record-icon .i { width: 20px; height: 20px; }

        /* 多彩 Emoji 图标（catSvg 在 emoji 模式下输出 span，尺寸与各处线条图标对齐） */
        .cat-emoji {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            font-style: normal;
        }
        .record-icon .cat-emoji { font-size: 18px; }
        .month-category-icon .cat-emoji { font-size: 17px; }
        .cal-detail-icon .cat-emoji { font-size: 15px; }
        .month-detail-item-icon .cat-emoji { font-size: 18px; }
        .category-select-display .cat-emoji { font-size: 17px; }
        .category-option .cat-emoji { font-size: 16px; }
        .result-type-icon .cat-emoji { font-size: 14px; }

        /* 顶部 / 底部导航图标：多彩模式切换为 Emoji */
        .nav-emoji { display: none; }
        body.icon-mode-emoji .nav-emoji {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            font-style: normal;
        }
        body.icon-mode-emoji .nav-tab .i,
        body.icon-mode-emoji .bottom-nav-item .nav-icon .i { display: none; }
        body.icon-mode-emoji .nav-tab .nav-emoji { font-size: 16px; }
        body.icon-mode-emoji .bottom-nav-item .nav-icon .nav-emoji { font-size: 19px; }

        .record-item:has(.record-amount.income) .record-icon {
            color: #2BA89E;
        }

        /* 月度详情条目图标 */
        .month-detail-item-icon {
            color: #E8798F;
        }

        .month-detail-item-icon .i { width: 20px; height: 20px; }

        .month-detail-item:has(.month-detail-item-amount.income) .month-detail-item-icon {
            color: #2BA89E;
        }

        /* 分类统计图标 */
        .month-category-icon {
            color: #E8798F;
        }

        .month-category-icon .i { width: 18px; height: 18px; }

        .month-category-item:has(.month-category-amount-value.income) .month-category-icon {
            color: #2BA89E;
        }

        /* 日历单日明细图标 */
        .cal-detail-icon {
            color: #E8798F;
        }

        .cal-detail-icon .i { width: 16px; height: 16px; }

        .cal-detail-item:has(.cal-detail-amount.income) .cal-detail-icon {
            color: #2BA89E;
        }

        /* 空状态图标（统一灰调细线） */
        .empty-icon {
            color: var(--text-light);
            opacity: 0.55;
        }

        .empty-icon .i { width: 44px; height: 44px; margin: 0 auto 12px; }

        .ledger-empty-icon .i { width: 40px; height: 40px; }

        /* 记录操作按钮内图标 */
        .btn-icon .i { width: 15px; height: 15px; }

        .ledger-item-action-btn .i { width: 15px; height: 15px; }

        /* 汇总横幅与 AI 识别、图片上传图标 */
        .aggregate-banner-icon {
            display: inline-flex;
            align-items: center;
        }

        .aggregate-banner-icon .i { width: 16px; height: 16px; }

        .ai-recognize-icon {
            display: inline-flex;
            align-items: center;
        }

        .ai-recognize-icon .i { width: 14px; height: 14px; }

        .image-upload-icon { display: flex; }

        .image-upload-icon .i { width: 28px; height: 28px; color: var(--primary); }

        /* 分类下拉：触发器与选项内的图标 */
        .category-select-display .i { width: 18px; height: 18px; color: var(--primary); }

        /* 收入模式下触发器图标随类型变青绿（与货币符号同色） */
        #addView:has(.type-btn.active.income) .category-select-display .i,
        #editModal:has(.type-btn.active.income) .category-select-display .i {
            color: #4ECDC4;
        }

        /* 收入模式下：下拉选中项、箭头、focus 底边、图片上传图标全部变淡青绿 */
        #addView:has(.type-btn.active.income) .category-option.selected,
        #editModal:has(.type-btn.active.income) .category-option.selected {
            color: #4ECDC4;
            background: rgba(78, 205, 196, 0.12);
        }

        #addView:has(.type-btn.active.income) .category-option.selected .i,
        #editModal:has(.type-btn.active.income) .category-option.selected .i {
            color: #4ECDC4;
        }

        #addView:has(.type-btn.active.income) .category-select-display .cat-arrow,
        #editModal:has(.type-btn.active.income) .category-select-display .cat-arrow {
            color: #4ECDC4;
        }

        #addView:has(.type-btn.active.income) .category-select-wrap.open .category-select-display,
        #editModal:has(.type-btn.active.income) .category-select-wrap.open .category-select-display,
        #addView:has(.type-btn.active.income) .category-select-wrap:focus-within .category-select-display,
        #editModal:has(.type-btn.active.income) .category-select-wrap:focus-within .category-select-display {
            border-bottom-color: rgba(78, 205, 196, 0.55);
        }

        #addView:has(.type-btn.active.income) .image-upload-icon .i,
        #editModal:has(.type-btn.active.income) .image-upload-icon .i {
            color: #4ECDC4;
        }

        /* 触发器内图标与文字同行显示（渲染目标为 span，需行内弹性布局） */
        #categoryDisplay,
        #editCategoryDisplay {
            display: flex;
            align-items: center;
            gap: 7px;
            flex: 1;
            min-width: 0;
        }

        .category-option { gap: 9px; }

        .category-option .i { width: 17px; height: 17px; color: var(--text-light); }

        .category-option.selected .i { color: var(--primary); }

        .cat-opt-name {
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* ==================== 页头 ⋯ 更多菜单 ==================== */
        .more-menu-wrap {
            position: relative;
        }

        .btn-more {
            width: 36px;
            padding: 10px 0;
            font-size: 18px;
            font-weight: 700;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 菜单面板：磨砂玻璃 + 发丝边 */
        .more-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 132px;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(24px) saturate(1.5);
            -webkit-backdrop-filter: blur(24px) saturate(1.5);
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 14px;
            box-shadow: 0 12px 32px rgba(90, 70, 60, 0.14);
            padding: 5px;
            z-index: 950;
            opacity: 0;
            transform: translateY(-6px) scale(0.96);
            transform-origin: top right;
            pointer-events: none;
            transition: opacity 0.18s ease, transform 0.18s ease;
        }

        .more-menu.open {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        .more-menu-item {
            display: block;
            width: 100%;
            padding: 11px 16px;
            border: none;
            border-radius: 9px;
            background: transparent;
            color: var(--text);
            font-size: 13.5px;
            font-weight: 500;
            text-align: left;
            cursor: pointer;
            transition: background 0.15s ease;
            white-space: nowrap;
        }

        .more-menu-item:hover {
            background: rgba(0, 0, 0, 0.04);
        }

        .more-menu-item.danger {
            color: #D66A6A;
        }

        /* 图标风格切换行（多彩 / 简约） */
        .more-menu-switch-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            cursor: default;
        }

        .more-menu-switch-row:hover {
            background: transparent;
        }

        .more-menu-label {
            font-size: 13.5px;
            font-weight: 500;
            color: var(--text);
        }

        .icon-mode-switch {
            display: flex;
            background: rgba(160, 140, 115, 0.10);
            border-radius: 999px;
            padding: 3px;
            gap: 2px;
        }

        .icon-mode-btn {
            border: none;
            background: transparent;
            color: var(--muted);
            font-size: 12px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 999px;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .icon-mode-btn.active {
            background: #fff;
            color: var(--text);
            box-shadow: 0 1px 4px rgba(90, 70, 60, 0.14);
        }

        /* ==================== 下划线输入框（删除账本确认等） ==================== */
        .line-input {
            width: 100%;
            padding: 12px 2px;
            border: none;
            border-bottom: 1.5px solid #F0E3E3;
            border-radius: 0;
            background: transparent;
            font-size: 14px;
            color: var(--text);
            outline: none;
            transition: border-color 0.2s;
            box-sizing: border-box;
            font-family: inherit;
        }

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

        .line-input-center {
            font-size: 18px;
            letter-spacing: 6px;
            text-align: center;
        }

        /* ==================== 手机端页头磨砂适配 ==================== */
        @media (max-width: 600px) {
            .header {
                margin-bottom: 15px;
                gap: 10px;
                /* 手机端容器仅 8px 内边距，标题额外内缩避免贴屏幕边 */
                padding: 0 12px;
            }

            .nav-tab .i { width: 16px; height: 16px; }
        }

