/* 整体 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #f7f1f1; 
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 让内容在中间的容器 */
.container {
    display: flex;
    flex-direction: column;  
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px); 
    border-radius: 15px; 
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.5);
    padding: 30px; 
    max-width: 80%;
    text-align: center;
}

/* Profile Image */
.profile-image {
    width: 150px;  
    height: 150px;  
    border-radius: 50%;  
    object-fit: cover;  
    margin-bottom: 20px;  
}

h1 {
    font-size: 2.5em;
    color: #fff; 
    text-align: center;
    margin: 0;
}

/* 导航 */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: fixed;  
    top: 20px;        
    left: 20px;       
    background-color: rgba(29, 33, 55, 0.8); 
    font-size: 1.2em;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
}

ul li {
    display: block; 
    padding: 10px 20px;
    margin: 5px 0;
}

ul li a {
    text-decoration: none;
    color: #eee;  
    transition: color 0.3s ease;
}

ul li a:hover {
    color: #ff7f97; 
}

/* Dropdown Menu */
.dropdown {
    display: inline-block;
    position: relative;
    border-radius: 20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(29, 33, 55, 0.9); 
    min-width: 160px;
    z-index: 1;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: smoothFade 0.5s ease;
}

.dropdown-content a {
    color: #eee; 
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255, 69, 105, 0.8); 
    color: #fff; 
}


/* 右下角按键 （返回寝室页面） */
.btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(255, 69, 105, 0.8); 
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 20px;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

.btn:hover {
    background-color: rgba(255, 85, 145, 0.9); 
    transform: scale(1.1);
}

/* 导航的动画 */
@keyframes smoothFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.image {
    width: 600px; 
    height: 340px; 
    object-fit: cover; 
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(239, 236, 236, 0.5); 
    transition: transform 0.3s ease-in-out; 
}

.image:hover {
    transform: scale(1.05); 
}
.marquee {
    width: 100%; 
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee p {
    display: inline-block;
    font-size: 1.2rem;
    animation: scroll-left 10s linear infinite;
    color: #eff0f5; /* Ensure the text is visible on the semi-transparent background */
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

body {
    height: 100vh;
    background-color: black;
    animation: colorChange 5s infinite; /* 动画效果 */
}

@keyframes colorChange {
    0% { background-color: black; }
    25% { background-color: blue; }
    50% { background-color: green; }
    75% { background-color: red; }
    100% { background-color: black; }
}