/* 公考雷达 - 主样式文件 */

:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #667eea;
    --warning-color: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    color: #333;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 80px 0;
    margin-bottom: 0;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-item {
    padding: 20px;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: bold;
}

/* 考试类型卡片 */
.exam-type-card {
    display: block;
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.exam-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: var(--accent-color);
}

.exam-type-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* 职位卡片 */
.position-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.position-card .card-title {
    font-size: 1rem;
    line-height: 1.5;
    height: 3rem;
    overflow: hidden;
}

/* 文章卡片 */
.article-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

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

.article-card .card-title {
    font-size: 1rem;
    line-height: 1.6;
    height: 3.2rem;
    overflow: hidden;
}

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

.table td a {
    color: var(--primary-color);
    text-decoration: none;
}

.table td a:hover {
    color: var(--accent-color);
}

/* 分页样式 */
.pagination {
    margin: 0;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 搜索框 */
.search-box {
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
}

.search-box:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.25);
}

/* 标签 */
.badge {
    font-weight: 500;
    padding: 6px 12px;
}

/* 卡片 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card-header {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-warning {
    background: var(--warning-color);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    color: white;
}

/* 筛选栏 */
.filter-bar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-bar .form-select {
    border-radius: 8px;
}

/* 详情页 */
.detail-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
}

.detail-content {
    line-height: 1.8;
    font-size: 1rem;
}

.detail-content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-content ul {
    padding-left: 1.5rem;
}

.detail-content li {
    margin-bottom: 0.5rem;
}

/* 侧边栏 */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h5 {
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 15px;
}

/* 页脚 */
footer {
    background: #1a1a2e !important;
}

footer h5, footer h6 {
    color: white;
}

footer a:hover {
    color: white !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .position-card .card-title {
        font-size: 0.9rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
