:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ================================================================================= */
/*                                手機版                                              */
/* ================================================================================  */

/* ========================== */
/*           haeder           */
/* ========================== */

#header .container {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.navbar li {
    margin: 20px;
    font-size: 20px;
}

.navbar a {
    text-decoration: none;
    color: #292F36;
    font-family: "Jost", sans-serif;
}

.logo img {
    height: 80%;
}

.menu i {
    font-size: 38px;
    color: #292F36;
}


/* ========================== */
/*           banner           */
/* ========================== */

#banner {
    background: url('../images/phone/Banner.png') no-repeat;
    height: 400px;
    border-bottom-left-radius: 150px;
    background-position: center bottom;
    display: flex;
    align-items: center;
    margin-bottom: 80px;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: auto;
}

.banner-intro {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 30px;
}

.hero-title {
    margin-bottom: 15px;
    font-family: "DM Serif Display", serif;
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.desc {
    margin-bottom: 15px;
    font-family: "Jost", sans-serif;
    letter-spacing: 1px;
    line-height: 20px;
    color: #4D5053;
}

.btn-get {
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background-color: #292F36;
    color: #fff;
    font-family: "Jost", sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.btn-get i {
    margin-left: 5px;
    color: #CDA274;
}

/* ========================== */
/*            work            */
/* ========================== */

#work .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-list {
    list-style: none;
    width: 100%;
    text-align: center;
}

.work-list h3 {
    margin-bottom: 20px;
    font-size: 26px;
    color: #292F36;
}

.work-list p {
    margin-bottom: 30px;
    font-size: 22px;
    line-height: 30px;
}

.work-list h4 {
    margin-bottom: 30px;
    color: #4D5053;
    font-weight: bold;
    font-family: "Jost", sans-serif;
    font-size: 18px;
}

.work-list i {
    color: #CDA274;
    margin-left: 5px;
}

/* ========================== */
/*            about           */
/* ========================== */

section {
    padding: 30px 0;
    margin-bottom: 30px;
}

#about .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-intro {
    order: 1;
}

.about-intro .desc {
    text-align: center;
    margin-bottom: 30px;
}

.about-pic {
    margin-bottom: 20px;
}

.about-pic img {
    width: 100%;
    border-top-right-radius: 150px;
    border-bottom-left-radius: 100px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 15px;
    font-family: "DM Serif Display", serif;
}

.photo-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.photo-icon {
    width: 90px;
    height: 90px;
    background-color: #F4F0EC;
    border-radius: 50%;
    margin-right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-icon i {
    color: #CDA274;
}

.phone-number {
    font-weight: bold;
    font-size: 1.5rem;
    /* margin-bottom: 5px; */
    color: #4D5053;
}

.number-group {
    /* font-size: 1.2rem; */
    font-family: "Jost", sans-serif;
}

/* ========================== */
/*            brands          */
/* ========================== */

#brands .container {
    padding-bottom: 0;
}

.brand {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brand li {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
}

.brand img {
    height: 50%;
}

/* ========================== */
/*        testimonials        */
/* ========================== */

#testimonials {
    padding: 50px 15px;
}

#testimonials .container {
    background-color: #F4F0EC;
    border-radius: 30px;
    padding: 40px 0;
}

.testimonial-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 20px; */
}

.testimonial-card-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
}

#testimonials .section-title {
    width: 80%;
    margin: auto;
    font-size: 1.5rem;
    color: #292F36;
    text-align: center;
    margin-bottom: 20px;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 20px;
    width: 90%;
    margin: auto;
    padding: 25px 10px 40px 10px;
}

.testimonial-header {
    display: flex;
    align-items: center;
}

.testimonial-card .desc {
    text-align: center;
}

.avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    object-position: center right;
    border-radius: 50%;
    margin: 20px;
}

.testimonial-name {
    font-family: "Jost", sans-serif;
    color: #4D5053;
}

.name {
    font-family: "DM Serif Display", serif;
    color: #292F36;
    font-size: 1.3rem;
}

/* ========================== */
/*          project           */
/* ========================== */

.title-group {
    text-align: center;
    margin: 0 auto 30px auto;
}

.title-group p {
    margin-bottom: 50px;
}

.item .pic {
    width: 100%;
    margin-bottom: 10px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.item:nth-child(1) .pic {
    border-radius: 0;
    border-top-right-radius: 50px;
}

.item:nth-child(2) .pic {
    border-radius: 0;
    border-top-left-radius: 50px;
}

.item:nth-child(3) .pic {
    border-radius: 0;
    border-bottom-right-radius: 50px;
}

.item:nth-child(4) .pic {
    border-radius: 0;
    border-bottom-left-radius: 50px;
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.project-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.name-group h3 {
    font-family: "DM Serif Display", serif;
    color: #292F36;
}

.name-group p {
    font-family: "Jost", sans-serif;
    color: #4D5053;
}

.circle-link {
    background-color: #F4F0EC;
    color: #292F36;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* ========================== */
/*           count            */
/* ========================== */

#count {
    background-color: #F4F0EC;
    margin: 50px auto 60px auto;
}

.count-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
}


.count-list li {
    width: 50%;
    /* border-right: 1px solid #CDA274; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.count-list li:nth-child(1),
.count-list li:nth-child(3) {
    border-right: 1px solid #CDA274;
}

.count-list li:nth-child(1),
.count-list li:nth-child(2) {
    border-bottom: 1px solid #CDA274;
}

.count-list span {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #CDA274;
    font-size: 44px;
    font-family: "DM Serif Display", serif;
}

.count-list p {
    font-size: 10px;
}

/* ========================== */
/*          articles          */
/* ========================== */

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-item {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    border-radius: 30px;
    transition: background-color 0.3s ease-in-out;
}

.news-item:hover {
    background-color: #F4F0EC;
}

.news-pic {
    position: relative;
    overflow: hidden;
}

.pic {
    width: 100%;
    border-top-right-radius: 25px;
    border-top-left-radius: 25px;
}

.tag {
    padding: 8px;
    font-family: "Jost", sans-serif;
    background-color: #fff;
    border-radius: 10px;
    border-bottom-left-radius: 0px;
    position: absolute;
    left: 10px;
    bottom: 15px;
}

.news-title {
    font-family: "DM Serif Display", serif;
    color: #292F36;
    font-size: 1.1rem;
    padding-top: 10px;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.date-group {
    display: flex;
    justify-content: space-between;
}

.news-date {
    font-family: "Jost", sans-serif;
    color: #292F36;
    display: flex;
    align-items: center;
}

/* ========================== */
/*           contact          */
/* ========================== */

#contact .container {
    background-color: #292F36;
    border-radius: 70px;
    height: 350px;
    display: flex;
    justify-content: center;
}

.contact-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.contact-title {
    font-size: 46px;
    font-family: "DM Serif Display", serif;
    text-align: center;
}

.contact-desc {
    margin-top: 25px;
    margin-bottom: 40px;
    font-family: "Jost", sans-serif;
    letter-spacing: 1px;
    line-height: 20px;
    text-align: center;
}

.contact-block button {
    padding: 20px 10px;
    width: 200px;
    border: none;
    border-radius: 15px;
    background-color: #CDA274;
    color: #fff;
    font-family: "Jost", sans-serif;
    font-size: 1rem;
}

.contact-block i {
    margin-left: 5px;
    color: #292F36;
}

/* ========================== */
/*           footer           */
/* ========================== */

#footer {
    margin-bottom: 0;
}

#footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer-about {
    font-family: "Jost", sans-serif;
    letter-spacing: 1px;
    color: #405053;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.footer-about img {
    width: 150px;
    margin-bottom: 20px;
}

.footer-about p {
    width: 80%;
    margin-bottom: 20px;
}

.icon i {
    color: #292F36;
    margin: 20px 30px;
}

.footer-wrapper {
    display: flex;
    width: 100%;
}

.footer-list {
    list-style: none;
    font-family: "Jost", sans-serif;
    text-align: center;
    width: 32%;
}

.footer-list li {
    margin: 26px 0;
}

.footer-list a {
    text-decoration: none;
}

.list1 a {
    color: #747474;
}

.list2 a,
.list3 a {
    color: #405053;
}

.footer-list .list-title {
    margin-top: 0;
}

.list-title a {
    font-family: "DM Serif Display", serif;
    color: #292F36;
    font-size: 22px;
}

.last-footer {
    font-family: "Jost", sans-serif;
    color: #405053;
    text-align: center;
    padding: 28px;
    border-top: 1px solid #c5c5c5;
}


/* ================================================================================= */
/*                                平板版                                              */
/* ================================================================================  */
@media screen and (min-width:480px) {
    /* ========================== */
    /*           haeder           */
    /* ========================== */

    .navbar {
        display: flex;
    }

    .navbar li {
        margin: 10px;
        font-size: 16px;
    }

    .menu {
        display: none;
    }

    /* ========================== */
    /*           banner           */
    /* ========================== */
    #banner {
        background: url('../images/tablet/Banner.jpg') no-repeat;
        height: 500px;
        border-bottom-left-radius: 200px;
        background-position: center bottom;
    }

    .banner-intro {
        background-color: transparent;
        width: 60%;
    }

    .hero-title {
        font-size: 3rem;
    }

    /* ========================== */
    /*           banner           */
    /* ========================== */

    .work-list {
        display: flex;
    }

    .work-list li {
        width: 33%;
    }

    /* ========================== */
    /*            about           */
    /* ========================== */

    #about .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .about-intro {
        order: 0;
        width: 45%;
    }
    .about-intro .desc {
        text-align: start;
    }
    

    .about-pic {
        width: 50%;
    }

    /* ========================== */
    /*            brands          */
    /* ========================== */

    .brand {
        flex-direction: row;
    }

    .brand li {
        width: 20%;
        margin: 0 auto;
    }

    .brand img {
        height: auto;
        width: 70%;
    }

    /* ========================== */
    /*        testimonials        */
    /* ========================== */
    .section-title {
        width: 100%;
    }

    .testimonial-card {
        width: 33%;
        min-height: 250px;
        padding: 20px 5px 10px 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .avatar {
        width: 50px;
        height: 50px;
        margin: 0px;
        margin-right: 10px;
    }

    .testimonial-card-group {
        flex-direction: row;
        align-items: stretch;
        padding: 20px;
        gap: 10px;
    }

    .testimonial-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .testimonial-name {
        font-family: "Jost", sans-serif;
        color: #4D5053;
        display: flex;
        flex-direction: column;
    }

    .name {
        font-family: "DM Serif Display", serif;
        color: #292F36;
        font-size: 0.95rem;
    }

    .location {
        font-size: 0.8rem;
    }

    #testimonials .desc {
        font-size: 0.9rem;
        margin-top: 20px;
        margin-bottom: 0;
    }

    #testimonials .section-title {
        width: 50%;
    }

    /* ========================== */
    /*          project           */
    /* ========================== */

    .title-group {
        width: 80%;
    }

    .project-list {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .item {
        width: 46%;
    }

    /* ========================== */
    /*           count            */
    /* ========================== */

    .count-list {
        flex-direction: row;
    }

    .count-list li {
        width: 25%;

    }

    .count-list li:nth-child(2) {
        border-right: 1px solid #CDA274;
    }

    .count-list li:nth-child(1),
    .count-list li:nth-child(2) {
        border-bottom: none
    }

    .count-list p {
        font-size: 12px;
    }

    /* ========================== */
    /*          articles          */
    /* ========================== */

    .news-item {
        width: 32%;
        padding: 10px;
    }

    .news-list {
        display: flex;
        justify-content: space-between;
    }

    .news-date {
        font-size: 0.9rem;
    }

    .tag {
        padding: 6px;
        font-size: 0.8rem;
    }

    /* ========================== */
    /*           footer           */
    /* ========================== */

    .footer-wrapper {
        margin-top: 20px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .footer-list {
        width: 33%;
    }

}

/* ================================================================================= */
/*                                電腦版                                              */
/* ================================================================================  */

@media screen and (min-width:1024px) {

    /* ========================== */
    /*           haeder           */
    /* ========================== */
    .navbar li {
        margin: 20px;
        font-size: 20px;
    }

    .menu {
        display: none;
    }

    /* ========================== */
    /*           banner           */
    /* ========================== */

    #banner {
        background: url('../images/Banner.jpg') no-repeat;
        height: 800px;
        border-bottom-left-radius: 300px;
        background-position: center bottom;
    }

    .banner-intro {
        width: 40%;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .desc {
        font-size: 1.2rem;
        line-height: 25px;
    }

    .btn-get {
        padding: 15px 18px;
        font-size: 1.1rem;
    }

    /* ========================== */
    /*            about           */
    /* ========================== */
    section {
        padding: 40px 0;
        margin-bottom: 80px;
    }

    .section-title {
        font-size: 3rem;
        margin-bottom: 40px;
    }

    .about-intro {
        width: 35%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .about-pic {
        width: 58%;
    }

    .about-pic img {
        border-top-right-radius: 200px;
        border-bottom-left-radius: 150px;
    }

    /* ========================== */
    /*        testimonials        */
    /* ========================== */

    .title-group {
        text-align: center;
        margin: 0 auto 50px auto;
    }

    .testimonial-card {
        width: 32%;
        height: 300px;
        padding: 20px;
    }

    #testimonials .section-title {
        font-size: 3rem;
        width: 50%;
    }

    .testimonial-header {
        width: 100%;
    }

    .name {
        font-size: 1.8rem;
    }

    .location {
        font-size: 1.2rem;
    }

    #testimonials .desc {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .avatar {
        width: 80px;
        height: 80px;
        margin: 15px;
    }

    /* ========================== */
    /*          project           */
    /* ========================== */

    .number-group {
        font-size: 1.2rem;
    }

    /* ========================== */
    /*           count            */
    /* ========================== */

    .count-list span {
        font-size: 50px;
    }

    .count-list p {
        font-size: 16px;
    }

    /* ========================== */
    /*          articles          */
    /* ========================== */

    .news-item {
        padding: 15px;
    }

    .news-date {
        font-size: 1rem;
    }

    .tag {
        bottom: 20px;
    }

    /* ========================== */
    /*           contact          */
    /* ========================== */

    .contact-title {
        font-size: 46px;
        font-family: "DM Serif Display", serif;
    }

    .contact-desc {
        margin-top: 25px;
        margin-bottom: 40px;
        font-family: "Jost", sans-serif;
        letter-spacing: 1px;
        line-height: 20px;
    }

    /* ========================== */
    /*           footer           */
    /* ========================== */

    #footer .container {
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: row;
    }

    .footer-about {
        flex-direction: column;
        align-items: flex-start;
        width: 30%;
    }

    .footer-about p {
        width: 90%;
        text-align: start;
    }

    .footer-wrapper {
        width: 60%;
        align-items: flex-start;
        margin-top: 0;
    }

    .footer-list {
        width: 33%;
    }

    .footer-list li {
        text-align: start;
    }

    .icon i {
        margin: 0 30px 0 0;
    }
}