/*
 * Copyright 2025 四川大学火锅战队
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
html {
    scroll-behavior: smooth;
    background-color: #000; /* 设置全局背景色以统一滚动边界外的颜色 */
}

body {
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    margin: 0;
    padding: 0;
}

header {
    background-color: #0a0a0a; /* 设置为不透明背景以覆盖动画 */
    padding: 0.5rem 2rem;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    /* The height will be set on specific classes */
}

.logo-icon {
    height: 4rem;
}

.logo-text-en {
    height: 28px;
}


nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.menu-toggle {
    display: none; /* Hidden by default on desktop */
}

.intro {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
    border-bottom: 1px solid #333;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
}

.intro-content {
    position: relative;
    z-index: 1;
}

.intro-title {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 1.5rem;
}

.intro-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.intro-logos img {
    /* height will be set on specific classes */
}

.intro-logo-main {
    height: 160px;
}

.intro-logo-zh {
    height: 120px;
}

.team-intro {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #0a0a0a;
}

.team-intro h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.team-intro p {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid #333;
    background-color: #0a0a0a;
}

.footer-main-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    margin-bottom: 2rem;
}

.footer-left, .footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-right {
    align-items: center; /* Center the content within the right column */
}

.footer-divider {
    width: 1px;
    background-color: #444;
    align-self: stretch;
}

.friendly-links {
    margin-top: 1rem;
}

.friendly-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.links-list a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.links-list a:hover {
    color: #fff;
}

.footer-copyright {
    margin-top: 2rem;
    color: #888;
    font-size: 0.9rem;
}

.school-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.school-logo img {
    height: 60px; /* Adjust as needed */
}

.partners-footer {
    margin-top: 1rem;
}

.school-logo h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.partners-footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.partners-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.partners-list img {
    height: 40px; /* Adjust as needed */
    opacity: 0.8;
    transition: opacity 0.3s;
}

.partners-list img:hover {
    opacity: 1;
}

.partners-footer p {
    font-size: 0.8rem; /* Smaller font size */
    color: #888;
}

.banners {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1rem;
    flex-wrap: wrap; /* Allow wrapping for the new content */
}

.banner {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    width: 30%;
    max-width: 400px;
}

.banner a {
    text-decoration: none;
    color: #fff;
    display: block;
}

.banner img {
    width: 100%;
    display: block;
}

.banner h3 {
    font-size: 1.5rem;
    margin: 1rem 1.5rem 0.5rem;
}

.banner p {
    font-size: 1rem;
    color: #aaa;
    margin: 0 1.5rem 1.5rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid #555;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #333;
}

.contact-btn img {
    height: 20px;
}
.contact-btn span {
    font-size: 0.9rem;
}

/* Easter Egg Section Styles */
.easter-egg-content {
    width: 100%; /* Take full width */
    padding: 4rem 2rem;
    text-align: center;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
    animation-delay: 1s; /* Delay the animation */
}

.easter-egg-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.easter-egg-logo {
    max-width: 200px;
    height: auto;
    cursor: pointer;
    transition: opacity 0.5s ease-in-out;
}


#school-logo-parade-container {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 600px; /* Further increased height for the animation area */
    transform: translateY(-50%); /* Center it vertically */
    overflow: hidden;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 999; /* Highest layer */
}

.afterimage-container {
    position: absolute;
    width: 80px;
    height: 80px;
}

.parading-logo-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 50%;
    padding: 5px;
    box-sizing: border-box;
}

.speech-bubble {
    position: absolute;
    opacity: 0; /* Initially hidden */
    z-index: 10; /* Ensure bubble is on top of the logo layers */
    left: 90px; /* Position it to the right of the logo */
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
    white-space: nowrap; /* Prevent text from wrapping */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Optional: Add a little tail to the bubble */
.speech-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(255, 255, 255, 0.9);
}

/* Removed ::before pseudo-element for the new stagger effect */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes parade {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(120vw); /* Move further off-screen */
    }
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    /* Header */
    nav ul {
        display: none; /* Hide nav links by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        padding: 1rem 0;
        z-index: 1000;
    }
    nav ul.active {
        display: flex;
    }
    .menu-toggle {
        display: block; /* Show hamburger menu button */
        cursor: pointer;
        /* Basic hamburger icon styles */
        width: 30px;
        height: 25px;
        position: relative;
    }
    .menu-toggle span {
        display: block;
        position: absolute;
        height: 4px;
        width: 100%;
        background: #fff;
        border-radius: 2px;
        left: 0;
        transition: transform 0.3s, opacity 0.3s;
    }
    .menu-toggle span:nth-child(1) { top: 0px; }
    .menu-toggle span:nth-child(2) { top: 10px; }
    .menu-toggle span:nth-child(3) { top: 20px; }


    /* Footer */
    .footer-main-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .footer-divider {
        display: none;
    }
    .footer-right, .footer-left {
        align-items: center;
        text-align: center;
    }

    /* Banners */
    .banners {
        flex-direction: column;
        align-items: center;
    }
    .banner {
        width: 90%;
        max-width: 400px;
    }
}
