/* --- 日历容器样式 --- */
.calendar-container {
    width: 100%;
    background-color: #fff;
    position: relative;
    border-bottom: 1px solid #E2E2E2;
    padding-bottom: 0.2rem;
}

.xmrlBox {
    width: 100%;
    position: relative;
}

/* 头部导航 */
.rl_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    font-size: 0.16rem;
    color: #333;
}

.nav-btn {
    cursor: pointer;
    user-select: none;
    color: #999;
    font-size: 0.18rem;
}

.current-date {
    font-weight: bold;
}

/* 星期栏 */
.weekdays {
    display: flex;
    text-align: center;
    color: #999;
    font-size: 0.14rem;
    margin-bottom: 0.1rem;
}

.weekdays div {
    flex: 1;
}

/* 日期网格 */
.days-grid {
    display: flex;
    flex-wrap: wrap;
}

.day-cell {
    width: 14.28%;
    height: 0.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    margin-bottom: 0.05rem;
    /* border-radius: 50%; */
    transition: background-color 0.2s;
    font-size: 0.14rem;
}

.day-cell:hover {
    background-color: #f0f0f0;
}

/* 状态样式 */
.day-cell.other-month {
    color: #ccc;
    pointer-events: none;
}

.day-cell.today {
    color: #16b777;
    font-weight: bold;
}

.day-cell.selected {
    background-color: #16b777;
    color: #fff !important;
}

/* 文章标记小圆点 */
.dot-indicator {
    width: 4px;
    height: 4px;
    background-color: #ff4d4f;
    border-radius: 50%;
    margin-top: 4px;
    display: none;
}

.day-cell.has-article .dot-indicator {
    display: block;
}

/* 如果选中了有文章的日期，圆点变白 */
.day-cell.selected.has-article .dot-indicator {
    background-color: #fff;
}


/* --- 弹窗 (Modal) 样式 --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    /* 默认隐藏 */
    justify-content: center;
    align-items: center;
}

/* IE11 Flexbox fix for overlay centering */
.modal-overlay.active {
    display: -ms-flexbox;
    display: flex;
}

.modal-content {
    background: #fff;
    width: 80%;
    max-width: 320px;
    border-radius: 12px;
    padding: 0.2rem;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    font-size: 0.18rem;
    font-weight: bold;
    margin-bottom: 0.15rem;
    padding-bottom: 0.1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    cursor: pointer;
    color: #999;
    font-size: 0.2rem;
    line-height: 1;
}

.article-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.article-item {
    padding: 0.1rem 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.14rem;
    color: #333;
    cursor: pointer;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    color: #22c55e;
}

.empty-tip {
    text-align: center;
    color: #999;
    padding: 0.2rem 0;
    font-size: 0.14rem;
}

/* 2. 弹窗样式：绝对定位，默认隐藏 */
.calendar-tooltip {
    position: absolute;
    display: none;
    /* 初始隐藏 */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 260px;
    /* 固定宽度，方便计算 */
    z-index: 100;
    font-size: 14px;
}

.calendar-tooltip a{
   color:#333
}

/* 小三角样式 */
.calendar-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.tooltip-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.tooltip-item {
    padding: 8px 0;
    color: #555;
    line-height: 1.4;
    cursor: pointer;
}

.tooltip-item:hover a{
    color: #1673FA;
}



.empty-tip {
    color: #999;
    text-align: center;
    padding: 10px 0;
}

@media screen and (max-width: 768px) {

    .rl_header {
        font-size: 16px;
        padding: 20px 0;
    }

    .weekdays {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .day-cell {
        font-size: 14px;
        margin-bottom: 5px;
        height: 35px;
    }

    .nav-btn {
        font-size: 16px;
    }

    .modal-header {
        font-size: 16px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .close-btn {
        font-size: 18px;
    }

    .article-item {
        padding: 10px 0;
        font-size: 14px;
    }
}