/**
 * 机构/高校风格模板样式
 * 参考：北京理工大学技术转移中心
 * 主色调：蓝色系 #005bac, #0066cc
 */

/* ==================== 基础变量 ==================== */
:root {
    --primary-color: #005bac;
    --primary-light: #0066cc;
    --primary-dark: #004a8c;
    --secondary-color: #f5f7fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e8e8e8;
    --bg-gray: #f8f9fa;
    --white: #fff;
    --transition: all 0.3s ease;
}

/* ==================== 通用样式 ==================== */
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* 区块间距 */
.section-padding {
    padding: 60px 0;
}

/* 专家智库轮播 */
.experts-wrapper {
    padding: 20px 40px;
}
.experts-swiper {
    padding: 10px 5px;
}
.expert-item {
    text-align: center;
}
.expert-card {
    display: block;
    transition: all 0.3s;
}
.expert-avatar-box {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.expert-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}
.expert-default-avatar {
    font-size: 60px;
    color: #ddd;
}
.expert-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 10px 0 5px;
}
.expert-field {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* 轮播按钮样式 */
.experts-prev, .experts-next {
    width: 30px;
    height: 30px;
    color: #ccc;
}
.experts-prev::after, .experts-next::after {
    font-size: 20px;
}
.experts-prev { left: -10px; }
.experts-next { right: -10px; }

/* ==================== 头部导航 ==================== */
.institute-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 91, 172, 0.2);
}

/* 二级下拉菜单样式 */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    padding: 0;
    list-style: none;
    margin: 0;
    overflow: hidden;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: #fff !important;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    text-decoration: none;
}

/* 导航项悬停显示子菜单 */
.has-submenu:hover .submenu {
    display: block;
}

/* 导航项悬停效果 */
.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 头部导航开阔化重构 */
.institute-header .container {
    display: flex;
    justify-content: flex-start; /* 改为左对齐，通过间距控制平衡 */
    align-items: center;
    max-width: 1400px; /* 更加开阔的容器 */
    padding: 0 40px; /* 增加两侧留白 */
}

@media (max-width: 1400px) {
    .institute-header .container {
        padding: 0 20px;
    }

    .nav-search-wrapper {
        margin-left: 10px;
    }
}

.navbar-brand {
    padding: 10px 0;
    margin-right: 60px; /* 拉开 Logo 与第一个菜单的距离 */
}

.navbar-brand img {
    max-height: 65px; /* 适度放大 Logo */
    width: auto;
}

.navbar-nav {
    margin-left: 20px; /* 菜单稍微向中间靠拢 */
    display: flex;
    gap: 20px; /* 缩小菜单项之间的间距 */
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 16px; /* 稍微缩小字号以适应一行 */
    padding: 26px 12px !important; /* 减少左右间距 */
    font-weight: 600;
    letter-spacing: 0.5px; /* 缩减字间距 */
    white-space: nowrap; /* 强制不换行 */
}

/* 导航栏重构样式 */
.navbar-brand-text {
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    margin-right: 20px;
    margin-left: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: normal;
    display: inline-block;
    text-align: left;
    line-height: 1.3;
    flex: 0 0 auto;
    flex-shrink: 0;
    max-width: none;
    overflow: visible;
}

.navbar-brand-text .brand-line{
    display:block;
    position: relative;
    left: 0;
}

.navbar-nav {
    margin-right: auto; /* 将导航菜单向左推 */
    display: flex;
    flex-wrap: nowrap; /* 禁止菜单换行 */
}

@media (min-width: 992px) {
    .navbar-nav {
        margin-left: 28px;
    }
}

/* 移动端导航栏修复 */
@media (max-width: 991px) {
    .navbar-brand-text {
        font-size: 15px !important;
        margin-right: 10px !important;
        margin-left: 0 !important;
        letter-spacing: 0 !important;
        line-height: 1.2 !important;
        max-width: calc(100vw - 120px) !important;
        overflow: visible !important;
        text-align: left !important;
    }
    
    .navbar-brand-text .brand-line {
        left: 0 !important;
        font-size: inherit !important;
    }
    
    .institute-header .container {
        padding: 0 15px !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }
    
    .navbar-brand {
        margin-right: 10px !important;
        padding: 5px 0 !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    
    .navbar {
        overflow: visible !important;
    }
    
    .navbar-collapse {
        overflow: visible !important;
    }
}

.nav-search-wrapper {
    margin-left: 20px;
    flex-shrink: 0;
    padding: 2px 0;
}

.navbar-text {
    display: none; /* 彻底移除个人中心区域 */
}

.nav-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12); /* 保持恒定透明度 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3px 5px 3px 15px;
    transition: none; /* 移除过渡动画 */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-search-form:hover,
.nav-search-form:focus-within {
    background: rgba(255, 255, 255, 0.12); /* 悬停时不改变背景 */
    border-color: rgba(255, 255, 255, 0.2); /* 悬停时不改变边框 */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* 保持内阴影 */
}

.nav-search-input {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    width: 150px; /* 保持固定宽度 */
    height: 32px;
    outline: none !important;
}

@media (max-width: 1200px) {
    .navbar-nav {
        gap: 12px;
        margin-left: 12px;
    }

    .navbar-nav .nav-link {
        font-size: 15px;
        padding: 26px 8px !important;
        letter-spacing: 0.2px;
    }

    .nav-search-input {
        width: 110px;
    }

    .nav-search-form:focus-within .nav-search-input {
        width: 110px;
    }
}

.nav-search-form:focus-within .nav-search-input {
    width: 150px; /* 聚焦时不再伸长 */
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.nav-search-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.nav-search-btn:hover {
    transform: scale(1.1);
}

/* 占位高度同步微调 */
.head-sm-height {
    height: 90px !important;
}

.navbar-text a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
}

.navbar-text a:hover {
    color: #fff !important;
}

/* ==================== Banner区域 ==================== */
.main-banner {
    position: relative;
}

/* 幻灯片尺寸精准控制 - 解决过大及遮挡问题 */
.banner-swiper {
    width: 100%;
    height: 400px !important; /* 强制舒适高度 */
    overflow: hidden;
    position: relative;
}

.slideshow {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* 保证图片不变形 */
    visibility: visible !important;
    opacity: 1 !important;
}

/* 导航栏物理占位 - 确保内容不被遮挡 */
.head-sm-height {
    height: 71px !important; /* 与导航栏高度一致 */
    width: 100%;
    display: block;
}

.institute-header {
    height: 71px;
    z-index: 10000 !important; /* 确保在最顶层 */
    background: #005bac !important;
}

/* 修复导航栏遮挡问题 */
.institute-header {
    z-index: 1050 !important; /* 确保导航栏在最顶层 */
    background: #005bac !important; /* 强制背景色，防止透明看到底层内容 */
}

/* 物理解决遮挡问题 */
.page-banner {
    padding: 30px 0; /* 增加内边距 */
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.institute-header {
    height: 71px;
    z-index: 9999 !important;
    background-color: #005bac !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-section {
    position: relative;
    z-index: 1; /* 降低内容区层级 */
    padding-top: 40px;
}

/* 侧边栏样式优化，防止溢出或遮挡 */
.sidebar {
    position: relative;
    z-index: 5;
}

.sidebar-widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.banner-text {
    z-index: 10;
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 60px 0 40px;
}

.banner-text h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.banner-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    max-width: 600px;
}

.banner-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.banner-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

.banner-prev,
.banner-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
}

.banner-prev:hover,
.banner-next:hover {
    background: var(--primary-color);
    color: #fff;
}

.banner-prev::after,
.banner-next::after {
    font-size: 20px;
    font-weight: bold;
}

/* ==================== 区块标题 ==================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
}

.title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    margin-right: 12px;
    font-size: 18px;
}

.title-en {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 10px;
    text-transform: uppercase;
}

.more-link {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.more-link:hover {
    color: var(--primary-color);
}

/* ==================== 焦点新闻 - 参考图风格 ==================== */
.focus-news {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #e8e8e8;
    transition: var(--transition);
}

.focus-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.focus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.focus-news:hover .focus-image img {
    transform: scale(1.05);
}

.focus-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px 12px;
    text-align: center;
    border-radius: 4px;
}

.focus-date .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.focus-date .month {
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

.focus-title {
    padding: 15px 15px 8px;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
}

.focus-title a {
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.focus-title a:hover {
    color: var(--primary-color);
}

.focus-desc {
    padding: 0 15px 15px;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ==================== 新闻Tab ==================== */
.news-tabs .nav-tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.news-tabs .nav-tabs .nav-link {
    border: none;
    color: var(--text-light);
    font-size: 15px;
    padding: 12px 20px;
    position: relative;
    font-weight: 500;
}

.news-tabs .nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.news-tabs .nav-tabs .nav-link:hover,
.news-tabs .nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: none;
}

.news-tabs .nav-tabs .nav-link.active::after {
    width: 100%;
}

/* 新闻列表 */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    border-bottom: 1px dashed var(--border-color);
}

.news-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 8px 12px;
    background: var(--secondary-color);
    border-radius: 4px;
    margin-right: 15px;
    transition: var(--transition);
}

.news-item:hover .news-date {
    background: var(--primary-color);
}

.news-date .date-day {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    transition: var(--transition);
}

/* 新闻列表样式 - 参考图风格 */
.news-section .row {
    display: flex;
    align-items: stretch;
}

.news-section .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.focus-news {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.focus-desc {
    flex: 1;
}

.news-tabs {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-tabs .tab-content {
    flex: 1;
    overflow: visible;
}

.news-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.news-list .news-item {
    display: flex;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 1px solid #e8e8e8;
    flex: 1;
    transition: background 0.3s;
}

.news-list .news-item:hover {
    background: #f8f9fa;
}

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

.news-list .news-item .news-date {
    min-width: 45px;
    background: none !important;
    padding: 0 10px 0 0;
    margin-right: 15px;
    border-right: 1px solid #e8e8e8;
    border-radius: 0;
}

.news-list .news-item:hover .news-date {
    background: none !important;
}

.news-list .news-item .news-date .date-day {
    font-size: 22px;
    color: #333 !important;
    line-height: 1.2;
    font-weight: 600;
}

.news-list .news-item .news-date .date-month {
    font-size: 11px;
    color: #999 !important;
    margin-top: 2px;
}

.news-list .news-title {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-list .news-item:hover .news-title {
    color: var(--primary-color);
}

.news-tabs .swiper-slide .news-item {
    padding: 14px 0;
}

/* Tab切换时的过渡动画 */
.news-tabs .tab-pane {
    transition: opacity 0.3s ease;
}

.news-date .date-month {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
    transition: var(--transition);
}

.news-item:hover .date-day,
.news-item:hover .date-month {
    color: #fff;
}

.news-title {
    flex: 1;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.5;
}

.news-meta {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item:hover .news-title {
    color: var(--primary-color);
}

/* 新闻标题链接 - 继承父级样式 */
.news-title-link {
    color: inherit;
    text-decoration: none;
}

.news-title-link:hover {
    color: var(--primary-color);
}

/* 来源网址链接 - 小字可点击 */
.news-outlink {
    color: var(--text-light);
    text-decoration: none;
    word-break: break-all;
}

.news-outlink:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ==================== 项目/成果展示 ==================== */
.projects-section {
    background: var(--bg-gray);
}

/* 分类标签 */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag-item {
    display: inline-block;
    padding: 8px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
}

.tag-item:hover,
.tag-item.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 成果Tab */
.project-tabs .nav-pills {
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
}

.project-tabs .nav-pills .nav-link {
    padding: 15px 30px;
    background: var(--white);
    border-radius: 4px;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.project-tabs .nav-pills .nav-link .tab-main {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.project-tabs .nav-pills .nav-link .tab-sub {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
}

.project-tabs .nav-pills .nav-link:hover,
.project-tabs .nav-pills .nav-link.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.project-tabs .nav-pills .nav-link:hover .tab-main,
.project-tabs .nav-pills .nav-link.active .tab-main,
.project-tabs .nav-pills .nav-link:hover .tab-sub,
.project-tabs .nav-pills .nav-link.active .tab-sub {
    color: #fff;
}

/* 项目卡片 */
.project-card {
    display: block;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    transition: var(--transition);
}

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

.project-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 91, 172, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-detail {
    color: #fff;
    padding: 8px 20px;
    border: 2px solid #fff;
    border-radius: 20px;
    font-size: 14px;
}

.project-title {
    padding: 15px 15px 5px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-desc {
    padding: 0 15px 15px;
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 企业卡片 */
.company-card {
    display: block;
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    transition: var(--transition);
}

.company-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.company-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.company-name {
    font-size: 15px;
    color: var(--text-color);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 专家智库 ==================== */
.experts-section {
    background: var(--white);
}

.experts-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.experts-swiper {
    overflow: hidden;
}

.expert-card {
    display: block;
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

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

.expert-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    transition: var(--transition);
}

.expert-card:hover .expert-avatar {
    border-color: var(--primary-color);
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 5px;
}

.expert-field {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.experts-prev,
.experts-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.experts-prev {
    left: 0;
}

.experts-next {
    right: 0;
}

.experts-prev:hover,
.experts-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ==================== 服务指南快捷入口 ==================== */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.service-icons {
    text-align: center;
}

.service-item {
    padding: 20px 0;
}

.service-link {
    display: block;
    color: #fff;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: var(--transition);
}

.service-link:hover .service-icon {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.service-link h4 {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

/* ==================== 友情链接 ==================== */
.links-section {
    background: #2c3e50;
    padding: 20px 0;
}

.links-wrapper {
    display: flex;
    align-items: center;
}

.links-label {
    color: #fff;
    font-weight: 600;
    margin-right: 20px;
    white-space: nowrap;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
}

.links-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.links-list a:hover {
    color: #fff;
}

/* ==================== 底部样式 ==================== */
.footer {
    background: #1a252f !important;
    color: rgba(255, 255, 255, 0.7);
}

.footer h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

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

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

.footer a {
    color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
    color: #fff;
}

.footer .copyright {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

/* 二维码区域 */
.code img {
    max-width: 120px;
    border-radius: 4px;
}

/* 底部留言表单 */
.message-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.message-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.message-form .btn-primary {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

/* ==================== 导航栏：端分离逻辑 ==================== */

/* 默认 PC 端样式 (992px 以上) */
@media (min-width: 992px) {
    .navbar-toggler,
    .custom-toggler {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
    .navbar-collapse {
        display: flex !important; /* PC端强制平铺 */
    }
    .navbar-nav {
        flex-direction: row !important;
    }
}

/* 移动端精准适配 (992px 以下) */
@media (max-width: 991px) {
    /* 汉堡按钮：显著增强可见度 */
    .custom-toggler {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 10px;
        z-index: 10006; /* 必须在最顶层 */
        padding: 6px 10px;
        background: rgba(255, 255, 255, 0.25) !important; /* 更亮的背景 */
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        border-radius: 4px;
        outline: none !important;
        box-shadow: none !important; /* 彻底去除按钮阴影 */
    }

    .custom-toggler .navbar-toggler-icon {
        width: 24px;
        height: 18px;
        display: inline-block;
        background-image: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.95) 12%,
            transparent 12%,
            transparent 44%,
            rgba(255, 255, 255, 0.95) 44%,
            rgba(255, 255, 255, 0.95) 56%,
            transparent 56%,
            transparent 88%,
            rgba(255, 255, 255, 0.95) 88%,
            rgba(255, 255, 255, 0.95) 100%
        );
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .custom-toggler:focus, .custom-toggler:active {
        box-shadow: none !important;
        outline: none !important;
    }

    /* 全局强力去阴影 */
    body.drawer-open {
        background: none !important;
        overflow: hidden; /* 防止底层滑动，但不准变暗 */
    }

    .navbar-collapse, 
    .navbar-collapse.show,
    .collapsing {
        box-shadow: none !important;
        border: none !important;
    }

    /* 彻底移除灰色遮罩效果 */
    .drawer-overlay {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* 侧边抽屉式菜单重构 - 强制显示逻辑 */
    #navbarNav {
        position: fixed !important;
        top: 0 !important;
        right: -80% !important; 
        width: 75% !important; 
        height: 100vh !important;
        background: #ffffff !important; /* 强制纯白 */
        box-shadow: none !important; /* 彻底去除投影 */
        z-index: 20000 !important; /* 显著提升层级，必须在遮罩层之上 */
        transition: right 0.3s ease-in-out !important;
        display: block !important; /* 必须强制为 block */
        visibility: visible !important; /* 必须可见 */
        padding: 60px 0 20px !important;
        overflow-y: auto;
        border-left: 1px solid #f0f0f0 !important; /* 用极浅色实线代替投影 */
    }

    #navbarNav.show {
        right: 0 !important;
    }

    .navbar-nav {
        flex-direction: column !important;
        width: 100%;
        padding: 0 !important;
    }

    .navbar-nav .nav-item {
        width: 100% !important;
        border-bottom: 1px solid #f1f1f1;
        padding: 0;
        position: relative;
    }

    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        color: #333 !important;
        font-size: 15px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 500;
        background: #fff;
    }

    /* 右侧旋转箭头 */
    .has-submenu > .nav-link::after {
        content: none !important;
    }

    .has-submenu .submenu-toggle {
        position: absolute;
        right: 8px;
        top: 0;
        height: 44px;
        width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        z-index: 3;
        pointer-events: auto;
    }

    .has-submenu .submenu-toggle::before {
        content: "\f105";
        font-family: FontAwesome;
        font-size: 18px;
        color: #bbb;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .has-submenu.active .submenu-toggle::before {
        transform: rotate(90deg);
        color: #005bac;
    }

    /* 二级小分类默认隐藏 */
    .submenu {
        position: static !important;
        display: none !important; /* 核心：默认隐藏 */
        background: #fcfcfc !important;
        padding: 0 !important;
        border-top: 1px solid #f0f0f0;
    }

    /* 激活状态下显示 */
    .has-submenu.active > .submenu {
        display: block !important;
    }

    .submenu li a {
        padding: 12px 35px !important;
        font-size: 14px !important;
        color: #666 !important;
        border-bottom: 1px solid #f5f5f5;
        display: block;
    }

    /* 抽屉顶部增加一个关闭区域（点击非菜单区域也可关闭） */
    .drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 10004;
        display: none;
    }
    
    body.drawer-open .drawer-overlay {
        display: block;
    }

    /* 手机端搜索框在抽屉内显示 */
    .nav-search-wrapper {
        padding: 20px !important;
        background: #fff !important;
    }
    
    .nav-search-form {
        background: #f5f5f5 !important;
        border-radius: 20px !important;
        padding: 5px 15px !important;
    }
    
    .nav-search-input {
        color: #333 !important;
    }

    /* 手机端搜索框优化 */
    .nav-search-wrapper {
        padding: 15px 20px !important;
        margin: 0 !important;
        background: rgba(0,0,0,0.1);
    }

    /* 手机端其他元素适配 */
    .banner-swiper, .slideshow {
        height: 220px !important;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 20px 0; /* 缩小板块间距 */
    }
}

/* ==================== 幻灯片切换按钮 - 简洁箭头 ==================== */
.banner-prev,
.banner-next {
    display: none !important;
    background: none !important;
    width: 30px !important;
    height: 30px !important;
}

/* 使用<>符号 */
.banner-prev:after {
    content: '<' !important;
    font-family: Arial, sans-serif !important;
    font-size: 40px !important;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.banner-next:after {
    content: '>' !important;
    font-family: Arial, sans-serif !important;
    font-size: 40px !important;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.banner-prev:hover:after,
.banner-next:hover:after {
    color: #fff;
}

/* ==================== 移动端右侧悬浮导航 ==================== */
.mobile-float-nav {
    position: fixed;
    right: 15px;
    bottom: 80px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.float-btn i {
    font-size: 20px;
    margin-bottom: 2px;
}

.float-btn span {
    font-size: 10px;
}

.phone-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.qq-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.float-btn:hover {
    transform: scale(1.1);
    color: #fff;
    text-decoration: none;
}

/* ==================== 分页条视觉重塑 (解决拥挤问题) ==================== */
.pagination-wrapper {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* 分页输出的分组容器（page-status/page-index/page-pre/page-numbar/page-next/page-last） */
.pagination-wrapper .page-status,
.pagination-wrapper .page-index,
.pagination-wrapper .page-pre,
.pagination-wrapper .page-numbar,
.pagination-wrapper .page-next,
.pagination-wrapper .page-last {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.pagination-wrapper a, 
.pagination-wrapper span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    line-height: 1;
    min-height: 30px;
    vertical-align: middle;
}

.pagination-wrapper a:hover {
    background-color: #f3f5f7;
    border-color: transparent;
    color: #333 !important;
}

/* 当前激活页样式 */
.pagination-wrapper .page-num-current, 
.pagination-wrapper span.current {
    background-color: #005bac;
    border-color: #005bac;
    color: #fff !important;
    font-weight: bold;
}

/* 状态信息样式 (如:共20条) */
.pagination-wrapper .page-status {
    border: none;
    background: transparent;
    color: #999;
    font-size: 13px;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .pagination-wrapper {
        justify-content: center;
        gap: 6px;
    }

    .pagination-wrapper .page-status {
        flex-basis: 100%;
        justify-content: center;
        text-align: center;
        margin-bottom: 6px;
    }

    .pagination-wrapper a, 
    .pagination-wrapper span {
        padding: 5px 9px;
        margin: 0;
        font-size: 12px;
        min-height: 28px;
    }

    .product-grid > [class^="col-"]:nth-child(n+5),
    .product-grid > [class*=" col-"]:nth-child(n+5) {
        display: none;
    }

    .projects-section .project-grid > [class^="col-"]:nth-child(n+5),
    .projects-section .project-grid > [class*=" col-"]:nth-child(n+5) {
        display: none;
    }
}
