/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* 统计项样式 */
.stats-section {
    background-color: #fff;
    padding: 20px 0;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stat-item h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 28px;
    font-weight: bold;
    color: #007bff;
    margin: 0;
}

/* 分类标签样式 */
.category-section {
    margin: 20px 0;
}

/* 资源卡片样式 */
.resource-section {
    margin: 20px 0;
}

.resource-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.resource-header {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.resource-body {
    padding: 15px;
}

.resource-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.resource-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.resource-footer {
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* 二维码样式 */
.qrcode-section {
    margin: 20px 0;
}

.qrcode-container {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.qrcode-image {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    border: 5px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
}

/* 个人中心样式 */
.user-info {
    margin: 20px 0;
}

.info-item {
    margin-bottom: 15px;
    font-size: 16px;
}

.info-item label {
    font-weight: bold;
    margin-right: 10px;
    color: #555;
}

.usage-list {
    list-style-type: decimal;
    padding-left: 20px;
}

.usage-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* 后台样式 */
.system-info p {
    margin-bottom: 10px;
}

/* 无数据样式 */
.no-data {
    padding: 50px 0;
    text-align: center;
    color: #999;
    font-size: 18px;
}

/* 搜索表单样式 */
.search-form {
    max-width: 600px;
    margin: 0 auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stat-item p {
        font-size: 20px;
    }
    
    .resource-card {
        margin-bottom: 20px;
    }
    
    .qrcode-image {
        max-width: 200px;
    }
}

/* 登录注册表单样式 */
.card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

.card-header {
    background-color: #007bff;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.form-group label {
    font-weight: bold;
}

/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* 表格样式 */
.table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.table td, .table th {
    vertical-align: middle;
}

/* 自定义复选框 */
.custom-checkbox .custom-control-label::before {
    border-radius: 0.25rem;
}

/* 自定义文件选择器 */
.custom-file-label {
    overflow: hidden;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    justify-content: center;
}

.pagination .page-item .page-link {
    color: #007bff;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* 面包屑样式 */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
}

/* 提示框样式 */
.alert {
    margin-bottom: 20px;
}

/* 标签样式 */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* 导航样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 列表组样式 */
.list-group-item.active {
    background-color: #007bff;
    border-color: #007bff;
}

/* 资源时间样式 */
.resource-time {
    color: #999;
    font-size: 12px;
}