/* --- 基础重置与全局样式 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; /* 锚点跳转避开导航栏 */ }
body { 
    background-color: #1a1a1a; 
    min-height: 100vh; 
    font-family: 'Microsoft YaHei', sans-serif; 
    color: white; 
    text-align: center; 
    overflow-x: hidden; 
}

/* --- 导航栏样式 --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.nav-logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000;
}
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}
.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: #55FF55;
    text-shadow: 0 0 8px rgba(85,255,85,0.6);
}

/* --- Header 区域（调整了 padding-top） --- */
.header { 
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('download.jpg'); 
    background-size: cover; 
    background-position: center; 
    padding: 160px 20px 180px; /* ⬆️ 增加顶部内边距，避免被导航栏遮挡 */
    position: relative; 
}
.title-container { position: relative; display: inline-block; margin-bottom: 10px; }
h1 { 
    font-size: 60px; 
    text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.6), 0 0 30px rgba(255,255,255,0.4), 4px 4px 0 #000; 
    letter-spacing: 2px; 
    animation: float 3s ease-in-out infinite, glow 2s ease-in-out infinite alternate; 
    margin: 0; 
}
.splash-text { 
    position: absolute; 
    bottom: -10px; 
    right: -60px; 
    color: #FFFF55; 
    font-weight: bold; 
    font-size: 24px; 
    text-shadow: 2px 2px 0 #3f3f00; 
    transform: rotate(-20deg); 
    transform-origin: center; 
    white-space: nowrap; 
    z-index: 10; 
    animation: pulse 0.5s infinite alternate; 
    pointer-events: none; 
}
.subtitle { font-size: 20px; margin-top: 10px; color: #ddd; text-shadow: 2px 2px 0 #000; }

/* --- IP 复制框 --- */
.ip-box { 
    margin-top: 40px; 
    background: rgba(0,0,0,0.5); 
    backdrop-filter: blur(5px); 
    display: inline-block; 
    padding: 15px 40px; 
    border: 3px solid #55FF55; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    animation: ipGlow 2s ease-in-out infinite alternate; 
}
.ip-box:hover { background: #55FF55; transform: scale(1.05); box-shadow: 0 0 20px rgba(85,255,85,1); }
.ip-box p { font-size: 14px; color: #ccc; transition: 0.3s; }
.ip-box:hover p { color: #000; }
.ip-box h2 { color: #000; font-family: monospace; font-size: 24px; transition: 0.3s; }
.status-bar { margin-top: 20px; font-size: 16px; text-shadow: 1px 1px 0 #000; }

/* --- 特性卡片 --- */
.features { 
    max-width: 1000px; 
    margin: -60px auto 50px; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
    padding: 0 20px; 
    position: relative; 
    z-index: 10; 
}
.feature-item { 
    flex: 1; 
    min-width: 280px; 
    background: #222; 
    padding: 30px; 
    border-radius: 8px; 
    transition: all 0.3s ease; 
    border-bottom: 4px solid transparent; 
}
.feature-item:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); background: #2a2a2a; }
.feature-item h3 { margin: 15px 0 10px; font-size: 22px; }
.feature-item p { color: #999; font-size: 14px; line-height: 1.6; }

/* --- 底部与音乐按钮 --- */
.footer { background: #111; padding: 20px; margin-top: 50px; color: #666; font-size: 12px; }
#musicBtn { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 999; 
    padding: 10px 15px; 
    background: rgba(0,0,0,0.7); 
    color: #fff; 
    border: 2px solid #4CAF50; 
    border-radius: 10px; 
    cursor: pointer; 
    transition: 0.3s; 
    font-size: 16px; 
}
#musicBtn:hover { background: #4CAF50; color: #000; }

/* --- 动画关键帧 --- */
@keyframes pulse { from { transform: rotate(-20deg) scale(1); } to { transform: rotate(-20deg) scale(1.1); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glow { 
    from { text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.6), 0 0 30px rgba(255,255,255,0.4), 4px 4px 0 #000; } 
    to { text-shadow: 0 0 15px rgba(255,255,255,1), 0 0 30px rgba(255,255,255,0.8), 0 0 45px rgba(255,255,255,0.6), 0 0 60px rgba(255,255,255,0.4), 4px 4px 0 #000; } 
}
@keyframes ipGlow { from { box-shadow: 0 0 5px rgba(85,255,85,0.4); } to { box-shadow: 0 0 15px rgba(85,255,85,0.8); } }

/* --- 响应式适配（合并后的媒体查询） --- */
@media (max-width: 768px) {
    .navbar { padding: 12px 20px; }
    .nav-links { display: none; } /* 移动端暂隐藏，可后续扩展汉堡菜单 */
    .header { padding: 120px 20px 140px; } /* 移动端减少顶部间距 */
    h1 { font-size: 36px; }
    .splash-text { font-size: 16px; right: -30px; bottom: -5px; }
    .subtitle { font-size: 16px; }
    .ip-box { padding: 10px 20px; }
    .ip-box h2 { font-size: 18px; }
    .feature-item { min-width: 100%; }
}