/* 日历容器样式 - 与.pic-news2保持一致 */
/* 日历容器样式 - 填满父容器.pic-news2的100%宽度 */
.cldBody {
    width: 100%;
    /* 填满父容器宽度 */
    height: auto;
    /* 高度自适应 */
    min-height: 400px;
    max-height: 430px;
    margin: 0;
    /* 移除外边距 */
    padding: 15px;
    /* 内边距 */
    box-sizing: border-box;
    /* 确保内边距包含在宽度内 */

    /* 从.pic-news2继承的样式 */
    border: solid 2px #ccc;
    /* 保持相同的边框 */
    transition: all 0.3s ease-in-out;
    /* 保持相同的过渡效果 */

    /* 日历特有样式 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: white;
    overflow-y: auto;
    overflow-x: hidden;
    /* 防止内容溢出 */
}

/* 日历表格 */
#calendarBody {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 表格行 */
#calendarBody tr {
    height: 40px;
}

/* 星期标题 */
#week td {
    height: 50px;
    text-align: center;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

/* 日期单元格基础样式 */
#calendarBody td {
    position: relative;
    padding: 8px;
    text-align: center;
    vertical-align: top;
    border: 1px solid #f5f5f5;
    cursor: pointer;
    background-color: white;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
    user-select: none;
    width: calc(100% / 7);
    min-height: 60px;
}

/* 简约悬停效果 */
#calendarBody td:hover {
    background-color: #f9f9f9;
    border-color: #e0e0e0;
    transform: scale(1.05);
}

/* 非当前月 */
#calendarBody td.prev-month,
#calendarBody td.next-month {
    color: #ccc;
    background-color: #fcfcfc;
    cursor: default;
}

#calendarBody td.prev-month:hover,
#calendarBody td.next-month:hover {
    background-color: #fcfcfc;
    border-color: #f5f5f5;
    transform: none;
}

/* 今天日期 - 简约红色边框 */
#calendarBody td.today {
    background-color: #fff5f5;
    border: 1px solid #ff4d4f;
    font-weight: 500;
}

/* 今天悬停效果 */
#calendarBody td.today:hover {
    background-color: #ffeaea;
}

/* 选中日期 - 简约红色背景 */
#calendarBody td.selected {
    background-color: #ff4d4f;
    color: white;
    font-weight: 500;
    border-color: #ff4d4f;
}

/* 选中悬停 */
#calendarBody td.selected:hover {
    background-color: #ff7875;
}

/* 有事件的日期 - 简约红色标记 */
#calendarBody td.has-event {
    position: relative;
}

/* 事件指示器 - 小圆点 */
#calendarBody td.has-event::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #ff4d4f;
    border-radius: 50%;
}

/* 周末日期 - 浅红色文字 */
#calendarBody td.weekend {
    color: #ff4d4f;
}

/* 月份选择器样式 */
.month-selector {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.month-selector td {
    padding: 10px 5px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    background-color: white;
    transition: all 0.2s ease;
    color: #666;
}

.month-selector td:hover {
    background-color: #f9f9f9;
    color: #ff4d4f;
}

/* 当前选中月份 */
.month-selector .curDates {
    background-color: #ff4d4f;
    color: white;
    font-weight: 500;
    border-color: #ff4d4f;
}

.month-selector .curDates:hover {
    background-color: #ff7875;
    color: white;
}

/* 日历头部 */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

#currentYearMonth {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.calendar-header button {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    background-color: white;
}

.calendar-header button:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
    background-color: #fff5f5;
}

/* 事件显示区域 */
#dateEventDisplay {
    background-color: #fafafa;
    border-radius: 6px;
    border-left: 3px solid #ff4d4f;
    display: none;
}

#selectedDateTitle {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* 事件列表样式 */
.event-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.event-item:last-child {
    border-bottom: none;
}

.event-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.event-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #calendarBody tr {
        height: 70px;
    }

    #calendarBody td {
        padding: 6px 4px;
        font-size: 13px;
    }

    #currentYearMonth {
        font-size: 16px;
    }

    .calendar-header button {
        padding: 4px 8px;
        font-size: 12px;
    }

    .month-selector td {
        padding: 8px 3px;
        font-size: 13px;
    }

    #dateEventDisplay {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #calendarBody tr {
        height: 60px;
    }

    #calendarBody td {
        padding: 4px 2px;
        font-size: 12px;
    }

    #week td {
        font-size: 12px;
        height: 40px;
    }

    .month-selector {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .month-selector td {
        padding: 10px 0;
    }
}

/* 事件列表样式 */
#eventListContainer {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

/* 单个事件项 */
.event-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    margin-bottom: 8px;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid #ff4d4f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.event-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff9f9;
}

.event-item:last-child {
    margin-bottom: 0;
}

/* 事件时间 */
.event-time {
    flex: 0 0 50px;
    font-size: 12px;
    color: #ff4d4f;
    font-weight: bold;
    margin-right: 12px;
    padding: 2px 6px;
    background-color: #fff5f5;
    border-radius: 3px;
    text-align: center;
    line-height: 1.4;
}

/* 事件内容 */
.event-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    text-align: left;
}

/* 事件标签 */
.event-tag {
    display: inline-block;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.tag-campus {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.tag-online {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.tag-lecture {
    background-color: #fff0f6;
    color: #eb2f96;
    border: 1px solid #ffadd2;
}

.tag-interview {
    background-color: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

/* 滚动条样式 */
#eventListContainer::-webkit-scrollbar {
    width: 6px;
}

#eventListContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#eventListContainer::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#eventListContainer::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* 事件图片提示框样式 */
#event-image-tooltip {
    position: fixed;
    background: white;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 300px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#event-image-tooltip img {
    max-width: 280px;
    max-height: 200px;
    display: block;
    border-radius: 3px;
}

/* 如果需要更漂亮的图片提示，可以添加以下样式 */
#event-image-tooltip::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 20px;
    width: 10px;
    height: 10px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
}