.calender {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.9em;

    .calendar-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .close-btn {
        position: absolute;
        right: 10px;
        top: 10px;
        cursor: pointer;
        font-size: 20px;
        color: #bc2f3f;
        z-index: 9999;
        background: #fff;
        width: 30px;
        height: 30px;
        text-align: center;
        line-height: 25px;
        border-radius: 50%;
        border: 2px solid #bc2f3f;
      }

    .year {
        margin: 5px;
    }

    .row-r span {
        margin-left: 5px;
    }

    .calendar-list li {
        background-color: white;
        padding: 8px 15px;
        margin: 0px 0;

        text-align: center;
        min-width: 80px;
    }

    .jishen-list {
        list-style: none;
        padding: 0;
        margin: 0px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;

        li {
            background-color: white;
            padding: 8px 15px;
            margin: 0px 0;

            text-align: center;
            min-width: 80px;
        }
    }

    hr {
        margin: 8px 0;
        opacity: 0.15;
    }

    .center {
        text-align: center;

        .date-select {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;

            input,
            select {
                padding: 5px;
                border: 1px solid #dee2e6;
                border-radius: 5px;
                width: 80px;
            }
        }

        .date-display {
            margin: 20px 0;
            font-size: 1.1em;
        }

        .big-day {
            font-size: 4em;
            font-weight: bold;
            margin: 20px 0;
            color: #dc3545;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;

            .prev,
            .next {
                font-size: 0.5em;
                text-decoration: none;
                color: #dc3545;
                cursor: pointer;

                &:hover {
                    color: #bb2d3b;
                }
            }

            #date-day {
                min-width: 120px;
            }
        }

        .lunar-date {
            margin: 15px 0;
        }

        .position-info {
            display: flex;
            justify-content: space-around;
            margin: 20px 0;
            height: 200px;
            gap: 15px;

            .position-block {
                width: 100%;
                font-size: 14px;
                word-break: break-all;
                border: 1px solid #dee2e6;
                border-radius: 8px;
                padding: 0;
                background-color: #fff;
                overflow: hidden; /* 添加溢出隐藏 */
            }

            .position-block div:first-child {
                font-weight: bold;
                margin: 0;
                padding: 8px 12px;
                background-color: #dc3545;
                color: #fff;
                border-radius: 7px 7px 0 0;
                margin-bottom: 0 !important; /* 强制覆盖之前的margin-bottom */
            }

            /* 为内容区域单独添加内边距和样式 */
            .position-block > div:not(:first-child) {
                padding: 8px;
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                gap: 5px;
                margin-top: 5px; /* 添加上边距 */
            }
            .row-r {
                margin-bottom: 5px;
                width: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .row-r span {
                padding: 0 2px;
                font-size: 13px; /* 稍微减小字体大小 */
            }

            .row-r .label {
                min-width: 70px;  /* 设置标签最小宽度 */
            }
            .position-block div {
                margin: 5px 0;
                width: 100%;
            }

            .position-block div:first-child {
                font-weight: bold;
                margin-bottom: 10px;
            }
        }

        .star-info {
            margin-top: 10px;

            .star-row {
                display: flex;
                justify-content: space-between;
                margin: 10px 0;
            }
        }
    }

    .badge-yi {
        display: block;
        background-color: #198754;
        /* Bootstrap 绿色 */
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        margin: 10px auto;
        width: fit-content;
    }

    .badge-ji {
        display: block;
        background-color: #dc3545;
        /* Bootstrap 红色 */
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        margin: 10px auto;
        width: fit-content;
    }
}