/* ===== 2026 毕业照相册 ===== */

/* 金色渐变艺术字标题 */
.grad-title {
    font-size: 2.8em;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 0;
    background: linear-gradient(180deg, #fff3c4 0%, #f5d06a 28%, #e0a53a 52%, #b97d1e 76%, #f0c674 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.grad-hint {
    color: rgba(244, 244, 255, 0.55);
    font-size: 16px;
    margin-top: 0.6em;
}

.grad-cover-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

.grad-cover {
    position: relative;
    cursor: pointer;
    border: 2px solid rgba(244, 244, 255, 0.15);
    border-radius: 14px;
    overflow: hidden;
    height: 460px;
    background: #17181b;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.grad-cover:hover {
    border-color: #e6a23c;
    transform: translateY(-3px);
}

.grad-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

/* 展开后的缩略图网格：一行最多 3 个 */
.grad-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 1000px;
    margin: 26px auto 0;
    padding: 0 10px;
}

.grad-cell {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(244, 244, 255, 0.12);
    background: #17181b;
    aspect-ratio: 3 / 2;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.grad-cell:hover {
    border-color: #e6a23c;
    transform: translateY(-3px);
}

.grad-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 768px) {
    .grad-grid { grid-template-columns: repeat(2, 1fr); }
    .grad-cover { height: 300px; }
    .grad-title { font-size: 2em; letter-spacing: 2px; }
}

@media screen and (max-width: 500px) {
    .grad-grid { grid-template-columns: repeat(1, 1fr); }
    .grad-cover { height: 240px; }
    .grad-title { font-size: 1.5em; letter-spacing: 1px; }
}

/* Lightbox 灯箱 */
.grad-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 10, 12, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.grad-lightbox img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}

.grad-lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 52px;
    height: 52px;
    line-height: 48px;
    text-align: center;
    font-size: 30px;
    color: rgba(244, 244, 255, 0.9);
    background: rgba(20, 20, 24, 0.6);
    border: 2px solid rgba(244, 244, 255, 0.45);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.grad-lb-close:hover {
    color: #e6a23c;
    border-color: #e6a23c;
    background: rgba(230, 162, 60, 0.15);
}

.grad-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: rgba(244, 244, 255, 0.85);
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
}

.grad-lb-nav:hover { color: #e6a23c; }
.grad-lb-prev { left: 12px; }
.grad-lb-next { right: 12px; }

.grad-lb-caption {
    margin-top: 14px;
    color: rgba(244, 244, 255, 0.7);
    font-size: 16px;
}

/* ===== 团队页照片容器统一最大显示宽度，两侧留白 ===== */
#persons-content,
#staff-content,
#alumni-content,
#photo-container {
    max-width: 65em;
}

/* ===== 底部学生/成员卡片放大：宽度、高度适当增加 ===== */
.card {
    flex: 0 0 calc(25% - 10px); /* 桌面每行 4 个 */
    max-width: calc(25% - 10px);
    height: 500px;
}

/* 大屏下图片随卡片同步放大（覆盖 main.css 固定的 280px） */
@media screen and (min-width: 1441px) {
    .card-img-top {
        height: 350px;
    }
}

@media screen and (max-width: 1440px) {
    .card {
        flex: 0 0 calc(25% - 10px);
        max-width: calc(25% - 10px);
        height: 470px;
    }
}

@media screen and (max-width: 1100px) {
    .card {
        flex: 0 0 calc(33.33% - 10px);
        max-width: calc(33.33% - 10px);
        height: 440px;
    }
}

@media screen and (max-width: 768px) {
    .card {
        flex: 0 0 calc(33.33% - 10px);
        max-width: calc(33.33% - 10px);
        height: 400px;
    }
}

@media screen and (max-width: 500px) {
    .card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        height: 340px;
    }
}
