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

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

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
}

.nav-link:hover {
    color: #007bff !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

/* 轮播图样式 */
.carousel-item {
    height: 60vh;
    min-height: 300px;
    background: no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.carousel-caption {
    bottom: 20%;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
}

.carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.footer h5 {
    margin-bottom: 20px;
    font-weight: 700;
}

.footer p,
.footer a {
    color: #ccc;
    margin-bottom: 10px;
}

.footer a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    background-color: #212529;
    padding: 15px 0;
    margin-top: 20px;
    text-align: center;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.card img {
    height: 200px;
    object-fit: cover;
}

/* 自定义颜色类 */
.bg-purple {
    background-color: #6f42c1 !important;
}

/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 20px;
    font-weight: 500;
}

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

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}


.btn-warning {
    color: #fff;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-warning:hover {
    color: #fff;
    background-color: #e0a800;
    border-color: #d39e00;
}

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

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

/* 标签页样式 */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: #6c757d;
    font-weight: 500;
    padding: 10px 20px;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    background-color: transparent;
}

/* 列表样式 */
.list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
}

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

/* 面包屑导航样式 */
.breadcrumb-container {
    background-color: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    margin-bottom: 0;
}

/* 新闻页面样式 */
.news-container {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

.news-sidebar {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-sidebar h4 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.news-category {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-category li {
    margin-bottom: 10px;
}

.news-category a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.news-category a:hover {
    background-color: #e9ecef;
    color: #007bff;
}

.news-category a.active {
    background-color: #007bff;
    color: #fff;
}

.news-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-list {
    margin-bottom: 30px;
}

.news-item {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
    transition: all 0.3s ease;
}

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

.news-item:hover {
    background-color: #f8f9fa;
    padding-left: 10px;
}

.news-item h5 {
    margin-bottom: 10px;
}

.news-item h5 a {
    color: #333;
    text-decoration: none;
}

.news-item h5 a:hover {
    color: #007bff;
}

.news-meta {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

.news-excerpt {
    color: #555;
    line-height: 1.6;
}

.hot-news li {
    margin-bottom: 15px;
}

.hot-news a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hot-news a:hover {
    color: #007bff;
}

.hot-news-date {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* 考试资讯特殊样式 */
.exam-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exam-info-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.exam-info-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.exam-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.exam-date {
    font-size: 14px;
    color: #6c757d;
}

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

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

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

.pagination .page-link:hover {
    color: #0056b3;
}

/* 公司介绍页面样式 */
.company-intro-container {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

.intro-header {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: -30px;
}

.intro-header h2 {
    margin-bottom: 20px;
    color: #333;
}

.intro-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.intro-section h3 {
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.intro-content {
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

.intro-content img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    text-align: center;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #007bff;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #007bff;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-year {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.culture-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.culture-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.culture-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 15px;
}

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

/* 业务范围页面样式 */
.business-container {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

.business-header {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: -30px;
}

.business-header h2 {
    margin-bottom: 20px;
    color: #333;
}

.business-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.business-section h3 {
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.business-item {
    margin-bottom: 30px;
}

.business-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.business-card-img {
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.business-card-body {
    padding: 20px;
}

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

.business-card-text {
    color: #555;
    line-height: 1.6;
}

/* 服务优势样式 */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.advantage-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.advantage-item:hover {
    background-color: #fff;
    border-color: #007bff;
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #007bff;
}

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

.advantage-text {
    color: #555;
    line-height: 1.6;
}

/* 业务流程样式 */
.process-container {
    padding: 20px 0;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-card {
    transition: all 0.3s ease;
    border: 2px solid #007bff;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15) !important;
}

.process-icon {
    border-radius: 10px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.process-title {
    color: #007bff;
    font-weight: bold;
    font-size: 1.1rem;
}

.process-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .carousel-caption h5 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .card img {
        height: 150px;
    }

    /* 时间轴响应式 */
    .timeline::before {
        left: 20px;
    }

    .timeline-item::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
    }

    /* 业务流程响应式 */
    .process-line {
        left: 30px;
    }

    .process-step {
        flex-direction: row;
    }

    .process-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }

    .process-number {
        left: 30px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px;
    }

    .carousel-caption {
        bottom: 10%;
        padding: 10px;
    }

    .carousel-caption h5 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
}

/* 首页自定义样式 */
.index-container {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* 用户协议和隐私政策页面样式 */
.agreement-container,
.policy-container {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* 隐私政策页面列表样式 */
.intro-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.intro-content li {
    margin-bottom: 5px;
}

/* 新闻详情页面样式 */
.news-detail-container {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

.news-meta {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.news-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.news-image {
    margin-bottom: 30px;
}

.news-image img {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-content p {
    margin-bottom: 15px;
}

.news-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.news-content li {
    margin-bottom: 8px;
}

.news-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin-bottom: 20px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-card h4 {
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.related-news-list li {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.related-news-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-news-list a {
    color: #555;
    text-decoration: none;
}

.related-news-list a:hover {
    color: #007bff;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    color: #555;
    text-decoration: none;
}

.categories-list a:hover {
    color: #007bff;
}

/* 首页轮播图样式 */
.index-carousel .carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
}

/* 专家卡片样式 */
.expert-card .card-img-top {
    border-radius: 50%;
    margin: 20px auto 0;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* 分页样式 */

.pager {
    text-align: left;
    padding-left: 0;
    margin: 18px 0;
    list-style: none;
    text-align: center;
}

.pager .pagination {
    margin: 0;
}

.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 18px 0;
    border-radius: 3px;
}

.pager li {
    margin: 0 0.4em;
    display: inline-block;
}

.pager li {
    display: inline;
}

.pagination>li {
    display: inline;
}

.pager li>a,
.pager li>span {
    background: none;
    border: 1px solid #e6e6e6;
    border-radius: 0.25em;
    padding: 0.5em 0.93em;
    font-size: 14px;
}

.pagination>li>a,
.pagination>li>span {
    position: relative;
    float: left;
    padding: 6px 12px;
    line-height: 1.42857143;
    text-decoration: none;
    color: #444c69;
    background-color: #fff;
    border: 1px solid #ddd;
    margin: 2px;
}

/* 修复select框样式问题 */
.custom-select {
    height: 40px;
    /* 根据需要调整 */
    padding: .375rem .75rem;
    /* 根据需要调整内边距 */
}

.news_list_item {
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 90px);
}

.text-muted.small {
    font-size: 12px;
    color: #333 !important;
}

.login-nav:hover {
    color: #333 !important;
}

.list-unstyled li {
    color: #ccc !important;
}

.list-unstyled li a {
    color: #ccc !important;
}