/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 资源卡片样式 */
.resource-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.2s;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.resource-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.resource-info {
    padding: 15px;
}

.resource-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #212529;
}

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

.resource-stats {
    display: flex;
    justify-content: space-between;
    color: #6c757d;
    font-size: 0.85rem;
}

.resource-author {
    color: #0d6efd;
    font-weight: 500;
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
}

/* 上传页面样式 */
.upload-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 用户等级标签 */
.user-level {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 5px;
}

.level-normal {
    background-color: #6c757d;
    color: white;
}

.level-vip {
    background-color: #ffc107;
    color: #212529;
}

.level-svip {
    background-color: #fd7e14;
    color: white;
}

/* 搜索结果样式 */
.search-result {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

/* 管理员面板样式 */
.admin-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.admin-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
}

/* 个人中心样式 */
.profile-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* 评论样式 */
.comment {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.comment-content {
    margin-bottom: 10px;
}

/* 评分样式 */
.rating {
    color: #ffc107;
}

/* 积分显示 */
.points {
    background-color: #0d6efd;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}