html,
body,
h1,
h2,
h3,
h4,
p,
ul,
li {
    margin: 0;
    padding: 0;
}

/* 兼容 Firefox */
html {
    scrollbar-width: none;
    /* 火狐：隐藏滚动条 */
}

/* 兼容 Chrome / Edge / Safari */
html::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

ul {
    list-style: none;
}

.TS-page {
    background-color: #F5F5F5;
    min-height: calc(100vh - 64px);
}

.TS-top_title {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.98);
    box-sizing: border-box;
    margin-top: 64px;
}

.TS-top_title h2 {
    width: 1200px;
    font-size: 16px;
    line-height: 19px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.85);
}

.TS-content {
    width: 1200px;
    margin: 0 auto;
    padding: 48px 0 16px;
    display: flex;
    height: calc(100vh - 128px);
    overflow: hidden;
    gap: 32px;
}

.TS-content_nav {
    width: 30%;
    min-width: 328px;
    /* padding-right: 16px; */
    height: 100%;
    box-sizing: border-box;
}

.TS-content_nav .TS-selector {
    height: calc(100% - 90px);
    overflow-y: auto;
}

.TS-content_main {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding-right: 16px;
}

.TS-content_nav .TS-selector::-webkit-scrollbar,
.TS-content_main::-webkit-scrollbar {
    width: 8px;
    background-color: #F5F5F5;
}

.TS-content_nav .TS-selector::-webkit-scrollbar-track,
.TS-content_main::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px #F5F5F5;
    border-radius: 10px;
    background-color: #F5F5F5;
}

.TS-content_nav .TS-selector::-webkit-scrollbar-thumb,
.TS-content_main::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px #737373;
    background-color: #737373;
}

.TS-search_wrap {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    position: relative;
}

.TS-search_input {
    position: relative;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: auto;
    border: 1px solid #D9D9D9;
}

.TS-search_input svg {
    position: absolute;
    top: 8px;
    left: 12px;
    width: 24px;
    height: 24px;
}

.TS-search_input input {
    padding: 10px 12px 10px 48px;
    border: none;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    line-height: 20px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.65);
    font-weight: 400;
}

.TS-search_result {
    position: absolute;
    width: 100%;
    max-height: 192px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    background-color: #fff;
    border-radius: 0 0 4px 4px;
}

.TS-search_result .TS-search_item {
    height: 32px;
    font-size: 14px;
    line-height: 32px;
    color: #3b3e40;
    font-weight: 400;
    word-break: break-word;
    padding: 4px 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: all .1s ease-in-out;
    cursor: pointer;
}

.TS-search_result .TS-search_item:hover {
    background-color: #f7f9fa;
}

.TS-selector_itemMain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    /* margin-top: 8px; */
    padding: 14px 16px;
    padding-left: calc(24px + var(--index) * 12px);
    border-radius: 8px;
}

.TS-selector_itemMain span {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -.02em;
    word-break: break-word;
    color: rgba(0, 0, 0, .65);
    font-weight: 400;
}

.TS-selector_itemMain:hover,
.TS-selector_itemMain.TS-active {
    background-color: rgba(0, 0, 0, .08);
}

.TS-selector_itemMain .TS-selector_arrow {
    transform: rotate(-90deg);
    transition: all .3s ease-in-out;
}

.TS-selector_itemMain .TS-selector_childOpen {
    transform: rotate(0);
}

.TS-selector_children {
    display: none;
}

.TS-selector_childShow {
    display: block;
}

.TS-products_title {
    display: flex;
    align-items: center;
}

.TS-products_title h2 {
    font-size: 32px;
    line-height: 42px;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 600;
}

.TS-products_title .img-box {
    width: 128px;
    height: 128px;
    margin-right: 16px;
}

.TS-products_title .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.TS-products_tab {
    margin-bottom: 32px;
}

.TS-products_tab .tab-bar {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    padding: 16px 0;
    margin-top: 8px;
}

.TS-products_tab .line {
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 70px;
    background-color: #e60012;
    transition: all .3s linear;
}

.TS-products_tab .tab-item {
    font-size: 14px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.45);
    font-weight: 400;
    transition: all .3s linear;
    cursor: pointer;
}

.tab-bar:not(:has(.tab-item))>.line {
    display: none;
}

.TS-products_tab .tab-item.TS-active {
    color: rgba(0, 0, 0, 0.85);
}

.TS-products_item {
    margin-bottom: 32px;
}

.TS-title {
    font-size: 20px;
    line-height: 23px;
    color: #000000;
    font-weight: 600;
}

.TS-card {
    background-color: #FFF;
    border-radius: 8px;
    padding: 24px 18px;
    margin-top: 16px;
}

.TS-card .TS-card_info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.TS-card .TS-card_name {
    display: flex;
    align-items: center;
    flex: 1;
}

.TS-card .TS-card_name img {
    width: 56px;
    height: 56px;
    margin-right: 8px;
}

.TS-card .TS-card_name h3 {
    font-size: 18px;
    line-height: 26px;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 600;
}

.TS-card .TS-card_name p {
    font-size: 16px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.65);
    font-weight: 400;
    margin-top: 4px;
}

.TS-card_action {
    display: flex;
    align-items: center;
}

.TS-card_action img {
    width: 16px;
    height: 16px;
}

.TS-card_action span {
    font-size: 14px;
    line-height: 20px;
    color: #1688F1;
    font-weight: 400;
    margin-left: 2px;
}

.TS-card_action.loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.TS-card .TS-selector_itemMain {
    padding: 12px 0;
    padding-left: 0;
    margin-left: calc(var(--index) * 24px);

}

.TS-card .TS-selector {
    padding-left: 80px;
}

.TS-selector_itemMain span {
    font-size: 16px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.85);
}

.TS-card .TS-selector_itemMain:hover {
    background-color: transparent;
}

.TS-card .TS-doc_list {
    margin-left: calc(var(--index) * 24px);
    padding: 24px;
    background-color: #F7F8FA;
    border-radius: 8px;
}

.TS-card .TS-doc_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.TS-card .TS-doc_item:not(:last-child) {
    margin-bottom: 24px;
}

.TS-card .TS-doc_item h4 {
    font-size: 16px;
    line-height: 19px;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 400;
}

.TS-back {
    display: none;
}

@media (max-width:768px) {
    .TS-page {
        padding-top: 50px;
        min-height: auto;
    }

    .TS-content {
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
        height: auto;
    }

    .TS-content_main {
        display: block;
        width: 100%;
        padding-right: 0;
    }

    .TS-top_title {
        height: 50px;
        padding: 0 16px;
        justify-content: flex-start;
        margin-top: 0;
    }

    .TS-top_title h2 {
        width: fit-content;
        display: flex;
        align-items: center;
    }

    .TS-content_nav {
        width: 100%;
        padding-right: 0;
        min-width: auto;
    }

    .TS-content_nav .TS-selector {
        background-color: #fff;
        height: auto;
    }

    .TS-selector_itemMain:hover,
    .TS-selector_itemMain.TS-active {
        background-color: transparent;
    }

    .TS-selector_itemMain span {
        font-size: 14px;
        line-height: 16px;
    }

    .TS-back {
        display: none;
        width: 18px;
        height: 18px;
    }

    .TS-back svg {
        width: 100%;
        height: 100%;
    }

    .TS-products_title h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .TS-products_title .img-box {
        display: none;
    }

    .TS-products_tab {
        margin-bottom: 24px;
    }

    .TS-products_tab .tab-bar {
        gap: 12px;
        overflow-x: auto;
        padding: 8px 0;
    }

    .TS-products_tab .tab-bar::-webkit-scrollbar {
        display: none;
    }

    .TS-products_tab .tab-item {
        font-size: 12px;
        line-height: 16px;
        white-space: nowrap;
    }

    .TS-products_tab .line {
        width: 60px;
    }

    .TS-products_item {
        margin-bottom: 24px;
    }

    .TS-title {
        font-size: 16px;
        line-height: 19px;
    }

    .TS-card {
        padding: 8px;
        margin-top: 8px;
    }

    .TS-card .TS-card_name img {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }

    .TS-card .TS-card_name h3 {
        font-size: 14px;
        line-height: 20px;
        /* width: 128px; */
    }

    [id^="questions_"] .TS-card .TS-card_name h3 {
        width: 100%;
    }

    .TS-card .TS-card_name p {
        font-size: 12px;
        line-height: 16px;
    }

    .TS-card_action img {
        width: 12px;
        height: 12px;
    }

    .TS-card_action span {
        font-size: 12px;
        line-height: 16px;
    }

    .TS-card .TS-selector {
        padding-left: 48px;
    }

    .TS-card .TS-selector_itemMain {
        padding: 4px 0;
        margin-top: 4px;
        margin-left: calc(var(--index) * 8px);
    }

    .TS-card .TS-selector_itemMain span {
        font-size: 12px;
        line-height: 16px;
    }

    .TS-card .TS-doc_list {
        margin-left: calc(var(--index)* 8px);
        padding: 8px;
    }

    .TS-card .TS-doc_item h4 {
        font-size: 12px;
        line-height: 16px;
        width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}