
    .this_sum {
        display: none;
        position: absolute;
        font-weight:bold;
        top: 0;
        left: 10%;
        width: 80%;
        height: 100%;
        padding: 7px;
        border: 4px solid #4CAF50;
        border-radius: 10px;
        background-color: white;
        z-index:20;
    }

    /* ===== 统计概览区域 ===== */
    .summary-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: linear-gradient(135deg, #f7f9fc 0%, #eef3fa 100%);
        border: 1px solid #e6ebf2;
        border-radius: 8px;
        padding: 3px 15px;
        margin-bottom: 6px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    }
    .summary-items {
        display: flex;
        gap: 48px;
    }
    .summary-item {
        display: flex;
        align-items: baseline;
        gap: 8px;
        font-size: 12px;
        font-weight: 600;
    }

    .income { color: #007979; }
    .expense { color: #804040; }

    .summary-link {
        font-size: 14px;
        font-weight: bold;
        color: #1890ff;
        text-decoration: none;
        white-space: nowrap;
        padding: 6px 14px;
        border-radius: 4px;
        transition: all .2s;
    }
    .summary-link:hover {
        background: #e6f4ff;
    }

    /* ====== 弹窗按比例缩放，高度跟随内容，超出上限才出现滚动条 ====== */
    .modal {
        width: 60vw;
        min-width: 480px;
        max-width: 900px;
        /* 不再写死 height，让内容决定实际高度 */
        max-height: 98vh;   /* 内容超过这个高度时，modal-body 才会滚动 */
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 10px 36px rgba(0,0,0,0.25);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    /* ====== 九宫格：固定高度，内部按需滚动 ====== */
    .grid-outer {
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 20px;
        background: #fafbfc;

        height: 24vh;
        min-height: 160px;
        max-height: 260px;

        overflow-y: auto;
    }

    .grid-wrap {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .grid-item {
        border: 1px solid #ddd;
        border-radius: 5px;
        text-align: center;
        padding: 9px 2px;
        font-size: 13px;
        color: #555;
        cursor: pointer;
        background: #fff;
        user-select: none;
        transition: all .1s;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .grid-item:hover {
        background: #ecf5ff;
        border-color: #B0E0E6;
        color: #409eff;
    }

    .grid-item.active {
        background: #B0E0E6;
        color: #333;
        box-shadow: 0 2px 6px rgba(64,158,255,0.35);
    }

    .img_popup {
        z-index: 10000;
        position: fixed;
        top: 10%;
        left: 35%;
        transform: translate(-10%, -10%);
        padding: 0px;
        display: none;
    }

    .image-wrapper {
        position: relative;
    }

    .close-icon {
        position: absolute;
        bottom: 10px;
        right: 10px;
        transform: scale(3);
        cursor: pointer;
        color:red
    }

    #alertModal {
        display: none;
        position: fixed;
        top: 30%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2000;
        width: 80%;
        max-width: 400px;
        background: white;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        text-align: center;
    }

    #closeAlert, #confirm, #cancel {
        margin-top: 20px;
        margin-left: 20px;
        padding: 12px 20px;
        font-size: 16px;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.2s;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    #confirm {
        background-color: #8B3A3A; /* 红色 */
    }

    #closeAlert {
        background-color: #458B74;
    }

    #closeAlert:hover,#confirm:hover, #cancel:hover {
        transform: translateY(-2px);
    }

    #alertModal {
        font-size: 16px;
        margin-top: 20px;
        color: #333;
    }




