        /* ===== 统计页显示币种选择器（与年份选择器同语言：淡金胶囊） ===== */
        .display-currency-wrap {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            /* 贴到统计页头部整行最左侧，年份选择器保持靠右 */
            margin-right: auto;
            padding: 6px 13px;
            border: 1.5px solid rgba(230, 216, 195, 0.5);
            border-radius: 999px;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.5px;
            color: #A8927A;
            background: rgba(230, 216, 195, 0.18);
            cursor: pointer;
            user-select: none;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

        .display-currency-wrap:hover {
            background: rgba(230, 216, 195, 0.32);
            border-color: rgba(210, 188, 148, 0.7);
        }

        .display-currency-flag {
            font-size: 14px;
            line-height: 1;
        }

        .display-currency-code {
            font-variant-numeric: tabular-nums;
        }

        /* 本月概览快捷入口 */
        .current-month-overview {
            background: linear-gradient(135deg, #ffffff 0%, #fffaf5 100%);
            border-radius: 16px;
            padding: 12px 16px;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(255, 154, 162, 0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .current-month-overview:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(255, 154, 162, 0.12);
            border-color: rgba(255, 154, 162, 0.22);
        }

        .current-month-main {
            display: flex;
            align-items: center;
            gap: 20px;
            flex: 1;
            min-width: 0;
        }

        .current-month-title {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        /* 本月徽章：天蓝色系，与收入（青绿）/支出（玫瑰）错开 */
        .current-month-badge {
            font-size: 10px;
            font-weight: 600;
            color: #5B9FD4;
            background: rgba(88, 186, 244, 0.14);
            padding: 3px 8px;
            border-radius: 12px;
            letter-spacing: 0.5px;
            box-shadow: 0 1px 4px rgba(120, 180, 228, 0.16);
        }

        .current-month-date {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
            padding: 4px 12px;
            border-radius: 999px;
            background: rgba(230, 216, 195, 0.28);
            color: #A8927A;
            font-size: 15px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: 1px;
            white-space: nowrap;
        }

        .current-month-num,
        .current-month-unit {
            font-size: inherit;
            font-weight: inherit;
            color: inherit;
            letter-spacing: inherit;
        }

        .current-month-count {
            font-size: 12px;
            color: var(--text-light);
            font-weight: 500;
            white-space: nowrap;
        }

        .current-month-metrics {
            display: flex;
            align-items: center;
            gap: 4px;
            flex: 1;
            justify-content: center;
            min-width: 0;
        }

        .current-month-metric {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 0 12px;
            position: relative;
        }

        .current-month-metric:not(:last-child)::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 1px;
            height: 14px;
            background: rgba(255, 154, 162, 0.2);
        }

        .current-month-metric-label {
            font-size: 12px;
            color: var(--text-light);
            white-space: nowrap;
        }

        .current-month-metric-value {
            font-size: 15px;
            font-weight: 700;
            white-space: nowrap;
            letter-spacing: -0.3px;
        }

        .current-month-metric-value.income { color: #44A08D; }
        .current-month-metric-value.expense { color: #E57373; }
        .current-month-metric-value.balance { color: #8B9DC3; }

        @media (max-width: 640px) {
            .current-month-overview {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
                padding: 12px 14px;
            }
            .current-month-main {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }
            .current-month-title {
                justify-content: space-between;
            }
            .current-month-metrics {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
                justify-content: stretch;
            }
            .current-month-metric {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                gap: 6px;
                padding: 9px 12px;
            }
            .current-month-metric:not(:last-child)::after {
                display: none;
            }
            .current-month-metric-label {
                font-size: 12px;
            }
            .current-month-metric-value {
                font-size: 15px;
            }
        }

        .month-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 16px;
        }

        .month-card {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 154, 162, 0.12);
        }

        .month-card:hover {
            transform: translateY(-6px) scale(1.01);
            box-shadow: 0 18px 42px rgba(255, 154, 162, 0.18);
            border-color: rgba(255, 154, 162, 0.35);
        }

        .month-card.has-data:hover {
            border-color: rgba(255, 154, 162, 0.45);
        }

        .month-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 14px;
            border-bottom: 2px dashed rgba(255, 154, 162, 0.15);
        }

        .month-name {
            font-size: 20px;
            font-weight: 700;
            color: var(--text);
        }

        .month-total {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 2px;
            font-size: 22px;
            font-weight: 800;
            letter-spacing: -0.5px;
        }

        .month-total-label {
            font-size: 10px;
            font-weight: 600;
            color: var(--text-light);
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .month-stats {
            display: flex;
            justify-content: space-between;
            gap: 8px;
        }

        .month-stat {
            text-align: center;
            flex: 1;
            padding: 10px 6px;
            border-radius: 12px;
            transition: all 0.3s;
        }

        .month-stat:nth-child(1) {
            background: linear-gradient(135deg, #F0FFFD 0%, #E8FAF8 100%);
        }

        .month-stat:nth-child(2) {
            background: linear-gradient(135deg, #FFF8F8 0%, #FFF2F2 100%);
        }

        .month-stat:nth-child(3) {
            background: linear-gradient(135deg, #F8F9FA 0%, #F1F3F5 100%);
        }

        .month-card:hover .month-stat:nth-child(1) {
            background: linear-gradient(135deg, #E4FDF9 0%, #D9F5F2 100%);
        }

        .month-card:hover .month-stat:nth-child(2) {
            background: linear-gradient(135deg, #FFF0F0 0%, #FFE8E8 100%);
        }

        .month-card:hover .month-stat:nth-child(3) {
            background: linear-gradient(135deg, #F1F3F5 0%, #E9ECEF 100%);
        }

        .month-stat-label {
            font-size: 11px;
            color: var(--text-light);
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .month-stat-value {
            font-size: 17px;
            font-weight: 700;
        }

        .month-stat-value.income { color: #4ECDC4; }
        .month-stat-value.expense { color: var(--primary); }

        /* ===== 财富健康指数（近6月汇总，位于币种与年份选择器之间） ===== */
        @property --health-p {
            syntax: '<number>';
            inherits: false;
            initial-value: 0;
        }

        .health-index-chip {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            padding: 5px 14px 5px 7px;
            background: linear-gradient(135deg, #FFFDF9, #FBF5EA);
            border: 1.5px solid rgba(230, 216, 195, 0.5);
            border-radius: 999px;
            cursor: default;
            transition: box-shadow 0.25s ease, border-color 0.25s ease, padding 0.35s ease, gap 0.35s ease, transform 0.2s ease;
            /* 位于趋势图头部（flex-end）左侧空白区，钉在左上角 */
            margin-right: auto;
        }

        .health-index-chip:hover {
            border-color: rgba(210, 188, 148, 0.75);
            box-shadow: 0 2px 10px rgba(200, 191, 169, 0.25);
        }

        /* 收起态：去掉外圈底和边框，只剩分数圆环，点击可再展开 */
        .health-index-chip.collapsed {
            padding: 4px;
            gap: 0;
            cursor: pointer;
            background: transparent;
            border-color: transparent;
            box-shadow: none;
        }

        .health-index-chip.collapsed:hover {
            border-color: transparent;
            box-shadow: none;
            transform: scale(1.08);
        }

        .health-ring-wrap {
            position: relative;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .health-ring {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: conic-gradient(
                var(--health-color-soft, #E5DFD4) 0%,
                var(--health-color, #C8BFA9) calc(var(--health-p, 0) * 1%),
                rgba(233, 226, 214, 0.4) 0
            );
            -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
            transition: --health-p 0.9s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .health-score {
            font-size: 13px;
            font-weight: 700;
            color: var(--health-color, #A89F98);
            line-height: 1;
        }

        .health-meta {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
            max-width: 140px;
            opacity: 1;
            overflow: hidden;
            transition: max-width 0.35s ease, opacity 0.28s ease;
        }

        .health-index-chip.collapsed .health-meta {
            max-width: 0;
            opacity: 0;
        }

        .health-label {
            font-size: 10.5px;
            color: #A89F98;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        .health-tier {
            font-size: 13px;
            font-weight: 700;
            line-height: 1.2;
            white-space: nowrap;
        }

        @media (max-width: 600px) {
            .health-index-chip {
                padding: 4px 11px 4px 6px;
                gap: 7px;
            }

            .health-ring-wrap {
                width: 34px;
                height: 34px;
            }

            .health-ring {
                -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
                mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
            }

            .health-score {
                font-size: 11px;
            }

            .health-label {
                font-size: 10px;
            }

            .health-tier {
                font-size: 12px;
            }
        }

