/* ============================================================
   传奇私服发布网 - 全局样式
   主题：暗黑玄幻 + 暗红 / 暗金
   ============================================================ */

:root {
    --c-bg: #0d0b12;
    --c-panel: rgba(24, 18, 30, 0.92);
    --c-panel-2: rgba(31, 23, 40, 0.94);
    --c-red: #c8202a;
    --c-red-hi: #e0313c;
    --c-gold: #c9a24a;
    --c-gold-hi: #e8c46a;
    --c-text: #e8e4da;
    --c-text-dim: #b6adb0;
    --c-text-faint: #8a8387;
    --c-border: rgba(201, 162, 74, 0.22);
    --radius: 10px;
    --maxw: 1180px;
    --shadow: 0 8px 28px rgba(0,0,0,.45);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: "PingFang SC","Microsoft YaHei","Hiragino Sans GB","Helvetica Neue",Arial,sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: linear-gradient(180deg, rgba(13,11,18,.97), rgba(13,11,18,.88));
    border-bottom: 1px solid var(--c-border);
    backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.logo-text {
    font-size: 21px; font-weight: 800; color: var(--c-gold-hi);
    letter-spacing: 1px; text-shadow: 0 0 14px rgba(232,196,106,.35);
}
.main-nav { display: flex; gap: 6px; }
.main-nav a {
    padding: 8px 16px; border-radius: 6px; font-size: 15px;
    color: var(--c-text-dim); font-weight: 600;
}
.main-nav a:hover { color: var(--c-gold-hi); }
.main-nav a.active { color: #fff; background: linear-gradient(180deg, var(--c-red), #9a141c); box-shadow: 0 2px 10px rgba(200,32,42,.4); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--c-gold); }

/* ---------- 首屏 Hero ---------- */
.hero {
    position: relative;
    background: url("../images/bg-hero-01.png") center center / cover no-repeat;
    min-height: 460px;
    display: flex; align-items: center;
}
.hero::before {
    content:""; position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(13,11,18,.25), rgba(13,11,18,.55) 55%, rgba(13,11,18,.95));
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-tag {
    display: inline-block; padding: 4px 14px; margin-bottom: 16px;
    font-size: 13px; color: var(--c-gold-hi);
    border: 1px solid var(--c-gold); border-radius: 20px; letter-spacing: 1px;
    background: rgba(0,0,0,.3);
}
.hero h1 {
    font-size: 40px; line-height: 1.25; font-weight: 900;
    color: #fff; text-shadow: 0 4px 22px rgba(0,0,0,.6);
    margin-bottom: 12px;
}
.hero h1 .hl { color: var(--c-gold-hi); }
.hero p.sub { font-size: 17px; color: #ded6d0; max-width: 680px; }
.hero-update { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: #ffd9a0; font-size: 14px; }
.hero-update .dot { width: 9px; height: 9px; border-radius: 50%; background: #39d353; box-shadow: 0 0 10px #39d353; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* 统计卡片 */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 30px; }
.stat-card {
    background: rgba(0,0,0,.38); border: 1px solid rgba(201,162,74,.25);
    border-radius: var(--radius); padding: 14px 16px; text-align: center;
    backdrop-filter: blur(4px);
}
.stat-card b { display: block; font-size: 26px; color: var(--c-gold-hi); font-weight: 800; }
.stat-card span { font-size: 13px; color: var(--c-text-dim); }

/* ---------- 区块通用 ---------- */
.section { padding: 46px 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.section-title { font-size: 26px; font-weight: 800; color: var(--c-gold-hi); display: flex; align-items: center; gap: 10px; }
.section-title::before { content:""; width: 6px; height: 24px; background: var(--c-red); border-radius: 3px; box-shadow: 0 0 10px rgba(200,32,42,.6); }
.section-more { font-size: 14px; color: var(--c-text-dim); border-bottom: 1px solid var(--c-gold); padding-bottom: 2px; }
.section-more:hover { color: var(--c-gold-hi); }

/* ---------- 开服卡片 ---------- */
.servers-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.server-card {
    background: var(--c-panel); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.server-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.server-card .tag-hot {
    position: absolute; top: 12px; right: -28px; transform: rotate(38deg);
    background: linear-gradient(90deg, var(--c-red), #7a0e15); color:#fff;
    font-size: 11px; padding: 3px 34px; font-weight: 700;
}
.server-card h3 { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.ver-badge {
    display: inline-block; padding: 2px 10px; font-size: 12px; font-weight: 700;
    color: var(--c-gold-hi); border: 1px solid var(--c-gold); border-radius: 20px; white-space: nowrap;
}
.server-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; font-size: 13px; color: var(--c-text-dim); }
.server-meta i { font-style: normal; }
.server-meta .online { color: #4fd08a; }
.server-desc { font-size: 14px; color: var(--c-text-dim); margin-bottom: 16px; min-height: 42px; }
.server-actions { display: flex; gap: 12px; }
.btn {
    display: inline-block; padding: 9px 20px; border-radius: 6px; font-size: 14px; font-weight: 700; text-align: center;
}
.btn-red { background: linear-gradient(180deg, var(--c-red-hi), var(--c-red)); color: #fff; box-shadow: 0 3px 12px rgba(200,32,42,.35); }
.btn-red:hover { filter: brightness(1.08); }
.btn-line { border: 1px solid var(--c-gold); color: var(--c-gold-hi); }
.btn-line:hover { background: rgba(201,162,74,.12); }
.btn-full { width: 100%; }

/* ---------- 资讯 ---------- */
.section-news {
    background: url("../images/bg-news-02.png") center center / cover no-repeat;
}
.section-news::before { content:""; position:absolute; inset:0; background: rgba(13,11,18,.78); }
.section-news .container { position: relative; z-index: 2; }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.news-card {
    background: var(--c-panel-2); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card .cat {
    align-self: flex-start; font-size: 12px; color: var(--c-gold-hi);
    border: 1px solid var(--c-gold); border-radius: 4px; padding: 2px 9px; margin-bottom: 10px;
}
.news-card h3 { font-size: 17px; line-height: 1.5; font-weight: 700; margin-bottom: 8px; }
.news-card h3 a:hover { color: var(--c-gold-hi); }
.news-card p.excerpt { font-size: 13px; color: var(--c-text-dim); flex: 1; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; gap: 14px; font-size: 12px; color: var(--c-text-faint); }
.news-meta .views::before { content: "👁 "; }

/* ---------- 下载 ---------- */
.section-download { background: var(--c-panel); border-top: 1px solid var(--c-border); }
.download-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.dl-card {
    background: url("../images/bg-download-03.png") center center / cover no-repeat;
    border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 20px 18px; position: relative; overflow: hidden; text-align: center;
}
.dl-card::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(13,11,18,.2), rgba(13,11,18,.9)); }
.dl-card > * { position: relative; z-index: 2; }
.dl-icon { font-size: 34px; margin-bottom: 10px; }
.dl-card h3 { font-size: 17px; font-weight: 800; color:#fff; margin-bottom: 4px; }
.dl-size { font-size: 13px; color: var(--c-gold-hi); margin-bottom: 10px; }
.dl-card p { font-size: 12.5px; color: var(--c-text-dim); margin-bottom: 14px; min-height: 38px; }
.dl-card .btn { font-size: 13px; padding: 7px 0; }

/* ---------- SEO 正文 ---------- */
.seo-text { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 26px 28px; }
.seo-text h2 { font-size: 20px; color: var(--c-gold-hi); margin-bottom: 14px; }
.seo-text h3 { font-size: 16px; color: var(--c-gold); margin: 16px 0 8px; }
.seo-text p { margin-bottom: 12px; color: var(--c-text-dim); font-size: 14.5px; }
.seo-text ul { margin-bottom: 12px; padding-left: 4px; }
.seo-text ul li { padding: 4px 0 4px 22px; position: relative; color: var(--c-text-dim); }
.seo-text ul li::before { content:"⚔"; position:absolute; left:0; color: var(--c-gold); }
.seo-text b, .seo-text strong { color: var(--c-gold-hi); }
.seo-tags { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--c-border); }
.seo-tags span { display:inline-block; margin: 4px 8px 0 0; font-size: 12px; color: var(--c-text-faint); }

/* ---------- 页脚 ---------- */
.site-footer { background: url("../images/bg-footer-06.png") center center / cover no-repeat; border-top: 1px solid var(--c-border); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 40px 16px 24px; }
.footer-logo { font-size: 22px; font-weight: 800; color: var(--c-gold-hi); margin-bottom: 10px; }
.footer-slogan { font-size: 13.5px; color: var(--c-text-dim); max-width: 360px; }
.footer-links h4 { font-size: 15px; color: var(--c-gold); margin-bottom: 12px; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul a { font-size: 13.5px; color: var(--c-text-dim); }
.footer-links ul a:hover { color: var(--c-gold-hi); }
.footer-bottom { border-top: 1px solid rgba(201,162,74,.16); padding: 16px 0 22px; text-align: center; }
.footer-bottom p { font-size: 12.5px; color: var(--c-text-faint); margin-bottom: 4px; }
.footer-bottom a { color: var(--c-gold); }

/* ---------- 内页通用（开服表 / 资讯 / 文章） ---------- */
.page-hero {
    background: url("../images/bg-hero-01.png") center 20% / cover no-repeat;
    padding: 44px 0 30px; position: relative;
}
.page-hero::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(13,11,18,.5), rgba(13,11,18,.9)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 30px; color: #fff; font-weight: 900; }
.page-hero .crumb { font-size: 13px; color: var(--c-text-dim); margin-top: 8px; }
.page-hero .crumb a:hover { color: var(--c-gold-hi); }

.page-body { padding: 34px 0 46px; min-height: 420px; }

/* 开服表列表 */
.servers-list { display: flex; flex-direction: column; gap: 16px; }

/* 资讯列表 */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-list-item {
    background: var(--c-panel); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 18px;
}
.news-list-item .nl-cover { width: 180px; height: 120px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #000; }
.news-list-item .nl-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-list-item h2 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.news-list-item h2 a:hover { color: var(--c-gold-hi); }
.news-list-item .nl-excerpt { font-size: 13.5px; color: var(--c-text-dim); margin-bottom: 10px; }
.news-list-item .nl-meta { font-size: 12.5px; color: var(--c-text-faint); display: flex; gap: 16px; }

/* 文章详情 */
.article-wrap { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 30px 34px; }
.article-wrap h1 { font-size: 28px; line-height: 1.4; font-weight: 900; margin-bottom: 12px; color:#fff; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--c-text-faint); padding-bottom: 16px; border-bottom: 1px solid var(--c-border); margin-bottom: 22px; }
.article-content { font-size: 16px; color: var(--c-text); line-height: 1.9; }
.article-content p { margin-bottom: 16px; }
.article-content h2 { font-size: 20px; color: var(--c-gold-hi); margin: 22px 0 12px; }
.article-content ul { margin-bottom: 16px; padding-left: 20px; list-style: disc; }
.article-content img { border-radius: 8px; margin: 12px 0; }

/* ---------- 按钮/小工具 ---------- */
.empty { text-align: center; color: var(--c-text-faint); padding: 40px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .stats { grid-template-columns: repeat(2,1fr); }
    .news-grid { grid-template-columns: repeat(2,1fr); }
    .download-grid { grid-template-columns: repeat(2,1fr); }
    .servers-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
    .hero { min-height: 380px; }
    .hero h1 { font-size: 28px; }
}
@media (max-width: 600px) {
    .main-nav {
        position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
        background: rgba(13,11,18,.98); border-bottom: 1px solid var(--c-border);
        padding: 10px 16px; display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 8px; }
    .nav-toggle { display: flex; }
    .news-grid { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .news-list-item { flex-direction: column; }
    .news-list-item .nl-cover { width: 100%; height: 180px; }
    .article-wrap { padding: 22px 18px; }
    .article-wrap h1 { font-size: 22px; }
}
