
/* 日历样式 */
.calendar {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.calendar-header button {
    padding: 6px 12px;
    border: none;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
}
.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    color: #666;
}
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.day {
    /* max-width: 50px; */
    min-height: 70px;
    padding: 6px;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.day.notMonth {
    opacity: 0.4;
}
.day.active {
    background: #e6f7ff;
    border: 1px solid #1890ff;
}
.day-num {
    font-size: 14px;
    font-weight: 500;
}
.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #1890ff;
    color: #fff;
    font-size: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.schedule-preview {
    margin-top: 4px;
    font-size: 12px;
    color: #555;
    line-height: 1.2;
}
.schedule-preview .item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.schedule-box {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.add-form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.add-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.add-form button {
    padding: 8px 14px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 6px;
}
.schedule-item button {
    color: #ff4d4f;
    background: none;
    border: none;
    cursor: pointer;
}
.empty {
    color: #999;
    padding: 10px 0;
    text-align: center;
}