/* ===== 龍鸣·传奇发布网 全局样式 ===== */
:root {
    --gold: #d4a94a;
    --gold-light: #ffe08a;
    --fire: #c0392b;
    --fire2: #8a1c1c;
    --dark: #0d0a1a;
    --dark2: #16102a;
    --text: #e8e2f0;
    --muted: #a89fc0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
}
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 顶部公告条 */
.topbar {
    background: linear-gradient(90deg, #1a0e00, #3a1500, #1a0e00);
    color: #ffd28a;
    font-size: 13px;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gold);
}

/* 头部 */
.header {
    background: var(--dark2);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}
.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(212,169,74,.5);
}
.logo span { color: var(--fire); }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
    padding: 8px 18px;
    border-radius: 6px;
    color: var(--text);
    font-size: 15px;
    transition: .2s;
}
.nav a:hover, .nav a.active {
    background: var(--gold);
    color: #1a0e00;
    font-weight: 700;
}

/* Banner */
.banner {
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--gold);
}
.banner img { width: 100%; height: auto; }

/* 通用区块 */
.section { padding: 45px 0; }
.section-title {
    text-align: center;
    margin-bottom: 30px;
}
.section-title h2 {
    font-size: 28px;
    color: var(--gold-light);
    display: inline-block;
    padding: 0 20px 10px;
    border-bottom: 2px solid var(--fire);
}
.section-title p { color: var(--muted); margin-top: 8px; font-size: 14px; }

/* 统计卡片 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: -30px;
    position: relative;
    z-index: 5;
}
.stat-card {
    background: linear-gradient(135deg, var(--dark2), #1f1538);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,.4);
}
.stat-card .num {
    font-size: 40px;
    font-weight: 800;
    color: var(--gold-light);
}
.stat-card .label { color: var(--muted); font-size: 14px; }

/* 开服表格 */
.server-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dark2);
    border-radius: 10px;
    overflow: hidden;
    font-size: 15px;
}
.server-table th {
    background: linear-gradient(90deg, var(--fire2), var(--fire));
    color: #fff;
    padding: 14px 12px;
    text-align: left;
}
.server-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(212,169,74,.15);
}
.server-table tr:hover td { background: rgba(212,169,74,.08); }
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.tag-hot { background: var(--fire); color: #fff; }
.tag-new { background: #1e8449; color: #fff; }
.tag-rec { background: var(--gold); color: #1a0e00; }
.play-btn {
    background: var(--gold);
    color: #1a0e00;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
}
.play-btn:hover { background: var(--gold-light); color: #000; }

/* 版本库卡片 */
.version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.version-card {
    background: linear-gradient(160deg, var(--dark2), #1a1230);
    border: 1px solid rgba(212,169,74,.3);
    border-radius: 12px;
    padding: 25px 22px;
    transition: .25s;
}
.version-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212,169,74,.2);
}
.version-card h3 { color: var(--gold-light); margin-bottom: 10px; font-size: 20px; }
.version-card .badge {
    font-size: 12px;
    background: var(--fire);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}
.version-card ul { list-style: none; margin-top: 12px; }
.version-card li {
    padding: 5px 0 5px 22px;
    position: relative;
    font-size: 14px;
    color: #d3cae0;
}
.version-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* 宣传图区块 */
.promo {
    text-align: center;
    background: linear-gradient(180deg, var(--dark), #120c24, var(--dark));
    padding: 50px 0;
}
.promo img {
    margin: 0 auto;
    border: 3px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(212,169,74,.35);
}

/* 攻略资讯 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.news-card {
    background: var(--dark2);
    border: 1px solid rgba(212,169,74,.25);
    border-radius: 10px;
    overflow: hidden;
    transition: .25s;
    display: flex;
    flex-direction: column;
}
.news-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.news-card .news-body { padding: 18px; flex: 1; }
.news-card .news-meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.news-card h3 { font-size: 18px; color: var(--gold-light); margin-bottom: 10px; }
.news-card p { font-size: 14px; color: #c7bfd8; }
.news-card .read-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--fire);
    font-weight: 700;
    font-size: 14px;
}

/* 文章详情页 */
.article-page { padding: 40px 0; }
.article-page .content {
    background: var(--dark2);
    border: 1px solid rgba(212,169,74,.3);
    border-radius: 12px;
    padding: 35px 40px;
    max-width: 860px;
    margin: 0 auto;
}
.article-page .content h1 {
    color: var(--gold-light);
    font-size: 28px;
    margin-bottom: 12px;
    line-height: 1.4;
}
.article-meta { color: var(--muted); font-size: 13px; margin-bottom: 25px; border-bottom: 1px solid rgba(212,169,74,.2); padding-bottom: 12px; }
.article-page .content h2 { color: var(--gold); font-size: 21px; margin: 28px 0 12px; }
.article-page .content p { margin-bottom: 16px; font-size: 16px; color: #ddd5e8; }
.article-page .content ul { margin: 12px 0 16px 22px; }
.article-page .content li { margin-bottom: 8px; }
.back-link { display: inline-block; margin-top: 25px; color: var(--gold); font-weight: 700; }

/* 文章列表 */
.article-list { max-width: 860px; margin: 0 auto; }
.article-list-item {
    background: var(--dark2);
    border: 1px solid rgba(212,169,74,.2);
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 18px;
    transition: .2s;
}
.article-list-item:hover { border-color: var(--gold); }
.article-list-item h3 { color: var(--gold-light); font-size: 20px; margin-bottom: 8px; }
.article-list-item .desc { color: #c7bfd8; font-size: 14px; margin-bottom: 10px; }
.article-list-item .read { color: var(--fire); font-weight: 700; font-size: 14px; }

/* 页脚 */
.footer {
    background: #08060f;
    border-top: 2px solid var(--gold);
    padding: 35px 0 20px;
    text-align: center;
    margin-top: 40px;
}
.footer .links { margin-bottom: 15px; }
.footer .links a { margin: 0 12px; font-size: 14px; }
.footer .copyright { color: var(--muted); font-size: 13px; line-height: 1.9; }
.footer .warn { color: #e67e22; font-size: 13px; margin-top: 10px; }

/* 回到顶部 */
#backTop {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 46px;
    height: 46px;
    background: var(--gold);
    color: #1a0e00;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
    z-index: 99;
}
#backTop:hover { background: var(--gold-light); }

/* 响应式 */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; }
    .nav { justify-content: center; }
    .section-title h2 { font-size: 22px; }
    .server-table { font-size: 13px; }
    .server-table th, .server-table td { padding: 10px 6px; }
    .article-page .content { padding: 22px 18px; }
}
