/* CSS Document */
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

/* 响应式基础设置 */
html, body {
    width: 100%;
    height: 100%;
    min-width: 320px;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

ul, li {
    list-style: none;
}
.Site_Logo img{
 max-height: 100px;
}
img 
{
    max-width: 100%;
    height: auto;
    display: block;
}
/* 新闻标题左侧小图标 */
.section-title.news-title {
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-title.news-title::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url("../images/new-icon.png") no-repeat center;
    background-size: contain;
    margin-right:10px;
}
/* 育人成果左侧小图标 */
.section-title.yrcg-title {
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-title.yrcg-title::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url("../images/yrcg.jpg") no-repeat center;
    background-size: contain;
    margin-right:10px;
}
/* 荣耀长廊左侧小图标 */
.section-title.rycl-title {
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-title.rycl-title::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url("../images/rycl.jpg") no-repeat center;
    background-size: contain;
    margin-right:10px;
}
/* 党团活动左侧小图标 */
.section-title.dthd-title {
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-title.dthd-title::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url("../images/dthd.jpg") no-repeat center;
    background-size: contain;
    margin-right:10px;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 全局加载动画 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

/* 延迟动画 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Logo+搜索区域样式 */
.header-top {
    background-color: #016bb7;
    height: 120px;
    display: flex;
    align-items: center;
    position: relative;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo-img {
    max-height: 90px;
}

/* 搜索区域样式 */
.search-box {
    display: flex;
    align-items: center;
}

.search-box input[type="text"] {
    padding: 8px 12px;
    border: none;
    outline: none;
    border-radius: 3px 0 0 3px;
    height: 40px;
    font-size: 16px;
}

.search-box input[type="submit"] {
    background-color: #1890FF;
    color: #ffffff;
    border: none;
    outline: none;
    padding: 0 20px;
    height: 40px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-box input[type="submit"]:hover {
    background-color: #096dd9;
}

/* Logo和导航分割线 */
.header-divider {
    height: 3px;
    background-color: #01a6f6;
    width: 100%;
}

/* 导航样式 */
.nav {
    background-color: #006699;
    position: relative;
    z-index: 9999;
}

/* 移动端导航触发按钮 */
.nav-toggle {
    display: none;
    background-color: #006699;
    color: #ffffff;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    justify-content: space-around;
}

.nav-item {
    position: relative;
    padding: 0 10px;
}

.nav-item > a {
    display: block;
    color: #ffffff;
    padding: 15px 20px;
    font-size: 16px;
    white-space: nowrap;
}

.nav-item > a:hover {
    background-color: #004161;
}

.sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #006699;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    z-index: 9999;
    min-width: 200px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover .sub-nav {
    display: block;
    opacity: 1;
}

.sub-nav li a {
    display: block;
    padding: 12px 15px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 16px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.sub-nav li a:hover {
    background-color: #004161;
    color: #ffffff;
}

.sub-nav li.has-third {
    position: relative;
}

.third-nav {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #006699;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    min-width: 180px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sub-nav li.has-third:hover .third-nav {
    display: block;
    opacity: 1;
}

.third-nav li a {
    color: #ffffff;
}

.third-nav li a:hover {
    background-color: #006699;
}

/* Banner轮播样式 */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 500px;
    min-height: 400px;
}

.banner-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-item {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    height: 100%;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    width: 100%;
    padding: 0 20px;
}

.banner-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.banner-text p {
    font-size: 24px;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.banner-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background-color: #006cba;
    border-color: #006cba;
}

.main {
    padding: 0;
    position: relative;
    z-index: 1;
}

.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #cdcdcd;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    color: #000000;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.section-more {
    font-size: 16px;
}

.section-more a {
    color: #666;
    font-size: 16px;
}

.section-more a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.news-section {
    background-color: #efefef;
    padding: 30px 0;
    width: 100%;
}

.news-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.news-img {
    flex: 0 0 calc(50% - 20px);
    min-width: 300px;
}

/* 新闻轮播容器 */
.news-img-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.news-img-list {
    display: flex;
    transition: transform 0.5s ease;
}

/* 单条新闻：图片+标题同容器 */
.news-img-item {
    flex: 0 0 100%;
}

.news-img-box {
    position: relative;
    width: 100%;
    height: 350px;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========修正：数字焦点定位在图片区域右下角========== */
.news-dot-wrap {
    position: absolute;
    right: 15px;
    bottom: 46px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.news-dot {
    width: 30px;
    height: 30px;
    background-color: #999;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

.news-dot.active {
    background-color: #f97316;
}

/* 标题在图片下方，居中，无背景 */
.news-item-title {
    text-align: center;
    font-size: 16px;
    padding: 10px 0;
    color: #333;
}

.news-list {
    flex: 0 0 calc(50% - 20px);
    min-width: 300px;
}

.news-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.news-date {
    flex: 0 0 80px;
    text-align: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.news-date .year {
    background-color: #0066cc;
    color: #fff;
    padding: 5px 0;
    font-size: 16px;
}

.news-date .month {
    background-color: #ffffff;
    border-top: 2px solid #f97316;
    padding: 5px 0;
    font-size: 16px;
}

.news-content {
    flex: 1;
    width: calc(100% - 95px);
}

.news-content a {
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    transition: color 0.3s ease;
}

.news-content a:hover {
    color: #0066cc;
}

.news-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 100%;
}

.info-style-section {
    padding: 30px 0;
}

.info-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.info-col {
    flex: 0 0 calc(50% - 20px);
    min-width: 300px;
}

.info-list li, .style-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    transition: background-color 0.2s ease;
}

.info-list li:hover, .style-list li:hover {
    background-color: #f8f8f8;
}

.info-list li a, .style-list li a {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.info-list li a:hover, .style-list li a:hover {
    color: #0066cc;
}

.info-date, .style-date {
    font-size: 16px;
    color: #999;
    flex-shrink: 0;
}

.teacher-student {
    padding: 30px 0;
    overflow: hidden;
    position: relative;
}

.ts-scroll-container {
    width: 100%;
    overflow: hidden;
}

.ts-list {
    display: flex;
    gap: 20px;
    animation: scrollLeft 30s linear infinite;
    width: max-content;
}

.ts-item {
    flex: 0 0 280px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.ts-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.ts-item img {
    margin-bottom: 10px;
    border: 1px solid #eee;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ts-item:hover img {
    transform: scale(1.05);
}

.ts-item p {
    font-size: 16px;
    color: #666;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.friend-link {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.friend-link-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.friend-link-title {
    background-image: url('../images/friend-link-bg.jpg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    height: 60px;
    line-height: 60px;
    font-size: 18px;
    color: #333;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto;
    width: 119px;
    text-align: center;
    margin-right: 24px;
}

.friend-link-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.friend-link-content a {
    margin: 0;
    font-size: 16px;
    color: #666;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.friend-link-content a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #000;
}

.friend-link-content a:hover {
    color: #0066cc;
}

.footer {
    background-color: #0572c7;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.footer p {
    font-size: 16px;
    transition: opacity 0.3s ease;
    height:27px;
}

.footer p:hover {
    opacity: 0.9;
}
.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
/* 移动端自动换行适配 */
@media (max-width: 768px) {
    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-list.show {
        display: flex;
    }

    .nav-item {
        padding: 0;
    }

    .nav-item > a {

        padding: 12px 15px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .sub-nav, .third-nav {
        position: static;
        box-shadow: none;
        background-color: #006699;
        opacity: 1;
    }

    .sub-nav li a {
        color: #ffffff;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-left: 30px;
    }

    .third-nav li a {
        padding-left: 45px;
    }

    .banner {
        height: 350px;
        min-height: 300px;
    }

    .banner-text h2 {
        font-size: 28px;
    }

    .banner-text p {
        font-size: 18px;
    }

    .news-img, .news-list {
        flex: 0 0 100%;
    }

    .info-col {
        flex: 0 0 100%;
    }

    .news-img-box {
        height: 250px;
    }

    .news-item-title {
        font-size: 14px;
        padding: 8px 0;
    }

    .ts-item {
        flex: 0 0 220px;
    }

    .friend-link-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .friend-link-content {
        gap: 20px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-top .container {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .search-box {
        width: 100%;
    }

    .search-box input[type="text"] {
        flex: 1;
    }

    .banner {
        height: 280px;
        min-height: 250px;
    }

    .banner-text h2 {
        font-size: 24px;
    }

    .banner-text p {
        font-size: 16px;
    }

    .news-img-box {
        height: 200px;
    }

    .news-item-title {
        font-size: 13px;
        padding: 6px 0;
    }

    .ts-item {
        flex: 0 0 180px;
    }

    .ts-item img {
        height: 150px;
    }
}