/* 中科概况页面样式 */

/* 页面标题区域样式 */
.page-title {
    background: url('https://www.zkjg.net/img/banner-01.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 200px 0 80px;
    padding-top: 100px !important;
    margin-bottom: 0;
    color: #fff;
    width: 100%;
    overflow: hidden;
}

.page-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-title .container {
    position: relative;
    z-index: 2;
}

.page-title h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 3rem;
}

.breadcrumb {
    background: transparent;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

/* 内容区域通用样式 */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    display: inline-block;
}

/* 学校简介部分样式 */
#introduction p {
    line-height: 1.8;
    margin-bottom: 20px;
}

#introduction img {
    transition: all 0.3s ease;
}

#introduction img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 组织机构部分样式 */
.org-chart {
    transition: all 0.3s ease;
    padding: 40px !important;
    position: relative;
    text-align: center;
}

.org-chart:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.org-box {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.org-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.org-top {
    background-color: var(--primary-color);
    color: white;
    min-width: 200px;
}

.org-middle {
    background-color: #28a745;
    color: white;
    min-width: 180px;
}

.org-department {
    background-color: #17a2b8;
    color: white;
    min-width: 180px;
}

.org-list {
    margin-top: 25px;
}

.org-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    transition: all 0.3s;
}

.org-list li:last-child {
    border-bottom: none;
}

.org-list li:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* 连接线样式 */
.org-connector {
    width: 2px;
    height: 40px;
    background-color: #ddd;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.horizontal-connector {
    position: absolute;
    top: 75%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

.horizontal-connector:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 30px;
    background-color: #ddd;
    transform: translateX(-50%) translateY(-100%);
}

.department-connectors {
    position: absolute;
    top: -20px;
    left: 16.67%;
    right: 16.67%;
    height: 20px;
}

.department-connectors:before,
.department-connectors:after,
.department-connectors:nth-child(2) {
    content: "";
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: #ddd;
}

.department-connectors:before {
    left: 0;
}

.department-connectors:after {
    right: 0;
}

.department-connectors:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
}

.department-connectors::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ddd;
}

/* 领导团队部分样式 */
.team-card {
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-img-container {
    overflow: hidden;
    height: 250px;
}

.team-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.team-card:hover .team-img-container img {
    transform: scale(1.05);
}

.team-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* 校长寄语部分样式 */
.message-content {
    transition: all 0.3s ease;
}

.message-content:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.message-content p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* 响应式样式调整 */
@media (max-width: 992px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .team-img-container {
        height: 220px;
    }
    
    .page-title {
        padding: 180px 0 70px;
    }
    
    .page-title h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        padding: 160px 0 60px;
    }
    
    .page-title h1 {
        font-size: 2.2rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    /* 确保组织机构图在移动设备上正确显示 */
    .department-connectors {
        display: none; /* 在移动设备上隐藏连接线 */
    }
    
    .org-box {
        margin-bottom: 10px;
    }
    
    /* 修复水平滚动问题 */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* 确保内容不被遮挡 */
    #introduction, #organization, #leadership, #principals-message {
        padding-top: 20px;
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .page-title {
        padding: 150px 0 50px;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .org-chart {
        padding: 20px !important;
    }
    
    .org-box {
        padding: 10px 15px;
        width: 100%;
        max-width: 220px;
    }
    
    .team-img-container {
        height: 200px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .school-images {
        margin-top: 2rem;
    }
}

@media (max-width: 375px) {
    /* 移除相关样式 */
}

/* 导航栏样式覆盖 */
.navbar {
    width: 100%;
    transition: all 0.3s ease;
}

.navbar.scrolled,
.navbar.top200 {
    background-color: white !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-toggler {
    border: none;
    outline: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991px) {
    .navbar-nav {
        background-color: white;
        border-radius: 0 0 8px 8px;
        padding: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar .nav-link {
        color: #333 !important;
    }
    
    .navbar .nav-link.active {
        color: var(--primary-color) !important;
    }
    
    .dropdown-menu {
        border: none;
        background-color: #f8f9fa;
        padding-left: 15px;
    }
}

/* 学校图片样式 */
.school-images {
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.object-fit-cover {
    object-fit: cover;
}

/* 主要内容标题下划线效果 */
.border-start.border-primary {
    position: relative;
}



@media (max-width: 576px) {
    .sticky-top {
        top: 56px !important;
    }
    
    .sticky-top .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .school-images {
        margin-top: 2rem;
    }
}

@media (max-width: 375px) {
    .sticky-top .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
        margin: 0.25rem !important;
    }
} 