/* ===== 全局重置与基础样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: #0a0a1a;
    color: #e0e0e0;
    line-height: 1.8;
    overflow-x: hidden;
}
a { text-decoration: none; color: #f0c060; transition: color .3s; }
a:hover { color: #ffd700; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== 顶部导航 ===== */
.header {
    background: linear-gradient(135deg, #1a1a3e 0%, #0d0d2b 100%);
    border-bottom: 2px solid #f0c060;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 20px rgba(240,192,96,.2);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}
.logo {
    font-size: 28px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255,215,0,.5);
    letter-spacing: 2px;
}
.logo span { color: #ff4500; }
.nav-menu {
    display: flex;
    gap: 10px;
}
.nav-menu a {
    color: #ccc;
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
}
.nav-menu a:hover, .nav-menu a.active {
    background: linear-gradient(90deg, #f0c060, #ff8c00);
    color: #1a1a2e;
    font-weight: 700;
}

/* ===== 搜索栏 ===== */
.search-bar {
    background: #111133;
    padding: 15px 0;
    border-bottom: 1px solid #222;
}
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    padding: 0 20px;
}
.search-container input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #0d0d2b;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border .3s;
}
.search-container input:focus { border-color: #f0c060; }
.search-container button {
    padding: 12px 30px;
    background: linear-gradient(90deg, #f0c060, #ff8c00);
    border: none;
    border-radius: 8px;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s;
}
.search-container button:hover { transform: scale(1.05); }

/* ===== 主内容区 ===== */
.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* ===== 轮播图 ===== */
.banner-section { margin-bottom: 30px; }
.banner-slider {
    position: relative;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
}
.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.8);
}
.banner-slide.active { opacity: 1; }
.banner-slide:nth-child(1) { background: linear-gradient(135deg, #1e3c72, #2a5298); }
.banner-slide:nth-child(2) { background: linear-gradient(135deg, #6b1d3a, #c0392b); }
.banner-slide:nth-child(3) { background: linear-gradient(135deg, #1a5632, #27ae60); }
.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.banner-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
}
.banner-dots span.active { background: #ffd700; }

/* ===== 区块标题 ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #222;
}
.section-title .icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #f0c060, #ff8c00);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.section-title h2 {
    font-size: 22px;
    color: #ffd700;
    flex: 1;
}
.section-title .more {
    font-size: 14px;
    color: #888;
}
.section-title .more:hover { color: #ffd700; }

/* ===== 服务器列表 ===== */
.server-list { margin-bottom: 40px; }
.server-item {
    display: grid;
    grid-template-columns: 60px 1fr 100px 120px 100px;
    align-items: center;
    padding: 15px;
    background: #111133;
    border: 1px solid #222;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all .3s;
}
.server-item:hover {
    border-color: #f0c060;
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(240,192,96,.15);
}
.server-rank {
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}
.server-rank.gold { color: #ffd700; }
.server-rank.silver { color: #c0c0c0; }
.server-rank.bronze { color: #cd7f32; }
.server-info h3 {
    font-size: 17px;
    color: #fff;
    margin-bottom: 5px;
}
.server-info p {
    font-size: 13px;
    color: #888;
}
.server-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
}
.tag-hot { background: #ff4500; color: #fff; }
.tag-new { background: #00b894; color: #fff; }
.tag-vip { background: #6c5ce7; color: #fff; }
.tag-rec { background: #e17055; color: #fff; }
.server-version {
    text-align: center;
    color: #aaa;
    font-size: 14px;
}
.server-time {
    text-align: center;
    color: #888;
    font-size: 13px;
}
.server-btn {
    text-align: center;
}
.server-btn a {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(90deg, #f0c060, #ff8c00);
    color: #1a1a2e;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
}
.server-btn a:hover { color: #fff; }

/* ===== 筛选标签 ===== */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-bar a {
    padding: 6px 18px;
    background: #1a1a3e;
    border: 1px solid #333;
    border-radius: 20px;
    color: #aaa;
    font-size: 14px;
}
.filter-bar a.active, .filter-bar a:hover {
    background: #f0c060;
    color: #1a1a2e;
    border-color: #f0c060;
    font-weight: 600;
}

/* ===== 攻略资讯 ===== */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.news-card {
    background: #111133;
    border: 1px solid #222;
    border-radius: 10px;
    overflow: hidden;
    transition: all .3s;
}
.news-card:hover {
    border-color: #f0c060;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(240,192,96,.1);
}
.news-card .news-img {
    height: 160px;
    background: linear-gradient(135deg, #2a2a5e, #1a1a3e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.news-card .news-body { padding: 15px; }
.news-card h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.5;
}
.news-card p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}
.news-card .news-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* ===== 侧边栏 ===== */
.sidebar > div {
    background: #111133;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}
.sidebar h3 {
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
}
.sidebar .rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #1a1a3e;
}
.sidebar .rank-list li:last-child { border: none; }
.rank-num {
    width: 24px; height: 24px;
    background: #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.rank-num.top { background: linear-gradient(135deg, #f0c060, #ff8c00); color: #1a1a2e; }
.sidebar .rank-list .rank-info { flex: 1; }
.sidebar .rank-list .rank-info h4 { font-size: 14px; color: #ddd; }
.sidebar .rank-list .rank-info span { font-size: 12px; color: #777; }

.sidebar .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sidebar .tag-cloud a {
    padding: 5px 14px;
    background: #1a1a3e;
    border-radius: 4px;
    font-size: 13px;
    color: #aaa;
}
.sidebar .tag-cloud a:hover { background: #f0c060; color: #1a1a2e; }

/* ===== 开服表 ===== */
.timeline-section { margin-bottom: 40px; }
.timeline-table {
    width: 100%;
    border-collapse: collapse;
    background: #111133;
    border-radius: 10px;
    overflow: hidden;
}
.timeline-table th {
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    color: #fff;
    padding: 14px 15px;
    text-align: left;
    font-size: 14px;
}
.timeline-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #1a1a3e;
    font-size: 14px;
    color: #ccc;
}
.timeline-table tr:hover td { background: #161640; }
.timeline-table .status {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.status-open { background: #00b894; color: #fff; }
.status-wait { background: #e17055; color: #fff; }
.status-hot { background: #ff4500; color: #fff; }

/* ===== 文章页 ===== */
.article-page {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}
.article-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #222;
}
.article-header h1 {
    font-size: 28px;
    color: #ffd700;
    margin-bottom: 15px;
    line-height: 1.4;
}
.article-meta {
    color: #888;
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.article-body {
    background: #111133;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 40px;
    line-height: 2;
    font-size: 16px;
    color: #ddd;
}
.article-body h2 {
    font-size: 22px;
    color: #ffd700;
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 4px solid #f0c060;
}
.article-body h3 {
    font-size: 18px;
    color: #fff;
    margin: 25px 0 12px;
}
.article-body p {
    margin-bottom: 18px;
    text-indent: 2em;
}
.article-body ul, .article-body ol {
    margin: 15px 0 15px 30px;
}
.article-body li {
    margin-bottom: 10px;
    list-style: disc;
}
.article-body .tip-box {
    background: rgba(240,192,96,.1);
    border: 1px solid #f0c060;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}
.article-body .tip-box strong { color: #ffd700; }

/* ===== 页脚 ===== */
.footer {
    background: #080820;
    border-top: 2px solid #f0c060;
    padding: 40px 0 20px;
    margin-top: 50px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.footer-col h4 {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 15px;
}
.footer-col a, .footer-col p {
    color: #888;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}
.footer-col a:hover { color: #ffd700; }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 13px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}
.breadcrumb a { color: #aaa; }
.breadcrumb span { color: #f0c060; }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}
.pagination a {
    padding: 8px 15px;
    background: #1a1a3e;
    border: 1px solid #333;
    border-radius: 5px;
    color: #aaa;
    font-size: 14px;
}
.pagination a.active, .pagination a:hover {
    background: #f0c060;
    color: #1a1a2e;
    border-color: #f0c060;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .main-content { grid-template-columns: 1fr; }
    .nav-menu { display: none; }
    .server-item { grid-template-columns: 40px 1fr 80px; }
    .server-version, .server-time { display: none; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
    .banner-slider { height: 200px; }
}
