/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c8a415;
    --primary-dark: #8b7109;
    --bg-dark: #0d0d0f;
    --bg-card: #15151a;
    --bg-card-hover: #1c1c24;
    --text-main: #e8e6df;
    --text-muted: #9a978e;
    --accent-red: #d4342d;
    --accent-gold: #f0c808;
    --border-color: #2a2a35;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 15px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.header {
    background: linear-gradient(180deg, #111114 0%, #0d0d0f 100%);
    border-bottom: 2px solid var(--primary-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo h1 {
    font-size: 26px;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(200,164,21,0.3);
}

.logo h1 a {
    color: var(--accent-gold);
}

.logo .slogan {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

.nav ul li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav ul li a:hover,
.nav ul li.active a {
    background: var(--primary-dark);
    color: #fff;
}

/* ===== 首屏区域 ===== */
.hero {
    background: linear-gradient(135deg, #1a1a0e 0%, #0d0d0f 50%, #1a0e0e 100%);
    padding: 60px 0 50px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(240,200,8,0.2);
}

.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===== 通用区块标题 ===== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.section-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}

.update-time {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== 开服列表 ===== */
.server-list-section {
    padding: 50px 0;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.server-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.server-table thead {
    background: linear-gradient(135deg, var(--primary-dark), #6b5607);
}

.server-table thead th {
    padding: 14px 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.server-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    white-space: nowrap;
}

.server-table tbody tr {
    background: var(--bg-card);
    transition: background 0.2s;
}

.server-table tbody tr:nth-child(even) {
    background: #121217;
}

.server-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.tag-176 { background: #2d5a27; color: #7dcea0; }
.tag-180 { background: #5a2d2d; color: #e74c3c; }
.tag-185 { background: #4a2d5a; color: #bb8fee; }
.tag-single { background: #5a4a2d; color: #f0c808; }
.tag-chenmo { background: #2d3a5a; color: #5dade2; }

.status.online { color: #2ecc71; }
.status.wait { color: #f39c12; }

.btn-play {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent-red);
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-play:hover {
    background: #b02a24;
    color: #fff;
}

/* ===== 版本分类 ===== */
.version-section {
    padding: 50px 0;
    background: #0f0f13;
}

.version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.version-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s;
    display: block;
    color: var(--text-main);
}

.version-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200,164,21,0.1);
    color: var(--text-main);
}

.version-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.version-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--accent-gold);
}

.version-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.version-card .count {
    display: inline-block;
    background: rgba(200,164,21,0.15);
    color: var(--primary);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* ===== 人气排行 ===== */
.ranking-section {
    padding: 50px 0;
}

.ranking-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-item:hover {
    background: var(--bg-card-hover);
}

.rank-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2a2a35;
    font-weight: 700;
    font-size: 14px;
    margin-right: 15px;
    color: var(--text-muted);
}

.rank-1 .rank-num {
    background: linear-gradient(135deg, #f0c808, #b8860b);
    color: #000;
}

.rank-2 .rank-num {
    background: linear-gradient(135deg, #c0c0c0, #808080);
    color: #000;
}

.rank-3 .rank-num {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: #fff;
}

.rank-name {
    flex: 1;
    font-weight: 500;
}

.rank-name a {
    color: var(--text-main);
}

.rank-name a:hover {
    color: var(--accent-gold);
}

.rank-version {
    font-size: 13px;
    color: var(--text-muted);
    width: 100px;
    text-align: center;
}

.rank-hot {
    font-size: 13px;
    color: var(--accent-red);
    width: 80px;
    text-align: right;
}

/* ===== 资讯列表 ===== */
.news-section {
    padding: 50px 0;
    background: #0f0f13;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 22px;
    transition: all 0.3s;
}

.news-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.news-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-card h3 a {
    color: var(--text-main);
}

.news-card h3 a:hover {
    color: var(--accent-gold);
}

.news-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-link {
    font-size: 14px;
    color: var(--primary);
    white-space: nowrap;
}

/* ===== 底部 ===== */
.footer {
    background: #0a0a0c;
    border-top: 2px solid var(--primary-dark);
    padding: 45px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 16px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.footer-bottom .disclaimer {
    font-size: 11px;
    opacity: 0.7;
}

/* ===== 列表页样式 ===== */
.list-header {
    padding: 40px 0 30px;
    text-align: center;
    background: linear-gradient(180deg, #1a1a0e, #0d0d0f);
    border-bottom: 1px solid var(--border-color);
}

.list-header h1 {
    font-size: 28px;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.list-header p {
    font-size: 15px;
    color: var(--text-muted);
}

.list-section {
    padding: 40px 0;
}

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-dark);
    border-color: var(--primary);
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-dark);
    border-color: var(--primary);
    color: #fff;
}

/* ===== 详情页 ===== */
.detail-header {
    padding: 40px 0 30px;
    background: linear-gradient(180deg, #1a1a0e, #0d0d0f);
    border-bottom: 1px solid var(--border-color);
}

.detail-header .container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.server-info-card {
    flex: 1;
    min-width: 300px;
}

.server-info-card h1 {
    font-size: 26px;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.server-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}

.server-meta span strong {
    color: var(--text-main);
}

.server-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
}

.server-status-badge.online {
    background: rgba(46,204,113,0.15);
    color: #2ecc71;
    border: 1px solid #27ae60;
}

.server-status-badge .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.detail-content {
    padding: 40px 0;
}

.detail-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.main-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
}

.main-content h2 {
    font-size: 20px;
    color: var(--accent-gold);
    margin: 25px 0 15px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}

.main-content h2:first-child {
    margin-top: 0;
}

.main-content p {
    margin-bottom: 15px;
    line-height: 1.9;
    color: var(--text-main);
}

.main-content ul {
    margin: 10px 0 15px 20px;
}

.main-content ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.main-content .screenshot-placeholder {
    background: #0d0d0f;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    margin: 20px 0;
    font-size: 14px;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.sidebar-widget h3 {
    font-size: 16px;
    color: var(--accent-gold);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(42,42,53,0.5);
    font-size: 13px;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-widget ul li a:hover {
    color: var(--accent-gold);
}

.sidebar-widget ul li .hot-num {
    color: var(--text-muted);
    font-size: 12px;
}

/* ===== 文章页 ===== */
.article-page {
    padding: 40px 0;
}

.article-page .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.article-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 35px;
}

.article-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-header .category-tag {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(200,164,21,0.15);
    color: var(--primary);
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 12px;
}

.article-header h1 {
    font-size: 26px;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 15px;
}

.article-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.article-body {
    line-height: 2;
    font-size: 15px;
}

.article-body h2 {
    font-size: 20px;
    color: var(--accent-gold);
    margin: 30px 0 15px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}

.article-body h3 {
    font-size: 17px;
    color: var(--primary);
    margin: 22px 0 10px;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
    margin: 10px 0 16px 22px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body strong {
    color: var(--accent-gold);
}

.article-body blockquote {
    border-left: 3px solid var(--primary);
    padding: 10px 20px;
    margin: 15px 0;
    background: rgba(200,164,21,0.05);
    color: var(--text-muted);
    font-style: italic;
}

.article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag-link {
    padding: 4px 12px;
    background: rgba(200,164,21,0.1);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 12px;
    color: var(--primary);
}

.tag-link:hover {
    background: rgba(200,164,21,0.2);
}

.related-articles h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.related-articles ul {
    list-style: none;
}

.related-articles ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(42,42,53,0.5);
    font-size: 14px;
}

.related-articles ul li:last-child {
    border-bottom: none;
}

.related-articles ul li a {
    color: var(--text-main);
}

.related-articles ul li a:hover {
    color: var(--accent-gold);
}

/* ===== 关于我们页 ===== */
.about-page {
    padding: 50px 0;
}

.about-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.about-content h1 {
    font-size: 28px;
    color: var(--accent-gold);
    margin-bottom: 25px;
    text-align: center;
}

.about-content h2 {
    font-size: 20px;
    color: var(--primary);
    margin: 25px 0 12px;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.9;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    margin: 0 8px;
}

.breadcrumb .current {
    color: var(--primary);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav ul {
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-stats {
        gap: 25px;
    }

    .stat-num {
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .detail-content .container,
    .article-page .container {
        grid-template-columns: 1fr;
    }

    .version-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .version-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 35px 0 30px;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===== SEO 隐藏但可读 ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ===== 结构化数据标记辅助 ===== */
.organization-info {
    display: none;
}
