:root {
    --solution-title-text-weight: 700;
    --solution-subtitle-text-weight: 500;
}

.yichen-solution {
    padding: var(--component-gap) 0;
    background: #E2E2E2;
}

.yichen-solution .yichen-solution-header {
    text-align: center;
}

.yichen-solution .yichen-solution-header .yichen-solution-title {
    font-size: var(--title-size-h2);
    font-weight: 700;
}

.yichen-solution .yichen-solution-header .yichen-solution-description {
    font-size: var(--text-flag-size);
    font-weight: 500;
}

.yichen-solution-container {
    display: flex;
    width: 100%;
    margin-top: 50px;
}

.yichen-solution-sidebar {
    min-width: 270px;
    text-align: center;
}

.yichen-solution .sidebar-header {
    width: 100%;
    height: auto;
    background-color: #fff;
    border-radius: 5px;
    padding: 15px 0;
}

.yichen-solution .sidebar-header .category {
    font-size: var(--text-flag-size);
    font-weight: 600;
    line-height: normal;
    font-style: normal;
}

.yichen-solution .category-nav {
    margin: 24px 0 0 0;
    width: 100%;
}

.yichen-solution .category-nav ul {}

.yichen-solution .category-nav li {
    margin-top: 24px;
}

.yichen-solution .category-button {
    border: none;
    width: 100%;
    height: auto;
    background-color: #fff;
    border-radius: 5px;
    padding: 15px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;

    font-size: var(--text-flag-size);
    font-weight: 500;
    line-height: normal;
    font-style: normal;
}

.yichen-solution .category-item:hover .category-button,
.yichen-solution .category-item.active .category-button {
    background-color: var(--color-primary);
    color: #fff;
}

.yichen-solution .yichen-solution-content {
    margin-left: 12px;
    flex: 1;
}

.yichen-solution .content-header {
    padding: 15px 0;
    background-color: #fff;
    border-radius: 5px;
    width: 100%;
    height: auto;
}

.yichen-solution .content-header .ask-title {
    font-size: var(--text-flag-size);
    font-weight: 600;
    line-height: normal;
    font-style: normal;

    margin-left: 24px;
}

.yichen-solution .yichen-solution-list {
    display: flex;
    flex-direction: column;
    margin-top: 24px;
    border-radius: 6px;
    background-color: #fff;
    padding: 36px 55px;
    gap: 60px;
    min-height: 80vh;
}

.yichen-solution .yichen-solution-item {
    width: 100%;
}

.yichen-solution .yichen-solution-list .mix {
    display: none;
}

.yichen-solution .yichen-solution-question {
    display: flex;
    align-items: center;
}

.yichen-solution .ask-button {
    min-width: 86px;
    padding: 7px 0px;
    text-align: center;
    border-radius: 10px;
    background: var(--color-primary);
    color: #FFF;
    font-size: var(--text-flag-size);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    box-sizing: border-box;
}

.yichen-solution .yichen-solution-question .yichen-solution-question {
    margin-left: 20px;
}

.yichen-solution .yichen-solution-question .yichen-solution-question h3 {
    cursor: pointer;
    color: var(--text-color);
    font-size: var(--title-size-h3);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.yichen-solution .yichen-solution-question .yichen-solution-question:hover h3 {
    color: var(--color-primary);
}

.yichen-solution .yichen-solution-answer {
    display: flex;
    margin-top: 12px;
    align-items: flex-start;
}

.yichen-solution .answer-button {
    min-width: 86px;
    padding: 5px 0px;
    text-align: center;
    background: #fff;
    font-size: var(--text-flag-size);
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    border-radius: 10px;
    border: 2px solid var(--color-primary);
    box-sizing: border-box;
}

.yichen-solution .yichen-solution-answer p {
    margin-left: 20px;
    color: #000;
    font-size: var(--text-size);
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
}

@media screen and (max-width: 992px) {

    .yichen-solution .sidebar-header,
    .yichen-solution .content-header {
        display: none;
    }

    .yichen-solution-container{
        flex-direction: column;
        margin-top: 12px;
    }
    .yichen-solution-sidebar{
        min-width: auto;
    }
    .yichen-solution .category-nav{
        margin-top: 0px;
    }
    .yichen-solution .category-nav ul{
        display: flex;
        max-width: 100%;
        gap: 12px;
        padding-bottom: 4px;
        overflow-x: auto;
        -ms-overflow-style: none; /* IE/Edge */
        scrollbar-width: none; /* Firefox */
    }
    .yichen-solution .category-nav ul::-webkit-scrollbar{
        width: 0;
        height: 0;
        display: none; /* WebKit */
    }

    .yichen-solution .category-nav li{
        margin-top: 0px;
    }
   
    .yichen-solution .category-button{
        padding: 8px 20px;
        white-space: nowrap;
    }

    .yichen-solution .yichen-solution-content{
        margin-left: 0px;
        margin-top: 12px;
    }

    .yichen-solution .yichen-solution-list{
        margin-top: 0px;
    }

    .yichen-solution .yichen-solution-list{
        padding: 12px 20px;
    }
    .yichen-solution .yichen-solution-answer p{
        line-height: normal;
    }

    .yichen-solution .yichen-solution-question button,
    .yichen-solution .yichen-solution-answer button{
        padding: 3px 0px;
        min-width: 60px;
        border-radius: 4px;
    }

    .yichen-solution .yichen-solution-answer button{
        padding: 2px 0px;
        border-width: 1px;
        border-radius: 4px;
        min-width: 60px;
    }
}

@media screen and (max-width: 480px) {
    .yichen-solution .container {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
}