/* 研究院概况页面样式 */

/* 页面允许滚动 */
html, body {
    overflow: auto;
    scrollbar-width: auto;
    height: auto;
    min-height: 100%;
}

/* Webkit 浏览器显示滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 页面主体 */
.about-page {
    padding-top: 40px;
    background: url('../images/about/page-bg.png') center top no-repeat;
    background-size: cover;
}

/* ========== 滚动入场动画 ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-from-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-from-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-from-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-from-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* 移动端禁用滚动动画 */
@media (max-width: 768px) {
    .animate-on-scroll,
    .animate-from-left,
    .animate-from-right,
    .animate-scale-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.about-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 140px 0 60px;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #0073ff;
    margin-bottom: 15px;
}

.title-icon {
    width: 484px;
    height: 21px;
    display: block;
    margin: 0 auto;
}

/* Tab 导航 */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-item {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #333;
    text-decoration: none;
    width: 181px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.tab-item.active {
    background: linear-gradient(180deg, #D0E5FF 0%, #F3F8FF 48.08%, #D0E5FF 100%);
    color: #0073ff;
}

.tab-item:hover {
    color: #0073ff;
}

/* Tab 内容 */
.tab-content {
    animation: fadeIn 0.3s ease;
}

.tab-content.hidden {
    display: none;
}

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

/* 研究院简介内容 */
.intro-section {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

.intro-section.reverse {
    flex-direction: row-reverse;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #3B444E;
    line-height: 1.8;
    margin-bottom: 20px;
    text-indent: 2em;
}

.intro-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-image img {
    max-width: 100%;
    height: auto;
}

/* 研究院领导内容 - 文字列表形式 */
.leader-text-section {
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.leader-item {
    margin-bottom: 30px;
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-size: 18px;
    line-height: 1.8;
}

.leader-title {
    font-weight: 700;
    color: #333;
}

.leader-name {
    font-weight: 400;
    color: #333;
}

.leader-group {
    margin-top: 40px;
}

.leader-group h4 {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

/* ==================== 大屏幕适配 (1920px 以下) ==================== */
@media (max-width: 1920px) {
    .about-container {
        max-width: 1320px;
        padding: 140px 0 60px;
    }
}

/* ==================== 1600px 以下适配 ==================== */
@media (max-width: 1600px) {
    .about-container {
        max-width: 1200px;
        padding:120px 0 50px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .tab-item {
        font-size: 20px;
        width: 170px;
        height: 48px;
    }

    .intro-section {
        gap: 40px;
        margin-bottom: 50px;
    }

    .intro-text p {
        font-size: 16px;
    }

}

/* ==================== 1440px 以下适配 ==================== */
@media (max-width: 1440px) {
    .about-container {
        max-width: 1100px;
        padding: 110px 0 45px;
    }

    .page-header h1 {
        font-size: 30px;
    }

    .title-icon {
        width: 400px;
        height: auto;
    }

    .tab-nav {
        gap: 15px;
        margin-bottom: 40px;
    }

    .tab-item {
        font-size: 18px;
        width: 160px;
        height: 46px;
    }

    .intro-section {
        gap: 35px;
        margin-bottom: 45px;
    }

    .intro-text p {
        font-size: 15px;
        line-height: 1.7;
    }

    .leader-text-section {
        max-width: 700px;
        padding: 30px 0;
    }

}

/* ==================== 1366px 以下适配 ==================== */
@media (max-width: 1366px) {
    .about-container {
        max-width: 1000px;
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .title-icon {
        width: 360px;
    }

    .tab-nav {
        gap: 12px;
        margin-bottom: 35px;
    }

    .tab-item {
        font-size: 17px;
        width: 150px;
        height: 44px;
    }

    .intro-section {
        gap: 30px;
        margin-bottom: 40px;
    }

    .intro-text p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 15px;
    }

    .leader-text-section {
        max-width: 650px;
        padding: 25px 0;
    }

    .leader-item {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .leader-group h4 {
        font-size: 18px;
    }

}

/* ==================== 1280px 以下适配 ==================== */
@media (max-width: 1280px) {
    .about-container {
        max-width: 950px;
        padding: 90px 0 35px;
    }

    .page-header {
        margin-bottom: 25px;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .title-icon {
        width: 320px;
    }

    .tab-item {
        font-size: 16px;
        width: 140px;
        height: 42px;
    }

    .intro-section {
        gap: 25px;
        margin-bottom: 35px;
    }

}

/* ==================== 1024px 以下适配 (平板横屏) ==================== */
@media (max-width: 1024px) {
    .about-page {
        padding-top: 40px;
    }

    .about-container {
        max-width: 100%;
        padding: 80px 0 30px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .title-icon {
        width: 280px;
    }

    .tab-nav {
        gap: 10px;
        margin-bottom: 30px;
    }

    .tab-item {
        font-size: 15px;
        width: 130px;
        height: 40px;
    }

    .intro-section {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .intro-section:nth-child(2) .intro-text {
        order: -1;
    }

    .intro-text p {
        font-size: 14px;
    }

    .intro-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .leader-text-section {
        max-width: 100%;
        padding: 20px 15px;
    }

}

/* ==================== 移动端适配 (768px 以下) ==================== */
@media (max-width: 768px) {
    /* about 页面移动端 logo 切换为深色 */
    .logo img {
        content: url('../images/logo-b.png');
    }

    /* 搜索按钮深色 */
    .search-btn-nav {
        background-image: url('../images/search-dark.png');
        filter: brightness(0) saturate(100%) invert(31%) sepia(97%) saturate(1620%) hue-rotate(198deg) brightness(97%) contrast(101%);
    }

    /* 页面主体 */
    .about-page {
        padding-top: 40px;
    }

    .about-container {
        padding: 80px 15px 30px;
    }

    /* 页面标题 */
    .page-header h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .title-icon {
        width: 200px;
        height: auto;
    }

    /* Tab 导航 */
    .tab-nav {
        gap: 10px;
        margin-bottom: 30px;
    }

    .tab-item {
        font-size: 16px;
        width: 130px;
        height: 40px;
    }

    /* 研究院简介内容 - 上下堆叠（文字-图片-文字-图片） */
    .intro-section {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    /* 移动端：确保所有区块都是文字在上，图片在下 */
    .intro-section:nth-child(2) .intro-text {
        order: -1;
    }

    .intro-text p {
        font-size: 14px;
        line-height: 1.8;
        text-indent: 2em;
    }

    .intro-image img {
        max-width: 100%;
        height: auto;
    }

    /* 研究院领导内容 */
    .leader-text-section {
        padding: 20px 0;
        max-width: 100%;
    }

    .leader-item {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .leader-group {
        margin-top: 30px;
    }

    .leader-group h4 {
        font-size: 16px;
    }

    /* 搜索弹窗移动端适配 */
    .search-modal-content {
        padding: 0 20px;
    }

    .search-modal-form {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .search-modal-form input {
        width: 100%;
        height: 48px;
        font-size: 16px;
    }

    .search-modal-btn {
        width: auto;
        height: auto;
        max-width: 24px;
        max-height: 24px;
        padding: 10px;
        flex-shrink: 0;
    }
}
