/* ===== 手账日历 ===== */
.widget-calendar {
    margin-top: 14px;
    padding: 10px 12px 12px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    transition: background 0.2s;
}
.widget-calendar:hover {
    background: rgba(255, 255, 255, 0.6);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #0f1a2e;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 6px;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}
.calendar-header button:hover {
    color: #475569;
    transform: scale(1.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    font-size: 13px;
}

.calendar-grid .weekday {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    padding-bottom: 4px;
    letter-spacing: 0.5px;
}

.calendar-grid .day {
    padding: 4px 0;
    border-radius: 50%;
    font-size: 13px;
    color: #334155;
    transition: all 0.2s;
    cursor: default;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.calendar-grid .day.other-month {
    color: #cbd5e1;
}

.calendar-grid .day.today {
    background: #a67c52;      /* 棕色背景，保留原样式风格 */
    color: #ffffff;
    font-weight: 600;
    border-radius: 50%;
}

.calendar-grid .day.today.other-month {
    background: #93c5fd;
    color: #ffffff;
}

.calendar-grid .day:not(.other-month):not(.today):hover {
    background: rgba(59, 130, 246, 0.08);
}