* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 使得元素的宽高包括padding和border */
}

body {
    font-family: 'Arial', sans-serif;
    background: url('https://s2.loli.net/2024/11/23/OSDxzfgIsCVB9r4.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    transition: background-color 0.5s, color 0.5s;
}

#loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.windows-loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    animation: spin 1.5s infinite linear;
}

.windows-loader::before,
.windows-loader::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: pulse 1.5s infinite ease-in-out;
}

.windows-loader::before {
    background: rgba(255, 255, 255, 0.2);
    animation-delay: -0.75s;
}

.windows-loader::after {
    background: rgba(255, 255, 255, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

header, section, footer {
    opacity: 0;
    transition: opacity 0.5s;
    max-width: 100%;
    padding: 20px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(to right, #f4e1b1, #e5c5b0, #d6a0b7);
    border-radius: 10px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    margin-right: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.avatar:hover {
    transform: scale(1.1);
}

.header-info {
    color: #333;
}

.header-info h2 {
    margin: 0;
    font-size: 24px;
}

section {
    padding: 20px;
    margin: 10px 0;
    transition: transform 0.3s;
}

section:hover {
    transform: translateY(-5px);
}

.skills, .projects, .links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill, .project, .link {
    background: rgba(255, 255, 255, 0.2);
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    width: 80%;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.skill:hover, .project:hover, .link:hover {
    transform: scale(1.05);
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background: rgba(53, 66, 74, 0.8);
    position: relative;
    width: 100%;
    text-align: center;
}

.footer-info {
    margin-right: 20px;
}

button {
    background-color: #35424a;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s;
}

button:hover {
    transform: scale(1.1);
    background-color: #2980b9;
}

.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    max-width: 90%;
    overflow: hidden;
}

.popup h3 {
    margin: 0 0 10px;
}

.popup button {
    background-color: #35424a;
    margin: 5px;
}

.popup button:hover {
    background-color: #2980b9;
}

#rewardImage {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1002;
    justify-content: center;
    align-items: center;
}

#rewardImage img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

#thankYouMessage {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1003;
    color: black;
    font-size: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
}

.centered-sentence {
    text-align: center;
    color: black; /* 设置文本颜色为黑色 */
    margin: 20px 0; /* 上下外边距，确保与其他元素有一定间距 */
    font-size: 18px; /* 可根据需要调整字体大小 */
}