/* 全局样式 */
html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* 修复header顶部空白问题 */
body > header {
    margin-top: 0 !important;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 卡片样式 */
.card {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: box-shadow 0.3s ease;
}

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

/* 按钮样式 */
.btn {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

/* 表单样式 */
.form-control {
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 链接样式 */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 2rem 0;
    margin-top: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

/* 辅助类 */
.text-muted {
    color: #6c757d !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 导航栏样式 */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.nav-link {
    font-size: 16px;
    padding: 8px 16px !important;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: all 0.3s;
    transform: translateX(-50%);
}

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

/* 动画效果 */
.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

/* 导航栏下菜单样式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* 搜索图标样式 */
.search-icon {
    cursor: pointer;
    font-size: 18px;
    color: #666;
}

.search-icon:hover {
    color: #007bff;
}

/* 搜索弹窗样式 */
.search-modal .modal-content {
    border: none;
    border-radius: 12px;
}

.search-form {
    position: relative;
}

.search-form .form-control {
    padding-right: 40px;
    border: none;
    border-bottom: 2px solid #eee;
    border-radius: 0;
}

.search-form .btn-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.quick-links .links a {
    display: inline-block;
    margin: 5px 10px 5px 0;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer h5 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer ul li a:hover {
    color: #007bff;
}

.social-links a {
    color: #666;
    font-size: 20px;
}

.social-links a:hover {
    color: #007bff;
}

.footer-bottom {
    background: #f8f9fa;
    font-size: 14px;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #007bff;
}

/* 空数据状态样式 */
.empty-state {
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.empty-state-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.empty-state-icon i {
    font-size: 32px !important;
    color: #adb5bd !important;
}

.empty-state-text {
    font-size: 16px;
    color: #6c757d;
    margin: 16px 0;
}

.empty-state .btn {
    min-width: 120px;
    padding: 8px 24px;
}
  