/*author: 葉研万事屋*/
/*BilibiliSpace: https://space.bilibili.com/3546741129349750*/
/*QQGroup: 1056692175*/
.regular-student-container {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    z-index: 41;
    height: calc(100vh - 162px);
    position: absolute;
    top: 162px;
    left: 0;
    overflow: hidden;
}

.section-title {
    text-align: left;
    margin-top: 5px;
    margin-bottom: 30px;
    margin-left: 80px;
    font-size: 51px;
    font-family: 'SourceHanSemiBold', serif;
    color: white;
}

.title-bg-img {
    position: absolute;
    top: 32px;
    left: 40px;
    width: 220px;
    height: auto;
    z-index: -1;
    pointer-events: none;
    image-rendering: high-quality;
}

.gallery-section {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
}

.gallery-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

.gallery-container {
    display: flex;
    flex-direction: row;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
    flex-wrap: nowrap;
}

.gallery-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.gallery-screen > .gallery-row:first-child {
    margin-top: 15px;
}

.gallery-row {
    display: flex;
    gap: 20px;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 915px;
    transition: height 0.3s ease, gap 0.3s ease;
}

.gallery-item {
    position: relative;
    /*width: 293px;*/
    /*height: 329px;*/
    width: 236px;
    height: 265px;
    border-radius: 0;
    transition: all 0.5s ease;
    flex-shrink: 0;
    border: 2px solid #bed9f7;
    box-shadow: 0 0 5px rgba(70,141,219, 0.5);
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.5);
}

.gallery-item:hover {
    transform: scale(1.025);
    box-shadow: 0 0 15px rgba(70,141,219, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.item-overlay {
    position: absolute;
    top: 0;
    right: -45px;
    bottom: 0;
    width: 45px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid #007bff;
}

.action-btn:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.8);
    border: 1px solid #007bff;
}

.scroll-arrow {
    position: absolute;
    top: calc((265px * 2 + 90px) / 2);
    transform: translateY(-50%);
    width: 55px;
    height: 45px;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    margin: 0;
    padding: 0;
    box-sizing: content-box;
    background-color: transparent;
}

.scroll-arrow:hover {
    color: white;
}

.left-arrow {
    left: 0;
}

.right-arrow {
    right: 0;
}
/* 箭头按钮内的图标样式 */
.scroll-arrow .arrow-icon {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.scroll-arrow .arrow-light-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* 悬停时显示发光图 */
.scroll-arrow:hover .arrow-light-icon {
    opacity: 1;
}

/* 悬停时主图标缩放 */
.scroll-arrow:hover .arrow-icon,
.scroll-arrow:hover .arrow-light-icon {
    transform: scale(1.1);
}

/* 优化图标位置对齐 */
.scroll-arrow img {
    display: block;
    margin: 0;
    padding: 0;
}

/* 响应式设计 */
@media (max-width: 2600px) {
    .gallery-item {
        width: 293px;
        height: 329px;
    }
    .scroll-arrow {
        top: calc((329px * 2 + 90px) / 2);
    }
    .item-overlay {
        width: 99px;
        right: -100px;
    }
    .icon-btn::after {
        width: 99px;
        height: 99px;
    }
    .image-name {
        padding: 4px 8px 8px 12px;
        font-size: 32px;
    }
}

@media (max-width: 1900px) {
    .gallery-item {
        width: 236px;
        height: 265px;
    }
    .scroll-arrow {
        top: calc((265px * 2 + 90px) / 2);
    }
    .item-overlay {
        width: 80px;
        right: -80px;
    }
    .icon-btn::after {
        width: 80px;
        height: 80px;
    }
    .image-name {
        padding: 4px 8px 8px 12px;
        font-size: 28px;
    }
}

@media (max-width: 1800px) {
    .gallery-item {
        width: 204px;
        height: 229px;
    }
    .scroll-arrow {
        top: calc((229px * 2 + 90px) / 2);
    }
    .item-overlay {
        width: 70px;
        right: -70px;
    }
    .icon-btn::after {
        width: 70px;
        height: 68.33px;
    }
    .image-name {
        padding: 4px 8px 8px 12px;
        font-size: 26px;
    }
}

@media (max-width: 1400px) {
    .gallery-item {
        width: 180px;
        height: 202px;
    }
    .scroll-arrow {
        top: calc((202px * 2 + 90px) / 2);
    }
    .item-overlay {
        width: 60px;
        right: -60px;
    }
    .icon-btn::after {
        width: 60px;
        height: 60px;
    }
    .tiktok-icon::after {
        top: 0;
    }
    .camera-icon::after {
        top: 69px;
    }
    .mail-icon::after {
        top: 139px;
    }
    .image-name {
        padding: 4px 8px 8px 12px;
        font-size: 22px;
    }
}

@media (max-width: 1100px) {
    .gallery-item {
        width: 160px;
        height: 180px;
    }
    .scroll-arrow {
        top: calc((180px * 2 + 90px) / 2);
    }
    .item-overlay {
        width: 50px;
        right: -50px;
    }
    .icon-btn::after {
        width: 50px;
        height: 49.33px;
    }
    .tiktok-icon::after {
        top: 2px;
    }
    .camera-icon::after {
        top: 64px;
    }
    .mail-icon::after {
        top: 126px;
    }
    .image-name {
        padding: 4px 8px 8px 12px;
        font-size: 18px;
    }
}

.gallery-item .decorations {
    position: absolute;
    right: 0;
    bottom: -35px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.gallery-item .decoration-element {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
}

.gallery-item .big {
    position: relative;
    right: -45px;
    width: 36px;
    height: 37px;
    background-image: url('../img/2-regular-student/carousel-item-big.png');
}

.gallery-item .star {
    position: relative;
    bottom: 8px;
    right: -29px;
    width: 51px;
    height: 52px;
    background-image: url('../img/2-regular-student/carousel-item-star.png');
}

.gallery-item .small {
    position: relative;
    bottom: -1px;
    width: 33px;
    height: 34px;
    background-image: url('../img/2-regular-student/carousel-item-small.png');
}

.gallery-item .big-light {
    position: relative;
    bottom: 15px !important;
    right: 49px !important;
    width: 36px;
    height: 37px;
    background-image: url('../img/2-regular-student/carousel-item-big-light.png');
}

.gallery-item .star-light {
    position: relative;
    bottom: 8px !important;
    right: 9px !important;
    width: 51px;
    height: 52px;
    background-image: url('../img/2-regular-student/carousel-item-star-light.png');
}

.gallery-item .small-light {
    position: relative;
    bottom: 17px !important;
    right: 0px !important;
    width: 33px;
    height: 34px;
    background-image: url('../img/2-regular-student/carousel-item-small-light.png');
}

.gallery-item .decoration-element.light {
    opacity: 0;
    position: absolute;
    right: 0;
    bottom: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .decoration-element.light {
    opacity: 1;
}

.gallery-item:hover .decoration-element:not(.light) {
    opacity: 1;
}

/* 图标按钮基础样式 */
.icon-btn {
    /*width: 97px;*/
    width: 100%;
    height: 99px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* TikTok 图标 */
.tiktok-icon {
    background-image: url('../img/2-regular-student/tiktok.png');
}

/* Camera 图标 */
.camera-icon {
    background-image: url('../img/2-regular-student/camera.png');
}

/* Mail 图标 */
.mail-icon {
    background-image: url('../img/2-regular-student/mail.png');
}

/* 发光层 - 使用伪元素实现，每个图标独立控制 */
.icon-btn::after {
    content: '';
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tiktok-icon::after {
    background-image: url('../img/2-regular-student/tiktok-light.png');
    left: 0;
}

.camera-icon::after {
    background-image: url('../img/2-regular-student/camera-light.png');
    left: 0;
}

.mail-icon::after {
    background-image: url('../img/2-regular-student/mail-light.png');
    left: 0;
}

/* 悬停时显示对应的发光图 */
.tiktok-icon:hover::after {
    opacity: 1;
}

.camera-icon:hover::after {
    opacity: 1;
}

.mail-icon:hover::after {
    opacity: 1;
}

.image-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 0) 100%);
    color: #a98553;
    font-family: 'SourceHanSemiBold', serif;
    text-align: left;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: #000022 0 0 5px, #000022 0 0 5px;
}