/* CSS Document */
/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s;
}

a:hover {
    color: #1b5e20;
}

ul {
    list-style: none;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* 布局样式 */
.wrapper {
    width: 100%;
    margin: 0 auto;
}

.inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 170px; /* 增加左右内边距 */
}
/* 头部样式 */
.header {
    background: url('../images/logo.png') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 98px 0;
    position: relative;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 0 40px; /* 增加左右内边距 */
}

.sitelogo img {
    height: 80px;
}

.site-title {
    margin-left: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.site-title h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.site-title p {
    font-size: 16px;
    opacity: 0.9;
}

/* 导航样式 */
.nav {
    background-color: #0cad5e;
}

.wp-menu {
    display: flex;
    justify-content: center;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: block;
    padding: 15px 25px;
    color: white;
    font-size: 22px;
}

.menu-link:hover {
    background-color: #2e7d32;
    color: white;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}

.menu-item:hover .sub-menu {
    display: block;
}

.sub-item {
    border-bottom: 1px solid #eee;
}

.sub-link {
    display: block;
    padding: 12px 20px;
    color: #333;
}

.sub-link:hover {
    background-color: #f5f5f5;
    color: #2e7d32;
}

/* 通屏banner样式 */
.full-banner {
    width: 100%;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.banner-content {
    width: 100%;
    padding: 0 0 20px 0;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 主要内容区域 */
.main-content {
    margin:20px 0;
}

.ml, .mr {
    float: left;
}

.ml {
    width: 56%;
}

.mr {
    width: 33%;
    margin-left: 7%;
}

/* 移除mbox的边框和阴影 */
.mbox {
    background: white;
}

.tt {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ttnews{
    background: url("../images/news_icon.png") no-repeat center left;
}

.tit {
    font-size: 28px;
    color: #028446;
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: center;

}
.tit span{
    padding-left:10px;
}

.more_btn {
    font-size: 16px;
    display: flex;
    align-items: center;
}
.more_btn a{
    color:#028446;
}


.con {
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* 学院新闻样式 */
.college-news {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.images-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.image-news {
    position: relative;
}

.news-img {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.news-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-img:hover img {
    transform: scale(1.05);
}

.img-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(36 154 96 / 69%);
    padding: 10px;
    font-size: 16px;
}
.img-title a{
    color: white;
}


.news-list {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.news-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-left: 15px;
}

.news-list li:last-child {
    border-bottom: none;
}

/* 添加圆点样式 */
.news-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #000000;
    border-radius: 50%;
}

.news-title {
    flex: 1;
}

.news-date {
    color: #888;
    font-size: 14px;
    width: 100px;
    text-align: right;
}

/* 通知公告样式 */
.notice-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-date {
    background-color: #008645;
    color: white;
    width: 90px;
    padding: 8px 5px;
    text-align: center;
    border-radius: 5px;
    margin-right: 15px;
    flex-shrink: 0;
}

.notice-day {
    font-size: 23px;
    font-weight: bold;
    line-height: 1.5;
}

.notice-month {
    font-size: 16px;
    line-height: 1;
    margin-top: 3px;
}

.notice-title {
    flex: 1;
    padding-top: 3px;
    font-size: 18px;
    margin: auto 0;
}

/* 专业介绍样式 */
.major-intro {
    background: url('../images/caoyuan.png') no-repeat center center;
    background-size: cover;
    padding: 50px 0;
    position: relative;
    width: 100%; /* 确保通屏 */
}

.major-overlay {
    position: absolute;
    top: 8%;
    left: 5%;
    right: 5%;
    bottom: 9%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
}

.major-content {
    position: relative;
    z-index: 1;
    padding: 0 40px; /* 增加左右内边距 */
}

.major-title {
    text-align: center;
    margin-bottom: 30px;
    color: #028446;
    font-size: 28px;
}

.major-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1500px;
    margin: 0 auto;
}

.major-item {
    width: 15%;
    text-align: center;
    margin-bottom: 20px;
}

.major-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    height: 258px;
}

.major-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.major-img:hover img {
    transform: scale(1.05);
}

.major-name {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    padding: 8px 5px;
    font-weight: bold;
}
.major-name  a{
    color: #1b5e20;
}



/* 实习实训图片滚动样式 */
.practice-section {
    padding: 40px 0 0 0;
    width: 100%; /* 确保通屏 */
}

.practice-title {
    font-size: 28px;
    color: #028446;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding: 0 50px;
    background: url("../images/liangce_ico.png") no-repeat center top;
}



.practice-title:before {
    left: calc(50% - 120px);
}

.practice-title:after {
    right: calc(50% - 120px);
}

.practice-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 40px; /* 增加左右内边距 */
    background-color: #e8f5e9;

}

.practice-scroll {
    display: flex;
    transition: transform 0.5s ease;
    width: 94%;
    padding: 30px;
    margin:0 auto;
}

.practice-item {
    flex: 0 0 20%;
    margin: 0 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.practice-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: #2e7d32;
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 36px;
    z-index: 10;
    transition: color 0.3s;
}

.scroll-btn:hover {
    color: #1b5e20;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* 三个栏目并排样式 */
.three-columns {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.column {
    width: 29%;
    background: white;
    overflow: hidden;
}

.column-header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.column-title {
    font-size: 28px;
    color: #028446;
    display: flex;
    align-items: center;
    font-weight: bold;
}
.column-header a {
    color: #028446;
}
.column-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.column-more {
    font-size: 16px;
}


.column-list {
    padding: 15px 0;
}

.column-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}

.column-list li:last-child {
    border-bottom: none;
}

.column-title-text {
    flex: 1;
   display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.column-date {
    color: #888;
    font-size: 14px;
    width: 80px;
    text-align: right;
}

/* 成果展示样式 */
.achievement-section {
    margin: 30px 0;
    padding: 40px 0;
    width: 100%; /* 确保通屏 */
}

.achievement-title {
    font-size: 28px;
    color: #028446;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding: 0 50px;
    background: url(../images/liangce_ico.png) no-repeat center top;
}

.achievement-title:before {
    left: calc(50% - 120px);
}

.achievement-title:after {
    right: calc(50% - 120px);
}

.achievement-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 40px; /* 增加左右内边距 */
    background-color: #e8f5e9;
}

.achievement-scroll {
    display: flex;
    transition: transform 0.5s ease;
    width: 94%;
    padding:30px;
}

.achievement-item {
    flex: 0 0 20%;
    margin: 0 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.achievement-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* 快速链接样式 */
.quick-links {
    background-color: #f1f1f1;
    padding: 20px 0;
    margin-top: 30px;
    width: 100%; /* 确保通屏 */
}

.links-content {
    display: flex;
    align-items: center;
    padding: 0 40px; /* 增加左右内边距 */
}

.links-title {
    color: #005126;
    font-size: 24px;
    font-weight: bold;
    width: 130px;
    flex-shrink: 0;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

.links-list a {
    margin-right: 30px;
    color: #555;
    padding: 5px 0;
    transition: color 0.3s;
    font-weight: 600;
}

.links-list a:hover {
    color: #2e7d32;
}

/* 底部样式 */
.footer {
    background-color: #065a32;
    color: white;
    padding: 30px 0;
    width: 100%; /* 确保通屏 */
}

.copyleft {
    line-height: 2.2;
    font-size: 16px;
    text-align: left;
    padding: 0 40px; /* 增加左右内边距 */
}

.copyleft a {
    color: white;
}
.right_more {
    float:right;
    font-size:16px;
    font-weight:100;
}
.right_more a{
    color:#028446;
}
/* 响应式设计 */
@media (max-width: 992px) {
    .ml, .mr {
        width: 100%;
        margin-left: 0;
    }

    .image-news {
        width: 100%;
    }

    .major-item {
        width: 48%;
    }

    .three-columns {
        flex-direction: column;
    }

    .column {
        width: 100%;
        margin-bottom: 20px;
    }

    .practice-item, .achievement-item {
        flex: 0 0 45%;
    }

    .inner, .header-content, .major-content, .practice-container, 
    .achievement-container, .links-content, .copyleft {
        padding: 0 20px; /* 在较小屏幕上减少内边距 */
    }
    .practice-title{
        background: none;
        padding:0 20px;
        margin-left: 60px;
    }
    .achievement-title{
        background: none;
        padding:0 20px;
        margin-left: 60px;
    }
    .right_more{
        line-height:44px;
    }
}

@media (max-width: 768px) {
    .wp-menu {
        flex-direction: column;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .site-title {
        margin-left: 0;
        margin-top: 15px;
    }

    .major-item {
        width: 100%;
    }

    .links-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .links-title {
        margin-bottom: 10px;
    }

    .practice-item, .achievement-item {
        flex: 0 0 80%;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .practice-title{
        background: none;
        padding:0 20px;
        margin-left: 60px;
    }
    .achievement-title{
        background: none;
        padding:0 20px;
        margin-left: 60px;
    }
    .right_more{
        line-height:44px;
    }
    .images-container {
        grid-template-columns: 1fr;
    }

    .news-list {
        grid-template-columns: 1fr;
    }
    
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}
