/* 二级页面通用样式 */

/* 宣传图 */
.page-banner {
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    /*padding: 0.75rem 0;*/
    /*margin-bottom: 1rem;*/
    /*border-bottom: 1px solid #eee;*/
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.breadcrumb-item.active {
    color: var(--text-gray);
}

/* 左侧导航菜单 */
.side-nav {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background-color: #fff;
}

.side-nav-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
}

.side-nav-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

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

.side-nav-list li {
    border-bottom: 1px solid #eee;
}

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

.side-nav-list li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.side-nav-list li a:hover,
.side-nav-list li a.active {
    background-color: var(--light-blue);
    color: var(--primary-color);
    padding-left: 20px;
}

/* 联系信息 */
.contact-info {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
}

.contact-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-body {
    background-color: #f8f9fa;
    padding: 15px;
}

.contact-body p {
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
}

.contact-body i {
    color: var(--primary-color);
    width: 15px;
    text-align: center;
    margin-right: 10px;
}

/* 右侧内容区域 */
.content-box {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.content-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
}

.content-header h5 {
    margin: auto 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.content-body {
    background-color: white;
    padding:20px;
    position: relative;
}

/* 信息列表 */
.info-list {
    margin-bottom: 20px;
}

.info-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.info-item .info-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.info-item .info-title i{
    overflow:hidden;
    white-space:normal
}
.info-item .info-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}
.info-list .info-title a.viewed {
  color: #999 !important;
}
.info-item .info-title a:hover {
    color: var(--accent-color);
}

.info-item .info-meta {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.info-item .info-meta span {
    margin-right: 15px;
}

.info-item .info-meta i {
    margin-right: 5px;
}

.info-item .info-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 分页 */
/* 分页 */
.pagination {
    margin-top: 20px;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap:▶10px;
}

.page-link,
.page-item a {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 0.375rem 0.75rem;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    margin: 2px;
}

.page-item a:hover,
.page-link:hover {
    color: var(--accent-color);
    background-color: #e9ecef;
    border-color: #dee2e6;
}

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

.page-item.disabled a,
.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* 推荐内容 */
.recommended-content {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.rec-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
}

.rec-header h5 {
    margin: 0;
    font-weight: 600;
}

.rec-body {
    background-color: white;
    padding: 20px;
}

.rec-item {
    transition: all 0.3s ease;
}

.rec-item:hover {
    transform: translateY(-5px);
}

.rec-item img {
    border-radius: 5px;
    margin-bottom: 10px;
}

.rec-item h6 {
    font-weight: 600;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 热门内容 */
.hot-content {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hot-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
}

.hot-header h5 {
    margin: 0;
    font-weight: 600;
}

.hot-body {
    background-color: white;
    padding: 20px;
}

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

.hot-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

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

.hot-rank {
    width: 24px;
    height: 24px;
    background-color: #f1f1f1;
    color: var(--text-gray);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 10px;
}

.hot-list li:nth-child(1) .hot-rank {
    background-color: #ff4d4f;
    color: white;
}

.hot-list li:nth-child(2) .hot-rank {
    background-color: #ff7a45;
    color: white;
}

.hot-list li:nth-child(3) .hot-rank {
    background-color: #ffa940;
    color: white;
}

.hot-list li a {
    flex: 1;
    color: var(--text-dark);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

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

.hot-date {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-left: 10px;
}

.text-muted {
    color: rgb(152 152 153 / 75%) !important;
}
.article-title {
    font-size: 2.6rem;
    line-height: 1.6;
    color: #212529;
    width: 90%;
    margin: auto;
}

.article-meta {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

.article-content {
    font-size: 1rem;
    /* text-align: justify; */
}
.article-content p{
    line-height: 1.8!important;
}
.article-content *{
    max-width:100% !important;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    /* margin: 1rem 0; */
}
.article-content p {
    margin-bottom: 1.8rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #212529;
}

.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.article-tags .badge {
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
    transition: all 0.2s ease;
}

.article-tags .badge:hover {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.article-actions {
    color: #6c757d;
}

.article-nav a {
    color: #6c757d;
    transition: color 0.2s ease;
}

.article-nav a:hover {
    color: #0d4a8f !important;
}

.company.nav-pills .nav-item .nav-link{
color: #000;
}
.company.nav-pills .nav-link.active, .company.nav-pills .show>.nav-link{
    background-color: #0d4a8f !important;
    color: white;
}
.enterprise-logo {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    height: 100%;
    min-width: 30%;
}
.enterprise-desc {
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
      overflow: hidden;
    font-size: 0.875em;
  
}
/* 响应式调整 */
@media (max-width: 991px) {
    .side-nav, .contact-info {
        margin-bottom: 20px;
    }
    .contact-info {display: none;
    }
}

@media (max-width: 767px) {
    .article-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem!important;
    text-align: left;
    }
    .article-content p span{
    font-size: 1.1rem!important;
    }
    .page-banner img {
        max-height: 200px;
    }
    .side-nav-list li{
        width: 25%;
    }
    .page-item a { margin: 0px;}
    .side-nav-list li a{
        text-align: center;
    }
    .side-nav-list li a {padding: 12px 6px;}
    .side-nav-list li a:hover, .side-nav-list li a.active { padding-left: 2px;}
    .content-header, .rec-header, .hot-header {
        padding: 12px 15px;
    }
    
    .content-body, .rec-body, .hot-body {
        padding: 15px;
    }
    .content-body .p-3 { padding: 1rem 0rem!important;}
    .floating .bshare-custom{ display: none;}
    .article-meta { padding: 0.25rem 1rem;}
    .info-item {
        padding: 15px 0;
    }
    
    .info-item .info-title {
        font-size: 1rem;
    }

    .article-title {
        font-size: 22px;
        line-height: 1.38;
        width: 100%;
    }
   
    .article-meta span {
        margin-bottom: 0rem;
    }
    .company.nav-pills .nav-item {
        width: 33.33%;
        padding: 0;
        text-align: center;
        margin-right: 0 !important;
    }
    .company.nav-pills .nav-item .nav-link{
        font-size: 0.875rem;
        padding: 4px 0;
        margin-right: 0 !important;
    }
    .enterprise-logo{
        width: 30%;
        padding-right: 0 !important;
        background: white !important;
    }
    .enterprise-name{
        font-size: 1rem !important;
        flex:1;
        margin-right: 10px;
    }
    .enterprise-desc{
        display: none !important;
    }
} 