* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", system-ui, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at 15% 10%, rgba(140, 90, 255, 0.35), transparent 30%),
                radial-gradient(circle at 85% 25%, rgba(110, 70, 220, 0.28), transparent 32%),
                radial-gradient(circle at 50% 90%, rgba(90, 50, 190, 0.32), transparent 35%),
                linear-gradient(180deg, #0c0a20, #1a1438, #241c4e);
    color: #e7eeff;
    padding-top: 64px;
    padding-bottom: 30px;
    padding-left: max(12px, calc(50% - 620px));
    padding-right: max(12px, calc(50% - 620px));
    line-height: 1.85;
    position: relative;
    overflow-x: hidden;
}
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}
.snowflake {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 6px rgba(200,180,255,0.7);
    animation: snowFall linear infinite;
}
@keyframes snowFall {
    0% {transform: translateY(-10px) rotate(0deg);opacity: 0;}
    12% { opacity: 0.85; }
    88% { opacity: 0.85; }
    100% {transform: translateY(100vh) rotate(360deg);opacity: 0;}
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 12, 45, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(140,90,255,0.3);
    padding: 12px max(12px, calc(50% - 620px));
    z-index: 999;
    transition: all 0.3s ease;
    animation: navFadeIn 1s ease-out;
}
@keyframes navFadeIn {
    from { transform: translateY(-12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
nav.scroll-down {
    background: rgba(15, 8, 38, 0.88);
    padding: 8px max(12px, calc(50% - 620px));
    box-shadow: 0 4px 20px rgba(120,70,230,0.15);
}
.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    color: #d1c4ff;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-logo:hover {
    color: #b4a0ff;
    text-shadow: 0 0 10px rgba(180,160,255,0.5);
}
.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}
.nav-links a {
    color: #c3cde2;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg,#a78bfa,#8b5cf6);
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: #d1c4ff;
}
.nav-links a:hover::after {
    width: 100%;
}
/* 导航下载按钮 */
.download-nav-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg,#8b5cf6,#6366f1);
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.25s;
}
.download-nav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px #8b5cf680;
}
.nav-toggle {
    display: none;
    color: #d1c4ff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.nav-toggle:hover {
    transform: scale(1.15);
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(20, 12, 45, 0.85);
        backdrop-filter: blur(14px);
        flex-direction: column;
        padding: 16px;
        gap: 12px;
        border-bottom: 1px solid rgba(140,90,255,0.3);
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    .nav-toggle {
        display: block;
    }
}
header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(140,90,255,0.25);
    margin-bottom: 38px;
    animation: fadeUp 0.8s ease-out;
    position: relative;
    z-index: 2;
}
h1 {
    font-size: 2.7rem;
    color: #d1c4ff;
    margin-bottom: 8px;
    transition: text-shadow 0.3s ease;
}
h1:hover {
    text-shadow: 0 0 16px rgba(167,139,250,0.45);
}
.web-desc {
    color: #c3cde2;
    font-size: 1.1rem;
}
.version-text {
    margin-top: 10px;
    color: #b4a0ff;
    font-size: 1rem;
}
section {
    background: rgba(35, 25, 65, 0.65);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 26px;
    border: 1px solid rgba(140,90,255,0.28);
    transition: all 0.35s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 2;
}
section.show {
    opacity: 1;
    transform: translateY(0);
}
section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139,92,246,0.18);
    border-color: rgba(140,90,255,0.5);
}
h2 {
    border-left: 5px solid transparent;
    border-image: linear-gradient(180deg,#a78bfa,#8b5cf6) 1;
    padding-left: 14px;
    color: #e1d9ff;
    margin-bottom: 18px;
    font-size: 1.4rem;
    transition: border-image 0.3s ease;
}
section:hover h2 {
    border-image: linear-gradient(180deg,#c4b5fd,#a78bfa) 1;
}
.info-card {
    background: rgba(50, 38, 88, 0.6);
    backdrop-filter: blur(14px);
    border-radius: 12px;
    margin-top: 14px;
    padding: 20px;
    border: 1px solid rgba(140,90,255,0.22);
    transition: all 0.3s ease;
}
.info-card:hover {
    box-shadow: 0 0 18px rgba(139,92,246,0.15);
    border-color: rgba(140,90,255,0.4);
}
.copy-text {
    color: #c4b5fd;
    font-weight: bold;
    user-select: all;
    cursor: copy;
}
.copy-btn {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 10px;
    background: linear-gradient(135deg,#8b5cf6,#6366f1);
    color: #0c0a20;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}
.copy-btn:hover {
    background: linear-gradient(135deg,#a78bfa,#8b5cf6);
    box-shadow: 0 0 12px rgba(139,92,246,0.45);
    transform: scale(1.05);
}
.copy-btn:active {
    transform: scale(0.96);
}
.activity-notice {
    background: rgba(70, 40, 140, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(140,90,255,0.4);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    transition: box-shadow 0.3s ease;
}
.activity-notice:hover {
    box-shadow: 0 0 20px rgba(139,92,246,0.22);
}
ul {
    padding-left: 26px;
}
li {
    margin: 11px 0;
    transition: transform 0.2s ease;
}
li:hover {
    transform: translateX(6px);
    color: #d1c4ff;
}
#server-status {
    font-size: 1.05rem;
}
footer {
    text-align: center;
    margin-top: 70px;
    color: #a0a8cc;
    font-size: 0.9rem;
    animation: fadeUp 1s ease-out;
    position: relative;
    z-index: 2;
}
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 10px 22px;
    background: linear-gradient(135deg,#8b5cf6,#a78bfa);
    color: #0c0a20;
    border-radius: 8px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
}
.toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@keyframes fadeUp {
    from {opacity: 0;transform: translateY(24px);}
    to {opacity: 1;transform: translateY(0);}
}

/* 下载弹窗全局样式 */
.download-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.download-modal.show {
    opacity: 1;
    pointer-events: all;
}
.modal-box {
    background: #1a1438;
    border: 1px solid #8b5cf680;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    min-width: 320px;
}
.modal-box h3 {
    color: #d1c4ff;
    margin-bottom: 24px;
    font-size: 1.4rem;
}
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}
.btn-android {
    padding: 12px;
    background: #3ddc84;
    color: #000;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}
.btn-android:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px #3ddc8480;
}
.btn-ios {
    padding: 12px;
    background: #007aff;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}
.btn-ios:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px #007aff80;
}
.close-modal {
    padding: 8px 20px;
    background: #444;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}
.close-modal:hover {
    background: #666;
}
