/* 首页专用样式 */

/* Banner区域 */
.banner-section {
    padding: 20px 0;
}

.banner-item-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.banner-item {
    overflow: hidden;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.banner-item-link:hover .banner-item {
    box-shadow: 0 4px 12px rgba(30, 109, 181, 0.2);
}

.banner-item-link:hover .banner-item img {
    transform: scale(1.03);
}

.carousel-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.carousel-link:hover .custom-carousel {
    box-shadow: 0 4px 12px rgba(30, 109, 181, 0.2);
}

.carousel-link:hover .carousel-slide img {
    transform: scale(1.03);
}

.section-title-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.section-title-link:hover .section-title h3 {
    color: #1e6db5;
}

.section-title-link:hover .section-title .subtitle {
    color: #1e6db5;
}

.banner-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 区块标题样式 */
.section-title {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.section-title .title-bar {
    display: inline-block;
    width:8px;
    height: 48px;
    background: linear-gradient(to bottom, #f5a623 20%, #1e6db5 20%);
}

.section-title h3 {
    font-size:28px;
    font-weight: 500;
    color: #1e6db5;
    margin: 0;
}

.subtitle {
    font-size: 16px;
    color: #333;
}

/* 信息区域 */
.info-section {
    padding: 20px 0;
}

/* 校区动态 */
.news-section {
    padding: 20px 0 40px;
}

.news-card-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.news-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.news-card-link:hover .news-card {
    border-color: #1e6db5;
    box-shadow: 0 4px 12px rgba(30, 109, 181, 0.15);
}

.news-card-link:hover .news-img img {
    transform: scale(1.05);
}

.news-card-link:hover .news-text {
    color: #1e6db5;
}

.news-img {
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-content {
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
}

.news-text {
    font-size: 13px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

/* 更多内容按钮 */
.btn-more {
    display: inline-block;
    padding: 6px 20px;
    background-color: #1e6db5;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    border-radius: 0;
    border-left: 4px solid #f5a623;
    transition: background-color 0.3s ease;
}

.btn-more:hover {
    background-color: #155a94;
    color: #fff;
}

/* 自定义轮播样式 */
.custom-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 280px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 254px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 轮播箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    /* border-radius: 50%; */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* 指示点 */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 20px;
    height: 5px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background-color: rgba(255, 255, 255, 1);
}

.carousel-dots .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 响应式调整 */
@media (max-width: 991px) {
    .banner-item img {
        height: 200px;
    }
    
    .carousel-slides {
        height: 200px;
    }
    
    .carousel-slide img {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .banner-item img {
        height: 180px;
    }
    
    .section-title {
        margin-bottom: 10px;
        align-items: center;
    }
    
    .section-title .title-bar {
        height: 20px;
        width: 4px;
    }
    
    .section-title h3 {
        font-size: 16px;
    }
    
    .subtitle {
        /* font-size: 11px; */
    }
    
    .news-img img {
        height: 160px;
    }
}
