/* ============================================================
   PureMC 服务器官网 · 介绍.css（服务器特色页）
   与首页同一视觉体系：暗色像素风 · MC蓝 · 硬边框 · 克制动效
   ============================================================ */

/* ---------- 视觉 token（与 style.css 一致） ---------- */
:root {
    --bg: #0f1214;
    --bg-elev: #171b20;
    --bg-elev2: #1e242c;
    --primary: #3FA9F5;
    --gold: #FFAA00;
    --red: #FF5555;
    --blue: #55FFFF;
    --text: #e8e8e8;
    --text-sub: #98a2ad;
    --border: #2a3038;
    --border-strong: #3a4350;
    --shadow-hard: 4px 4px 0 rgba(0,0,0,.45);
    --radius: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
    padding-bottom: 40px;
    background-image:
        radial-gradient(rgba(63,169,245,.03) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* ---------- 导航栏（与首页一致） ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15,18,20,.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 2px solid var(--border);
    box-shadow: 0 2px 0 rgba(0,0,0,.4);
}
.nav-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000;
    cursor: default;
    user-select: none;
}
.nav-logo-icon {
    width: 26px;
    height: 26px;
    image-rendering: pixelated;
    flex-shrink: 0;
}
.nav-logo::after {
    content: "PureMC, Tikeds旗下的MINECRAFT服务器";
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 12px;
    padding: 8px 12px;
    background: #0d1117;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
    border: 2px solid var(--primary);
    box-shadow: 4px 4px 0 rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 60;
    pointer-events: none;
}
.nav-logo:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a {
    color: #c7cdd3;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: color .25s, border-color .25s, text-shadow .25s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    text-shadow: 0 0 10px rgba(63,169,245,.5);
}

/* ---------- 汉堡菜单（移动端） ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px; height: 44px;
    background: var(--bg-elev);
    border: 2px solid var(--border-strong);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 10px;
    transition: background .2s, border-color .2s;
}
.hamburger:hover { background: var(--bg-elev2); border-color: var(--primary); }
.hamburger span { display: block; height: 2px; background: var(--primary); border-radius: 1px; transition: all .3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 在线玩家指示器（与首页一致） ---------- */
.player-indicator {
    display: flex; align-items: center; gap: 8px;
    background: rgba(63,169,245,.08); border: 1px solid rgba(63,169,245,.25);
    border-radius: 20px; padding: 4px 14px 4px 10px;
    font-size: .8rem; color: var(--primary); cursor: default;
    position: relative; transition: all .3s; white-space: nowrap;
}
.player-indicator:hover { background: rgba(63,169,245,.16); border-color: rgba(63,169,245,.45); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #555; flex-shrink: 0; transition: background .3s; }
.status-dot.online { background: var(--primary); box-shadow: 0 0 7px rgba(63,169,245,.7); }
.status-dot.offline { background: var(--red); box-shadow: 0 0 7px rgba(255,85,85,.7); }
.player-text strong { color: var(--primary); font-weight: 800; }
.player-tooltip {
    display: none; position: absolute; top: calc(100% + 10px); right: 0;
    background: rgba(13,16,19,.98); border: 1px solid rgba(63,169,245,.25);
    border-radius: 6px; padding: 12px 16px; min-width: 190px; max-width: 300px;
    z-index: 1001; box-shadow: 4px 4px 0 rgba(0,0,0,.5);
    text-align: left;
}
.player-indicator:hover .player-tooltip { display: block; }
.tooltip-title { font-size: .72rem; color: var(--text-sub); margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: 6px; }
.tooltip-names { display: flex; flex-wrap: wrap; gap: 6px; }
.tooltip-name { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: #d9dfe5; background: rgba(255,255,255,.05); border-radius: 4px; padding: 3px 8px; }
.tooltip-name img { width: 16px; height: 16px; border-radius: 2px; image-rendering: pixelated; }
.tooltip-empty { color: #6b7480; font-size: .8rem; font-style: italic; }
.tooltip-error { color: var(--red); font-size: .8rem; }

/* ---------- 页面主容器 ---------- */
.container { max-width: 1000px; margin: 0 auto; padding: 120px 24px 0; }

/* ---------- 区块标题 ---------- */
.section-title {
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin: 56px 0 26px;
}
.section-title::before, .section-title::after {
    content: "";
    width: 26px; height: 4px;
    background: var(--primary);
    box-shadow: 2px 2px 0 rgba(0,0,0,.4);
    border-radius: 1px;
}

/* ---------- 引言区 ---------- */
.intro-hook {
    text-align: center;
    margin-bottom: 20px;
    padding: 44px 30px;
    background: var(--bg-elev);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
}
.hook-question { font-size: 1.12rem; font-style: italic; color: var(--text-sub); margin-bottom: 22px; max-width: 40em; margin-left: auto; margin-right: auto; }
.hook-answer { font-size: 1.02rem; color: #d5dce2; max-width: 42em; margin-left: auto; margin-right: auto; }

/* ---------- 核心承诺卡片 ---------- */
.promise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}
.promise-card {
    background: var(--bg-elev);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px 34px;
    box-shadow: var(--shadow-hard);
    transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.promise-card:hover {
    transform: translate(-3px,-3px);
    box-shadow: 7px 7px 0 rgba(0,0,0,.5);
    background: var(--bg-elev2);
    border-color: rgba(63,169,245,.4);
}
.card-icon { width: 46px; height: 46px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.promise-card h3 { font-size: 1.12rem; margin-bottom: 10px; font-weight: 800; }
.promise-card p { font-size: .9rem; color: var(--text-sub); }

/* ---------- 为什么选择我们 ---------- */
.benefit-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}
.benefit-list li {
    background: var(--bg-elev);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 3px 3px 0 rgba(0,0,0,.4);
    transition: border-color .2s;
}
.benefit-list li:hover { border-color: rgba(63,169,245,.4); }
.tag {
    background: rgba(63,169,245,.15);
    color: var(--primary);
    padding: 2px 9px;
    border-radius: 3px;
    font-size: .8rem;
    font-weight: bold;
    white-space: nowrap;
    border: 1px solid rgba(63,169,245,.3);
}

/* ---------- 服务器信息面板 ---------- */
.server-info-panel {
    background: rgba(63,169,245,.05);
    border: 2px solid rgba(63,169,245,.25);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-hard);
    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: .95rem; }
.ip-address {
    background: rgba(0,0,0,.4);
    color: var(--primary);
    padding: 6px 18px;
    border: 1px solid rgba(63,169,245,.3);
    border-radius: var(--radius);
    font-family: "Courier New", monospace;
    font-size: 1rem;
    letter-spacing: 1px;
    user-select: all;
    cursor: pointer;
    transition: box-shadow .2s, text-shadow .2s;
}
.ip-address:hover { box-shadow: 0 0 12px rgba(63,169,245,.4); }
.group-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed rgba(63,169,245,.5);
    transition: all .2s;
}
.group-link:hover { color: #fff; border-bottom-color: #fff; text-shadow: 0 0 8px rgba(63,169,245,.5); }

/* ---------- 贡献者区块 ---------- */
.contributors-section { margin-top: 40px; 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-elev);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 3px 3px 0 rgba(0,0,0,.4);
    transition: all .25s;
}
.contributor-card:hover { background: rgba(63,169,245,.08); border-color: rgba(63,169,245,.35); transform: translate(-1px,-1px); }
.contributor-name { color: #fff; font-size: 16px; font-weight: 700; }
.contributor-role { color: var(--primary); font-size: 12px; letter-spacing: .5px; }

/* ---------- 底部号召 ---------- */
.cta-footer {
    text-align: center;
    padding: 40px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elev);
    box-shadow: var(--shadow-hard);
    margin-top: 20px;
}
.slogan { font-size: 1.4rem; color: var(--primary); margin-bottom: 14px; text-shadow: 0 0 12px rgba(63,169,245,.3); font-weight: 800; }
.sub-slogan { color: var(--text-sub); font-size: .95rem; max-width: 44em; margin-left: auto; margin-right: auto; }
.sub-slogan strong { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .navbar { padding: 12px 18px; }
    .hamburger { display: flex; order: 3; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        gap: 0;
        background: rgba(15,18,20,.98);
        border-bottom: 2px solid var(--border);
        max-height: 0; overflow: hidden;
        transition: max-height .35s ease;
    }
    .nav-links.open { max-height: 320px; }
    .nav-links a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--border); }
    .container { padding: 108px 18px 0; }
    .section-title { font-size: 1.35rem; }
    .promise-card { padding: 24px 20px; }
    .nav-right { gap: 12px; }
    .player-indicator { padding: 3px 10px 3px 8px; font-size: .7rem; }
    .player-tooltip { min-width: 150px; right: -10px; }
    .server-info-panel { padding: 22px; }
}

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
a:focus-visible, .ip-address:focus-visible, .hamburger:focus-visible {
    outline: 2px solid var(--gold); outline-offset: 2px;
}
