@font-face {
    font-family: 'CustomFont';
    src: url('字体.ttf') format('truetype');
}

/* 基础样式 */
body {
    cursor: url('指针.png'), auto; 
    transition: background-position 0.1s ease;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #34e89e, #0f3443);
    background-size: 200% 200%; 
    color: #fff;
    background-attachment: fixed;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    width: 80%;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px 0;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

header {
    margin-bottom: 20px;
}

header h1 {
    font-family: 'CustomFont', sans-serif; 
    font-size: 4em;
    color: #d4af37;
    background: linear-gradient(135deg, #ff6e7f, #bfe9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

nav {
    margin-bottom: 30px;
}

nav a {
    margin: 0 15px;
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px 20px;
    background-color: #000;
    border: 2px solid #fff;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #fff;
    color: #000;
}

main {
    margin-bottom: 40px;
}
.sliding-text {
    font-size: 2em;
    white-space: nowrap; /* 防止文字换行 */
    overflow: hidden;
    width: 100%;
    animation: slideText 10s linear infinite;
}

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

.intro h2 {
    font-size: 2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.intro p {
    font-size: 1.2em;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* 页脚样式 */
footer {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 40px; 
    text-align: center;
}

/* 音乐控制按钮 */
#music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#music-control:hover {
    background-color: #fff;
    color: #000;
}

/* QQ群按钮样式 */
#qq-group-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#qq-group-button:hover {
    background-color: #fff;
    color: #000;
}

/* 下拉框样式 */
#server-select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    font-size: 1em;
    border: 2px solid #fff;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    transition: background 0.3s, color 0.3s;
    appearance: none; 
}

#server-select:hover {
    background: rgba(255, 255, 255, 1);
    color: #000;
}

.donation-section {
    margin: 40px 0;
    text-align: center;
}

.donation-section h2, .donation-section h3 {
    margin-bottom: 20px;
}

.donation-section img {
    margin-bottom: 30px;
    border: 2px solid #fff;
    border-radius: 10px;
}

#donor-list {
    list-style: none;
    padding: 0;
    font-size: 1.2em;
}

#donor-list li {
    margin: 10px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* 美化赞助按钮 */
.button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: #fff;
    border: none;
    border-radius: 50px; 
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3); 
    text-decoration: none; 
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.button:hover {
    background: linear-gradient(135deg, #feb47b, #ff7e5f); 
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.4); 
    transform: translateY(-3px); 
}

.button:active {
    transform: translateY(1px); 
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}