/* ------------------- 首頁輪播 ------------------- */
.home-carousel {
    position: relative;
    width: 100%;
    height: 85vh;
    margin-top: 6.8vh;
    overflow: hidden;
}

.home-slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.home-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    /* background-size: 100%; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-controls {
    position: absolute;
    display: flex;
    justify-content: space-between;
    /* bottom: 10px;
    right: 15px;
    display: flex;
    gap: 3px;
    z-index: 10; */
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
}

.home-nav-button {
    padding: 0.5rem 1.1rem;
    background: #000000;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.home-nav-button i {
    transition: transform 0.4s ease;
}

.home-nav-button:hover i {
    transform: scale(1.4);
}

.home-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.home-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.home-indicators button.active {
    background: #ff6600;
}

/* 大桌機螢幕 */
@media (min-width: 1441px) {}

/* 筆電 */
@media (min-width: 1024px) and (max-width: 1440px) {
    .home-slide {
        position: relative;
        flex: 0 0 100%;
        height: auto;
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .home-nav-button {
        font-size: 1.5rem;
        padding: 0.4rem 1rem;
    }

    .home-nav-button:hover i {
        transform: scale(1.3);
    }
}

/* 直式平板 */
@media (min-width: 767px) and (max-width: 1024px) {
    .home-carousel {
        height: 35vh;
    }

    .home-nav-button {
        padding: 0.5rem 0.8rem;
    }

    .home-section_title {
        font-size: 2rem;
    }

    .home-section_title::after {
        width: 8rem;
    }

    .home-indicators {
        bottom: 10px;
    }
}

/* 手機 */
@media (max-width: 767px) {
    .home-carousel {
        height: 37vh;
    }

    .home-nav-button {
        padding: 0.5rem 0.7rem;
    }

    .home-section_title {
        font-size: 1.8rem;
    }

    .home-section_title::after {
        width: 7rem;
    }
}

/* ------------------- 標題樣式 ------------------- */
.section-base {
    position: relative;
    padding: 6rem 0rem;
    overflow: hidden;
    z-index: 0;
}

.section-title {
    position: relative;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 5%;
    height: 0.3rem;
    background: #d80101;
    margin-top: 8px;
}

.section-subtitle {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    color: #666;
}

.section-deco {
    position: absolute;
    width: 500px;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

.dynamic-bg::before {
    content: attr(data-en);
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: rgb(58, 58, 58, 0.05);
    font-weight: 800;
    pointer-events: none;
    z-index: -1;
    letter-spacing: 0.1em;
    white-space: nowrap;
    transform: translateY(-30px);
}

.btn-orange {
    position: relative;
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    width: 121px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    color: white;
    overflow: hidden;
    background-color: #ff6811;
    transition: all 0.3s ease;
}

.btn-orange span {
    display: inline-block;
    transition: transform 0.3s ease, text-align 0.3s ease;
}

.btn-orange::after {
    content: " >>";
    position: absolute;
    right: 15%;
    top: 50%;
    font-weight: bold;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-orange:hover {
    width: 131px;
    text-align: left;
    padding-left: 1.2rem;
    padding-right: 2rem;
    background-color: black;
}

.btn-orange:hover::after {
    opacity: 1;
}

/* ------------------- 服務項目 ------------------- */
.svc-section-style {
    background: linear-gradient(135deg, #f8f9fa 0%, #eeeeee 100%);
}

.svc-section-deco {
    bottom: 0;
    right: 0;
}

.svc-card {
    position: relative;
    min-width: 280px;
    height: 250px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.svc-card:hover {
    transform: translateY(-5px);
}

.svc-card-content {
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.8), rgba(255, 115, 0, 0.8));
    border-radius: 10px;
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    max-width: 80%;
    word-break: break-word;
}


/* ------------------- 產品內容 ------------------- */
.prds-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    z-index: 2;
}

.prds-link {
    text-decoration: none;
    color: inherit;
    flex: 1 1 calc(33.333% - 1.5rem);
    max-width: calc(33.333% - 1.5rem);
    transition: transform 0.3s ease;
}

@media (max-width: 991.98px) {
    .prds-link {
        flex: 1 1 calc(50% - 1.5rem);
        max-width: calc(50% - 1.5rem);
    }
}

@media (max-width: 575.98px) {
    .prds-link {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.prds-card {
    display: flex;
    flex-direction: column;
    background: #000;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.5);
    border-radius: 0.75rem;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;

}

.prds-img {
    text-align: center;
    overflow: hidden;
}

.prds-img img {
    display: block;
    width: 100%;
    height: auto;
    padding: 3rem;
}

.prds-img-1 {
    background: radial-gradient(circle at center, rgb(0, 120, 184) 30%, rgb(0, 0, 0) 90%);
}

.prds-img-1:hover {
    box-shadow: 0 8px 20px rgb(0, 104, 158, 0.8);
    transform: translateY(-5px);
}

.prds-img-2 {
    background: radial-gradient(circle at center, rgb(252, 56, 214) 30%, rgb(0, 0, 0) 90%);
}

.prds-img-2:hover {
    box-shadow: 0 8px 20px rgb(234, 55, 199, 0.8);
    transform: translateY(-5px);
}

.prds-img-3 {
    background: radial-gradient(circle at center, rgb(247, 122, 48) 30%, rgb(0, 0, 0) 90%);
}

.prds-img-3:hover {
    box-shadow: 0 8px 20px rgb(255, 137, 2, 0.8);
    transform: translateY(-5px);
}

.prds-content {
    padding: 2rem;
    text-align: center;
    border: none;
    border-radius: 10px;
    color: white;
}

.prds-content h3 {
    font-size: 1.7rem;
    margin: 0;
}


/* ------------------- 影音專區 ------------------- */
.mda-section-style {
    background: linear-gradient(135deg, #242424 0%, #242424 60%, #121212 60%, #121212 100%);
    color: #ffffff;
}

.mda-section-style .dynamic-bg::before {
    color: rgba(255, 255, 255, 0.05);
}

.mda-section-style .section-subtitle {
    color: #ffffff;
}

.video-frame {
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper {
    max-width: 500px;
    width: 100%;
    padding: 0.5rem;
}

.video-wrapper iframe {
    border: none;
    border-radius: 12px;
    width: 100%;
    height: 250px;
}

.video-swiper {
    position: relative;
    padding: 0 1rem;
}

.video-swiper .swiper-button-prev,
.video-swiper .swiper-button-next {
    color: #fff;
    font-weight: 900;
    top: 44%;
    width: 40px;
    height: 40px;
}

.swiper-button-next {
    right: -5px;
}

.swiper-button-prev {
    left: -5px;
}

.video-title {
    margin-top: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

/* ------------------- 工程實績 ------------------- */
.prjs-section-deco {
    bottom: 0;
    right: 15%;
}

.prjs-wrapper {
    perspective: 1000px;
}

.prjs-card {
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.prjs-wrapper:hover .prjs-card {
    transform: translateY(-4px);
    filter: brightness(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.prjs-card p {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: start;
    padding: 10px 0px 15px 5px;
    margin: auto 0;
}

.prjs-img {
    position: relative;
    overflow: hidden;
    height: 190px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prjs-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.prjs-wrapper:hover .prjs-img img {
    transform: scale(1.05);
}