@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* 全局a标签样式 - 取消下划线 */
a {
    text-decoration: none;
}

* {
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    font-family: "Inter", sans-serif;
}

body {
    background-image: url(img/bac\ 4.png);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
}

/* ���ſ���ȫ�� */
.content {
    background-image: url(img/bac\ 4.png);
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;

}

body::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent 50%, rgb(0, 0, 0));
    z-index: 0
}

/* Background-images */
.content img {
    position: absolute;
    bottom: -12%;
    object-fit: cover;
}

header {
    position: absolute;
    top: 0;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 5%;
    background-color: rgba(255, 255, 255, 0.2);
    height: 30px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

    nav a {
        font-size: 18px;
        font-weight: 500;
        letter-spacing: 2px;
        color: rgb(53, 53, 53);
        width: 110px;
        text-align: center;
        padding: 15px 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        cursor: pointer;
        transition: all 0.3s;
        text-decoration: none;
    }

.active {
    background-color: #16423c;
    color: white;
}

nav a:hover {
    background-color: #16423c;
    color: white;
}

nav:hover > a:not(:hover) {
    background-color: transparent;
    color: rgb(53, 53, 53);
}

.title {
    position: absolute;
    top: 40%;
    right: 50%;
    transform: translate(50%, -50%);
    z-index: 5;
}

    .title h3 {
        font-size: 1.5rem;
        font-weight: 400;
        letter-spacing: 15px;
        color: white;
        text-align: center;
    }

    .title h1 {
        font-size: 8rem;
        font-weight: 800;
        letter-spacing: 50px;
        text-transform: uppercase;
        color: white;
        text-align: center;
        margin: -20px 0;
    }

p {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    width: 70%;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.info-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 18%;
    z-index: 1;
}

.cta {
    position: absolute;
    bottom: 8%;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 1;
}

    .cta button {
        font-size: 18px;
        font-weight: 400;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.8);
        background-color: transparent;
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 50px;
        height: 50px;
        width: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.2s;
        cursor: pointer;
    }

        .cta button:hover {
            background-color: rgba(255, 255, 255, 0.8);
            color: rgb(53, 53, 53);
        }

.slider {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

    .slider i {
        padding: 0 5%;
        font-size: 36px;
        color: rgba(255, 255, 255, 0.4);
    }

/* ��ʦ�Ƽ���Ŀ��ʽ */
.teacher-section {
    background: #f5f5f5;
    padding: 60px 5%;
    text-align: center;
    margin-top: 0;
}

    .teacher-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

.teacher-projects {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 300px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ȫ����Ʒչʾ */
.all-projects {
    background: #fff;
    padding: 60px 5%;
    text-align: center;
}

    .all-projects h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    justify-content: center;
}

/* 响应式网格布局 */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (min-width: 1440px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 28px;
    }
}

@media (min-width: 1920px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 32px;
    }
}

/* �ײ��� */
footer {
    background: #16423c;
    color: white;
    padding: 20px;
    text-align: center;
}

/* ������������ */
@keyframes bottomIn {
    from {
        transform: translateY(200px);
    }

    to {
        transform: translateY(0);
    }
}

.back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* 铺满屏幕 */
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.back-1 {
    background-image: url("img/bac 1.png");
    animation: bottomIn 1s ease-out forwards;
}

.back-2 {
    background-image: url("img/bac 2.2.png");
    animation: bottomIn 1.3s ease-out forwards;
}

.back-3 {
    background-image: url("img/bac 3.png");
    animation: bottomIn 1.5s ease-out forwards;
}
.back-4 {
    background-image: url("img/bac 4.png");

}

@keyframes bottomInText {
    from {
        transform: translateY(500px);
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

h3 {
    animation: bottomInText 1s ease-out forwards;
}

h1 {
    animation: bottomInText 1.2s ease-out forwards;
}

p {
    animation: bottomInText 1.2s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

button {
    animation: bottomInText 1.2s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

@keyframes backgroundImage {
    from {
        background-position: top;
    }

    to {
        background-position: 50% 14%;
    }
}

body {
    animation: backgroundImage 1.6s ease-out forwards;
}

@keyframes topIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    animation: topIn 1.2s ease-out forwards;
}

@keyframes zoomOut {
    from {
        transform: scale(1.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.slider {
    animation: zoomOut 1.2s ease-out forwards;
}

/* ===== ��ʦ�Ƽ���3D �������ӣ������򻯣� ===== */
.teacher-section {
    background: #f5f5f5;
    padding: 60px 5%;
    text-align: center;
}

    .teacher-section .stage {
        list-style: none;
        padding: 0;
        margin: 0 auto;
        max-width: 1080px;
    }

    .teacher-section .scene {
        width: 300px;
        height: 200px;
        margin: 30px;
        display: inline-block;
        perspective: 1000px;
    }

    .teacher-section .movie {
        width: 300px;
        height: 200px;
        transform-style: preserve-3d;
        transform: translateZ(-100px);
        transition: transform 350ms;
        position: relative;
    }

        .teacher-section .movie:hover {
            transform: rotateX(-78deg) translateZ(20px);
        }

        .teacher-section .movie .poster,
        .teacher-section .movie .info {
            position: absolute;
            width: 300px;
            height: 200px;
            background-color: #fff;
            backface-visibility: hidden;
            border-radius: 10px;
            overflow: hidden;
            
        }

        /* �����棨���棩 */
        .teacher-section .movie .poster {
            transform: translateZ(100px);
            background-image: var(--poster, linear-gradient(135deg,#e0e0e0,#fafafa));
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        /* ��Ϣ�棨���棩 */
        .teacher-section .movie .info {
            transform: rotateX(90deg) translateZ(100px);
            border: 1px solid #E5E5E5;
            font-size: 0.85rem;
            background: #fff;
            display: flex;
            flex-direction: column;
        }

            /* ����ͷ�������ա�ռλ */
            .teacher-section .movie .info header {
                color: #fff;
                padding: 10px;
                font-weight: 700;
                height: 100px;
                background-image: var(--still, linear-gradient(135deg,#999,#666));
                background-size: cover;
                background-position: center;
                text-shadow: 0 1px 3px rgba(0,0,0,0.8);
                display: flex;
                flex-direction: column;
                justify-content: flex-end;
                gap: 6px;
                transform: rotateX(0deg); /* 确保文字方向正确 */
                position: relative;
                z-index: 2;
            }

                .teacher-section .movie .info header h1 {
                    margin: 0;
                    font-size: 1.2rem;
                    transform: rotateX(0deg); /* 防止文字倒置 */
                    font-weight: 800;
                    letter-spacing: 0.5px;
                }

                .teacher-section .movie .info header .year,
                .teacher-section .movie .info header .rating,
                .teacher-section .movie .info header .duration {
                    border: 1px solid rgba(255,255,255,0.8);
                    padding: 2px 8px;
                    margin-right: 6px;
                    display: inline-block;
                    border-radius: 12px;
                    font-weight: 600;
                    transform: rotateX(0deg); /* 防止文字倒置 */
                    font-size: 0.75rem;
                    background: rgba(255,255,255,0.2);
                    backdrop-filter: blur(4px);
                }

            .teacher-section .movie .info p {
                padding: 0.8em 3.5em;
                
                margin: 0;
                font-weight: 500;
                color: #444;
                line-height: 1.6em;
                border-top: 10px solid #f0f0f0;
                height: 100px;
                overflow: hidden; /* 超出部分隐藏 */
                display: -webkit-box;
                -webkit-line-clamp: 3; /* 限制显示3行 */
                -webkit-box-orient: vertical;
                text-overflow: ellipsis;
                transform: rotateX(0deg); /* 防止文字倒置 */
                flex: 1;
                background: linear-gradient(to bottom, #fafafa, #f5f5f5);
                font-size: 0.8rem;
            }

/* ���ƹ⡱Ч������Ҫ modernizr �� .csstransforms3d ��ǣ���û��Ҳ�������ã� */
.csstransforms3d .teacher-section .movie::after {
    content: '';
    width: 300px;
    height: 150px;
    position: absolute;
    bottom: 0;
    box-shadow: 0 30px 50px rgba(0,0,0,0.3);
    transform-origin: 100% 100%;
    transform: rotateX(90deg) translateY(100px);
    transition: box-shadow 350ms;
}

.csstransforms3d .teacher-section .movie:hover::after {
    box-shadow: 0 -5px 50px rgba(0,0,0,0.3);
}

.teacher-section .movie .poster,
.teacher-section .movie .info,
.teacher-section .movie .info header {
    transition: box-shadow 350ms;
}

.csstransforms3d .teacher-section .movie .poster {
    box-shadow: inset 0 0 40px rgba(255,255,255,0);
}

.csstransforms3d .teacher-section .movie:hover .poster {
    box-shadow: inset 0 300px 40px rgba(255,255,255,0.8);
}

.csstransforms3d .teacher-section .movie .info,
.csstransforms3d .teacher-section .movie .info header {
    box-shadow: inset 0 -300px 40px rgba(0,0,0,0.5);
}

.csstransforms3d .teacher-section .movie:hover .info,
.csstransforms3d .teacher-section .movie:hover .info header {
    box-shadow: inset 0 0 40px rgba(0,0,0,0);
}

/* ��Ӧʽ��С�����о��� */
@media (max-width: 980px) {
    .teacher-section .scene {
        margin: 20px auto;
        display: block;
    }
}
