/* ========== 主容器样式 ========== */
.advantage-section {
    position: relative;
    padding: 80px 0;
    color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 48px;
    padding-right: 48px;
    gap: 40px;
}

/* 左右排版时各占一半 */
.advantage-section>div.w-full {
    flex: 1;
    max-width: 50%;
}

/* 图片自适应样式 */
.advantage-section>img {
    flex: 1;
    max-width: 50%;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 1;
    min-width: 200px;
}

/* ========== 响应式样式 ========== */
@media (min-width: 1024px) {
    .advantage-section {
        padding-left: 48px;
        padding-right: 48px;
    }
}

@media (max-width: 1023px) {
    .advantage-section {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {

    .tab-container {
        width: 100%;
        max-width: 400px;
    }

}

/* ========== 手機版標題樣式 ========== */
.mobile-title {
    display: none;
}

@media (max-width: 768px) {
    .advantage-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    /* 重置桌面版的各占一半设置 */
    .advantage-section>div.w-full {
        flex: none;
        max-width: 100%;
    }

    .advantage-section>img {
        flex: none;
        max-width: 100%;
    }

    .mobile-title {
        display: block;
        order: -2;
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }

    .advantage-section>img {
        order: -1;
    }


    .tab-container {
        width: 100%;
        max-width: 360px;
    }

}

@media (max-width: 640px) {
    .advantage-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .tab-container {
        width: calc(100% - 16px);
        padding: 6px;
    }

    .tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .tab-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .features-container {
        gap: 20px;
    }

    .feature-point {
        font-size: 14px;
        line-height: 1.5;
    }

}


.orange {
    color: #F75105;
}

/* ========== Tab 样式 ========== */
.tab-container {
    width: 360px;
    display: flex;
    background-color: #f0f0f0;
    border-radius: 999px;
    padding: 8px;
    max-width: 800px;
    margin-bottom: 32px;
}

.tab {
    border: none;
    padding: 12px 32px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    font-family: 'DM Sans', sans-serif;
    border-radius: 999px;
    margin-right: 4px;
    background: transparent;
    transition: all 0.3s ease;
    color: #000;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

.tab:last-child {
    margin-right: 0;
}

.tab.active {
    background-color: #000;
    color: #fff;
}

.tab:hover:not(.active) {
    background-color: #e0e0e0;
    color: #000;
}

.tab:focus {
    outline: none;
    background-color: #e0e0e0;
    color: #000;
}

.tab:focus.active {
    background-color: #000;
    color: #fff;
}

.content {
    display: none;
    min-height: 170px;
    transition: opacity 0.3s ease;
}

.content.active {
    display: block;
    opacity: 1;
}

.tab-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: var(--font-primary);
    line-height: 1.3;
    text-align: left;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.feature {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    text-align: justify;
}


.feature-point {
    margin-left: 8px;
}

.feature-point::before {
    content: "⭓";
    margin-right: 6px;
    color: #000;
}

/* ========== 其他样式 ========== */
hr {
    color: #C9C9C9;
}

.tab-container button,
.tab-container button:visited,
.tab-container button:link,
.tab-container button:active {
    color: #000 !important;
    background: transparent !important;
    text-decoration: none !important;
}

.tab-container button.active,
.tab-container button.active:visited,
.tab-container button.active:link,
.tab-container button.active:active {
    background-color: #000 !important;
    color: #fff !important;
}