@charset "utf-8";

/* 学院融媒板块 */
.college-media {
    padding: 0.75rem 0 0.85rem;
    margin-top: 0.3rem;
    background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 45%, #f8fbff 100%);
    position: relative;
    overflow: hidden;
}

.college-media::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.2rem;
    transform: translateX(-50%);
    width: 8rem;
    height: 3rem;
    background: radial-gradient(ellipse at center, rgba(105, 51, 41, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.college-media .tit {
    justify-content: center;
}

.college-media-grid {
    display: flex;
    justify-content: space-between;
    gap: 0.24rem;
}

.college-media-item {
    flex: 1;
    min-width: 0;
}

.college-media-item a {
    display: block;
    position: relative;
    border-radius: 0.12rem;
    overflow: hidden;
    box-shadow: 0 0.08rem 0.24rem rgba(36, 72, 120, 0.12);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.college-media-item a:hover {
    transform: translateY(-0.06rem) scale(1.02);
    box-shadow: 0 0.16rem 0.36rem rgba(36, 72, 120, 0.18);
}

.college-media-item .media-pic {
    position: relative;
    padding-top: 56%;
    overflow: hidden;
}

.college-media-item .media-pic > div {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.college-media-item a:hover .media-pic > div {
    transform: scale(1.08);
}

.college-media-item .media-pic::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 播放按钮 */
.college-media-item .media-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 0.56rem;
    height: 0.56rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, background 0.35s ease;
}

.college-media-item .media-play::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 0.04rem;
    border-style: solid;
    border-width: 0.09rem 0 0.09rem 0.14rem;
    border-color: transparent transparent transparent #693329;
}

.college-media-item .media-play::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: cm-play-pulse 2.2s ease-out infinite;
}

.college-media-item a:hover .media-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ffffff;
}

.college-media-item a:hover .media-play::after {
    animation-play-state: paused;
}

/* 底部标题栏 */
.college-media-item .media-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0.18rem 0.2rem;
    color: #ffffff;
}

.college-media-item .media-info .media-icon {
    flex-shrink: 0;
    width: 0.18rem;
    height: 0.18rem;
    margin-right: 0.08rem;
    background: url(../images/shipin.png) no-repeat center center;
    background-size: contain;
    opacity: 0.95;
}

.college-media-item .media-info h3 {
    flex: 1;
    min-width: 0;
    font-size: 0.16rem;
    font-weight: normal;
    line-height: 0.24rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.35s ease;
}

.college-media-item a:hover .media-info h3 {
    transform: translateX(0.04rem);
}

/* 入场动画 */
.college-media-item.cm-animate {
    opacity: 0;
    transform: translateY(0.3rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.college-media-item.cm-animate.cm-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes cm-play-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.45);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.45);
        opacity: 0;
    }
}

@media screen and (max-width: 1024px) {
    .college-media-grid {
        flex-wrap: wrap;
    }

    .college-media-item {
        flex: 0 0 calc(50% - 0.12rem);
    }
}

@media screen and (max-width: 768px) {
    .college-media {
        padding: 0.5rem 0 0.6rem;
    }

    .college-media-grid {
        display: block;
    }

    .college-media-item {
        margin-bottom: 0.2rem;
    }

    .college-media-item:last-child {
        margin-bottom: 0;
    }
}
