/* ========== Reset ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
    color: #333333;
    background: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ============================================================
   §4.1 顶部 LOGO 行
   ============================================================ */
.top-bar {
    background: #ffffff;
    height: 110px;
    display: flex;
    align-items: center;
}

    .top-bar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

.top-bar__logo {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Logo 图片按原始像素显示，不缩放 */

/* ============================================================
   §4.2 蓝色导航条（双层颜色）
   ============================================================ */
.nav-bar {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 100;
}

/* 第一行：版本切换条 — 整行通体蓝色 #1D77B3 */
.nav-bar__sub {
    background: #1D77B3;
    display: flex;
    align-items: center;
    height: 55px;
}

    .nav-bar__sub .container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
    }

    .nav-bar__sub a {
        color: #ffffff;
        font-size: 18px;
        font-weight: normal;
        padding: 0 8px;
        line-height: 55px;
        white-space: nowrap;
        transition: color 0.2s;
    }

        .nav-bar__sub a:hover {
            color: #cccccc;
        }

        .nav-bar__sub a.active {
            color: #cccccc;
        }

    .nav-bar__sub .sep {
        color: #ffffff;
        font-size: 18px;
        padding: 0 2px;
    }

/* 第二行：主菜单条 — #40A6E3 */
.nav-bar__main {
    background: #40A6E3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.nav-bar__menu {
    display: flex;
    gap: 0;
}

/* 竖线分隔符 — 白色 #ffffff 1px 贯穿整行 48px */
.nav-bar__menu-item {
    position: relative;
    width: 150px;
    flex: none;
    border-right: 1px solid #ffffff;
}

    .nav-bar__menu-item:first-child {
        border-left: 1px solid #ffffff;
    }

.nav-bar__menu-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 18px;
    padding: 0;
    text-align: center;
    line-height: 48px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.2s;
    position: relative;
}

    .nav-bar__menu-link:hover {
        background: rgba(255, 255, 255, 0.15);
    }

/* 下拉菜单 */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #40A6E3;
    width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    z-index: 200;
}

.nav-bar__menu-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    color: #ffffff;
    font-size: 18px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s;
    padding: 10px;
    text-align: center;
    line-height: 150%;
}

    .nav-dropdown__link:last-child {
        border-bottom: none;
    }

    .nav-dropdown__link:hover {
        background: #1D77B3;
    }

/* ============================================================
   §4.3 大图轮播 Banner（响应式高度）
   ============================================================ */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #eaf3fc;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

    .banner-slide:first-child {
        position: relative;
    }

    .banner-slide.active {
        opacity: 1;
    }

    .banner-slide img {
        width: 100%;
        height: auto;
        display: block;
    }

/* 圆点指示器 */
.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

    .dot:hover,
    .dot.active {
        background: #ffffff;
    }

/* ============================================================
   §4.4 双栏：研究所概况 + 所长简介
   ============================================================ */
.info-row {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 10px auto;
}

.info-row__col.hospital-intro {
    flex: 0 0 700px;
    box-sizing: border-box;
}

.info-row__col.president-intro {
    flex: 0 0 480px;
    box-sizing: border-box;
}

.info-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    padding: 25px;
    box-sizing: border-box;
}

.info-row__col.president-intro .info-card,
.info-row-three__col:first-child .info-card,
.info-row-three__col:last-child .info-card {
    background: #FAFAF9;
}

/* ==================== 统一区块标题 ==================== */
.section-title {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 15px;
    position: relative;
}

    .section-title .title-icon {
        /* 原始 34x32, 不写 width/height */
    }

    .section-title .title-text {
        display: flex;
        flex-direction: column;
        margin-left: 10px;
    }

        .section-title .title-text h3 {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin: 0;
            line-height: 1.2;
        }

        .section-title .title-text .title-en {
            font-size: 12px;
            font-weight: bold;
            color: #999;
            margin: 2px 0 0 0;
            line-height: 1;
        }

    .section-title::after {
        content: '';
        position: absolute;
        left: -25px;
        right: -25px;
        bottom: 0;
        height: 1px;
        background: #666666;
    }

    .section-title::before {
        content: '';
        position: absolute;
        left: -25px;
        bottom: -3px;
        width: 140px;
        height: 3px;
        background: #068DC2;
    }

    .section-title .more-link {
        margin-left: auto;
        color: #666;
        font-size: 14px;
        text-decoration: none;
        transition: color 0.2s;
    }

        .section-title .more-link:hover {
            color: #1D77B3;
        }

/* 研究所概况内部布局：左图右文 */
.hospital-intro__body {
    display: flex;
    gap: 20px;
}

.hospital-intro__img {
    flex: 0 0 265px;
    width: 265px;
    height: auto;
    display: block;
}

.hospital-intro__text {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 2.0;
    text-align: justify;
}

/* 所长简介 */
.president-slider {
    position: relative;
    height: 176px;
    overflow: hidden;
}

.president-slider__viewport {
    position: relative;
    height: 176px;
}

.president-slide {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 20px;
    height: 176px;
    color: inherit;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
}

    .president-slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }

.president-slider__control {
    display: none;
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 102, 153, 0.85);
    color: #ffffff;
    cursor: pointer;
    line-height: 22px;
    transform: translateY(-50%);
}

.president-slider__control--prev {
    left: 4px;
}

.president-slider__control--next {
    right: 4px;
}

.president-slider__dots {
    position: absolute;
    right: 8px;
    bottom: 6px;
    z-index: 2;
    display: flex;
    gap: 6px;
    display:none;
}

.president-slider__dot {
    width: 8px;
    height: 8px;
    border: 1px solid #006699;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

    .president-slider__dot.active {
        background: #006699;
    }

.president-intro__img {
    flex: 0 0 132px;
    width: 132px;
    height: auto;
    display: block;
}

.president-intro__text {
    flex: 1;
}

.president-intro__name {
    font-size: 16px;
    font-weight: bold;
    color: #1D77B3;
    margin: 0 0 10px 0;
}

.president-intro__text p {
    font-size: 14px;
    color: #333;
    line-height: 2.0;
    text-align: justify;
}

.intro-static-banner {
    width: 1200px;
    height: 100px;
    margin: 0 auto 10px;
    overflow: hidden;
}

    .intro-static-banner img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

/* ============================================================
   §4.5 三栏：通知公告 + 学术动态 + 科研体系
   ============================================================ */
.info-row-three {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 10px;
}

.info-row-three__col {
    flex: 1;
    box-sizing: border-box;
}

.info-row-three .info-card {
    height: 330px;
}

.info-row-three__col:last-child .info-card {
    display: flex;
    flex-direction: column;
}

/* 通知公告/学术动态列表 */
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .notice-list li {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 0;
        border-bottom: 1px solid #e5e5e5;
        font-size: 14px;
        line-height: 1.5;
        color: #333;
    }

        .notice-list li::before {
            content: "";
            width: 0;
            height: 0;
            border-top: 4px solid transparent;
            border-bottom: 4px solid transparent;
            border-left: 7px solid #000000;
            flex-shrink: 0;
        }

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

    .notice-list a {
        color: #333;
        transition: color 0.2s;
    }

        .notice-list a:hover {
            color: #1D77B3;
        }

/* 科研体系卡片 */
.research-cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 24px;
}

.research-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background-color: #ffffff;
    background-image: url("../images/index_title.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 40px;
    border: 1px solid #62A9D9;
    border-radius: 4px;
    padding: 0 36px 0 58px;
    text-align: center;
    font-size: 18px;
    color: #006699;
    font-weight: bold;
    box-sizing: border-box;
    overflow: hidden;
    transition: opacity 0.2s, color 0.2s;
}

    .research-card:hover {
        color: #006699;
        opacity: 0.9;
    }

/* ============================================================
   §4.6 学科平台（按钮组）
   ============================================================ */
.platform-section {
    background: #E7F0FC;
    border-radius: 0;
    box-shadow: none;
    padding: 25px;
    margin: 0 auto 10px;
    max-width: 1200px;
    box-sizing: border-box;
}

.platform-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
}

    .platform-header .section-title {
        flex: 1;
        margin-right: 25px !important;
    }

    .platform-header::after {
        content: '';
        position: absolute;
        left: -25px;
        right: -25px;
        bottom: 0;
        height: 1px;
        background: #666666;
    }

    .platform-header .section-title::after {
        display: none;
    }

.platform-title-bar {
    display: flex;
    align-items: center;
}

.platform-more-btn {
    font-size: 14px;
    color: #666;
    transition: color 0.2s;
}

    .platform-more-btn:hover {
        color: #1D77B3;
    }

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 240px);
    justify-content: center;
    gap: 12px 38px;
}

.platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 40px;
    padding: 0 12px;
    background: #006699;
    border-radius: 8px;
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}

    .platform-btn:hover {
        background: #005B88;
        color: #ffffff;
    }

.platform-btn--placeholder,
.platform-btn--placeholder:hover {
    visibility: hidden;
    pointer-events: none;
}

/* ============================================================
   内页：科研体系
   ============================================================ */
.inner-hero {
    height: 350px;
    overflow: hidden;
}

    .inner-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.inner-page {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
}

.inner-sidebar {
    flex: 0 0 350px;
    background: #efefef;
    padding: 0 0 15px;
    box-sizing: border-box;
}

.inner-menu__header {
    position: relative;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #666666;
}

    .inner-menu__header::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 160px;
        height: 3px;
        background: #068DC2;
    }

    .inner-menu__header h2 {
        margin: 0;
        font-size: 16px;
        color: #006699;
        line-height: 1.2;
    }

    .inner-menu__header p {
        margin: 4px 0 0;
        font-size: 12px;
        color: #777777;
    }

.inner-menu__group-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 42px;
    border: 0;
    background: transparent;
    color: #006699;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

    .inner-menu__group-title::after,
    .inner-menu__subitem::after {
        content: '';
        position: absolute;
        left: 30px;
        right: 30px;
        bottom: 0;
        height: 1px;
        background: #999999;
    }

.inner-menu__arrow {
    font-size: 22px;
    font-weight: normal;
    line-height: 1;
    transition: transform 0.2s ease;
}

.inner-menu__group.is-open .inner-menu__arrow {
    transform: rotate(90deg);
}

.inner-menu__sublist {
    display: none;
    padding: 0 0 14px;
}

.inner-menu__group.is-open .inner-menu__sublist {
    display: block;
}

.inner-menu__subitem {
    position: relative;
    display: block;
    padding: 9px 42px;
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}

    .inner-menu__subitem.is-active {
        color: #C75A2A;
    }

.inner-menu__group-title.is-active {
    color: #C75A2A;
}

.inner-content {
    flex: 1;
    padding: 35px 0 15px;
}

.inner-breadcrumb {
    padding: 0 10px 18px 0;
    border-bottom: 1px solid #999999;
    color: #666666;
    font-size: 14px;
    text-align: right;
}

.inner-article {
    padding: 15px;
}

    .inner-article p {
        margin: 0 0 15px;
        color: #333333;
        font-size: 16px;
        line-height: 2;
    }
    .inner-article img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        height: auto;
    }
.inner-article__gallery {
    display: flex;
    justify-content: center;
    gap: 44px;
    padding: 22px 32px;
    margin-bottom: 20px;
    background: #f5f5f5;
}

    .inner-article__gallery img {
        width: 190px;
        height: 120px;
        object-fit: cover;
    }

.inner-article__gallery--wide img {
    width: 260px;
}

.inner-news-list {
    margin: 0;
    padding: 15px;
    list-style: none;
}

    .inner-news-list li {
        border-bottom: 1px solid #cccccc;
    }

    .inner-news-list a {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 40px;
        padding: 0 10px 0 28px;
        color: #333333;
        font-size: 15px;
        text-decoration: none;
        box-sizing: border-box;
    }

        .inner-news-list a::before {
            content: '';
            position: absolute;
            left: 10px;
            top: 50%;
            width: 0;
            height: 0;
            border-top: 5px solid transparent;
            border-bottom: 5px solid transparent;
            border-left: 7px solid #000000;
            transform: translateY(-50%);
        }

.inner-news-list__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inner-news-list time {
    flex: 0 0 auto;
    margin-left: 24px;
    color: #666666;
}

.inner-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px 15px;
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
}

    .inner-pagination a {
        color: #666666;
        text-decoration: none;
    }

        .inner-pagination a.is-active {
            color: #006699;
            font-weight: bold;
        }
/* ==================== §4.8 页脚 ==================== */
.footer-section {
    background: #1D77B3;
    color: #ffffff;
    font-size: 14px;
    margin-top: 10px;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    box-sizing: border-box;
}

.footer-logo {
    flex-shrink: 0;
}

    .footer-logo img {
        height: 50px;
        width: auto;
    }

.footer-info {
    text-align: right;
}

    .footer-info p {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        font-size: 14px;
        line-height: 2;
        color: #ffffff;
        margin: 0;
    }

.footer-icon {
    display: inline-block;
    height: 16px;
    width: auto;
    flex-shrink: 0;
    margin-right: 6px;
}

.footer-copyright {
    background: #1D77B3;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: #73ABD0;
    border-top: solid 1px #4991C2;
}
