a{text-decoration: none;}

:root {
    --primary-color: #507756;
    --secondary-color: #2c3e50;
    --accent-color: #6a9c78;
    --light-bg: #f8f9fa;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    color: #333;
}

/* 头部样式 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* 导航下拉菜单样式 */
.navbar-nav .dropdown {
    position: relative;
}

.navbar-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    background-color: white;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s;
}

.dropdown-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

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

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
    padding-left: 25px;
}

.dropdown-toggle::after {
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 轮播图样式 */
.swiper {
    width: 100%;
    height: 650px;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
    text-align: left;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
}

/* 信息列表样式 */
.info-section {
    padding: 60px 0 0 0;
}

.info-card {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    height: 100%;
}



.info-card .card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border: none;
    padding: 15px 20px;
}

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

.info-list li {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li a {
    color: #333;
    text-decoration: none;
}

.info-list li a:hover {
    color: var(--primary-color);
}

.info-list .date {
    color: #888;
    font-size: 0.9rem;
    min-width: 2.5rem;
}

/* 分割小banner */
.divider-banner {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

/* 入口卡片样式 */
.entry-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s;
}

.entry-card:hover {
    transform: translateY(-5px);
}

.entry-card .card-body {
    padding: 30px;
    text-align: center;
}

.entry-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
}

.entry-card.study {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.entry-card.exam {
    background: linear-gradient(135deg, var(--secondary-color), #4a6b8a);
    color: white;
}

/* 查询入口样式 */
.query-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.query-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s;
}



.query-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 底部样式 */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}
footer a{color: white;}

.footer-links h5 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .swiper {
        height: 200px;
    }
    
    .slide-content {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .info-section, .query-section {
        padding: 40px 0 0 0;
    }
    
    /* 移动端下拉菜单调整 */
    .navbar-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: transparent;
        display: none;
    }
    
    .navbar-nav .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        padding-left: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

        /* 内容区域样式 */
        .content-section {
          padding: 40px 0;
          background-color: white;
          min-height: 60vh;
      }
      
      .breadcrumb {
          background-color: transparent;
          padding: 15px 0;
          margin-bottom: 20px;
      }
      
      .breadcrumb-item a {
          color: var(--primary-color);
          text-decoration: none;
      }
      
      .page-title {
          color: var(--secondary-color);
          margin-bottom: 30px;
          padding-bottom: 15px;
          border-bottom: 2px solid var(--primary-color);
      }
      
      /* 查询表单样式 */
      .query-container {
          max-width: 800px;
          margin: 0 auto;
      }
      
      .query-card {
          border: none;
          border-radius: 8px;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          padding: 30px;
          margin-bottom: 30px;
      }
      
      .query-icon {
          font-size: 3rem;
          color: var(--primary-color);
          margin-bottom: 20px;
          text-align: center;
      }
      
      .form-label {
          font-weight: 500;
          color: var(--secondary-color);
          margin-bottom: 8px;
      }
      
      .form-control {
          border: 1px solid #ddd;
          border-radius: 4px;
          padding: 10px 15px;
          transition: all 0.3s;
      }
      
      .form-control:focus {
          border-color: var(--primary-color);
          box-shadow: 0 0 0 0.2rem rgba(80, 119, 86, 0.25);
      }
      
      .required-field::after {
          content: " *";
          color: #dc3545;
      }
      
      .btn-query {
          background-color: var(--primary-color);
          border-color: var(--primary-color);
          color: white;
          padding: 10px 30px;
          font-weight: 500;
          transition: all 0.3s;
      }
      
      .btn-query:hover {
          background-color: var(--accent-color);
          border-color: var(--accent-color);
          transform: translateY(-2px);
      }
      
      /* 查询结果样式 */
      .result-card {
          border: none;
          border-radius: 8px;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          padding: 30px;
          margin-top: 30px;
          display: none; /* 初始隐藏 */
      }
      
      .result-header {
          color: var(--secondary-color);
          margin-bottom: 20px;
          padding-bottom: 10px;
          border-bottom: 1px solid #eee;
      }
      
      .result-item {
          margin-bottom: 15px;
          padding-bottom: 15px;
          border-bottom: 1px solid #f5f5f5;
      }
      
      .result-label {
          font-weight: 500;
          color: var(--secondary-color);
          margin-bottom: 5px;
      }
      
      .result-value {
          color: #555;
      }
      
      .no-result {
          text-align: center;
          padding: 30px;
          color: #777;
      }
      
      .no-result i {
          font-size: 3rem;
          margin-bottom: 15px;
          color: #ddd;
      }
      


        
        /* 文章列表内容区域样式 */
        .content-section {
          padding: 40px 0;
          background-color: white;
          min-height: 60vh;
      }
      
      .breadcrumb {
          background-color: transparent;
          padding: 15px 0;
          margin-bottom: 20px;
      }
      
      .breadcrumb-item a {
          color: var(--primary-color);
          text-decoration: none;
      }
      
      .page-title {
          color: var(--secondary-color);
          margin-bottom: 30px;
          padding-bottom: 15px;
          border-bottom: 2px solid var(--primary-color);
      }
      
      /* 文章列表样式 */
      .article-list {
          margin-bottom: 40px;
      }
      
      .article-card {
          border: none;
          border-radius: 8px;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          margin-bottom: 25px;
          transition: transform 0.3s;
      }
      
      .article-card:hover {
          transform: translateY(-5px);
      }
      
      .article-card .card-body {
          padding: 25px;
      }
      
      .article-meta {
          color: #777;
          font-size: 0.9rem;
          margin-bottom: 10px;
      }
      
      .article-meta i {
          margin-right: 5px;
          color: var(--primary-color);
      }
      
      .article-title {
          color: var(--secondary-color);
          font-size: 1.3rem;
          margin-bottom: 15px;
          text-decoration: none;
          display: block;
      }
      
      .article-title:hover {
          color: var(--primary-color);
      }
      
      .article-excerpt {
          color: #555;
          line-height: 1.6;
          margin-bottom: 15px;
      }
      
      .article-tags {
          margin-top: 15px;
      }
      
      .article-tag {
          display: inline-block;
          background-color: #e9f0e9;
          color: var(--primary-color);
          padding: 3px 10px;
          border-radius: 20px;
          font-size: 0.8rem;
          margin-right: 8px;
          margin-bottom: 5px;
      }
      
      /* 分页样式 */
      .pagination {
          justify-content: center;
          margin-top: 40px;
      }
      
      .page-link {
          color: var(--primary-color);
          border: 1px solid #ddd;
      }
      
      .page-link:hover {
          color: white;
          background-color: var(--primary-color);
          border-color: var(--primary-color);
      }
      
      .page-item.active .page-link {
          background-color: var(--primary-color);
          border-color: var(--primary-color);
      }
      
      /* 侧边栏样式 */
      .sidebar-widget {
          background-color: white;
          border-radius: 8px;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          padding: 25px;
          margin-bottom: 30px;
      }
      
      .widget-title {
          color: var(--secondary-color);
          font-size: 1.2rem;
          margin-bottom: 20px;
          padding-bottom: 10px;
          border-bottom: 2px solid var(--primary-color);
      }
      
      .category-list, .popular-articles {
          list-style: none;
          padding: 0;
          margin: 0;
      }
      
      .category-list li, .popular-articles li {
          padding: 10px 0;
          border-bottom: 1px solid #eee;
      }
      
      .category-list li:last-child, .popular-articles li:last-child {
          border-bottom: none;
      }
      
      .category-list a, .popular-articles a {
          color: #555;
          text-decoration: none;
          display: flex;
          justify-content: space-between;
      }
      
      .category-list a:hover, .popular-articles a:hover {
          color: var(--primary-color);
      }
      
      .category-count, .article-date {
          color: #999;
          font-size: 0.9rem;
      }
      
      /* 文章详情样式 */
      .article-detail {
          background-color: white;
          border-radius: 8px;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          padding: 30px;
          margin-bottom: 30px;
      }
      
      .article-header {
          margin-bottom: 30px;
          border-bottom: 1px solid #eee;
          padding-bottom: 20px;
      }
      
      .article-detail-title {
          color: var(--secondary-color);
          font-size: 1.8rem;
          margin-bottom: 15px;
          line-height: 1.4;
      }
      
      .article-content {
          line-height: 1.8;
          font-size: 1.05rem;
      }
      
      .article-content h2, .article-content h3, .article-content h4 {
          color: var(--secondary-color);
          margin-top: 30px;
          margin-bottom: 15px;
      }
      
      .article-content p {
          margin-bottom: 20px;
      }
      
      .article-content blockquote {
          border-left: 4px solid var(--primary-color);
          background-color: #f9f9f9;
          padding: 15px 20px;
          margin: 20px 0;
          font-style: italic;
      }
      
      .article-content img {
          max-width: 100%;
          height: auto;
          border-radius: 8px;
          margin: 20px 0;
      }
      
      .article-footer {
          margin-top: 40px;
          padding-top: 20px;
          border-top: 1px solid #eee;
      }
      
      .article-tags-detail {
          margin-bottom: 20px;
      }
      
      .article-nav {
          display: flex;
          justify-content: space-between;
      }
      
      .article-nav a {
          color: var(--primary-color);
          text-decoration: none;
          font-weight: 500;
      }
      
      .article-nav a:hover {
          text-decoration: underline;
      }
      
      
      
      
.query-section .col-lg-2 {
        flex: 0 0 auto;
        width: 20%;
    }
    
@media (max-width:720px) {
/* 移动端样式就在这个里面 */
.query-section .col-lg-2 {
        flex: 0 0 auto;
        width: 100%;
    }
    
}