﻿/* 日历容器样式 */
#library-calendar-container {
    height: 100%;
    min-height: 500px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 日历导航栏 */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-nav-btn {
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background-color: #e5e7eb;
}

/* 月份标题 */
.calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

/* 星期标题行 */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1px;
}

.weekday-cell {
    padding: 0.5rem;
    text-align: center;
    font-weight: 500;
    color: #6b7280;
    background-color: #f9fafb;
}

/* 日历主体样式 */
#library-calendar-container .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e5e7eb;
}

/* 日历日期单元格样式 */
#library-calendar-container .calendar-day {
    min-height: 12px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

/* 活动标记样式增强 */
#library-calendar-container .activity-indicator {
    width: 6px;
    height: 6px;
    background-color: #3B82F6;
    border-radius: 50%;
    margin-left: 2px;
    display: inline-block;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* 日期单元格悬停效果 */
#library-calendar-container .calendar-day:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

#library-calendar-container .calendar-day.selected,
.bg-purple-100 {
    background-color: #f3e8ff;
    border-color: #8b5cf6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#library-calendar-container .calendar-day.today,
.bg-blue-50 {
    background-color: #eff6ff;
    border-color: #93c5fd;
    font-weight: 500;
}

/* 优化活动标记样式 */
#library-calendar-container .bg-blue-500.animate-pulse {
    background-color: #2563EB;
    border: 2px solid #93C5FD;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
    animation: elegant-pulse 2s infinite;
}

@keyframes elegant-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* 活动卡片样式 */
#library-calendar-container .activity-card {
    transition: all 0.2s ease;
}

#library-calendar-container .activity-card:hover {
    transform: translateX(2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    #library-calendar-container {
        min-height: 400px;
    }
    
    #library-calendar-container .calendar-day {
        min-height: 60px;
        padding: 4px;
    }
    
    #library-calendar-container .text-xl {
        font-size: 1.125rem;
    }
    
    #library-calendar-container .p-6 {
        padding: 1rem;
    }
}

/* 活动类型样式 - 统一使用深蓝色主题 */
#library-calendar-container .activity-card {
    background-color: #EFF6FF;
    border-left: 3px solid #3B82F6;
    transition: all 0.2s ease;
}

/* 月份导航按钮样式 */
#library-calendar-container .month-nav-btn {
    transition: all 0.2s ease;
}

#library-calendar-container .month-nav-btn:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

#library-calendar-container .month-nav-btn:active {
    transform: translateY(0);
}

/* 活动切换按钮样式 */
#library-calendar-container #prev-activity,
#library-calendar-container #next-activity {
    padding: 0.25rem 0.75rem; /* 减小按钮大小 */
    font-size: 0.875rem; /* 减小字体大小 */
    margin-top: -0.5rem; /* 向上移动 */
}

#library-calendar-container #prev-activity i,
#library-calendar-container #next-activity i {
    font-size: 0.75rem; /* 减小图标大小 */
}