.calendar {
    
    margin: 20px auto;
    font-family: "Microsoft Yahei", sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 日历头部 */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    background-color: #4285f4;
    color: white;
}

.calendar-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background 0.2s;
}

.calendar-header button:hover {
    background: rgba(255,255,255,0.2);
}

.calendar-header .month-year {
    font-size: 16px;
    font-weight: 500;
}

/* 星期栏 */
.calendar-week {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-week span {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

/* 日期网格 */
.calendar-days {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
}

.calendar-day {
    width: 14.28%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 非当前月日期 */
.calendar-day.other-month {
    color: #ccc;
    cursor: default;
}

/* 今日高亮 */
.calendar-day.today {
    background-color: #4285f4;
    color: white;
    font-weight: bold;
}

.calendar-day.use {
    background-color: #404;
    color: white;
    font-weight: bold;
}
.calendar-day.lock {
    background-color: rgb(165, 165, 165);
    color: white;
    font-weight: bold;
}

/* 选中状态 */
.calendar-day.selected {
    background-color: #e6f0ff;
    color: #4285f4;
    font-weight: bold;
    border: 1px solid #4285f4;
}

/* 鼠标悬浮 */
.calendar-day:not(.other-month,.today,.use,.lock):hover {
    background-color: #ccc;
    color:white;
}