html,
body {
    height: 100%;
}

.banner-wrapper {
    position: sticky;
    top: 80px;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.banner_top {
    position: absolute;
    top: 20%;
    left: 45%;
    font-weight: bold;
    color: #4c4c4c;
    font-size: 4vw;
    white-space: nowrap;
    overflow: hidden;
    transform: translate(-20%, -45%);
}

.text-part.top {
    transform: translateY(-200%);
    animation-name: slide-in-top;
}

@keyframes slide-in-top {
    0% {
        transform: translateY(-200%);
    }

    100% {
        transform: translateY(0);
        text-shadow: 0 1px 0 #CCCCCC, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, .1), 0 0 5px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .3), 0 3px 5px rgba(0, 0, 0, .2), 0 5px 10px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .2), 0 20px 20px rgba(0, 0, 0, .15), -16px 2px 3px rgba(206, 89, 55, 0);
    }
}

#banner_content {
    display: flex;
    position: absolute;
    top: 33%;
    left: 50%;
    transform: translate(-50%, -33%);
    font-size: 4vw;
    font-weight: bold;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
}

.text-part {
    display: inline-block;
    position: relative;
    transform: translateX(0);
    animation-duration: 2s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.text-part.left {
    transform: translateX(-200%);
    animation-name: slide-in-left;
}

.text-part.right {
    transform: translateX(200%);
    animation-name: slide-in-right;
}

@keyframes slide-in-left {
    0% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(0);
        text-shadow: 0 1px 0 #969696, 0 2px 0 #7b7b7b, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, .1), 0 0 5px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .3), 0 3px 5px rgba(0, 0, 0, .2), 0 5px 10px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .2), 0 20px 20px rgba(0, 0, 0, .15), -16px 2px 3px rgba(206, 89, 55, 0);
    }
}

@keyframes slide-in-right {
    0% {
        transform: translateX(200%);
    }

    100% {
        transform: translateX(0);
        text-shadow: 0 1px 0 #CCCCCC, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, .1), 0 0 5px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .3), 0 3px 5px rgba(0, 0, 0, .2), 0 5px 10px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .2), 0 20px 20px rgba(0, 0, 0, .15), -16px 2px 3px rgba(206, 89, 55, 0);
    }
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#all_content {
    position: relative;
    background: #ffffff;
    z-index: 1;
}

.bg_line_left {
    position: absolute;
    width: 100%;
    aspect-ratio: 16/9;
    transform: translate(-40%, 0);
    z-index: -1;
}

.row {
    padding: 0;
    margin: 0;
}

.row>* {
    padding: 0;
    margin: 0;
}

.products_content {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-top: 6rem;
    padding-bottom: 2rem;
}

.products_content .card {
    height: 380px;
    position: relative;
    overflow: hidden;
    padding: 0;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.card-img-wrapper {
    flex: 1;
    overflow: hidden;
}

.card-img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: all ease .5s;
}

.products_content .card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(91, 91, 91, 0.396);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.products_content .card::before {
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 140%;
    background: radial-gradient(circle at 50% 100%,
            rgba(58, 106, 145, 0.591),
            transparent 80%);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(50px);
    z-index: 1;
}

.products_content .card:hover img {
    scale: 1.1;
    z-index: 0;
}

.products_content .card:hover::after {
    opacity: 0;
}

.products_content .card:hover::before {
    transform: translateY(0);
    opacity: 1;
}

.card-img-overlay {
    display: flex;
    flex-direction: column;
    justify-content: end;
    z-index: 2;
}

.product_div .card-title {
    font-weight: bold;
    border-bottom: 2px solid #ffffff;
    padding-bottom: .5rem;
    font-size: 22px;
}

.product_div {
    width: 100%;
    margin: auto;
    padding: 8rem 7rem;
}


.news_content h2 span {
    font-weight: bold;
    color: transparent;
    font-size: 1em;
    width: 100%;
}

.news_content h2 span {
    -webkit-text-stroke: 1px #1DDFF4;

}

.news_area {
    position: relative;
    overflow: hidden;
}

.news_area:after {
    content: "Latest News";
    color: transparent;
    position: absolute;
    right: -500px;
    top: 900px;
    font-size: 200px;
    line-height: 1;
    font-weight: bold;
    -webkit-text-stroke: 2px #1DDFF4;
    pointer-events: none;
    transform: rotate(90deg);
    animation: vertical-marquee 10s linear infinite;

}

@keyframes vertical-marquee {
    0% {
        top: 100%;
    }

    100% {
        top: -900px;
    }
}

.news_content h2>div {
    position: relative;
    line-height: 1.5em;
    padding-bottom: 15px;
    font-size: 1.5em;
}

.news_content h2>div:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 7px;
    width: 55px;
}

.news_content h2>div:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 1.5px;
    width: 95%;
    max-width: 400px;
}



.news_content h2>div:before {
    background-color: #1DDFF4;
}

.news_content h2>div:after {
    background-color: #1DDFF4;
}


.product_title {
    color: #0c315f;
    font-size: 4em;
    font-weight: bold;
}



.product_sub {
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 1px #aaa;
    font-size: 1.5em;
    white-space: nowrap;
}


/* 關於我們 */
.about_div {
    margin-top: 250px;
}

.about_content {
    display: flex;
}

.about_diamond {
    margin-top: 5rem;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about_img,
.about_text {
    width: 50%;
}

.about_img img {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.about_sub {
    text-align: center;
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 1px #5c5c5c;
    font-size: 1.5em;
    white-space: nowrap;
}

.about_text {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 1.5rem 2.5rem;
    position: relative;
    background-color: #f3f1efdd;
}

.about_text h3 {
    text-align: center;
    font-weight: bold;
    font-size: 40px;
    margin: 2rem 0;
    color: #005336;
}

.about_text p {
    color: #323232;
    width: 70%;
    font-weight: 600;
    font-size: 18px;
    margin: auto;
    line-height: 1.8;
    max-height: 200px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.about_text .more_btn {
    font-size: 2vw;
    text-align: end;
    margin-bottom: 2rem;
}

.diamond-grid {
    --gap: 7%;
    /* 間距用百分比，會隨尺寸縮放 */
    position: relative;
    width: 40vmin;
    /* 整體寬度依照視窗縮放 */
    height: 40vmin;
    /* 保持正方形比例 */
}

.diamond {
    position: absolute;
    width: 18vmin;
    /* 菱形大小依照視窗縮放 */
    height: 18vmin;
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all ease .5s;
}

.diamond span {
    transform: rotate(-45deg);
    font-size: clamp(12px, 2.5vmin, 20px);
    font-weight: bold;
    color: white;
}

.diamond:hover{
    scale: 0.9;
}

/* 四個菱形位置：用百分比定位 */
.yellow {
    background: yellow;
    top: calc(0% - var(--gap));
    left: 50%;
    transform: translate(-50%, 0) rotate(45deg);
}

.yellow span {
    color: #000;
}

.purple {
    background: purple;
    top: 50%;
    left: calc(0% - var(--gap));
    transform: translate(0, -50%) rotate(45deg);
}

.blue {
    background: steelblue;
    bottom: calc(0% - var(--gap));
    left: 50%;
    transform: translate(-50%, 0) rotate(45deg);
}

.cube-image {
    top: 50%;
    right: calc(0% - var(--gap));
    transform: translate(0, -50%) rotate(45deg);
}

.cube-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotate(270deg);
}



.product_area .more_btn {
    margin-top: 50px;
}

/* 關於 end */



.more_btn a {
    outline: 0;
    cursor: pointer;
    border: 2px solid #000;
    border-radius: 3px;
    color: #000;
    background: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    padding: 12px 20px;
    text-align: center;
    transition-duration: .15s;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);

}

.more_btn a:hover {
    background: rgb(0, 0, 0);
    color: #fff;
}



.product_div .more_btn a,
.news_content a {
    display: block;
    width: 180px;
    margin: auto;
}

canvas {
    display: block;
}

.product_area {
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 4rem;
    position: relative;
}

footer {
    background-color: #fff;
    position: relative;
}



/* 最新消息 */
.news_content {
    padding-top: 5rem;
    padding-bottom: 10rem;
}

.news_content h2 {
    margin-top: 2rem;
}

.news_card {
    width: 100%;
    position: relative;
    padding: 0 2rem;
    margin: 8rem auto;
}

.container .column {
    width: 60%;
    margin: auto;
}

.post-module {
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    padding: 2rem;
}

.post-module:hover {
    transform: scale(1.1);
}

.post-module:hover .thumbnail img {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    transform: scale(1.1);
    opacity: 0.6;
}

.post-module .thumbnail {
    background: #000000;
    max-height: 400px;
    overflow: hidden;
}

.post-module .thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 9/6;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.post-module .post-content {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.5s cubic-bezier(0.37, 0.75, 0.61, 1.05);
}

.post-module .post-content .title {
    margin: 0;
    padding: 0 0 10px;
    color: #333333;
    font-size: 1.2em;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.describe {
    padding: 1rem 1.5rem;
    height: 70px;
    text-align: center;
}


@media (min-width: 992px) {
    .product_content .card {
        margin: 0 2rem;
    }
}

@media (max-width: 1200px) {
    .products_content .card{
        height: 250px;
    }
    .product_div .card-title{
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .products_content .card{
        height: auto;
    }
    .news_area:after {
        display: none;
    }

    .product_content .card {
        width: 90%;
        margin: 2rem auto;
    }

    .about_title::before {
        width: 210px;
    }

    .about_img,
    .about_text {
        width: 100%;
    }

    .post-module {
        margin: 3rem 0;
    }

    .news_card {
        padding: 0;
        margin: 0;
    }

    .news_area .more_btn {
        margin: 0;
    }

    .about_content {
        flex-direction: column-reverse;
        width: 100%;
    }

    .about_txt {
        width: 100%;
        margin-bottom: 10rem;
        padding: 0 2rem;
    }

    .about_txt p {
        font-size: 16px;
    }

    .product_title {
        font-size: 4.5vw;
    }

    .product_sub {
        font-size: 4.7vw;
    }

    .product_div {
        padding: 4rem 2rem;
    }

    .products_content .card {
        margin: 1.5rem auto;
    }

    .products_content {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .container .column {
        width: 100%;
    }

    .about_title {
        font-size: 26px;
        font-weight: bold;
    }

    .describe {
        height: 55px;
    }


    .about_sub {
        font-size: 14vw;
    }

    .about_text h3 {
        font-size: 4vw;
    }
}