/* =====================================================
   全站页面公共样式
   ===================================================== */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* 面包屑导航 */
.breadcrumb {
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

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

.breadcrumb span {
    color: #fff;
}

/* 通用区块 */
.section {
    padding: 40px 0;
}

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

/* 文章详情页样式 */
.article-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 0;
}

.article-detail {
    padding: 40px 0;
    background: #f5f5f5;
}

.article-detail .container {
    display: flex;
    gap: 30px;
}

.article-main {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-header h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 14px;
    flex-wrap: wrap;
}

.article-meta .category {
    background: #e74c3c;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
}

.cover-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 20px;
}

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

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

.article-content img {
    max-width: 100%;
    border-radius: 5px;
    margin: 20px 0;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    text-decoration: none;
}

.tag:hover {
    background: #e74c3c;
    color: #fff;
}

.article-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn-like, .btn-share {
    padding: 10px 25px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-like:hover, .btn-share:hover {
    background: #f5f5f5;
    border-color: #e74c3c;
    color: #e74c3c;
}

/* 侧边栏 */
.article-sidebar,
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
    color: #333;
}

/* 相关推荐 */
.related-list li {
    margin-bottom: 15px;
}

.related-list a {
    display: flex;
    gap: 10px;
    color: #333;
    text-decoration: none;
}

.related-list a:hover {
    color: #e74c3c;
}

.related-list img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.related-list span {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分类列表 */
.category-list li a,
.hot-games li a {
    display: block;
    padding: 10px 0;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
}

.category-list li a:hover,
.category-list li a.active,
.hot-games li a:hover {
    color: #e74c3c;
}

/* 资讯列表布局 */
.news-layout {
    display: flex;
    gap: 30px;
}

.news-content {
    flex: 1;
}

/* 文章卡片网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-card .article-img {
    display: block;
    height: 180px;
    overflow: hidden;
}

.article-card .article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-img img {
    transform: scale(1.1);
}

.article-card .article-body {
    padding: 20px;
}

.article-card .tag {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.article-card h3 {
    font-size: 16px;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card h3 a {
    color: #333;
    text-decoration: none;
}

.article-card h3 a:hover {
    color: #e74c3c;
}

.article-card p {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 12px;
}

/* 专题网格 */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.topic-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.topic-card:hover {
    transform: translateY(-5px);
}

.topic-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.topic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.topic-card:hover .topic-overlay {
    opacity: 1;
}

.btn-view {
    padding: 12px 30px;
    background: #e74c3c;
    color: #fff;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
}

.topic-info {
    padding: 25px;
}

.topic-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.topic-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.topic-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-tag {
    padding: 5px 12px;
    background: #f0f0f0;
    color: #666;
    border-radius: 15px;
    font-size: 12px;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #999;
}

.empty {
    text-align: center;
    padding: 60px;
    color: #999;
    background: #fff;
    border-radius: 10px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    background: #fff;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background: #e74c3c;
    color: #fff;
}

.pagination .current {
    background: #e74c3c;
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .article-detail .container,
    .news-layout {
        flex-direction: column;
    }
    
    .article-sidebar,
    .sidebar {
        width: 100%;
    }
    
    .article-main {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 22px;
    }
    
    .article-grid,
    .topic-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
}
