ul {
    padding: 0;
    list-style-type: none;
}

html {
    padding: 0;
}

body {
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    --swiper-theme-color: #faf9f6;
    --swiper-pagination-bottom: 4px;
    color: #222222;
    margin: 0;
    background-color: #f9f9f9;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 14px;

    @media (min-width: 768px) {
        font-size: 16px;
    }
}

a {
    color: inherit;
}

a:-webkit-any-link {
    color: inherit;
    text-decoration: none;
}

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


.nav {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0px 3px 6px #00000029;
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    margin: 0 1rem;
    z-index: 100;

    @media (min-width: 768px) {
        width: 60%;
        left: auto;
        right: 10%;
        margin-right: 0;

        .nav-logo {
            display: none;
        }

        #navbarNav {
            display: flex;
            width: 100%;
            justify-content: space-between;
        }

        .nav-list {
            display: flex;
            padding: 0;
        }

        .nav-list-item {
            padding: 4px 24px;
            font-weight: 500;
        }

        .line-button {
            width: fit-content;
            padding: 8px 16px;
            line-height: 1;
            border-radius: 12px;
        }
    }
}

.nav-logo {
    width: 72px;
    height: 16px;
}

.toggle-menu {
    display: block;
    width: 1rem;
    height: 1rem;
    position: relative;
}

.toggle-menu i {
    position: absolute;
    display: block;
    height: 2px;
    background: #222222;
    width: 16px;
    left: 0px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.toggle-menu i:nth-child(1) {
    top: 0px;
}

.toggle-menu i:nth-child(2) {
    top: 6px;
}

.toggle-menu i:nth-child(3) {
    top: 12px;
}

.toggle-menu.active i:nth-child(1) {
    top: 6px;
    -webkit-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
}

.toggle-menu.active i:nth-child(2) {
    background: transparent;
}

.toggle-menu.active i:nth-child(3) {
    top: 6px;
    -webkit-transform: rotateZ(-45deg);
    transform: rotateZ(-45deg);
}

#navbar-toggler {
    display: block;
    background-color: white;
    border: none;

    @media (min-width: 768px) {
        display: none;
    }
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
}

#navbarNav {
    display: none;
}

#navbarNav.show {
    display: block;
    flex-basis: 100%;
    flex-grow: 1;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0.5rem 0.25rem;
}

.nav-list-item {
    padding: 0.75rem 0.1rem;
}

.line-button {
    color: #ffffff !important;
    background-color: #3acd01;

    img {
        width: 16px;
        height: 16px;
        vertical-align: middle;
        margin-right: 8px;
    }

    border: none;
    border-radius: 22px;
    padding: 12px;
    display: block;
    text-align: center;
}

#top {
    text-align: center;

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

        .top-container-logo {
            width: 600px;
        }

        .top-lobby {
            height: 60vh;
            background-image: url('/img/ease-environment-1.webp');
            background-size: cover;
            background-position: center 90%;
        }

        .top-text:before {
            content: "";
            margin-right: 48px;
            width: 3px;
            background-color: white;
            transform: rotate(30deg);
        }

        .top-text {
            display: flex;
            position: absolute;
            bottom: 0;
            right: 0;
            color: white;
            width: 32%;
            margin: 0;
            padding: 8px;
            text-align: left;
            font-weight: 300;
            margin-right: 7rem;
        }
    }
}


.top-lobby {
    height: 30vh;
    background-image: url('/img/ease-index-cover-app.webp');
    background-size: cover;
    background-position: center;
}

.top-container {
    backdrop-filter: blur(2px);
    width: 100%;
    height: 100%;
    position: relative;
}

.top-text {
    margin: 4rem auto;
    font-weight: 500;
    width: 80%;
}

.top-container-logo {
    width: 160px;
    height: auto;
    position: absolute;
    bottom: -1px;
    left: 2rem;
}

#tags {
    text-align: center;
    width: 80%;
    margin: 0 auto;
    padding-bottom: 3.75rem;

    .tags-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        margin: 48px 0;
    }

}

#collection {
    text-align: center;
    width: 80%;
    margin: 0 auto;
    padding-bottom: 3.75rem;

    @media (min-width: 768px) {
        .collection-card-wrapper {
            /* display: flex;
            justify-content: center; */
        }

        .collection-card-article {
            flex-direction: column;
            background-color: white;
        }

        .collection-card {
            flex-direction: column;
            width: 300px;
            height: auto;
        }

        .collection-card-image-wrapper {
            width: 300px;
            height: 400px
        }

        .collection-card-text-wrapper {
            /* width: 100%; */
            display: flex;
            gap: 1rem;
            padding: 0.5rem;

            p {
                line-height: 0;
            }
        }
    }
}

#collection {
    @media (max-width: 768px) {
        .collection-card-wrapper {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1px;
        }

        .collection-card {
            width: 100%;
            height: 100%;
        }

        .collection-card-article {
            flex-direction: column;
            position: relative;
        }

        .collection-card-text-wrapper {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            font-size: 12px;
            /* width: 100%; */
            padding: 4px 1px;
            color: white;
            gap: 0 2px;

            .collection-tags {
                gap: 0 2px;
            }

            li {
                background-color: #00000080;
                padding: 1px;
                border-radius: 3px;
                width: fit-content;
            }

            display: grid;
            grid-template-columns: 1;
            gap: 1rem 0.5rem;

        }
    }
}

.collection-card-wrapper {
    /* width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem; */
    /* height: 160px; */
}

.collection-card {
    width: 20rem;
    height: 12rem;
    display: flex;
    background-color: white;
}

.collection-card-article {
    width: 100%;
    height: 100%;
    display: flex;
    background-color: white;
}

.collection-card-image-wrapper {
    /* width: 150px; */
    height: auto;
    aspect-ratio: 3 / 4;
}

.collection-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-card-text-wrapper {
    text-align: left;
    padding: 1rem;
    /* width: 50%; */
}

.collection-tags {
    display: flex;

    gap: 0 0.5rem;

    a {
        width: fit-content;
        white-space: nowrap;
    }
}


.designer-section {
    color: white;
    background-color: #404040;
    padding: 2.5rem 0;
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;

    &:before {
        content: "/";
        margin-right: 0.5rem;
    }
}

#designer {

    @media (min-width: 768px) {
        .designer-card-wrapper {
            display: flex;
            justify-content: center;
        }

        .designer-card {
            width: 400px;
            padding-right: 2rem;
        }


        .designer-card-tag-wrapper {
            display: flex;
            flex-wrap: wrap;
        }
    }
}

.designer-card-wrapper {
    padding: 3rem 7.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    gap: 3rem;
    overflow-x: auto;
}

.designer-card {
    width: 250px;
    border-right: 2px solid #585858;
}

.designer-card:last-child {
    border-right: none;
}

.designer-card-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.designer-card-text-wrapper-top {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    margin-top: 0.75rem;

    span {
        color: #999999;
        font-size: 0.875rem;
    }

    h3 {
        font-size: 1.75rem;
        margin: 0;
    }
}

.designer-card-tag-wrapper {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    font-size: 0.75rem;
    white-space: pre;
}

#blog {
    padding: ;
}

#contact {
    .contact-container {
        display: grid;
        grid-template-columns: 1fr;
        padding: 2rem;
        background-color: #f0efe9;
        color: #222222;

        p {
            margin: 0;
        }

        .contact-info {
            margin-bottom: 2rem;
        }

        .contact-info-logo {
            width: 130px;
            height: auto;
            margin-bottom: 0.75rem;
        }

        .contact-social {
            display: flex;
            gap: 2rem;
            border-top: 1px solid #404040;
            border-bottom: 1px solid #404040;
            padding: 0.5rem 0;

            img {
                width: 16px;
                height: 16px;
                vertical-align: middle;
                margin-right: 0.5rem;
            }

            margin-bottom: 2rem;
        }

        .contact-social-link {
            display: inline-flex;
            align-items: center;
        }


        .map-container-iframe {
            width: 100%;
            aspect-ratio: 1/1;
            border: none
        }
    }

    @media (min-width: 768px) {
        .contact-container {
            grid-template-columns: 1fr 1fr;
        }

        .contact-social {
            width: fit-content;
        }
    }
}

#footer-text {
    background-color: #404040;
    color: white;
    text-align: center;

    h3 {
        margin: 0;
        padding: 1rem 0;
    }
}


#tagPage {
    background-color: #f0efe9;
    color: #222222;
    width: 100vw;

    .header-text {
        color: white;
    }
}

/* Tag Page Hero Section Custom Styles */
.tag-hero-section {
    color: #fff;
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    overflow-y: auto;
}

.tag-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-hero-container {
    width: 100%;
    max-width: 800px;
    margin: 150px auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}



.tag-content {
    color: #404040 font-size: 1.1rem;
    margin-bottom: 32px;
    text-align: left;
    line-height: 1.7;
    background: transparent;
    padding: 0 16px;
}

@media (max-width: 600px) {
    .tag-hero-container {
        padding: 32px 8px;
    }

    .tag-title {
        font-size: 2rem;
    }

    .tag-content {
        font-size: 1rem;
    }
}


#tag {
    position: relative;

    .top-text {
        bottom: 0;
        color: white;
        padding: 0;
        margin: 0;
        text-align: end;
        position: absolute;
        font-size: 1.5rem;
        right: 16px;
    }

    text-align: center;

    @media (min-width: 768px) {
        position: relative;

        .top-container-logo {
            width: 15%;
        }

        .top-lobby {
            height: 60vh;
            background-image: url('/img/ease-environment-1.webp');
            background-size: cover;
            background-position: center 90%;
        }

        .top-text {
            position: absolute;

            font-size: 4rem;
            right: 0;
            left: 0;
        }

    }
}

#tagPage {
    background-color: #f0efe9;
    color: #222222;
    width: 100vw;

    .header-text {
        color: white;
    }
}

/* Tag Page Hero Section Custom Styles */
.tag-hero-section {
    color: #fff;
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    overflow-y: auto;
}

.tag-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-hero-container {
    width: 100%;
    max-width: 800px;
    margin: 150px auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

#tag-article {
    color: #404040;
    padding: 0 16px;

    @media (min-width: 768px) {
        padding: 0 10%;
    }
}

#section-aboutus {
    color: #404040;
    padding: 0 16px;
    font-size: 1rem;
    text-align: left;
    line-height: 1.6;

    h1 {
        font-size: 2rem;
        font-weight: bold;
    }

    h2 {
        font-size: 1.5rem;
        font-weight: bold;
    }

    h3 {
        font-size: 1.2rem;
        font-weight: bold;
    }


    @media (min-width: 768px) {
        padding: 0 10%;
    }

    ul {

        list-style-type: disc;
        padding-left: 1.3em;
        /* 控制項目縮排，視設計調整 */
        margin-top: 0.5em;
        margin-bottom: 0.5em;
    }

}

.tag-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.tag-content {
    font-size: 1.1rem;
    margin-bottom: 32px;
    text-align: left;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .tag-hero-container {
        padding: 32px 8px;
    }

    .tag-title {
        font-size: 2rem;
    }

    .tag-content {
        font-size: 1rem;
    }
}


.faq-section {
    color: #404040;

    dl {
        margin-top: 2rem;
    }

    dt {
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    dd {
        margin-bottom: 1rem;
        background-color: #FFFFFF;
        padding: 0.5rem;
        margin-inline-start: 0;
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .faq-section {
        padding: 0 10%;

        dt {
            font-size: 1.5rem;
            margin-bottom: 0.75rem;
        }

        dd {
            font-size: 1rem;
            padding: 1rem;
        }
    }

}

.tag-else,
.tag-alias {
    padding: 0 10%;
    text-align: center;
}

.tag-keyword {
    display: flex;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
}

.tag-keyword {
    color: #999999;
}


#faq {
    padding: 2rem;
}

.swiper {
    width: 100%;
}