/* 自定义样式 */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2575fc 100%);
}

.jumbotron {
    background-size: cover;
    position: relative;
}

.jumbotron::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    border-radius: 0.5rem;
}

.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.navbar-brand {
    font-size: 1.5rem;
}

.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.form-control {
    border-radius: 0.5rem;
}

.alert {
    border-radius: 0.5rem;
    border: none;
}

.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
}

.content-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
}

/* 编辑和删除按钮样式 */
.btn-group .btn {
    border-radius: 0.25rem;
}

/* 模态框样式 */
.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

/* 提示消息样式 */
.toast {
    min-width: 250px;
}

/* 内容区域样式 */
.content-box {
    background-color: #f8f9fa;
    border-left: 4px solid #6a11cb;
    transition: all 0.3s ease;
}

.card:hover .content-box {
    background-color: #e9ecef;
}

/* 按钮悬停效果 */
.edit-btn:hover {
    background-color: #0d6efd;
    color: white;
}

.delete-btn:hover {
    background-color: #dc3545;
    color: white;
}
/* 响应式调整 */
@media (max-width: 768px) {
    .jumbotron h1 {
        font-size: 2rem;
    }

    .jumbotron .lead {
        font-size: 1.1rem;
    }

    .feature-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .feature-icon i {
        font-size: 1.5rem !important;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}