/* 初始化所有样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica, "PingFang SC", "Microsoft Yahei", sans-serif;
    font-size: 14px;
}

img {
    width: 100%;
}

:root {
    --primary-color: #ff434f;
    --secondary-color: #e3e3e3;
    --text-color-lightest: #e7e9ec;
    --text-color-darker: #2e2e2e;
    --text-color-dark: #494949;
    --text-color-gray: #8b8b8b;
    --text-color-dark-gray: #727272;
    --text-color-light-gray: #c6c6c6;
    --backdrop-color: rgba(42, 42, 42, 0.7);
}


/* 栅格布局 */

header {
    width: 100vw;
    height: 80px;
    display: grid;
    padding: 0 40px;
    grid-template-columns: 1fr 2fr;
    align-content: center;
    position: relative;
    z-index: 100;
}

.logo {
    margin-top: -5px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color-lightest);
}

header nav {
    justify-self: end;
}


header nav .contact_us {
    color: var(--text-color-lightest);
    text-decoration: none;
    margin: 0 24px;
    font-size: 18px;
}

.glide__slides >img {
    width: 100%;
    height: 100vh;
    /* 自动等比例缩放 */
    object-fit: cover;
}

.backdrop {
    background: rgba(0, 0, 0, 1);
    /* background: rgba(0, 105, 180, 1); */
    width: 100%;
}

/* 通用样式 */

.content-wrapper {
    /* 一维排版 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 40px;
    background-color: #f9fbfb;
}

section {
    /* 二维 */
    display: grid;
    /* 每个列的对齐方式 */
    justify-items: center;
    max-width: 1280px;
    padding: 0 80px;
}

.section-bg {
    position: relative;
}

.section-bg::before {
    content: "";
    display: block;
    position: absolute;
    background-color: #f9fbfb;
    width: 100vw;
    /* height: 100%; */
    z-index: -1;
}

.title1 {
    font-size: 34px;
    margin: 40px 0;
    color: var(--text-color-darker);
}


.filter-btns {
    margin-top: 54px;
    margin-bottom: 38px;
}

.filter-btn {
    margin: 0 7px;
    background-color: var(--secondary-color);
    border: 0;
    color: var(--text-color-dark-gray);
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.4s;
}

.filter-btn:focus,
.filter-btn:active {
    outline: none;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.activities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
}

.activity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: 0.4s;
}

.activity>div{
    width: 100%;
    height: 90%;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.activity>div>img{
    width: 80%;
    /* border-radius: 50%; */
    /* height: 160px; */
}

.act-title {
    color: var(--text-color-dark);
    font-size: 18px;
    margin-bottom: 16px;
}

.activity:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0px 0px 36px rgba(0, 0, 0, 0.1);
}

/* 底部信息 */

footer {
    /* margin-top: 124px; */
    background: rgba(0, 0, 0, 1);
    /* background: rgba(0, 105, 180, 1); */
    display: grid;
    justify-items: center;
    padding-top: 50px;
    padding-bottom: 24px;
}

.footer-menus {
    width: 100%;
    /* max-width: 1280px; */
    display: flex;
    justify-content: space-between;
    /* display: grid; */
    /* grid-template-columns: 2fr repeat(2, 1fr); */
    padding: 0 40px;
    position: relative;
}

.menu-title {
    font-size: 14px;
    color: rgb(215, 221, 221);
    font-weight: 500;
    margin-bottom: 20px;
}

.contact-us {
    justify-self: start;
    color: var(--text-color-lightest);
}

.contact-us p:not(:first-child) {
    padding-bottom: 16px;
}


/* 设置响应式布局 */

@media (max-width: 1100px) {
    header nav {
        display: none;
    }
    /* burger为折叠图标 */
    header .burger {
        display: block;
        position: relative;
        width: 20px;
        height: 6px;
        justify-self: end;
        cursor: pointer;
    }
    .burger-line3 {
        position: absolute;
        top: 6px;
    }
    @keyframes slideDown {
        from {
            height: 0;
            opacity: 0;
        }
        to {
            height: 100vh;
            padding-top: 80px;
            opacity: 1;
        }
    }
    @keyframes showMenu {
        from {
            opacity: 0;
            transform: translateY(-1vh);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .service-item .service-title {
        font-size: 20px;
    }
    .service-item .service-content {
        font-size: 14px;
        line-height: 24px;
    }
    .activities {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 36px;
    }
}

@media(max-width: 992px) {
    .slide-caption h1 {
        font-size: 48px;
    }
    .slide-caption h3 {
        font-size: 18px;
    }
    .features,
    .case-item {
        width: calc(100vw/3);
    }
}

@media(max-width: 768px) {
    section,
    .footer-menus {
        padding: 0 40px;
    }
    .footer-menus {
        grid-template-columns: 2fr repeat(2, 1fr);
        row-gap: 24px;
    }
    .contact-us {
        grid-row: 1 / 3;
    }
    .footer-menus {
        text-align: right;
    }
    .activities {
        grid-template-columns: 1fr;
        row-gap: 36px;
    }
    .features,
    .case-item {
        width: calc(100vw /2);
        height: 30vw;
    }
}

@media(max-width: 576px) {
    .slide-caption h1 {
        font-size: 28px;
    }
    .slide-caption h3 {
        font-size: 14px;
    }
    .explore-btn {
        font-size: 14px;
        padding: 8px 18px;
    }
    .case-item {
        width: 100vw;
        height: 60vw;
    }
    .footer-menus {
        grid-template-columns: 1fr;
    }
    .footer-menus {
        justify-self: start;
        text-align: left;
    }
}
