/* 全局样式 */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 隐藏滚动条但保留滚动功能 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 教师卡片样式 */
.teacher-card {
    perspective: 1000px;
    height: 400px;
    cursor: pointer;
    background-color: white;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.teacher-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.card-back {
    transform: rotateY(180deg);
    padding: 1.5rem;
}

/* 教师卡片背景颜色 */
.teacher-card:nth-child(1) .card-back {
    background-color: #e2e8f0;
}

.teacher-card:nth-child(2) .card-back {
    background-color: #dbeafe;
}

.teacher-card:nth-child(3) .card-back {
    background-color: #fae8ff;
}

.teacher-card:nth-child(4) .card-back {
    background-color: #dcfce7;
}

.teacher-card:nth-child(5) .card-back {
    background-color: #fff7ed;
}

.teacher-card:nth-child(6) .card-back {
    background-color: #fef2f2;
}

.teacher-card:nth-child(7) .card-back {
    background-color: #f0fdfa;
}

/* 滚动动画 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.animate-scroll-reverse {
    animation: scroll-reverse 30s linear infinite;
    width: fit-content;
    display: flex;
    flex-wrap: nowrap;
}
.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* 滚动容器样式 */
.scroll-container {
    position: relative;
    overflow: hidden;
}

.scroll-content {
    display: flex;
    gap: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .teacher-card {
        height: 350px;
    }
} 

/* 漂浮联系窗口样式 */
.floating-contact {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    max-width: 70px;
    transition: all 0.3s ease;
}

.floating-contact:hover {
    max-width: 300px;
}

.floating-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
    color: white;
    border-radius: 30px;
    padding: 10px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-contact-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.floating-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
}

.floating-contact-text {
    margin-left: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.floating-contact:hover .floating-contact-text {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        top: auto;
        right: 20px;
        transform: none;
        flex-direction: row;
        max-width: none;
    }
    
    .floating-contact-item {
        margin-left: 10px;
        margin-bottom: 0;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    
    .floating-contact-text {
        display: none;
    }
    
    .floating-contact:hover {
        max-width: none;
    }
}

/* Banner animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slide-in-left 0.8s ease-out 0.2s both;
}

.animate-slide-in-right {
    animation: slide-in-right 0.8s ease-out 0.4s both;
}

.animate-bounce-in {
    animation: bounce-in 1s ease-out 0.6s both;
}

.animate-fade-in {
    animation: fade-in 1s ease-out 0.8s both;
}

/* Enhanced shadow */
.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}