/* 全局样式，去除默认的内外边距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
        font-family: "微软雅黑";
    font-size: 100%;
    text-decoration: none;
    margin: 0px;
    padding: 0px;
    list-style-type: none;
}

      /* 新增的固定定位样式 */
        .fixed-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
        }

body {
    font-family: Arial, sans-serif;
}

.menu-toggle{display:none}
/* 头部样式，设置背景图片并使其满屏 */
header {
    width: 100%;
       background-image: url('/skin/images/1.png');
    background-size: cover;
    background-position: center;
}

/* 内容区域样式，限制宽度为 1200px 并居中 */
.container {
    width: 1200px;
    margin: 0 auto;
}

   .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
/* logo 样式，左对齐 */
.logo {
    width:80%;
    margin:0 auto;
    text-align: left;
    padding: 20px 0 10px 0;
}

.logo img {
    max-width: 50%;
    height: auto;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    max-width:1400px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    width: calc(100% - 200px);
}

nav ul li {
    flex: 1;
    text-align: center;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight:bolder;
    font-family: '微软雅黑';
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 5px 15px;
    border: none;
    border-radius: 20px;
    outline: none;
    width:100px;
     font-size:14px;
}

.search-box button {
    padding: 8px 10px;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.search-box button img {
    width: 20px;
    height: 20px;
}

/* 修改后的 banner 样式 */
.indexbanner {
    width: 100%;
    height: 500px;
    /* 设置 banner 的高度 */
       /*background-image: url('/skin/images/banner.jpg');*/
    /* 设置背景图片，可替换为实际图片地址 */
    background-size: cover;
    /* 使背景图片覆盖整个元素 */
    background-position: center;
    /* 背景图片居中 */
}

.banner {
    width: 100%;
    height: 500px;
    /* 设置 banner 的高度 */
       background-image: url('/static/upload/image/20250327/1743044158812791.jpg');
    /* 设置背景图片，可替换为实际图片地址 */
    background-size: cover;
    /* 使背景图片覆盖整个元素 */
    background-position: center;
    /* 背景图片居中 */
}

/* 新增 mbanner 样式 */
.mbanner {
    display: none;
    width: 100%;
    height: 300px;
    background-image: url('/skin/images/banner.jpg');
    background-size: cover;
    background-position: center;
}


/* 团委动态样式 */
.youth-league-news {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.youth-league-news h2 {
    font-family: '黑体';
    color: #c2182c;
    height:25px;
    font-size:25px;
    position: relative;
}

.youth-league-news h2::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 1.2em;
    width: 1.5em;
    height: 3px;
    background-color: #c2182c;
}

.youth-league-news .more {
    color: #c2182c;
    text-decoration: none;
}

/* 团委动态内容区域样式 */
.youth-league-content {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

.youth-league-content .left-content {
    width: calc(2 / 3 * 100% - 10px);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.youth-league-content .left-box {
    width: calc(50% - 10px);
    border: 1px solid black;
    padding: 0px;
    height:330px;
}

.youth-league-content .left-box img {
    width: 100%;
    height: 204px;
}

.youth-league-content .left-box h3 {
    color: #c2182c;
    margin: 10px;
}

.youth-league-content .left-box .info {
    display: flex;
    align-items: center;
    margin: 10px;
}

.youth-league-content .left-box .info .clock {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.youth-league-content .left-box .info .time {
    margin-right: auto;
}

.youth-league-content .left-box .info .arrow {
    color: #c2182c;
    float: right;
}

.youth-league-content .right-content {
    width: calc(1 / 3 * 100% - 10px);
    background-color: #f1efe3;
    padding: 20px;
}

.news-item {
    display: flex;
    margin-bottom: 0px;
}

.news-date {
    text-align: center;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
}

.news-date .day {
    color: #c2182c;
    font-size: 24px;
}

.news-date .year-month {
    font-size: 12px;
}

.news-separator {
    width: 1px;
    background-color: #000000;
    margin-right: 10px;
}

.news-title {
    font-size: 16px;
    color: #000000;
}

/* 通知公告和院系动态样式 */
.notice-and-department {
    margin-top: 40px;
    display: flex;
    gap: 40px;
}

.section {
    width: 50%;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.section-title h2 {
    font-family: '黑体';
    color: #c2182c;
    position: relative;
    height:25px;
      font-size:25px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 1.2em;
    width: 1.5em;
    height: 3px;
    background-color: #c2182c;
}

.section-title .more {
    color: #b58970;
    text-decoration: none;
}

.small-image-text {
    background-color: #f1efe3;
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
}

.small-image-text .image {
    width: 30%;
}

.small-image-text .image img {
    width: 100%;
    height: auto;
}

.small-image-text .text {
    width: 70%;
    padding-left: 20px;
    color: #c2182c;
}

.small-image-text .text h3 {
    margin-bottom: 10px;
}

.small-image-text .text h3 a{
    color:#000;
}


.list-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #ccc;
    padding: 10px 0;
}


.list-item a{
   color:#000;
}
.list-item:last-child {
    border-bottom: none;
}

 
   /* 团学风采样式 */
         /* 团学风采样式 */
       .youth-student-style {
            margin-top: 40px;
            position: relative;
        }

      .youth-student-style .section-title {
            text-align: center;
        }

      .youth-student-style .style-blocks {
            display: flex;
            overflow-x: hidden;
            gap: 20px;
            scroll-behavior: smooth; /* 添加滚动动画效果 */
        }

    .youth-student-style   .style-block {
            position: relative;
            flex: 0 0 calc(25% - 20px); /* 每个块的宽度，考虑间隙 */
        }

      .youth-student-style .style-block img {
            width: 100%;
            height: auto;
        }

       .youth-student-style .style-block h3 {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: rgba(128, 128, 128, 0.7);
            color: white;
            padding: 10px;
            margin: 0;
            text-align: center;
        }

      .youth-student-style .arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 30px;
            cursor: pointer;
            background-color: rgba(0, 0, 0, 0.3);
            color: white;
            padding: 10px 15px;
            border-radius: 50%;
        }

      .youth-student-style .prev {
            left: 10px;
        }

      .youth-student-style .next {
            right: 10px;
        }

     .youth-student-style  .play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            display: none;
            cursor: pointer;
        }

    .youth-student-style   .play-button::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-30%, -50%);
            border-style: solid;
            border-width: 8px 0 8px 14px;
            border-color: transparent transparent transparent #333;
        }

     .youth-student-style  .style-block:hover .play-button {
            display: block;
        }

/* 友情链接样式 */
.friendship-links {
    background-color: #e4e4e4;
    margin-top: 40px;
    padding: 0px;
    margin-bottom: 40px;
    /* 这里控制友情链接与底部的间距，可修改此值 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

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

.link-title img {
    margin-right: 10px;
}

.link-sections {
    display: flex;
    gap: 50px;
}

.link-sections select {
    padding: 5px;
    width:200px;
}


/* 面包屑导航样式 */
.breadcrumb {
    margin: 20px 0;
    border-bottom:1px solid #ccc;
    height:40px;
    line-height:20px;
}

.breadcrumb a {
    color: #c2182c;
    text-decoration: none;
}

.breadcrumb span {
    color: #333;
}

/* 左右结构布局样式 */
.main-content {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

/* 左边子栏目导航样式 */
.sidebar {
    width: 25%;
   margin-top:20px;
}

.top-category {

    
    
     line-height: 55px;
    text-align: center;
    height: 55px;
    background-color: #c2182c;
    font-size: 20px;
    font-weight: bold;
    color: #FFF;
}

.sub-category {
    list-style: none;
}

.sub-category li {
    padding: 10px 10px;
    border-bottom: 1px solid #ccc;
    
        text-align: center;
    height: 45px;

    margin-top: 1px;
}

.sub-category li a{
     font-size: 18px;
    line-height: 180%;
    color: #585858;
}

/* 右边内容显示区域样式 */
.content {
    width: 75%;
}

.content a {
    font-size: 16px;
    line-height: 180%;
    color: #585858;
}



.content h1 {
    margin-bottom: 20px;
}

/* 右边新闻列表区域样式 */
.news-list-content {
    width: 75%;
}

.news-item {
    display: flex;
    align-items: left;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    width: 100%; /* 确保新闻项宽度为 100% */
    justify-content: left; /* 使元素两端对齐 */
}

.news-item img {
    margin-right: 5px;
}

.news-item a {
    text-decoration: none;
    color: #333;
    flex-grow: 1; /* 让标题自动填充剩余空间 */
    padding-left:0;
}

.news-date {
    color: #999;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

/* 右边新闻详情区域样式 */
.news-detail-content {
    width: 100%;
}

.news-detail-content .news-title {
    text-align: center;
    margin-top:50px;
    margin-bottom: 10px;
    font-size:30px;
}
.news-title {
    text-align: left;
    margin-bottom: 10px;
}

.news-title-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin-bottom: 20px;
}

.news-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    color: #999;
}

.news-body {
    line-height: 1.6;
    margin-bottom: 40px;
    margin-top:40px;
}



.news-pagination {
    display: block;
    justify-content: left;
}

.news-pagination a {
    text-decoration: none;
    color: #333;
    width:100%;
    height:40px;
    line-height:auto;
    clear:both;
    display:block;
}

.news-pagination a:hover {
    text-decoration: underline;
}


/* 底部样式 */
footer {
     background-image: url('/skin/images/20.png');
    background-size: cover;
    background-position: center;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    align-items: center;
}

.left-content {
    width: 25%;
}

.contact-info {
    width: 30%;
    text-align: center;
    color: white;
    /* 添加文字颜色为白色 */
    margin: 0 2%;
}

.contact-info p {
    margin: 5px 0;
    text-align: left;
}

.contact-info a {
    color: black;
    text-decoration: none;
    font-size: 14px;
    line-height: 150%;
}


.qr-code-container {
    width: 45%;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.qr-code-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
}

.qr-code-item img {
    width: 100px;
    height: 100px;
}

.qr-code-text {
    margin-left: 10px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: white;
    font-size: 14px;
    /* 添加文字颜色为白色 */
}



 
        
/* 手机端样式 */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    .flexslider{position:relative;height:300px!important;overflow:hidden;background:url(../images/loading.gif) 50% no-repeat;}
.slides{position:relative;z-index:0;margin-top:0px;}
.slides li{height:300px!important; overflow:hidden}

.news-body img{
    line-height: 1.6;
    margin-bottom: 40px;
    max-width:100%;
    height:auto;
}


  .youth-student-style {height:auto;overflow:hidden}
 .youth-student-style .style-block {
                width: 100%!important;
                 position: relative;
            flex: 0 0 calc(50% - 10px); /* æ¯ä¸ªå—çš„å®½åº¦ï¼Œè€ƒè™‘é—´éš™ */
            }

      .youth-student-style .style-block h3 {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: rgba(128, 128, 128, 0.7);
            color: white;
            padding: 8px;
            font-size:14px;
            margin: 0;
            text-align: center;
        }
  .youth-student-style .style-blocks {
                justify-content: flex-start;
            }

   .youth-student-styl   .arrow {
                top: 50%;
                transform: translateY(-50%);
            }

    .youth-student-style  .prev {
                left: 10px;
                display:none;
            }

    .youth-student-style  .next {
                right: 10px;
                   display:none;
    }
    
   
   .logo {
    width:100%;
    margin:0 auto;
    text-align: left;
    padding: 20px 0 10px 0;
}

.logo img {
    max-width: 100%;
    height: auto;
}
                
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
    }

    nav {
        display: none;
        /*background-color: white;*/
        padding: 20px;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        text-align: left;
        padding: 10px 0;
        display:block;
    }

    nav ul li a {ddd
        color: #fff;
    }

    nav ul li a:hover {
        color: white;
        display:block;
        height:30px;
        line-height:30px;
        background-color: red;
    }

    .footer-content {
        flex-direction: column;
    }

    .left-content {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .contact-info {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .contact-info p {
        text-align: center;
    }

    .qr-code-container {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .qr-code-item {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }

    .section {
        width: 100%;
    }

    .friendship-links {
        background-color: #e4e4e4;
        margin-top: 40px;
        padding: 20px;
        width: 100%;
        margin-bottom: 40px;
        /* 这里控制友情链接与底部的间距，可修改此值 */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 50px;
    }

    .link-sections select {
        padding: 5px;
        width: 100%;
        clear: both;
    }

    /* 新增团队风采在手机端的样式 */
    .youth-student-style .style-blocks {
        flex-wrap: wrap;
    }

    .youth-student-style .style-block {
        width: calc(50% - 10px);
    }

    /* 新增通知公告和院系动态在手机端的样式 */
    .notice-and-department {
        flex-direction: column;
    }

    .notice-and-department .section {
        width: 100%;
    }

    /* 新增团委动态在手机端的样式 */
    .youth-league-content {
        flex-direction: column;
        width: 100%;
        border: 1px solid #ccc; /* 添加边框 */
        padding: 10px; /* 添加内边距 */
        background-color: #fff; /* 设置背景颜色 */
    }

    .youth-league-content .left-content {
        width: 100%;
    }

    .youth-league-content .left-box:nth-child(2) {
        display: none;
    }

    .youth-league-content .right-content {
        width: 100%;
    }

    .youth-league-content .right-content .news-item {
        display: flex;
        width: 100%;
        margin-bottom: 10px;
    }
       /* 隐藏友情链接 */
    .friendship-links {
        display: none;
    }
   /* 隐藏 banner */
    .banner {
        display: block;
        height:200px!important;
    }
    .indexbanner {
        display: block;
    }


    /* 显示 mbanner */
    .mbanner {
        display: block;
    }
    .youth-league-content .left-box {
    width: calc(100% - 10px);
    border: 1px solid black;
    padding: 0px;
}

.main-content {
    display: block;
    gap: 20px;
    margin-bottom: 40px;
}
 .sidebar{width:100%;display:block; margin-bottom:30px}
    .content {
        width: 100%;
        clear:both;
        display:block;
    }

.news-detail-content {
    width: 100%;
}
.news-list-content{width:100%;}
.content img {
    max-width:100%;
    height:auto;
}
.youth-student-style{margin-bottom:30px}
}    


