:root {
    --primary-color: #6e48aa;
    --secondary-color: #9d50bb;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    /* background-color: #f5f7fa; */
}

/* 主内容区域 */
.main-content {
    /* padding: 30px; */
    /* max-width: 1200px; */
    margin: 0 auto;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    /* border-bottom: 1px solid #eee; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 右侧广告占位 */
.ad-placeholder {
    background: linear-gradient(135deg, #f5f7fa, #e4e8eb);
    border-radius: 6px;
    padding: 15px 20px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    border: 1px dashed #ced4da;
}

/* 页尾广告 */
.ad-bar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    border: 1px dashed #ddd;
}


/* 新闻卡片 */
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: row;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-content {
    flex: 1;
    padding: 20px;
    order: 1;
}

.news-image-container {
    width: 300px;
    order: 2;
}

.news-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.news-meta-page {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-title-text {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.news-summary {
    color: #495057;
    margin-bottom: 15px;
}

.news-tag {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(110, 72, 170, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* 新闻分类筛选 */
.news-filter {
    margin-bottom: 30px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.filter-item {
    margin-right: 15px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

.filter-item.active, .filter-item:hover {
    background: var(--primary-color);
    color: white;
}

/* 分页样式 */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
    }
    
    .news-image-container {
        width: 100%;
        order: 1;
    }
    
    .news-content {
        order: 2;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ad-placeholder {
        margin-top: 15px;
        width: 100%;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}