/* game-list.css 集成所有样式 */
/* 全局重置与字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background-color: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #2980b9;
    transition: color 0.2s ease;
}

a:hover {
    color: #1c5980;
}

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

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
}

/* 顶部区域：Logo + 搜索 */
.site-header {
    background: #ffffff;
    padding: 18px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.logo-area img {
    height: 40px;
    width: auto;
    display: block;
}

.search-area {
    width: 320px;
}

.search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.search-form:focus-within {
    border-color: #2980b9;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.search-btn {
    background: #2980b9;
    border: none;
    padding: 0 20px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #1f6390;
}

/* 横向导航 */
.main-navigation {
    background: #ffffff;
    border-bottom: 2px solid #eef2f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    height: 52px;
}

.nav-list li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-list li a {
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    color: #34495e;
    font-weight: 500;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-list li a:hover,
.nav-list li.active a {
    color: #2980b9;
    border-bottom-color: #2980b9;
    background-color: #f7f9fc;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 18px 0 12px;
    font-size: 14px;
    color: #7f8c8d;
    border-bottom: 1px dashed #e0e6ed;
    margin-bottom: 24px;
}

.breadcrumb-item a {
    color: #7f8c8d;
}

.breadcrumb-item a:hover {
    color: #2980b9;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #adb5bd;
}

.breadcrumb-item.current {
    color: #2c3e50;
    font-weight: 500;
}

/* 栏目头部 */
.category-header {
    margin-bottom: 32px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.category-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    height: 28px;
    width: 5px;
    background: #2980b9;
    border-radius: 4px;
}

.category-desc {
    color: #5a6a7e;
    font-size: 15px;
    margin-top: 6px;
    line-height: 1.5;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.article-item {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    border: 1px solid #eaedf2;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.article-thumb {
    flex-shrink: 0;
    width: 220px;
    height: 150px;
    margin-right: 24px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f3f7;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.article-title a {
    color: #1e293b;
}

.article-title a:hover {
    color: #2980b9;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: #6b7c8e;
    margin-bottom: 12px;
}

.meta-date, .meta-category, .meta-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-category a {
    color: #2980b9;
    font-weight: 500;
}

.article-desc {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    align-self: flex-start;
    font-weight: 600;
    font-size: 14px;
    color: #2980b9;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.read-more:hover {
    border-bottom-color: #2980b9;
    color: #1c5980;
}

/* 无数据 */
.no-data {
    text-align: center;
    padding: 60px 20px;
    background: #f9fbfd;
    border-radius: 12px;
    color: #7f8c8d;
    font-size: 16px;
}

/* 分页样式 */
.pagination-wrapper {
    margin-top: 40px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.pagination-wrapper ul {
    display: flex;
    list-style: none;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-wrapper li {
    display: inline-flex;
}

.pagination-wrapper li a,
.pagination-wrapper li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-wrapper li.active span,
.pagination-wrapper li.active a {
    background: #2980b9;
    border-color: #2980b9;
    color: #ffffff;
}

.pagination-wrapper li a:hover {
    background: #f1f5f9;
    border-color: #2980b9;
    color: #2980b9;
}

/* 底部 */
.site-footer {
    background: #f8fafc;
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
    margin-top: 50px;
    color: #5d6d7e;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: #5d6d7e;
    margin-left: 20px;
}

.footer-links a:hover {
    color: #2980b9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 16px;
    }
    .search-area {
        width: 100%;
    }
    .article-item {
        flex-direction: column;
    }
    .article-thumb {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 16px;
    }
    .nav-list {
        flex-wrap: wrap;
        height: auto;
    }
}