@charset 'UTF-8';

*button:focus {
    box-shadow: none !important;
}

img {
    max-width: 100%;
}


.features-section {
    width: 100%;
    background: #fff;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(196, 160, 80, 0.2);
}

.features-wrapper {
    display: flex;
    width: 100%;
    height: 120px;
}

.feature-item {
    flex: 1;
    padding: 1rem;
    border-right: 1px solid rgba(196, 160, 80, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 18px;
    cursor: default;
    position: relative;
    overflow: hidden;
    transition:
        flex 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.5s ease;
    background: #fff;
}

.feature-item:last-child {
    border-right: none;
}

/* 金色光暈底層 */
.feature-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 160, 80, 0.12) 0%, rgba(196, 160, 80, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 頂部金線 */
.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #c4a050, #e8cc7a, #c4a050);
    transition: width 0.6s ease;
}

/* active 狀態：放大 */
.feature-item.active {
    flex: 1.8;
    background: #fff;
}

.feature-item.active::before {
    opacity: 1;
}

.feature-item.active::after {
    width: 100%;
}

/* 編號 + 文字的內層容器：absolute，不影響高度 */
.feature-inner {
    position: absolute;
    inset: 0;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
}

.feature-item.active .feature-inner {
    overflow: visible;
}

/* 編號 */
.feature-number {
    position: relative;
}

.feature-number::before {
    content: '';
    display: block;
    width: 72px;
    height: 72px;
    position: absolute;
    top: -10px;
    right: -10px;
    background: repeating-linear-gradient(120deg, transparent, transparent 4px, rgb(255 206 147 / 20%) 3px, rgba(255, 214, 164, 0.2) 6px) #ffffff;
    z-index: 0;
}

.feature-item.active .feature-number::before {
    top: 0;
    right: 0;
    transition: all 0.5s ease;
}

.feature-number span {
    position: relative;
    font-size: 42px;
    font-weight: 700;
    color: #c4a050;
    background: rgba(196, 160, 80, 0);
    border: 1px solid #E2DDCC;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    transition: all 0.5s ease;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
}



.feature-item.active .feature-number {
    background: rgba(255, 255, 255, 0);
    border-color: #c4a050;
    color: #c4a050;
    opacity: 1;
    position: relative;
}

/* 文字區塊 */
.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #d4b860;
    margin-bottom: 8px;
    white-space: nowrap;
    letter-spacing: 1px;
    transition: color 0.4s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-item.active .feature-title {
    color: #544007;
    white-space: normal;
    text-overflow: unset;
}

.feature-desc {
    font-size: 16px;
    color: rgb(0 0 0 / 100%);
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.4s ease, opacity 0.5s ease;
    opacity: 0.7;
    letter-spacing: 1px;
}

.feature-item.active .feature-desc {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    color: rgb(148 86 0);
    opacity: 1;
}

/* 進度條 */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #c4a050, #e8cc7a);
    width: 0%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item.active .progress-bar {
    opacity: 1;
    animation: progressFill 3s linear forwards;
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@media (max-width: 1199px) {

    .feature-number::before,
    .feature-number span {
        width: 50px;
        height: 50px;
    }

    .feature-number span {
        font-size: 30px;
    }
}

@media (max-width: 991px) {

    .feature-inner {
        padding: 0 12px;
        gap: 16px;
    }

    .features-wrapper {
        flex-direction: column;
        height: auto;
    }

    .feature-item {
        border-right: none;
        border-bottom: 1px solid rgba(196, 160, 80, 0.2);
        padding: 0;
        height: 80px;
        overflow: hidden;
    }

    .feature-item.active {
        height: 120px;
        min-height: 90px;
    }

    .feature-inner {
        position: relative;
        overflow: hidden;
        inset: unset;
        padding: 20px 16px;
        align-items: center;
    }

    .feature-item::after {
        content: none;
    }

    .feature-item.active::after {
        height: 100%;
        width: 3px;
    }

    .feature-title {
        font-size: 18px;
    }

    .feature-desc {
        font-size: 14px;
    }
}