body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('bgp.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 确保页面至少占满整个视口 */
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    flex: 1; /* 让内容区域自动扩展，将页脚推到底部 */
}

nav {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 15px;
}

nav a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff6b6b;
}

h2 {
    color: #ff6b6b;
    margin-top: 0;
}

h2 i {
    margin-right: 10px;
    color: #4ecdc4;
}

button {
    background-color: #4ecdc4;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1a936f;
}

.ad-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 100;
}

.ad-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.reward-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #ff6b6b;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 15px;
}

.download-button {
    display: inline-block;
    background-color: #4ecdc4;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 5px;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #1a936f;
}

.new-version-notice {
    color: red;
    font-weight: bold;
    margin-right: 10px;
}

.coming-soon {
    color: #999;
    font-style: italic;
}

.tuijian-button {
    display: inline-block;
    background-color: #4ecdc4;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 5px;
    transition: background-color 0.3s;
}

.tuijian-button:hover {
    background-color: #1a936f;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #666;
}

footer a {
    color: #4ecdc4;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    nav li {
        margin: 0 10px;
    }
    
    .ad-window {
        width: 90%;
        max-width: 300px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}