/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 1rem 0;
    z-index: 1000;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.nav-link {
    color: #4a5568 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4299e1 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 按钮样式 */
.btn {
    border-radius: 12px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(113, 128, 150, 0.3);
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* 主内容区域 */
.main-content {
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

/* 卡片样式 */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    background: white;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
}

.card-header {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

/* 列表组样式 */
.list-group {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    background: white;
    border: 1px solid #e2e8f0;
}

.list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    transition: all 0.2s ease;
    background: white;
    color: #4a5568;
    border-bottom: 1px solid #f7fafc;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: #f7fafc;
    transform: translateX(2px);
    color: #2d3748;
}

.list-group-item.active {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    font-weight: 600;
}

/* 搜索框样式 */
.form-control {
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    background: white;
    color: #4a5568;
    font-size: 0.875rem;
}

.form-control:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.15);
    outline: none;
    background: white;
    color: #2d3748;
}

/* 分类标签 */
.badge {
    border-radius: 9999px;
    padding: 0.35rem 0.875rem;
    font-weight: 500;
    font-size: 0.75rem;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    letter-spacing: 0.025em;
}

/* 图片样式 */
.img-fluid {
    border-radius: 12px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card:hover .img-fluid {
    transform: scale(1.02);
}

/* 页脚样式 */
.footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    color: #718096;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

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

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* 下拉菜单样式 */
.dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: white;
    overflow: hidden;
    z-index: 1050;
    position: relative;
    margin-top: 0.5rem;
}

.dropdown-item {
    transition: all 0.2s ease;
    padding: 0.75rem 1.5rem;
    color: #4a5568;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: #f7fafc;
    color: #2d3748;
    transform: translateX(2px);
}

/* 面包屑样式 */
.breadcrumb {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.breadcrumb-item a {
    color: #4299e1;
    text-decoration: none;
    font-size: 0.875rem;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: #3182ce;
}

/* 表格样式 */
.table {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.table th {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-align: left;
}

.table td {
    border: none;
    padding: 1rem;
    border-bottom: 1px solid #f7fafc;
    color: #4a5568;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: #f7fafc;
    transition: background-color 0.2s ease;
}
