
        /* ===== 收支日历（月度详情内） ===== */
        .calendar-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
            margin: 16px 0 6px;
        }

        .calendar-weekdays span {
            text-align: center;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-light);
        }

        .calendar-weekdays span.weekend {
            color: rgba(239, 138, 147, 0.75);
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
        }

        .cal-cell {
            min-height: 54px;
            border-radius: 12px;
            padding: 5px 2px 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1px;
            border: 1.5px solid transparent;
            box-sizing: border-box;
            overflow: hidden;
            animation: calCellIn 0.32s ease both;
            animation-delay: calc(var(--ci) * 6ms);
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
        }

        .cal-cell.clickable {
            cursor: pointer;
        }

        .cal-cell.clickable:hover {
            transform: translateY(-1px);
            box-shadow: 0 3px 10px rgba(255, 154, 162, 0.18);
        }

        .cal-cell.today {
            border-color: rgba(255, 154, 162, 0.6);
            box-shadow: 0 2px 10px rgba(255, 154, 162, 0.2);
        }

        .cal-cell.future .cal-day-num {
            color: rgba(90, 90, 90, 0.35);
        }

        .cal-cell.selected {
            border-color: rgba(196, 168, 122, 0.55);
            background: rgba(210, 188, 148, 0.14) !important;
        }

        .cal-day-num {
            font-size: 12.5px;
            font-weight: 600;
            line-height: 1.4;
            color: var(--text);
            font-variant-numeric: tabular-nums;
        }

        .cal-cell.today .cal-day-num {
            color: #EF8A93;
            font-weight: 700;
        }

        .cal-amt {
            font-size: 9px;
            line-height: 1.4;
            font-weight: 600;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cal-amt.expense { color: #EF8A93; }
        .cal-amt.income { color: #3FBCB3; }

        .cal-mini-dot {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: rgba(255, 154, 162, 0.5);
            margin-top: 2px;
        }

        @keyframes calCellIn {
            from { opacity: 0; transform: translateY(6px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* 日历 - 单日明细 */
        .cal-detail {
            display: none;
            margin-top: 16px;
            padding-top: 14px;
            border-top: 1.5px dashed rgba(255, 154, 162, 0.3);
        }

        .cal-detail.show {
            animation: calDetailIn 0.25s ease;
        }

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

        .cal-detail-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }

        .cal-detail-date {
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
        }

        .cal-detail-sub {
            font-size: 11.5px;
            color: var(--text-light);
            margin-top: 2px;
        }

        .cal-detail-close {
            width: 26px;
            height: 26px;
            border: none;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.045);
            color: var(--text-light);
            font-size: 14px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .cal-detail-close:hover {
            background: rgba(255, 154, 162, 0.15);
            color: #EF8A93;
        }

        .cal-detail-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 12px;
        }

        .cal-detail-item {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #fff;
            border-radius: 12px;
            padding: 9px 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .cal-detail-icon {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            flex-shrink: 0;
        }

        .cal-detail-info {
            flex: 1;
            min-width: 0;
        }

        .cal-detail-cat {
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
        }

        .cal-detail-note {
            font-size: 11px;
            color: var(--text-light);
            margin-top: 1px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cal-detail-amount {
            font-size: 14px;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }

        .cal-detail-amount.expense { color: var(--primary); }
        .cal-detail-amount.income { color: #4ECDC4; }

        @media (max-width: 768px) {
            .chart-slider-container {
                padding: 15px;
                border-radius: 20px;
            }

            .chart-slider-header {
                margin-bottom: 12px;
            }

            .chart-slider-tab {
                padding: 6px 14px;
                font-size: 13px;
            }

            .daily-chart-wrapper {
                height: 180px;
            }

            .daily-chart-wrapper svg {
                height: 140px;
            }

            .daily-chart-labels {
                font-size: 10px;
            }

            .monthly-chart-slide {
                padding-top: 4px;
            }

            .month-view-tab {
                font-size: 12.5px;
                padding: 6px 18px;
            }

            .calendar-weekdays {
                margin: 10px 0 4px;
            }

            .cal-cell {
                min-height: 46px;
                border-radius: 10px;
            }

            .cal-day-num {
                font-size: 11.5px;
            }

            .cal-amt {
                font-size: 8.5px;
            }

            .cal-detail-list {
                gap: 6px;
                margin-top: 10px;
            }

            .cal-detail-item {
                padding: 8px 10px;
            }
        }

        @media (max-width: 360px) {
            .cal-cell {
                min-height: 42px;
                border-radius: 8px;
            }

            .cal-amt {
                font-size: 8px;
            }
        }

        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 40px;
            color: var(--text-light);
        }

        .empty-icon {
            display: flex;
            justify-content: center;
            margin-bottom: 12px;
        }

        /* 顶部导航（桌面端） */
        .nav-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
            background: var(--card-bg);
            padding: 8px;
            border-radius: 15px;
            box-shadow: var(--shadow);
        }

        .nav-tab {
            flex: 1;
            padding: 12px 20px;
            border: none;
            border-radius: 10px;
            background: transparent;
            cursor: pointer;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.3s;
            color: var(--text-light);
        }

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

        /* 底部导航（手机端）悬浮 Dock */
        .bottom-nav {
            display: none;
            position: fixed;
            bottom: calc(12px + env(safe-area-inset-bottom));
            left: 50%;
            right: auto;
            transform: translateX(-50%);
            width: auto;
            min-width: 240px;
            max-width: calc(100% - 40px);
            padding: 5px 8px;
            border-radius: 26px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.22) 100%);
            backdrop-filter: blur(44px) saturate(200%);
            -webkit-backdrop-filter: blur(44px) saturate(200%);
            border: 1px solid rgba(255, 255, 255, 0.42);
            box-shadow:
                0 12px 40px rgba(0, 0, 0, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.04),
                inset 0 1px 1px rgba(255, 255, 255, 0.85);
            z-index: 1000;
            overflow: hidden;
        }

        .bottom-nav::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
            pointer-events: none;
        }

        .bottom-nav-items {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            height: 48px;
            padding: 0 2px;
        }

        .bottom-nav-item {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            padding: 5px 14px;
            border: none;
            background: transparent;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            color: var(--text-light);
            font-size: 10px;
            font-weight: 500;
            border-radius: 16px;
            height: 38px;
            min-width: 58px;
        }

        .bottom-nav-item .nav-icon {
            font-size: 19px;
            line-height: 1;
            transition: transform 0.2s ease;
        }

        .bottom-nav-item.active {
            color: var(--primary);
            background: transparent;
            font-weight: 600;
            transform: scale(1.1);
        }

        .bottom-nav-item.active .nav-icon {
            transform: scale(1.15);
        }

        .bottom-nav-item:active {
            transform: scale(0.95);
        }

        .bottom-nav-item.active:active {
            transform: scale(1.05);
        }

        /* 手机端页面底部留白 */
        @media (max-width: 600px) {
            .app-container {
                padding-bottom: 100px;
            }
        }

        /* 响应式 */
        @media (max-width: 600px) {
            html, body {
                max-width: 100vw;
                overflow-x: hidden;
            }

            /* 手机端显示底部导航 */
            .bottom-nav {
                display: block;
            }

            /* 手机端隐藏顶部导航标签 */
            .nav-tabs {
                display: none;
            }

            .app-container {
                padding: 8px;
                padding-bottom: 100px;
                width: 100%;
                max-width: 100%;
                overflow-x: hidden;
            }

            .main-grid {
                gap: 10px;
                width: 100%;
                max-width: 100%;
            }

            .card {
                padding: 12px;
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
                overflow: hidden;
                border-radius: 16px;
            }

            .card-title {
                margin-bottom: 12px;
                font-size: 16px;
            }

            .hero-summary {
                padding: 12px 14px 10px;
                border-radius: 18px;
                margin-bottom: 15px;
            }

            .hero-metrics {
                gap: 10px;
            }

            .hero-metric {
                padding: 9px 10px;
            }

            .hero-metric-value {
                font-size: 21px;
            }

            .hero-balance-value {
                font-size: 13px;
            }

            .header {
                margin-bottom: 15px;
                flex-wrap: nowrap;
            }

            .logo-text {
                font-size: 18px;
            }

            .logo-sub {
                font-size: 9px;
                letter-spacing: 5px;
                gap: 4px;
            }

            .logo-icon img {
                width: 32px;
                height: 32px;
            }

            .btn-small {
                padding: 8px 12px;
                font-size: 12px;
            }

            .nav-tabs {
                margin-bottom: 15px;
                padding: 6px;
                gap: 6px;
            }

            .nav-tab {
                padding: 10px 15px;
                font-size: 14px;
            }

            .login-box {
                padding: 35px 25px;
            }

            .hero-summary {
                padding: 10px 8px 8px;
                border-radius: 16px;
            }

            .hero-metrics {
                gap: 6px;
            }

            .hero-metric {
                padding: 8px 4px;
                gap: 2px;
            }

            .hero-metric-label {
                font-size: 10px;
            }

            .hero-metric-value {
                font-size: 16px;
            }

            .hero-footer {
                margin-top: 8px;
                gap: 8px;
            }

            .hero-track {
                height: 4px;
                min-width: 20px;
            }

            .hero-balance {
                padding: 3px 8px;
            }

            .hero-balance-value {
                font-size: 12px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .month-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .month-card {
                padding: 14px;
                border-radius: 16px;
                display: flex;
                flex-direction: column;
                gap: 8px;
            }

            .month-card:hover {
                transform: translateY(-4px);
            }

            .month-header {
                margin-bottom: 0;
                padding-bottom: 8px;
                border-bottom: 2px dashed rgba(255, 154, 162, 0.15);
                align-items: baseline;
            }

            .month-name {
                font-size: 16px;
            }

            .month-total {
                font-size: 17px;
                font-weight: 800;
            }

            .month-stats {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 6px;
            }

            .month-stat {
                flex-direction: column;
                align-items: center;
                gap: 3px;
                padding: 6px 4px;
                border-radius: 10px;
            }

            .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: 9px;
                margin-bottom: 0;
                letter-spacing: 0.5px;
            }

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

            .monthly-trend-chart {
                height: 180px;
                padding: 6px 0 2px;
            }

            .trend-bars {
                gap: 4px;
                padding: 0 4px;
            }

            .trend-bar-group {
                min-width: 18px;
                gap: 4px;
            }

            .trend-bars-pair {
                gap: 2px;
                padding-bottom: 16px;
            }

            .trend-bar {
                max-width: 10px;
                border-radius: 5px 5px 0 0;
            }

            .trend-bar-label {
                font-size: 9px;
            }

            .trend-legend {
                gap: 16px;
                margin-top: 8px;
            }

            .trend-legend-item {
                font-size: 11px;
            }

            .month-detail-summary {
                gap: 8px;
            }

            .month-detail-summary-value {
                font-size: 16px;
            }

            .record-thumbnail,
            .month-detail-item-thumbnail {
                width: 45px;
                height: 45px;
            }

            /* 手机端大金额输入框适配 */
            .amount-input-lg {
                width: auto !important;
                min-width: 100px;
                max-width: calc(100% - 50px);
                font-size: 36px !important;
            }

            .amount-symbol-lg {
                font-size: 26px !important;
            }

            .amount-input-wrapper-lg {
                padding: 14px 0 10px;
                margin-top: 12px;
                gap: 4px;
            }

            /* 手机端最近记录卡片高度限制 */
            .card:has(.records-list) {
                max-height: none;
            }

            .records-list {
                max-height: none;
                overflow-y: visible;
            }

            /* 手机端记录项防止溢出 */
            .record-item {
                padding: 12px;
                position: relative;
            }

            .record-left {
                display: flex;
                align-items: center;
                align-self: center;
            }

            .record-icon {
                width: 36px;
                height: 36px;
                font-size: 16px;
            }

            .record-middle {
                gap: 4px;
                overflow: hidden;
                padding: 0 8px;
                justify-content: center;
                min-width: 0;
            }

            .record-middle h4 {
                font-size: 14px;
                white-space: normal;
                line-height: 1.4;
                word-break: break-word;
                overflow-wrap: break-word;
            }

            .record-images {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                gap: 6px;
                width: 100%;
                max-width: 100%;
            }

            .record-images img {
                width: 45px;
                height: 45px;
                object-fit: cover;
                border-radius: 6px;
            }

            .record-thumbnail {
                width: 40px;
                height: 40px;
            }

            .record-right {
                justify-content: center;
                min-height: 50px;
                gap: 6px;
                position: static;
            }

            .record-right-amount {
                position: static;
                top: auto;
                right: auto;
            }

            .record-right-bottom {
                position: static;
                bottom: auto;
                right: auto;
                display: flex;
                align-items: center;
                gap: 6px;
            }

            .record-amount {
                font-size: 13px;
                align-self: flex-end;
            }

            .record-time {
                font-size: 10px;
                align-self: center;
            }

            .record-actions {
                flex-shrink: 0;
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 4px;
            }

            .btn-icon {
                width: 24px;
                height: 24px;
                font-size: 10px;
                border-radius: 5px;
            }

            /* 手机端表单元素防止溢出 */
            .form-group {
                margin-bottom: 12px;
            }

            .form-group input,
            .form-group select,
            .form-group textarea {
                max-width: 100%;
                font-size: 14px;
            }

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

            .form-group select {
                padding-right: 20px;
                background-position: right 2px center;
            }

            .form-group textarea {
                padding: 8px 2px;
                min-height: 38px;
            }

            .datetime-trigger {
                padding: 0 2px;
                font-size: 14px;
                height: 38px;
            }

            /* 手机端分类选择器 */
            .category-select-display {
                height: 38px;
                font-size: 14px;
            }

            /* 手机端：记账/编辑表单字段矮一些，免得占满整屏 */
            #addView .category-select-display,
            #editModal .category-select-display,
            #addView .datetime-trigger,
            #editModal .datetime-trigger {
                height: 46px;
            }

            #addView .note-input-wrapper textarea,
            #editModal .note-input-wrapper textarea {
                min-height: 46px;
            }

            .datetime-trigger-content {
                gap: 6px;
            }

            .datetime-trigger-divider {
                height: 14px;
            }

            .datetime-trigger-time {
                padding: 0;
                background: transparent;
            }

            /* 手机端备注输入框 AI 按钮适配 */
            .note-input-wrapper textarea {
                padding-right: 125px;
            }

            .form-group label {
                font-size: 13px;
                margin-bottom: 6px;
            }

            .form-row {
                grid-template-columns: 1fr 1fr;
                gap: 12px;
            }

            .type-selector {
                margin-bottom: 16px;
                gap: 3px;
                padding: 3px;
                border-radius: 12px;
            }

            .type-selector::before {
                top: 3px;
                left: 3px;
                width: calc((100% - 9px) / 2);
                height: calc(100% - 6px);
                border-radius: 9px;
            }

            .type-selector:has(.type-btn.active.expense)::before {
                transform: translateX(calc(100% + 3px));
            }

            .type-btn {
                padding: 10px;
                font-size: 14px;
                border-radius: 10px;
            }

            .btn {
                padding: 12px;
                font-size: 14px;
            }

            .image-upload {
                margin-top: 20px;
                margin-bottom: 16px;
            }

            .image-upload-area {
                padding: 16px;
            }

            /* 手机端月度详情弹窗：transform 滑动（合成器动画，无重排卡顿）
               内容恒 100vh；日历态下移 15vh 露出 85vh 底部弹窗，分类态全屏 */
            .month-detail-modal {
                padding: 0;
                align-items: flex-end;
            }

            .month-detail-content {
                --sheet-peek: 15vh;
                max-width: 100%;
                width: 100%;
                margin: 0;
                border-radius: 24px 24px 0 0;
                max-height: 100vh;
                height: 100vh;
                transform: translateY(var(--sheet-peek));
                will-change: transform;
                transition: transform 0.34s cubic-bezier(0.32, 0.72, 0.24, 1), border-radius 0.34s ease;
                animation: sheetSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            }

            .month-detail-content.full-screen {
                max-height: 100vh;
                height: 100vh;
                border-radius: 0;
                transform: translateY(0);
                animation-name: sheetSlideUpFull;
            }

            /* 入场动画结束后移除 animation，避免切换视图时重放入场并让 transition 接管 */
            .month-detail-content.settled {
                animation: none;
            }

            .month-detail-content:not(.full-screen) .month-detail-body {
                max-height: calc(85vh - 130px);
            }

            .month-detail-content.full-screen .month-detail-body {
                max-height: calc(100vh - 130px);
            }

            /* 编辑弹窗：高度贴合内容、不保留日历态的 15vh 下移，
               避免底部大片空白白底、图片较多时保存按钮被顶出屏幕 */
            #editModal .month-detail-content {
                height: auto;
                max-height: 100vh;
                transform: none;
                animation: sheetSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            }

            #editModal .month-detail-body {
                max-height: calc(100vh - 130px);
            }

            .month-detail-header {
                padding: 20px 18px;
                border-radius: 24px 24px 0 0;
            }

            .month-detail-header-info {
                padding-right: 34px;
            }

            .month-detail-title {
                font-size: 20px;
            }

            .month-detail-summary {
                margin-top: 14px;
            }

            .month-detail-summary-label {
                font-size: 10px;
                letter-spacing: 1.5px;
            }

            .month-detail-summary-value {
                font-size: 15px;
                letter-spacing: -0.4px;
            }

            .btn-close-modal {
                top: 10px;
                right: 10px;
            }

            .month-detail-body {
                padding: 12px 14px 20px;
                max-height: calc(85vh - 130px);
            }

            /* 分类统计区手机端调整 */
            .month-category-section {
                padding: 0;
                margin-bottom: 14px;
                border-radius: 0;
            }

            .month-category-tabs {
                gap: 8px;
                margin-bottom: 10px;
            }

            .month-category-tab {
                padding: 7px 12px;
                font-size: 13px;
            }

            .month-category-item {
                padding: 10px;
                gap: 8px;
                border-radius: 12px;
            }

            .month-category-icon {
                width: 32px;
                height: 32px;
                font-size: 20px;
            }

            .month-category-amount-value {
                font-size: 14px;
            }

            .month-category-count {
                font-size: 10px;
            }

            /* 筛选条手机端 */
            .month-detail-filter {
                padding: 8px 12px;
                margin-bottom: 10px;
                border-radius: 10px;
            }

            .month-detail-filter-text {
                font-size: 12px;
            }

            .month-detail-filter-clear {
                padding: 4px 10px;
                font-size: 11px;
            }

            .month-detail-item {
                padding: 12px 10px;
                display: grid;
                grid-template-columns: auto 1fr auto;
                align-items: center;
            }

            .month-detail-item-info {
                display: contents;
            }

            .month-detail-item-icon {
                width: 36px;
                height: 36px;
                font-size: 16px;
                align-self: center;
                border-radius: 9px;
            }

            .month-detail-item-thumbnail {
                width: 45px;
                height: 45px;
                border-radius: 8px;
            }

            .month-detail-item-content {
                display: flex;
                flex-direction: column;
                gap: 6px;
                padding: 0 10px;
                min-width: 0;
            }

            .month-detail-item-text h4 {
                font-size: 14px;
            }

            .month-detail-item-text span {
                font-size: 11px;
            }

            .month-detail-item-amount {
                font-size: 15px;
            }

            .month-detail-item-right {
                gap: 6px;
            }

            .month-detail-item-actions {
                gap: 6px;
            }

            .month-detail-item-actions .btn-icon {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }

            .month-detail-item-images {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                gap: 6px;
            }

            .month-detail-item-images img {
                width: 45px;
                height: 45px;
                object-fit: cover;
                border-radius: 6px;
            }

            .month-detail-item-text {
                min-width: 0;
            }

            .month-detail-item-text h4 {
                font-size: 14px;
                white-space: normal;
                line-height: 1.4;
                word-break: break-word;
                overflow-wrap: break-word;
            }

            .month-detail-item-text span {
                font-size: 11px;
                color: var(--text-light);
            }

            .month-detail-item-amount {
                font-size: 14px;
                width: 70px;
                text-align: right;
                flex-shrink: 0;
                margin-top: 2px;
            }

            .month-detail-item-time {
                font-size: 10px;
                text-align: right;
                margin-top: -2px;
            }
        }

        /* 动画 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .fade-in {
            animation: fadeIn 0.5s ease;
        }

        /* 滚动条美化 */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #F5F5F5;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-light);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary);
        }

        /* 加载状态 */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
        }

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

        .opacity-50 {
            opacity: 0.5;
        }

        .ai-toast {
            position: fixed;
            top: 80px;
            right: 20px;
            max-width: 320px;
            background: linear-gradient(135deg, #fff5f8 0%, #fff 100%);
            border-radius: 20px;
            padding: 20px 24px;
            box-shadow: 0 10px 40px rgba(255, 107, 107, 0.2);
            z-index: 10000;
            transform: translateX(120%);
            transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .ai-toast.show {
            transform: translateX(0);
        }

        .ai-toast-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        .ai-toast-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: contain;
            transition: opacity 0.25s ease;
        }

        .ai-toast-title {
            font-size: 14px;
            font-weight: 600;
            color: #FF6B6B;
        }

        .ai-toast-message {
            font-size: 15px;
            line-height: 1.6;
            color: #333;
        }

        .ai-toast-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 24px;
            height: 24px;
            border: none;
            background: #FFE5E5;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
            color: #FF6B6B;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .ai-toast-close:hover {
            background: #FFD5D5;
            transform: scale(1.1);
        }

        .ai-toast.loading .ai-toast-message {
            color: #999;
            font-style: italic;
        }

        .ai-toast.loading .ai-toast-avatar {
            animation: logoSpin 1.5s linear infinite;
        }

        .ai-loading-text {
            display: block;
            margin-bottom: 8px;
            color: #FF6B6B;
            font-weight: 500;
        }

        @keyframes logoSpin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .ai-toast-typing {
            display: inline-flex;
            gap: 4px;
            margin-left: 8px;
        }

        .ai-toast-typing span {
            width: 6px;
            height: 6px;
            background: #FF6B6B;
            border-radius: 50%;
            animation: typingBounce 1.4s infinite ease-in-out;
        }

        .ai-toast-typing span:nth-child(1) { animation-delay: -0.32s; }
        .ai-toast-typing span:nth-child(2) { animation-delay: -0.16s; }

        @keyframes typingBounce {
            0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
            40% { transform: scale(1.2); opacity: 1; }
        }

