@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

:root {
    --primary-color: #007af3;
}

body {
    background: #f2f2f2;
    margin: 0;
    font-family: "Poppins";
}

section {
    padding: 5em 2em;
}

.navbar {
    background: white;
    padding: 1em;
}

.navbar .logo {
    text-decoration: none;
    font-weight: bold;
    color: black;
    font-size: 1.2em;
}

.navbar .logo span {
    color: var(--primary-color);
}

.navbar nav {
    display: block;
}

.navbar .container {
    display: flex;
    flex-direction: row;
    place-content: space-between;
}

a {
    color: #444444;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.main {
    text-align: center;
}

.main .subhead {
    font-weight: bold;
    color: gray;
    letter-spacing: 0.3em;
}

.main h1 {
    font-size: 2.5em;
    line-height: 1.3em;
    margin-top: 0.2em;
}

.main .learn-more {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 1.4em;
    padding: 0.6em 1.3em;
    font-weight: bold;
    border-radius: 5em;
    display: inline-block;
}

.main .learn-more:hover {
    background: #0068d6;
}

.main .watch-video {
    display: block;
    margin: 1em;
}

.main .watch-video img {
    margin-right: 0.5em;
}

.show {
    width: 80%;
    /* margin: 0 auto 5em auto; */
    margin-top: 3em;
}

section.fuction {
    background: #1e242a;
    color: white;
}

section.fuction .fuction-list {
    padding-left: 0.1em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

section.fuction .fuction-list li {
    font-size: 1.1em;
    margin-bottom: 1em;
    margin-left: 2em;
    position: relative;
}

section.fuction .fuction-list li:before {
    content: "";
    left: -2em;
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url("/image/bullet.svg");
    background-size: contain;
    margin-right: 0.5em;
}

section.fuction img {
    display: none;
}

.testimonials-section {
    background: var(--primary-color);
    color: white;
}

.testimonials-section li {
    background: #0068d6;
    text-align: center;
    padding: 2em 1em;
    width: 80%;
    margin: 0 auto 5em auto;
    /* 这使得元素在其父容器中水平居中。 */
}

.testimonials-section li img {
    width: 5em;
    height: 5em;
    border-radius: 50%;
    border: 5px solid #0068d6;
}

h2 {
    font-size: 2em;
}

label {
    display: block;
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

input,
textarea {
    width: 100%;
    padding: 0.8em;
    margin-bottom: 1em;
    border: 1px solid gray;
    border-radius: 0.3em;
    box-sizing: border-box;
}

.send {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 1.3em;
    border: none;
    margin-bottom: 5em;
    border-radius: 5em;
    display: inline-block;
    padding: 0.8em 2em;
    width: auto;
    cursor: pointer;
}

.send:hover {
    background: #0068d6;
}

iframe {
    width: 100%;
    height: 400px;
}

/* 这行代码定义了当 nav 元素具有 menu-btn 类时，它的显示状态为 block。即，当 nav 元素被赋予 menu-btn 类时，它会显示出来。*/
nav.menu-btn {
    right: 0; 
}

nav {
    position: fixed;
    z-index: 999;
    width: 55%;
    right: -100%;
    top: 0;
    background: #20272e;
    height: 100vh;
    padding: 1em;
    transition: right 0.5s ease;
}

nav .first-ul {
    margin-top: 5em;
}

nav li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.5em;
    font-size: 1.3em;
    text-align: right;
}

nav li:hover {
    font-weight: bold;
}

.exit {
    margin: 0.5em;
    cursor: pointer;
}

@media only screen and (min-width: 768px) {
    .navbar.container {
        display: grid;
        justify-content: unset;
        grid-template-columns: 182px auto;
    }

    .navbar .logo {
        white-space: nowrap !important;
        /* 添加 !important 来强制应用样式 */
        margin-right: 2em;
    }

    /* 是优先级的问题导致单写nav不显示，因为css不是从上到下来渲染的，
    所以单写nav优先级别不够，但是加上navbar之后更加具体，优先级更高 */
    .navbar nav {
        display: flex;
        /* !important;  这样可以提高优先级别*/
        justify-content: space-between;
        background: none;
        position: unset;
        height: auto;
        width: 100%;
        padding: 0;
        /* 描写的越详细就优先级就越高 */
    }

    .navbar nav ul {
        display: flex;
    }

    .navbar nav a {
        color: black;
        font-size: 1em;
        padding: 0.1em 1em;
    }

    .navbar nav ul.first-ul {
        margin: 0;
    }

    .navbar nav li.current a {
        font-weight: bold;
    }

    .navbar nav li.Learn-More a {
        color: var(--primary-color);
        border: 3px solid var(--primary-color);
        font-weight: bold;
        border-radius: 5em;
        margin-top: -0.2em;
    }

    .navbar nav li.Learn-More a:hover {
        background: var(--primary-color);
        color: white;
    }

    .more,
    .exit {
        display: none;
    }
}

@media only screen and (min-width: 1208px) {
    .container {
        width: 1080px;
        margin: 0 auto;
    }

    .main,
    .fuction,
    .testimonials-section,
    .contact-section {
        padding: 10em 4em;
    }

    .main .container {
        display: flex;
        justify-content: space-between;
        text-align: left;
    }

    .main .container .left {
        margin: 3em 3em 0 5em;
    }

    .main .container .left h1 {
        font-size: 3em;
        width: 90%;
    }

    .main .show {
        width: 33%;
        margin-right: 8em;
    }

    .main .main-button {
        display: flex;
    }

    .main .main-button .learn-more {
        margin-right: 1em;
    }

    .main .main-button .watch-video {
        margin-top: 1.1em;
    }

    ul.fuction-list {
        display: block !important;
        margin-left: 5em;
    }

    ul.fuction-list li {
        font-size: 1.4em !important;
    }

    ul.fuction-list li:before {
        width: 29px !important;
        height: 29px !important;
    }

    .fuction .container img {
        display: block;
        /* 这个布局无所谓，只是为了把原本的none换掉而已 */
        /* absolute 让图片去到别的地方，而不是和block一样每个占据一行 */
        position: absolute;
        right: 0;
        width: 350px;
        margin-top: -178px;
        /* 一般都用margin-top来上下移动 */
        border-radius: 1em;
        border: 4px solid var(--primary-color);
    }

    .testimonials-section ul {
        display: flex;
        justify-content: center;
    }

    .testimonials-section ul li {
        margin: 0 1em;
    }

    .contact-section {
        position: relative;
    }

    .contact-section .container {
        display: flex;
    }

    .contact-section .left {
        width: 37%;
    }

    .contact-section .right {
        position: absolute;
        right: 0;
        top: 0;
        width: 45%;
        height: 100%;
    }

    .contact-section .right iframe {
        height: 100%;
    }
}

@media only screen and (min-width: 1450px) {
    .fuction {
        position: relative;
        /* 添加相对定位 */
    }

    .fuction:before {
        content: "";
        /* 符容器要有relative absolute才可以生效 */
        position: absolute;
        width: 10%;
        height: 20em;
        background: var(--primary-color) !important;
        left: 0;
        top: -4em;
    }

    .fuction:after {
        content: "";
        position: absolute;
        width: 200px;
        height: 20em;
        background: url("/image/dots.svg") no-repeat;
        left: 4.5em;
        top: 2em;
    }
}