/* ========== 全局基础 ========== */
:root {
    --primary: #55FF55;
    --bg-dark: #121212;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #eeeeee;
    --text-sub: #aaaaaa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.8;
    padding-bottom: 60px;
}

/* --- 导航栏样式 --- */
.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);
}

/* 在线玩家指示器 */
.player-indicator {
    display: flex; align-items: center; gap: 8px;
    background: rgba(85,255,85,0.08); border: 1px solid rgba(85,255,85,0.2);
    border-radius: 20px; padding: 4px 14px 4px 10px;
    font-size: 0.8rem; color: #55FF55; cursor: default;
    position: relative; transition: all 0.3s; white-space: nowrap;
}
.player-indicator:hover { background: rgba(85,255,85,0.15); border-color: rgba(85,255,85,0.4); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #555; flex-shrink: 0; transition: background 0.3s; }
.status-dot.online { background: #55FF55; box-shadow: 0 0 6px rgba(85,255,85,0.6); }
.status-dot.offline { background: #FF5555; box-shadow: 0 0 6px rgba(255,85,85,0.6); }
.player-text strong { color: #55FF55; font-weight: bold; }

/* 悬浮玩家列表 */
.player-tooltip {
    display: none; position: absolute; top: calc(100% + 10px); right: 0;
    background: rgba(20,20,20,0.98); border: 1px solid rgba(85,255,85,0.2);
    border-radius: 10px; padding: 12px 16px; min-width: 180px; max-width: 280px;
    z-index: 1001; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.player-indicator:hover .player-tooltip { display: block; }
.tooltip-title { font-size: 0.75rem; color: #888; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 6px; }
.tooltip-names { display: flex; flex-wrap: wrap; gap: 6px; }
.tooltip-name {
    display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: #ddd;
    background: rgba(255,255,255,0.04); border-radius: 4px; padding: 3px 8px;
}
.tooltip-name img { width: 16px; height: 16px; border-radius: 2px; image-rendering: pixelated; }
.tooltip-empty { color: #666; font-size: 0.8rem; font-style: italic; }
.tooltip-error { color: #FF5555; font-size: 0.8rem; }




/* --- 响应式适配（合并后的媒体查询） --- */
@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%; }
}
/* 导航栏右侧布局 */
.nav-right { display: flex; align-items: center; gap: 24px; }


/* ========== 引言区 ========== */
.intro-hook {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(85,255,85,0.03) 0%, transparent 100%);
    border-radius: 16px;
}

.hook-question {
    font-size: 1.15rem;
    font-style: italic;
    color: #999;
    margin-bottom: 24px;
}

.hook-answer { font-size: 1.05rem; color: #ddd; }

/* ========== 核心承诺卡片 ========== */
.promise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.promise-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.promise-card:hover {
    border-color: rgba(85,255,85,0.3);
    transform: translateY(-3px);
    background: rgba(85,255,85,0.04);
}

.card-icon { font-size: 2rem; margin-bottom: 12px; }
.promise-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.promise-card p { font-size: 0.9rem; margin: 0; }

/* ========== 为什么选择我们 ========== */
.benefit-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 50px;
}

.benefit-list li {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag {
    background: rgba(85,255,85,0.15);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}

/* ========== 服务器信息面板 ========== */
.server-info-panel {
    background: rgba(85,255,85,0.06);
    border: 1px solid rgba(85,255,85,0.2);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.info-row .label {
    color: var(--text-sub);
    min-width: 100px;
    font-size: 0.95rem;
}

.ip-address {
    background: rgba(0,0,0,0.4);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    letter-spacing: 1px;
    user-select: all;
    cursor: pointer;
}

.group-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed rgba(85,255,85,0.4);
    transition: all 0.2s;
}

.group-link:hover {
    color: #fff;
    border-bottom-color: #fff;
    text-shadow: 0 0 8px rgba(85,255,85,0.5);
}

/* ========== 贡献者区块 ========== */
.contributors-section {
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
    scroll-margin-top: 74px;
}

.contributor-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.contributor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.contributor-card:hover {
    background: rgba(85,255,85,0.08);
    border-color: rgba(85,255,85,0.3);
    transform: translateY(-2px);
}

.contributor-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.contributor-role {
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* ========== 底部号召 ========== */
.cta-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.slogan {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 14px;
    text-shadow: 0 0 12px rgba(85,255,85,0.3);
}

.sub-slogan {
    color: var(--text-sub);
    font-size: 0.95rem;
}

.sub-slogan strong { color: #fff; }

/* 移动端适配补充 */
@media (max-width: 768px) {
    .nav-right { gap: 12px; }
    .player-indicator { padding: 3px 10px 3px 8px; font-size: 0.7rem; }
    .player-tooltip { min-width: 150px; right: -20px; }
}
body {
    /* 1. 限制页面最大宽度，防止在大屏幕上太宽 */
    max-width: 1200px; 

    /* 2. 关键属性：上下边距为0，左右边距自动计算（实现水平居中） */
    margin: 0 auto; 
    
    /* 3. 保持背景色铺满全屏（根据你的截图是深色） */
    background-color: #1a1a1a; /* 如果 body 没背景色，这里可以加上 */
    
    /* 4. 防止内容在小屏幕手机上贴边 */
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box; 
}