/* ============================================================
   ARK 方舟僵尸服 - 全站样式（原创暗黑血红色僵尸主题）
   想换主题颜色：改下面 :root 里的 --accent 两个变量即可
   ============================================================ */

:root {
    --bg:         #0a0a0c;   /* 全站背景色（黑） */
    --bg-soft:    #121216;   /* 卡片背景色（深灰） */
    --border:     #24242b;   /* 卡片边框色（灰） */
    --text:       #eaeaec;   /* 正文颜色 */
    --muted:      #97979f;   /* 次要文字颜色（灰） */
    --accent:     #e03131;   /* 主题色（暗红） */
    --accent-dim: #9b1c1c;   /* 主题色·深（血红） */
    --radius:     14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(224, 49, 49, 0.09), transparent),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(127, 29, 29, 0.07), transparent);
    background-attachment: fixed;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- 两侧海报背景（宽屏才显示，不挡内容、不可点击） ---------- */
body::before, body::after {
    content: ""; position: fixed; top: 0; bottom: 0;
    width: 26vw; max-width: 420px;
    z-index: -1; pointer-events: none;
    background-size: cover; background-position: center top;
    opacity: 0.5;
}
body::before {
    left: 0; background-image: url("bg_left.jpg");
    -webkit-mask-image: linear-gradient(to right, #000 45%, transparent);
            mask-image: linear-gradient(to right, #000 45%, transparent);
}
body::after {
    right: 0; background-image: url("bg_right.jpg");
    -webkit-mask-image: linear-gradient(to left, #000 45%, transparent);
            mask-image: linear-gradient(to left, #000 45%, transparent);
}
@media (max-width: 1350px) {
    body::before, body::after { display: none; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶部导航 ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo:hover { text-decoration: none; }
.logo-img {
    width: 40px; height: 40px; display: block;
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(224, 49, 49, 0.4);
}
.logo-text { font-weight: 700; font-size: 17px; color: var(--text); }

.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a {
    color: var(--muted); font-size: 15px;
    padding: 8px 16px; border-radius: 8px;
    transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(224, 49, 49, 0.1); text-decoration: none; }
.nav a.active { color: var(--accent); background: rgba(224, 49, 49, 0.14); }

.nav-toggle {
    display: none; margin-left: auto;
    background: none; border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); font-size: 20px; padding: 4px 12px; cursor: pointer;
}

/* ---------- 首页大图区 ---------- */
.hero { text-align: center; padding: 90px 0 60px; }
.hero-tag {
    display: inline-block; font-size: 14px; color: var(--accent);
    border: 1px solid rgba(224, 49, 49, 0.4); border-radius: 999px;
    padding: 4px 18px; margin-bottom: 22px;
    background: rgba(224, 49, 49, 0.07);
}
.hero h1 {
    font-size: 52px; font-weight: 900; letter-spacing: 4px; line-height: 1.25;
    background: linear-gradient(120deg, #f8f8f8 30%, var(--accent) 70%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0 0 40px rgba(224, 49, 49, 0.22);
}
.hero p.slogan { font-size: 19px; color: var(--muted); margin: 16px 0 34px; }

.hero-ip {
    display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
    background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
    padding: 10px 12px 10px 24px;
}
.hero-ip .ip-label { color: var(--muted); font-size: 14px; }
.hero-ip .ip-addr { font-family: Consolas, monospace; font-size: 17px; color: var(--accent); letter-spacing: 1px; }
.hero-hint { color: var(--muted); font-size: 13px; margin-top: 14px; }
.hero-hint b { color: var(--text); }
.join-hint { color: var(--muted); font-size: 12px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block; border: none; cursor: pointer;
    font-size: 15px; font-weight: 700; border-radius: 999px;
    padding: 11px 26px; transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-red {
    color: #ffffff; background: linear-gradient(135deg, var(--accent), #a11212);
    box-shadow: 0 4px 20px rgba(224, 49, 49, 0.35);
}
.btn-red:hover { box-shadow: 0 6px 26px rgba(224, 49, 49, 0.5); }
.btn-ghost {
    color: var(--text); background: transparent;
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--accent); }
.btn-sm { padding: 7px 18px; font-size: 14px; }

/* ---------- 通用卡片与栅格 ---------- */
.section { padding: 40px 0; }
.section-title { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.section-title .accent { color: var(--accent); }
.section-desc { color: var(--muted); margin-bottom: 28px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    transition: border-color .2s, transform .15s, box-shadow .2s;
}
.card:hover {
    border-color: rgba(224, 49, 49, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* ---------- 服务器状态卡 ---------- */
.server-card { display: flex; flex-direction: column; gap: 14px; }
.server-head { display: flex; align-items: center; gap: 10px; }
.server-title { font-size: 18px; font-weight: 700; }

.status-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
    background: #3f3f46;
}
.status-dot.online {
    background: var(--accent); box-shadow: 0 0 10px var(--accent);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}
.status-text { font-size: 13px; color: var(--muted); margin-left: auto; }
.status-text.online { color: var(--accent); }

.server-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.server-meta b { color: var(--text); font-weight: 600; }
.server-meta .mono { font-family: Consolas, monospace; }

.progress {
    height: 10px; border-radius: 999px; overflow: hidden;
    background: rgba(224, 49, 49, 0.08); border: 1px solid var(--border);
}
.progress-bar {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    box-shadow: 0 0 12px rgba(224, 49, 49, 0.5);
    transition: width .6s ease;
}
.progress-label { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }

.server-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 特色卡片 ---------- */
.feature-card .icon { font-size: 34px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------- 步骤 ---------- */
.step-card { text-align: center; }
.step-num {
    width: 44px; height: 44px; line-height: 44px; margin: 0 auto 14px;
    border-radius: 50%; font-weight: 900; font-size: 19px;
    color: #ffffff; background: linear-gradient(135deg, var(--accent), #a11212);
}
.step-card h3 { font-size: 16px; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--muted); }

/* ---------- 下载区 ---------- */
.download-card { display: flex; flex-direction: column; gap: 10px; }
.badge {
    display: inline-block; font-size: 12px; font-weight: 700;
    padding: 2px 12px; border-radius: 999px; width: fit-content;
    color: #ffffff; background: var(--accent);
}
.badge.gray { background: #4b4b52; color: #f3f4f6; }
.download-card h3 { font-size: 17px; }
.download-card .desc { font-size: 14px; color: var(--muted); flex: 1; }
.download-card .size { font-size: 13px; color: var(--muted); }

/* ---------- VIP 页 ---------- */
.vip-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.vip-card.hot { border-color: var(--accent); box-shadow: 0 0 30px rgba(224, 49, 49, 0.15); }
.vip-hot-tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), #a11212); color: #ffffff;
    font-size: 13px; font-weight: 800; padding: 3px 16px; border-radius: 999px;
}
.vip-name { font-size: 19px; font-weight: 800; text-align: center; }
.vip-price { text-align: center; }
.vip-price .amount { font-size: 34px; font-weight: 900; color: var(--accent); }
.vip-price .period { color: var(--muted); font-size: 14px; }
.vip-features { list-style: none; flex: 1; }
.vip-features li {
    font-size: 14px; color: var(--text); padding: 7px 0 7px 26px;
    position: relative; border-bottom: 1px dashed var(--border);
}
.vip-features li::before {
    content: "✔"; position: absolute; left: 2px; color: var(--accent); font-weight: 700;
}

.buy-steps { counter-reset: step; }
.buy-steps li {
    list-style: none; padding: 10px 0; color: var(--text); font-size: 15px;
    border-bottom: 1px dashed var(--border);
}

/* ---------- 玩家列表表格 ---------- */
.table-wrap { overflow-x: auto; }
table.players { width: 100%; border-collapse: collapse; font-size: 14px; }
table.players th, table.players td {
    padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border);
}
table.players th { color: var(--muted); font-weight: 600; font-size: 13px; }
table.players tr:hover td { background: rgba(224, 49, 49, 0.05); }
.rank-1 { color: #fbbf24; font-weight: 800; }
.rank-2 { color: #d1d5db; font-weight: 700; }
.rank-3 { color: #d97706; font-weight: 700; }

/* ---------- 提示框 ---------- */
.notice {
    background: rgba(224, 49, 49, 0.06); border: 1px solid rgba(224, 49, 49, 0.26);
    border-radius: var(--radius); padding: 16px 22px; color: var(--muted); font-size: 14px;
}
.notice b { color: var(--accent); }

/* ---------- QQ 群横幅 ---------- */
.qq-banner {
    text-align: center; padding: 44px 24px;
    background: linear-gradient(135deg, rgba(224, 49, 49, 0.1), rgba(127, 29, 29, 0.06));
    border: 1px solid var(--border); border-radius: var(--radius);
}
.qq-banner h2 { font-size: 24px; margin-bottom: 8px; }
.qq-banner p { color: var(--muted); margin-bottom: 20px; }
.qq-num { font-family: Consolas, monospace; color: var(--accent); font-weight: 700; font-size: 20px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 40px 0 30px; }
.footer-inner { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.footer-brand .logo-img-sm { width: 30px; height: 30px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-note { color: #565661; font-size: 12.5px; line-height: 1.9; }

/* ---------- 小工具 ---------- */
.copy-btn {
    background: none; border: 1px solid var(--border); border-radius: 999px;
    color: var(--muted); font-size: 13px; padding: 6px 16px; cursor: pointer;
    transition: color .2s, border-color .2s;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent-dim); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* ---------- 手机适配 ---------- */
@media (max-width: 860px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 36px; }
}
@media (max-width: 600px) {
    .nav-toggle { display: block; }
    .nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; background: var(--bg-soft);
        border-bottom: 1px solid var(--border); padding: 10px;
    }
    .nav.open { display: flex; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 30px; letter-spacing: 2px; }
}
