/*
filename:index.css
last edit: 2022/10/15 15:53
author:蒋中森
description：主页面样式，不含轮播图样式
*/

@charset "utf-8";

* {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    min-width: 1250px;
}

/*头部样式*/
.header {
    height: 80px;
    background-color: white;
    box-shadow: 2px 2px 12px 1px #dddddd;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    position: relative;
}

/*学院与学校logo的样式*/
.logo {
    width: 350px;
    height: 120px;
    background: url(../img/logo.png) no-repeat center #073e86;
    background-size: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

/*头部链接的样式*/
.header ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

.header a {
    text-decoration: none;
    color: #073e86;
}

.header .first-titles > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 80px;
}

.first-titles > li:hover::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: #073e86;
    top: 60px;
    left: calc(50% - 20px);
}

.first-titles > li .second-titles {
    display: block;
    position: absolute;
    top: 80px;
    left: calc(50% - 50px);
    z-index: 100;
    background-color: white;
    width: 100px;
    height: 0px;
    text-align: center;
    overflow: hidden;
}

.first-titles > li:hover .second-titles {
    display: block;
    height: auto;
}

.second-titles li {
    height: 40px;
    line-height: 40px;
}

.second-titles li:hover {
    background-color: #073e86;
}

.second-titles li:hover a {
    color: white;
}

/*搜索框样式*/
.search-box {
    width: 200px;
    height: 40px;
    display: grid;
    grid-template-columns: 1fr 40px;
}

.search-box input[type="text"] {
    outline: none;
    border: 1px solid #073e86;
    text-indent: 1em;
}

.search-box button[type="submit"] {
    background: url(../img/search.png) #073e86 no-repeat center;
    background-size: 60%;
    border: none;
}
/*头部样式结束*/

/*内容样式*/
/*每部分内容标题的样式*/
.item-title {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 150px;
    text-align: center;
}

.item-title h2 {
    color: #1760bb;
    position: relative;
}

.item-title h2::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: calc(50% - 25px);
    width: 50px;
    height: 5px;
    background-color: #1760bb;
}

.item-title p {
    font-size: 14px;
    color: #aaaaaa;
}

.item-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    gap: 80px;
}

.main-slider {
    height: 90vh;
}

.second-slider {
    width: 550px;
    height: 350px;
    background-color: #dddddd;
}

.swiper-slide {
    background: no-repeat center;
    background-size: cover;
    position: relative;
}

.swiper-slide p {
    position: absolute;
    top: 20px;
    left: 0px;
    text-indent: 2em;
}

.news-items {
    width: 600px;
    height: 400px;
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    list-style: none;
    background-color: #dddddd;
}

#notice,
#construction {
    background-color: #1760bb;
}

#notice .item-title h2,
#construction .item-title h2 {
    color: white;
}

#notice .item-title h2::after,
#construction .item-title h2::after {
    background-color: white;
}

#notice .item-title p,
#construction .item-title p {
    color: white;
}
/*内容样式结束*/

/*底部样式*/
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    background-color: #073e86;
}

.footer img {
    height: 150px;
}

.footer .line {
    width: 3px;
    height: 160px;
    background-color: white;
    margin: 0 50px;
}

.footer ul {
    list-style: none;
    color: white;
    line-height: 30px;
}
/*底部样式结束*/
