/* 科研月历容器样式 */
.research-calendar-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.research-calendar-title {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* 月历网格布局 */
.research-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 月份卡片样式 */
.research-calendar-month {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.research-calendar-month:hover {
    transform: translateY(-5px);
}

.month-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 项目列表样式 */
.month-projects {
    margin-top: 1rem;
}

.research-project-item {
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border-radius: 4px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.research-project-item:hover {
    background-color: #f0f0f0;
    border-left-color: inherit;
}

.project-date {
    display: inline-block;
    font-weight: bold;
    margin-right: 0.5rem;
    color: #666;
}

.project-title {
    color: #333;
}

.no-projects {
    color: #999;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

/* 弹窗样式 */
.project-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
}

.modal-title {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.modal-date {
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.modal-content-text {
    line-height: 1.6;
    color: #333;
}
