/* ==================
    全域樣式
================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Noto+Serif+TC:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Rubik:wght@300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

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

:root {
    font-size: 16px;
    font-family: 'Jost', 'Noto Sans TC', sans-serif;
}

body {
    background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5 {
    color: #292F36;
    font-family: "DM Serif Display", serif;
    letter-spacing: 1px;
    line-height: 1.2;
}

p {
    color: #4D5053;
    font-family: 'Open Sans', 'Noto Sans TC', sans-serif;
    letter-spacing: 1.2px;
    line-height: 1.5;
}

section {
    padding-top: 80px;
}

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

img {
    width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================
    Header
================== */
header {
    width: 100%;
    padding-top: 10px;
}

.header-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.logo {
    margin-left: 30px;
}

.menu {
    display: block;
    width: 3rem;
    height: 3rem;
    background-color: #666;
    margin-right: 30px;
    margin-bottom: 10px;
    position: relative;
}

.menu::after {
    content: "";
    position: absolute;
    top: 1em;
    left: .8em;
    width: 1.5em;
    height: 0.2em;
    border-top: 0.6rem double white;
    border-bottom: 0.2rem solid white;
}

.navbar,
.navbar ol,
.navbar li,
.navbar a {
    width: 100%;
}

.navbar ol {
    display: flex;
    flex-direction: column;
}

.navbar li {
    list-style: none;
    border-bottom: 1px solid #333;
}

.navbar a {
    height: 100%;
    text-align: center;
    color: #292F36;
    background-color: rgb(248, 248, 248);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* ==================
    Banner
================== */
#Banner {
    padding: 66px 30px;
    width: 100%;
    height: 500px;
    background: url('../images/phone/Banner.png') no-repeat;
    background-size: auto 100%;
    background-position: center bottom;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 150px;
    margin-bottom: 100px;
}

.banner-container {
    padding: 30px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    width: 100%;
}

.hero-title {
    font-size: 2.375rem;
    text-align: center;
}

.description {
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 1px;
    margin: 20px auto;
    text-align: center;
}

.btn {
    background-color: #292f36;
    color: white;
    border-radius: 1.125rem;
    padding: 26px 48px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.125rem;
    letter-spacing: 1.25px;
    display: block;
    width: fit-content;
    margin: auto;
}

.btn i {
    color: orange;
    margin-left: 5px;
    font-size: 1.25rem;
}

/* ==================
    Work
================== */
#Work .work-container {
    width: 80%;
    margin: auto;
}

.work {
    list-style-type: none;
    padding: 0;
}

.work li {
    text-align: center;
    height: 200px;
    width: 80%;
    margin: auto;
    padding-bottom: 20px;
}



.work li p {
    padding: 20px 0 30px 0;
}

.work_read {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.work_read i {
    color: goldenrod;
}

/* ==================
    Customer
================== */
#Customer {
    padding-top: 80px;
}

#Customer .customer-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 2.5rem;
}

#Customer img {
    margin: auto;
    width: 51%;
}

/* ==================
    Testimonials
================== */
#Testimonials {
    padding-top: 80px;
}

#Testimonials h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.testimonial-container {
    background-color: #F4F0EC;
    border-radius: 40px;
    padding: 2.5rem 0rem;
}

.card-list {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 2.5rem 10px 0;
}

.card-content {
    background-color: #FFFFFF;
    border-radius: 20px;
    width: 100%;
    padding: 2rem 1.25rem;
}

.picname {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5625rem;
    margin-bottom: 1.25rem;
}

.picname img {
    width: 77px;
    height: 77px;
    border-radius: 50px;
}

.name-lineheight {
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
}

/* ==================
    Project
================== */
#Project {
    padding-top: 80px;
}

#Project .project-container .section-title,
#Project .project-container .sub-title {
    text-align: center;
}

.pro-article-list {
    margin-top: 40px;
}

.pro-article-item {
    width: 100%;
    background-color: #ffffff;
    margin-bottom: 30px;
}

.pro-picframe {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.pro-article-item:nth-child(1) .pro-picframe {
    border-top-right-radius: 45px;
}

.pro-article-item:nth-child(2) .pro-picframe {
    border-top-left-radius: 45px;
}

.pro-article-item:nth-child(3) .pro-picframe {
    border-bottom-right-radius: 45px;
}

.pro-article-item:nth-child(4) .pro-picframe {
    border-bottom-left-radius: 45px;
}

.pro-link-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read {
    background-color: #F4F0EC;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==================
    Stats
================== */
#stats {
    margin-top: 80px;
    background-color: #f2eeea;
    padding: 40px 16px;
    text-align: center;
}

.stat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.stat-item {
    position: relative;
    padding: 0 12px;
}

.stat-item h2 {
    font-size: 32px;
    color: #bd936d;
    margin: 0;
}

.stat-item p {
    margin-top: 6px;
    font-size: 14px;
    color: #4a4a4a;
    letter-spacing: 0.5px;
}

/* ==================
    Blog
================== */
#Blog {
    padding-top: 80px;
}

.blog-container {
    width: 80%;
    margin: auto;
}

#Blog .title-gp {
    text-align: center;
    margin-bottom: 40px;
}

#Blog .section-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

#Blog .sub-title {
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    width: 100%;
}

.article-list {
    padding-top: 20px;
}

.article-item {
    width: 100%;
    padding: 20px;
    border-radius: 60px;
    border: 1px solid #E7E7E7;
    margin-bottom: 30px;
    transition: all ease-in 0.3s;
}

.pic-frame {
    width: 100%;
    height: 270px;
    border-top-left-radius: 45px;
    border-top-right-radius: 45px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.pic {
    width: 100%;
}

.tag {
    position: absolute;
    padding: 10px;
    background-color: #E7E7E7;
    border-radius: 8px;
    border-bottom-left-radius: 0px;
    left: 10px;
    bottom: 10px;
}

.article-title {
    font-size: 1.3rem;
    letter-spacing: 1px;
    line-height: 1.2;
    font-family: "DM Serif Display", sans-serif;
}

.link-gp {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date {
    font-size: 1rem;
    font-weight: bold;
}

.read-more {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    color: #292F36;
    font-size: 1.2rem;
    text-decoration: none;
    background-color: #F4F0EC;
    border-radius: 50%;
}

/* ==================
    CTA
================== */
#cta {
    padding-top: 80px;
}

.cta-container {
    background-color: #292F36;
    padding: 30px 10px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 40px;
}

#cta .title-gp {
    color: #FFFFFF;
    width: 60%;
}

#cta .title-gp h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

#cta .title-gp p {
    font-size: 1rem;
    margin-bottom: 20px;
    width: 100%;
    color: #fff;
}

.btn-cta {
    background-color: #CDA274;
    padding: 36px 24px;
    border-radius: 18px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.125rem;
    letter-spacing: 1px;
    color: white;
}

.btn-cta i {
    font-size: 1.25rem;
    color: #292F36;
    margin-left: 5px;
}

/* ==================
    Footer
================== */
footer {
    padding-top: 80px;
}

.ft-container {
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.co-info {
    text-align: center;
    margin-bottom: 30px;
}

.co-info img {
    width: 180px;
    margin: auto;
}

.co-info p {
    font-family: 'Open Sans', sans-serif;
    line-height: 2;
    letter-spacing: 4%;
    margin-top: 20px;
}

.social-set {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 32px;
    padding-top: 20px;
}

.site-map {
    margin-bottom: 30px;
}

.pages,
.services,
.contact {
    padding-bottom: 20px;
}

footer ul {
    list-style-type: none;
}

footer h5 {
    font-size: 1.125rem;
    line-height: 3;
    letter-spacing: 4%;
}

footer li {
    font-family: 'Open Sans', sans-serif;
    font-weight: lighter;
    line-height: 2;
    letter-spacing: 4%;
}

.copyright {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    border-top: 1px solid #d4d4d4;
}

/* ==================================
    RWD 平板 (min-width: 481px)
================================== */
@media screen and (min-width: 481px) {
    .container {
        width: 90%;
    }

    /* Header */
    .header-container {
        flex-wrap: nowrap;
        margin: auto;
    }

    .menu {
        display: none;
    }

    .navbar {
        width: 70%;
    }

    .navbar ol {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        border-bottom: none;
    }

    .navbar li {
        border-bottom: 0;
    }

    .navbar a {
        background-color: transparent;
    }

    /* Banner */
    #Banner {
        height: 556px;
        background: url("images/tablet/Banner.png") no-repeat;
        background-size: cover;
        background-position: right bottom;
        justify-content: flex-start;
    }

    .banner-container {
        width: 60%;
        background-color: transparent;
        margin: 5%;
        padding: 0;
    }

    .hero-title {
        font-size: 2.8rem;
        text-align: left;
    }

    .description {
        text-align: left;
    }

    .btn {
        margin: 0;
    }

    /* Work */
    #Work .work-container {
        width: 90%;
    }

    .work {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .work li {
        width: 32%;
        height: auto;
    }

    /* Customer */
    #Customer .customer-container {
        flex-wrap: nowrap;
    }

    #Customer img {
        width: 12.5%;
    }

    /* Testimonials */
    #Testimonials h2 {
        font-size: 2rem;
    }

    .card-list {
        flex-wrap: nowrap;
        padding-left: 20px;
        padding-right: 20px;
    }

    .card-content {
        width: auto;
    }

    /* Project */
    .pro-article-list {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .pro-article-item {
        width: 48%;
    }

    /* Stats */
    .stat-container {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        max-width: 720px;
        margin: 0 auto;
        gap: 32px;
    }

    .stat-item {
        flex: 1 1 40%;
        padding: 0 16px;
    }

    .stat-item:after {
        content: "";
        position: absolute;
        right: 0;
        top: 20%;
        bottom: 20%;
        width: 1px;
        background-color: #d8c5b5;
    }

    .stat-item:last-child:after,
    .stat-item:nth-child(2):after {
        content: none;
    }

    .stat-item h2 {
        font-size: 40px;
    }

    /* Blog */
    .blog-container {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    #Blog .title-gp {
        width: 100%;
    }

    #Blog .sub-title {
        width: 80%;
        margin: auto;
    }

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

    .article-item {
        width: 48%;
    }

    /* CTA */
    .cta-container {
        padding: 30px 20px;
    }

    /* Footer */
    .ft-container {
        width: 80%;
    }

    .site-map {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 10px;
        margin-bottom: 80px;
    }

    .co-info {
        flex-basis: 34%;
        text-align: left;
    }

    .co-info img {
        margin: 0;
    }

    .social-set {
        justify-content: flex-start;
    }

    .pages,
    .services,
    .contact {
        flex-basis: 22%;
        text-align: left;
    }
}

/* ==================================
    RWD 電腦 (min-width: 835px)
================================== */
@media screen and (min-width: 835px) {
    .container {
        width: 80%;
    }

    /* Banner */
    #Banner {
        height: 800px;
        background: url('../images/Banner.jpg') no-repeat;
        background-size: cover;
    }

    .banner-container {
        width: 40%;
        margin: 40px;
        padding: 0;
    }

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

    /* Work */
    #Work .work-container {
        width: 60%;
    }

    /* Customer */
    #Customer img {
        width: 12.5%;
        padding: 5px;
    }

    /* Testimonials */
    #Testimonials h2 {
        font-size: 3rem;
        line-height: 5rem;
    }

    .picname {
        flex-direction: row;
        align-items: center;
        text-align: start;
    }

    /* Project */
    .pro-article-item {
        width: 48%;
    }

    /* Stats */
    .stat-container {
        max-width: 960px;
        gap: 48px;
    }

    .stat-item {
        flex: 1;
        padding: 0 20px;
    }

    .stat-item:nth-child(2):after {
        content: "";
    }

    .stat-item:last-child:after {
        content: none;
    }

    .stat-item h2 {
        font-size: 48px;
    }

    .stat-item p {
        font-size: 16px;
    }

    /* Blog */
    .article-item {
        width: 32%;
    }

    /* CTA */
    .cta-container {
        padding: 80px 300px;
    }

    #cta .title-gp {
        width: 100%;
    }
}