/**
 * slsd2-additions.css
 * 新增模块：学院宣传片 + 校友风采
 * 不修改原有任何 CSS 文件
 */

/* ========================================
   学院宣传片
   ======================================== */
.promo-video-block {
    background: #0a1a2e;
    padding: 60px 0 70px;
    position: relative;
    overflow: hidden;
}

.promo-video-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(0,83,153,0.18) 0%, transparent 60%);
    pointer-events: none;
}

/* 标题白色 */
.promo-video-block .index_title h2 span,
.promo-video-block .index_title .single-link .text span,
.promo-video-block .index_title .single-link .iconfont {
    color: #fff !important;
}
.promo-video-block .index_title .single-link {
    border-color: rgba(255,255,255,0.3) !important;
}

/* 布局容器 */
.promo-video-layout {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-top: 30px;
}

/* 主视频区域 */
.promo-main-video {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.promo-main-cover {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;  /* 16:9 */
    background: #111;
    overflow: hidden;
}

.promo-main-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .4s ease;
}

.promo-main-cover.playing img {
    opacity: 0;
}

.promo-main-cover video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.promo-main-cover.playing video {
    display: block;
}

/* 播放/暂停按钮 */
.promo-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    z-index: 10;
}

.promo-play-btn i {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    color: #fff;
}

.promo-play-btn i::before,
.promo-side-play i::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    transform: translate(-50%, -50%);
}

.promo-play-btn .icon-play-solid::before,
.promo-side-play .icon-play-solid::before {
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent transparent transparent currentColor;
}

.promo-play-btn .icon-play-solid::before {
    transform: translate(-40%, -50%);
    border-width: 10px 0 10px 16px;
}

.promo-play-btn .icon-pause::before,
.promo-side-play .icon-pause::before {
    box-sizing: border-box;
    width: 14px;
    height: 18px;
    border-left: 4px solid currentColor;
    border-right: 4px solid currentColor;
}

.promo-main-cover:hover .promo-play-btn {
    background: rgba(255,255,255,0.25);
    transform: translate(-50%, -50%) scale(1.08);
}

.promo-main-cover.playing .promo-play-btn {
    opacity: 0;
    transition: opacity .2s;
}

.promo-main-cover.playing:hover .promo-play-btn {
    opacity: 1;
}

/* 主视频标题 */
.promo-main-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 20px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    z-index: 5;
    line-height: 1.4;
}

/* 侧边视频列表 */
.promo-side-videos {
    flex: 0 0 clamp(220px, 22vw, 280px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-side-item {
    flex: 1;
    min-height: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    border: 2px solid transparent;
    transition: all .3s ease;
}

.promo-side-item.active {
    border-color: #3a8ee6;
    box-shadow: 0 0 0 1px #3a8ee6;
}

.promo-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.promo-side-item:hover img {
    transform: scale(1.04);
}

/* 侧边遮罩 */
.promo-side-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    transition: background .3s;
}

.promo-side-item.active::after,
.promo-side-item:hover::after {
    background: rgba(0,0,0,0.2);
}

/* 侧边小播放图标 */
.promo-side-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all .3s;
}

.promo-side-play i {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
    color: #fff;
}

.promo-side-play .icon-play-solid::before {
    transform: translate(-40%, -50%);
    border-width: 6px 0 6px 10px;
}

.promo-side-play .icon-pause::before {
    width: 10px;
    height: 12px;
    border-left-width: 3px;
    border-right-width: 3px;
}

.promo-side-item.active .promo-side-play {
    background: rgba(58,142,230,0.5);
    border-color: #3a8ee6;
}

/* 侧边标题 */
.promo-side-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 10px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    font-size: 13px;
    z-index: 5;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   校友风采
   ======================================== */
.alumni-block {
    background: #fff;
    padding: 60px 0 70px;
}

.alumni-swiper-container {
    margin-top: 30px;
    position: relative;
}

/* 单张校友卡片 */
.alumni-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex !important;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}

.alumni-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.13);
}

/* 封面图片区域 */
.alumni-card-cover {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66%;
    overflow: hidden;
    flex-shrink: 0;
}

.alumni-card-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.alumni-card:hover .alumni-card-cover img {
    transform: scale(1.05);
}

/* 校友信息区域 */
.alumni-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.alumni-card-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #3a8ee6;
    background: #eef4fd;
    margin-bottom: 10px;
    font-weight: 500;
}

.alumni-card-name {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.alumni-card-title {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.alumni-card-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alumni-card-link {
    margin-top: 16px;
    font-size: 14px;
    color: #3a8ee6;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
}

.alumni-card-link:hover {
    color: #1a6ec5;
}

/* Swiper 导航按钮覆盖 */
.alumni-swiper-container .ala-swiper {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .promo-video-layout {
        flex-direction: column;
    }
    .promo-main-video {
        flex: none;
        width: 100%;
    }
    .promo-side-videos {
        flex: none;
        width: 100%;
        flex-direction: row;
        height: 100px;
    }
    .promo-side-item {
        flex: 1;
    }
    .promo-side-title {
        font-size: 11px;
    }
}
