.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.text-btn {
    background: none;
    border: none;
    color: #222;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

.text-btn:hover {
    color: #c0392b;
}

.text-btn:hover::after {
    width: 100%;
}

.text-btn.active {
    color: #e74c3c;
}

.text-btn.active::after {
    width: 100%;
}


/* 平板端样式 - 两个按钮一行 */
@media (max-width: 768px) {
    .button-group {
        gap: 20px;
    }

    .text-btn {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* 手机端样式 - 两个按钮一行 */
@media (max-width: 480px) {
    .button-group {
        gap: 15px;
    }

    .text-btn {
        flex: 0 0 calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
        font-size: 16px;
        padding: 10px 5px;
    }

    .container {
        padding: 25px 20px;
    }
}