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

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

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

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

/* 分类卡片 */
.category-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;
}

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

.category-card-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

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

/* 社区/人物卡片 */
.community-card {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.community-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(110, 72, 170, 0.1);
}

.community-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #eee;
}

.community-info {
    flex: 1;
}

.community-name {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.community-title {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.community-desc {
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.community-links a {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.9rem;
}

.community-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;
}

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


/* 响应式设计 */
@media (max-width: 768px) {
    .community-card {
        flex-direction: column;
        text-align: center;
    }
    
    .community-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

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

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