
.main-content {
    padding: 20px 0;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    color: #222;
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 1px solid #1d6312;
}

    .section-title img {
        width: 20px;
        height: 20px;
    }

    .section-title .more {
        color: #666;
        font-size: 16px;
        text-decoration: none;
    }
/* 第一部分：轮播+院内要闻 */
.part-one {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.carousel-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #ecf1eb;
    padding: 10px;
    min-height: 241px;
}

.carousel-slide {
    position: relative;
    height: 372px;
    text-decoration: none;
}

    .carousel-slide img {
        width: 100%;
        /* height: 100%; */
        height: calc(100% - 55px);
        object-fit: cover;
    }

.carousel-caption {
    /* position: absolute; */
    bottom: 0;
    left: 0;
    right: 0;
    color: #222222;
    font-size: 16px;
    font-weight: 500;
    padding: 0 16px;
    text-decoration: none;
}

.news-container {
    flex: 1;
    /* background: #f9f9f9; */
    padding: 15px;
    border-radius: 8px;
}

.news-list {
    list-style: none;
}
/* 院内要闻图标样式 */
.news-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("../images/yw_li_be.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

.news-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 8px 0;
}

    .news-item a:hover .news-icon {
        background-image: url("../images/yw_li_be_ac.png");
    }

    .news-item a:hover .news-text {
        color: #1d6312;
    }

    .news-item a:hover .news-date {
        color: #666;
    }

.news-text {
    flex: 1;
    margin: 0 10px;
    font-weight: 500;
    color: #222;
}

.news-date {
    color: #ccc;
    font-size: 16px;
    text-align: right;
}
/* 第二部分：四张图片链接 */
.part-two {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.image-link {
    flex: 1;
    overflow: hidden;
    transition: transform 0.3s;
}

    .image-link:hover {
        /* transform: translateY(-5px); */
    }

    .image-link a {
        display: block;
    }

    .image-link img {
        width: 100%;
        height: 140px;
        /* object-fit: cover; */
    }

    .image-link .caption {
        padding: 12px;
        background: white;
        text-align: center;
        font-weight: bold;
    }
/* 第三部分：三栏链接 */
.part-three {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.link-column {
    flex: 1;
}

.link-list {
    list-style: none;
}

    .link-list li {
        padding: 10px;
        border-bottom: 1px solid #00000008;
    }

        .link-list li:hover {
            background-color: #1d631208;
        }

        .link-list li:last-child {
            border-bottom: none;
        }

    .link-list a {
        color: #333;
        text-decoration: none;
        display: flex;
        align-items: center;
    }

        .link-list a .date-box {
            display: flex;
            align-items: center;
            flex-direction: column;
        }

        .link-list a .date {
            font-size: 24px;
            font-weight: 500;
            color: #222;
        }

        .link-list a .month {
            font-size: 14px;
            color: #999;
        }

        .link-list a .line {
            background: #d9d9d9;
            width: 2px;
            height: 48px;
            margin: 0 10px;
        }

        .link-list a span {
            font-size: 16px;
            font-weight: 500;
            color: #222;
            flex: 1;
        }

        .link-list a:hover .date {
            color: #1d6312;
        }

        .link-list a:hover .month {
            color: #1d6312;
        }

        .link-list a:hover .line {
            background-color: #1d6312;
        }

        .link-list a:hover span {
            color: #1d6312;
        }
/* 第四部分：专题专栏轮播 */
.part-four {
    margin-bottom: 30px;
}

.special-carousel {
    position: relative;
    padding: 30px 0 20px;
    overflow: hidden;
}

.special-slides {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
}

.special-slide {
    transition: all 0.5s ease;
    overflow: hidden;
}

    .special-slide a {
        display: block;
    }

    .special-slide img {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }

    .special-slide.center {
        transform: scale(1.2);
        z-index: 2;
    }

    .special-slide.side {
        transform: scale(0.9);
        opacity: 0.5;
        filter: brightness(0.9);
    }

.special-prev-btn,
.special-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 28px;
    background-color: rgba(0,0,0,0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.special-prev-btn {
    left: 22px;
}

.special-next-btn {
    right: 22px;
}

.special-prev-btn::after {
    content: "<";
}

.special-next-btn::after {
    content: ">";
}

.special-carousel {
    position: relative;
}

.carousel-dots {
    position: absolute;
    bottom: 55px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 24px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #1d631280;
    background: #fff;
}

    .dot.active {
        background: #1d6312;
        transform: scale(1.2);
    }
/* 响应式调整 */
@media (max-width: 768px) {
    .special-slide img {
        height: 100px;
    }

    .special-slide.center {
        transform: scale(1.1);
    }

    .carousel-slide img {
        height: calc(100% - 70px);
    }

    .carousel-dots {
        bottom: 70px;
    }
}
/* 第五部分：成果业绩自动轮播 */
.part-five {
    margin-bottom: 30px;
}

.achievement-carousel {
    overflow: hidden;
    position: relative;
    height: 244px;
    /* background: #eef5fd; */
    margin-top: 20px;
}

.achievement-track {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    align-items: center;
    animation: scroll 30s linear infinite;
}

.achievement-item {
    flex: 0 0 240px;
    margin-right: 40px;
    overflow: hidden;
}

    .achievement-item a {
        display: block;
        text-decoration: none;
    }

    .achievement-item img {
        width: 280px;
        height: 150px;
        object-fit: cover;
    }

    .achievement-item .caption {
        padding: 10px;
        color: #222;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 280px;
    }

    .achievement-item a:hover .caption {
        color: #1d6312;
    }

    .achievement-item a:hover img {
        border: 2px solid #1d6312;
    }

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% + 100vw));
    }
}

.achievement-carousel {
    overflow: hidden;
    position: relative;
}

.achievement-track {
    display: flex;
    animation: scroll 15s linear infinite;
    will-change: transform;
}

.achievement-item {
    flex: 0 0 auto;
    /* width: calc(100% / 5); 根据实际显示的项目数量调整 */
    padding: 0 10px;
    box-sizing: border-box;
}
/* 第六部分：外部网站链接 */
.part-six {
    background-color: #fff;
    padding: 8px 20px;
    border: 1px solid #00000033;
}

.external-links-container {
    display: flex;
    gap: 40px;
}

.links-left {
    color: #1d6312;
}

.links-line {
    width: 2px;
    height: 24px;
    background-color: #bbb;
}

.links-dropdowns {
    flex: 2;
    display: flex;
    gap: 20px;
}
/* 下拉框样式 */
.dropdown {
    position: relative;
    flex: 1;
}

.dropdown-toggle {
    width: 100%;
    padding: 12px 0px;
    background: none;
    color: white;
    border: none;
    border-radius: 4px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    color: #222;
    font-weight: 500;
    text-decoration: none;
}

    .dropdown-toggle:hover {
        /* background-color: #1e4b8f; */
    }

    .dropdown-toggle span {
        transform: rotate(90deg);
        margin-left: 10px;
    }

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background-color: white;
    /* border: 1px solid #ddd; */
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dropdown.active .dropdown-menu {
    max-height: 500px;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

    .dropdown-item:hover {
        background-color: #f5f5f5;
        color: #1d6312;
        /* padding-left: 25px; */
    }
/* 响应式设计 */
@media (max-width: 768px) {
    .external-links-container {
        flex-direction: column;
        gap: 20px;
    }

    .links-dropdowns {
        flex-direction: column;
    }
}
/* 响应式设计 */
@media (max-width: 992px) {
    .part-one,
    .part-two,
    .part-three {
        flex-direction: column;
    }

    .image-link {
        flex: 1 1 45%;
    }

    .part-two {
        flex-wrap: wrap;
    }

    .special-slides {
        flex-direction: column;
        align-items: center;
    }

    .special-slide {
        margin-bottom: 15px;
    }

        .special-slide.center,
        .special-slide.side {
            transform: none;
            opacity: 1;
            filter: none;
        }
}

@media (max-width: 768px) {
    .carousel-slide {
        height: 200px;
    }

    .image-link {
        flex: 1 1 100%;
    }
}

/* 主轮播图按钮样式 - 实心白色三角形 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff50;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .carousel-btn:hover {
        background: #1d631280;
    }

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 0px;
}

    .carousel-prev::before,
    .carousel-next::before {
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-style: solid;
    }

.carousel-prev::before {
    border-width: 8px 8px 8px 0;
    border-color: transparent white transparent transparent;
    margin-left: -3px;
}

.carousel-next::before {
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent white;
    margin-right: -3px;
}
/* 移除原来的文字内容 */
.carousel-btn span {
    display: none;
}
/* 轮播项默认隐藏，只有active显示 */
.carousel-slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s;
}

    .carousel-slide.active {
        display: block;
    }
/* 成果业绩轮播调整 */
.achievement-track {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    align-items: center;
    animation: scroll 30s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .news-icon {
        width: 14px;
        height: 14px;
        margin-right: 8px;
    }
}
/* 页面切换动画 */
.main-content > .container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .main-content > .container[style*="display: none"] {
        display: block !important;
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
        position: absolute;
        width: 100%;
    }

    .main-content > .container:not([style*="display: none"]) {
        opacity: 1;
        transform: translateY(0);
    }
