/* 新版首页样式 */

/* 学院新闻区域 */
.college-news-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1e88e5;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.section-title .en {
    font-size: 14px;
    color: #999;
    margin-left: 10px;
    font-weight: 400;
}

.more-link-header {
    color: #d32f2f;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.more-link-header:hover {
    color: #b71c1c;
}

/* 新闻内容区域 */
.news-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* 左侧大图新闻 */
.featured-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px;
    font-size: 14px;
    line-height: 1.5;
}

/* 右侧新闻列表 */
.news-list-simple {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list-simple li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.news-list-simple li:last-child {
    border-bottom: none;
}

.news-list-simple li a {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}

.news-list-simple li a:hover {
    color: #1e88e5;
}

.news-list-simple .date-badge {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* 公告区域 */
.notice-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-date-box {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #1e88e5;
    color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notice-date-box .month {
    font-size: 12px;
    text-transform: uppercase;
}

.notice-date-box .day {
    font-size: 24px;
}

.notice-content {
    flex: 1;
}

.notice-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.notice-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.notice-content h4 a:hover {
    color: #1e88e5;
}

.notice-content .notice-meta {
    color: #999;
    font-size: 12px;
    margin-bottom: 8px;
}

.notice-content .notice-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f5f7fa;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
    transition: all 0.3s;
}

.more-btn:hover {
    background: #1e88e5;
    color: white;
}

/* 校园风光区域 */
.campus-gallery-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 12px;
    font-size: 14px;
    text-align: center;
}

/* 公告 + 校园风光 左右布局 */
.notice-gallery-row {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 968px) {
    .notice-gallery-row {
        grid-template-columns: 1fr;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .featured-news {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .news-content-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-news {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

