main {
    margin-top: 0px;
}

#headerNav {
    background: transparent;
}

#headerContainer {
    /* height: calc(100vh + 93px); */
    position: relative;
    display: flex;
    align-items: center;
    line-height: 0;
    /* 添加这行来消除行高导致的空隙 */
}

#headerContainer .elementor-video {
    width: 100%;
    display: block;
    /* 添加这行来消除inline-block的空隙 */
    vertical-align: top;
    /* 添加这行来消除基线对齐的空隙 */
}

#navMid li a {
    color: #ffffff;
}

.my-container {
    position: relative;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: translateX(-20px) translateY(-20px) rotate(5deg);
    }
}

@keyframes arc-swing {

    0%,
    100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateX(20px) translateY(-20px) rotate(-5deg);
    }

    50% {
        transform: translateX(0) translateY(-40px) rotate(0deg);
    }

    75% {
        transform: translateX(-20px) translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.8);
    }
}

@keyframes arc-swing-2 {

    0%,
    100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateX(-20px) translateY(20px) rotate(-5deg);
    }

    50% {
        transform: translateX(0) translateY(40px) rotate(0deg);
    }

    75% {
        transform: translateX(20px) translateY(20px) rotate(5deg);
    }
}

.swiper-button-next:after,
.swiper-button-prev:after {
    display: none;
}

.swiper-button-prev .arrow-grey,
.swiper-button-next .arrow-grey {
    width: 80px;
    margin-bottom: 100px;
    display: block;
}

.swiper-button-prev .arrow-red,
.swiper-button-next .arrow-red {
    width: 70px;
    margin-bottom: 100px;
    display: none;
}

.swiper-button-prev:hover .arrow-grey,
.swiper-button-next:hover .arrow-grey {
    display: none;
}

.swiper-button-prev:hover .arrow-red,
.swiper-button-next:hover .arrow-red {
    display: block;
}

.swiper-button-prev {
    left: var(--swiper-navigation-sides-offset, 100px);
}

.swiper-button-next {
    right: var(--swiper-navigation-sides-offset, 100px);
}

@keyframes flip {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

/* 關於我們樣式 */
#aboutSecton .my-container {
    display: flex;
    align-items: center;
}

.about-section .left-wrapper {
    width: 50%;
}

.about-section .right-wrapper {
    width: 50%;
}

.about-images {
    display: flex;
    gap: 16px;
}

.main-image-container {
    width: 362px;
    position: relative;
    /* border-radius: 12px; */
    overflow: hidden;
}

.main-image {
    width: 362px;
    height: 603px;
    object-fit: cover;
    display: block;
}

.play-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #FF7B14;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 123, 20, 0.3);
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--main-color);
}

.play-button svg {
    margin-left: 3px;
}

.bottom-section {
    width: 363px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.experience-box {
    background-color: var(--main-color);
    padding: 40px;
    padding-top: 35px;
    margin-top: 16px;
}

.experience-text {
    font-weight: bold;
    white-space: nowrap;
    font-size: 46px;
    color: #fff;
    text-align: center;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 1.3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.secondary-image-container {
    flex: 1;
    /* border-radius: 12px; */
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

.secondary-image {
    width: 100%;
    height: 814px;
    object-fit: cover;
    display: block;
}

/* 右邊內容樣式 */
.about-content {
    padding: 20px 0;
}

.about-subtitle {
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--main-color);
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.about-title {
    font-size: 43px;
    color: #1a213e;
    margin-top: 0px;
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-description {
    font-size: 16px;
    font-weight: normal;
    line-height: 28px;
    color: #707480;
    margin-bottom: 15px;
    font-weight: 400;
}

.about-advantages {
    margin-bottom: 40px;
}

.advantage-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
}

.check-icon {
    flex-shrink: 0;
}

.advantage-item span {
    color: #707480;
    display: block;
    position: relative;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
}

.ceo-quote {
    /* background: #f8f9fa; */
    padding: 30px;
    border-radius: 15px;
    position: relative;
    /* border-left: 4px solid #FF7B14; */
}

.quote-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.quote-text {
    color: #1a365d;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
}

.ceo-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ceo-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.ceo-name {
    color: #1a365d;
    font-weight: bold;
    font-size: 16px;
}

.ceo-title {
    color: #666;
    font-size: 14px;
    margin-top: 2px;
}

.quote-icon {
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 80px;
    color: #ddd;
    z-index: 1;
}

/* 響應式設計 */

@media (max-width: 768px) {
    .about-section .my-container {
        flex-direction: column;
        gap: 30px;
    }

    .about-section .left-wrapper,
    .about-section .right-wrapper {
        width: 100%;
    }

    .bottom-section {
        flex-direction: column;
        gap: 15px;
    }

    .experience-box {
        align-self: flex-start;
    }

    .about-title {
        font-size: 28px;
    }

    .quote-text {
        font-size: 16px;
    }

    .quote-icon {
        font-size: 60px;
        bottom: 15px;
        right: 20px;
    }
}

/* 視頻模態框樣式 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.video-modal-content {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.video-modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.close-video {
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-video:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-container {
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 響應式視頻模態框 */
@media (max-width: 768px) {
    .video-modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .close-video {
        width: 35px;
        height: 35px;
        font-size: 25px;
    }
}

/* 服務卡片Swiper輪播圖樣式 */
.service-swiper {
    width: 100%;
    padding: 20px 0;
}

.service-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: flex-start;
}

.service-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.04));
    transition: all 0.3s ease;
    width: 100%;
    max-width: 382px;
    margin: 0 12px;
}

.service-card.empty {
    background: transparent;
    filter: none;
}

/* .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
} */

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.discount-badge {
    background: #FFD700;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.discount-badge::before {
    content: "";
    background-image: url(../image/dicount.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 16px;
    height: 16px;
}

.view-more {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: var(--main-color);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    border-radius: 14px 14px 0 0;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-img {
    transform: scale(1.2);
}

.card-content {
    padding: 30px;
    border-radius: 0 0 14px 14px;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 123, 20, 0.06) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 123, 20, 0.06) 0%, transparent 50%);
}

.service-name {
    color: #1a213e;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.417;
    text-align: left;
}

.service-desc {
    color: #707480;
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

/* Swiper導航按鈕樣式 */
.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 123, 20, 0.5);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 50px;
}

.swiper-button-prev {
    left: -50px;
}

.swiper-button-next {
    right: -50px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 123, 20, 1);
    box-shadow: 0 0 10px rgba(255, 123, 20, 0.6);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.swiper-button-prev svg,
.swiper-button-next svg {
    width: 30px;
    height: 30px;
}

/* Swiper分頁指示器樣式 */
.swiper-pagination {
    position: relative;
    margin-top: 30px;
    bottom: 16px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(221, 221, 221, 0.2);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: rgba(255, 123, 20, 0.6);
}

/* 響應式設計 */
@media (max-width: 768px) {
    
    /* .card-header {
        padding: 12px 15px;
    } */
    
    .discount-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .view-more {
        font-size: 12px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .service-name {
        font-size: 16px;
    }
    
    .service-desc {
        font-size: 13px;
    }
    
    .service-swiper .swiper-button-prev,
    .service-swiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .service-swiper .swiper-button-prev svg,
    .service-swiper .swiper-button-next svg {
        width: 16px;
        height: 16px;
    }
}