/* =========================================================
   EyouCMS 游戏发布网完整样式 game.css
   ========================================================= */

/* ---------- 基础重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.7;
}

img {
    max-width: 100%;
    border: none;
    display: block;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #f97316;
}

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

.container {
    width: 1200px;
    max-width: 94%;
    margin: 0 auto;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    background: #111827;
    color: #fff;
    border-bottom: 3px solid #2563eb;
    position: relative;
    z-index: 10;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: block;
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo a:hover {
    color: #60a5fa;
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: #d1d5db;
    margin-left: 28px;
    font-size: 15px;
    font-weight: 500;
}

.nav a:hover {
    color: #fff;
}

/* ---------- 首页 Banner ---------- */
.banner {
    background:
        linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(17, 24, 39, 0.95)),
        radial-gradient(circle at top right, #3b82f6, transparent 35%);
    color: #fff;
    padding: 75px 0;
}

.banner h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: bold;
}

.banner p {
    font-size: 18px;
    color: #dbeafe;
    max-width: 680px;
}

/* ---------- 通用页面 Banner ---------- */
.page-banner {
    background:
        linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
    padding: 45px 0;
    margin-bottom: 30px;
}

.page-banner h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.page-banner p {
    color: #d1d5db;
    font-size: 16px;
}

/* ---------- 首页主体布局 ---------- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 45px;
}

.main-content,
.sidebar,
.detail-card,
.article-list,
.article-content {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* ---------- 区块标题 ---------- */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.section-title h2 {
    font-size: 24px;
    color: #111827;
    font-weight: bold;
}

.section-title a {
    font-size: 14px;
    color: #2563eb;
}

.section-title a:hover {
    color: #f97316;
}

/* ---------- 开服表格 ---------- */
.server-table {
    background: #fff;
    border-radius: 8px;
    overflow-x: auto;
}

.server-table table {
    width: 100%;
    min-width: 900px;
}

.server-table th,
.server-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    font-size: 14px;
    vertical-align: middle;
}

.server-table th {
    background: #f3f4f6;
    color: #111827;
    font-weight: bold;
    white-space: nowrap;
}

.server-table td {
    color: #374151;
}

.server-table tr:hover {
    background: #f9fafb;
}

.server-name {
    color: #dc2626;
    font-weight: bold;
}

.server-name:hover {
    color: #f97316;
}

.intro {
    max-width: 240px;
    color: #666;
    text-align: left;
    line-height: 1.6;
}

/* ---------- 状态标签 ---------- */
.status {
    display: inline-block;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #10b981;
    white-space: nowrap;
}

.status-hot {
    background: #ef4444;
}

.status-wait {
    background: #f59e0b;
}

.status-close {
    background: #6b7280;
}

.status-maintain {
    background: #8b5cf6;
}

/* ---------- 小按钮 ---------- */
.btn-small {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 6px 13px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
}

.btn-small:hover {
    background: #1d4ed8;
    color: #fff;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
    align-self: start;
}

.side-box {
    margin-bottom: 28px;
}

.side-box:last-child {
    margin-bottom: 0;
}

.side-box h3 {
    font-size: 20px;
    color: #111827;
    border-left: 4px solid #2563eb;
    padding-left: 10px;
    margin-bottom: 15px;
}

.side-box p {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
}

.news-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li a {
    color: #374151;
    font-size: 14px;
}

.news-list li a:hover {
    color: #f97316;
}

/* ---------- 列表页筛选/说明栏 ---------- */
.filter-box {
    background: #fff;
    padding: 18px 22px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.filter-box strong {
    font-size: 22px;
    color: #111827;
    margin-right: 15px;
}

.filter-box span {
    color: #6b7280;
    font-size: 14px;
}

/* ---------- 详情页 ---------- */
.detail-page {
    margin-top: 35px;
    margin-bottom: 45px;
}

.detail-card h1 {
    font-size: 32px;
    color: #111827;
    margin-bottom: 15px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-meta span {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.server-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.server-info-grid div {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.server-info-grid strong {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.server-info-grid p {
    color: #111827;
    font-size: 16px;
    font-weight: 500;
    word-break: break-all;
}

.game-summary,
.game-detail {
    margin-top: 28px;
}

.game-summary h2,
.game-detail h2 {
    font-size: 22px;
    color: #111827;
    border-left: 4px solid #2563eb;
    padding-left: 12px;
    margin-bottom: 15px;
}

.game-summary p {
    color: #4b5563;
    line-height: 1.9;
}

.game-detail {
    color: #374151;
    line-height: 1.9;
}

.game-detail p {
    margin-bottom: 14px;
}

.game-detail img {
    margin: 15px 0;
    border-radius: 6px;
}

.game-detail h1,
.game-detail h2,
.game-detail h3,
.game-detail h4 {
    margin: 18px 0 10px;
    color: #111827;
}

.game-detail ul,
.game-detail ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.game-detail ul {
    list-style: disc;
}

.game-detail ol {
    list-style: decimal;
}

/* ---------- 资讯列表 ---------- */
.article-layout {
    margin-bottom: 45px;
}

.article-list {
    margin-bottom: 30px;
}

.article-item {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.article-item:first-child {
    padding-top: 0;
}

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

.article-item h2 {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.article-item h2 a {
    color: #111827;
}

.article-item h2 a:hover {
    color: #2563eb;
}

.article-item p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.8;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #9ca3af;
    font-size: 13px;
}

/* ---------- 资讯详情 ---------- */
.article-detail {
    margin-top: 35px;
    margin-bottom: 45px;
}

.article-content h1 {
    font-size: 32px;
    line-height: 1.4;
    color: #111827;
    margin-bottom: 15px;
    text-align: center;
}

.article-content .article-meta {
    justify-content: center;
    padding-bottom: 18px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.article-content .content {
    color: #374151;
    line-height: 1.95;
    font-size: 16px;
}

.article-content .content p {
    margin-bottom: 15px;
}

.article-content .content img {
    margin: 18px auto;
    border-radius: 6px;
}

.article-content .content h2,
.article-content .content h3,
.article-content .content h4 {
    color: #111827;
    margin: 22px 0 12px;
}

.article-content .content blockquote {
    background: #f9fafb;
    border-left: 4px solid #2563eb;
    padding: 12px 18px;
    margin: 18px 0;
    color: #4b5563;
}

.article-content .content ul,
.article-content .content ol {
    margin-left: 22px;
    margin-bottom: 15px;
}

.article-content .content ul {
    list-style: disc;
}

.article-content .content ol {
    list-style: decimal;
}

/* ---------- 分页 ---------- */
.pagination {
    margin: 28px 0 10px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    margin: 0 3px 6px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 4px;
    font-size: 14px;
}

.pagination a:hover,
.pagination .current,
.pagination span.current {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* ---------- 底部 ---------- */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.site-footer p {
    font-size: 14px;
    margin-bottom: 6px;
}

.site-footer a {
    color: #d1d5db;
}

.site-footer a:hover {
    color: #fff;
}

/* ---------- QQ 客服链接 ---------- */
.qq-link {
    color: #2563eb;
    font-weight: bold;
}

.qq-link:hover {
    color: #f97316;
}

/* ---------- 空数据提示 ---------- */
.empty {
    background: #fff;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    border-radius: 8px;
}

/* ---------- 通用卡片 ---------- */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* ---------- 面包屑，如果后面要加 ---------- */
.breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin: 20px auto;
}

.breadcrumb a {
    color: #6b7280;
}

.breadcrumb a:hover {
    color: #2563eb;
}

/* ---------- 首页推荐区，可选 ---------- */
.recommend-box {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    margin: 30px auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

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

.recommend-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.recommend-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.recommend-item h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.recommend-item p {
    color: #6b7280;
    font-size: 14px;
}

/* ---------- 移动端适配 ---------- */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 94%;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .server-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .header-inner {
        height: auto;
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo a {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .nav {
        width: 100%;
    }

    .nav a {
        margin: 0 18px 8px 0;
        font-size: 14px;
    }

    .banner {
        padding: 50px 0;
    }

    .banner h1 {
        font-size: 30px;
    }

    .banner p {
        font-size: 16px;
    }

    .page-banner {
        padding: 35px 0;
    }

    .page-banner h1 {
        font-size: 26px;
    }

    .main-content,
    .sidebar,
    .detail-card,
    .article-list,
    .article-content {
        padding: 18px;
    }

    .section-title h2 {
        font-size: 21px;
    }

    .sidebar {
        display: block;
    }

    .server-info-grid {
        grid-template-columns: 1fr;
    }

    .detail-card h1,
    .article-content h1 {
        font-size: 25px;
    }

    .article-item h2 {
        font-size: 19px;
    }

    .filter-box strong {
        display: block;
        margin-bottom: 6px;
    }

    .server-table th,
    .server-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        max-width: 96%;
    }

    .banner h1 {
        font-size: 26px;
    }

    .banner p {
        font-size: 15px;
    }

    .nav a {
        margin-right: 14px;
        font-size: 13px;
    }

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

    .detail-meta {
        display: block;
    }

    .detail-meta span {
        display: block;
        margin-bottom: 8px;
    }

    .article-meta {
        display: block;
    }

    .article-meta span {
        display: block;
        margin-bottom: 5px;
    }

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

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 13px;
    }
}