:root {
    --bgColor: #141414;
    --headerHeight: 44px;
    --headerColor: #383838;
}

html {
    background-color: var(--bgColor);
    color: #fff;
}

* {
    margin: 0;
    padding: 0;
}

.ts-header {
    user-select: none;
    position: absolute;
    width: 100%;
    height: var(--headerHeight);
    left: 0;
    top: 0;
    background: var(--headerColor);
    display: flex;
}

.ts-body-section {
    overflow: hidden;
    position: absolute;
    width: 100vw;
    height: calc(100vh - var(--headerHeight));
    top: var(--headerHeight);
    left: 0;
    background: transparent;
}

.ts-header-left-section {
    position: relative;
    width: 80px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.ts-header-left-section-img {
    margin-left: 15px;
    width: 25px;
    height: 25px;
}

.ts-header-left-section-down {
    transform: translate(0px, 3px);
    width: 30px;
    height: 30px;
    transition: all .3s;
}

.ts-header-left-section:hover > .ts-header-left-section-down {
    transform: translate(0px, 10px)
}

.ts-header-center-section {
    height: 100%;
    width: calc(100% - 80px - 100px);
    overflow-x: scroll;
    scroll-snap-type: x mandatory; /* 指定水平滚动位置 */
    scroll-behavior: smooth; /* 平滑滚动效果 */
    background: transparent;
    display: flex;
}
.ts-header-item{
    width: max-content;
    display: flex;
}
.ts-header-center-section::-webkit-scrollbar {
    display: none;
}

.ts-header-center-section-context {
    width: max-content;
    display: flex;
}

.ts-header-tab {
    position: relative;
    border-left: 1px solid #575757;
    height: 100%;
    background-color: transparent;
    display: flex;
    padding: 0 15px;
    max-width: 150px;
    min-width: 70px;
    cursor: pointer;
    flex-shrink: 0;
}

iframe {
    border: none;
    background: var(--bgColor);
}

.sshFrame {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%
}

.ts-header-tab-context {
    font-size: 13px;
    height: 100%;
    color: #cbcbcb;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#addTab {
    width: 15px;
    height: 15px;
}

.ts-tab-close {
    position: absolute;
    right: 5px;
    width: 60px;
    height: 100%;
    opacity: 0;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), var(--headerColor), var(--headerColor), var(--headerColor), var(--headerColor));
}

.ts-header-tab[focus] > .ts-tab-close {
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), var(--bgColor), var(--bgColor), var(--bgColor), var(--bgColor));
}

.ts-tab-close > img {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 5px;
    padding: 3px;
    width: 20px;
    height: 20px;
    margin: auto;
    border-radius: 3px;
}

.ts-header-tab[focus] {
    border-left: 1px solid transparent;
    background-color: var(--bgColor) !important;
}

.ts-header-tab:hover > .ts-tab-close {
    opacity: 1;
}

.ts-header-tab[focus] + .ts-header-tab {
    border-left: 1px solid transparent;
}

.ts-header-controller {
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.ts-header-controller > img {
    padding: 8px;
    border-radius: 3px;
    cursor: pointer;
}

.ts-header-controller > img:hover {
    background-color: rgba(31, 30, 30, 0.72);
}

.menu {
    position: absolute;
    left: 10px;
    width: 100px;
    border-radius: 5px;
    background-color: var(--headerColor);
    top: calc(var(--headerHeight) + 10px);
    opacity: 0;
    transition: all .3s;
    transform: scale(0);
    transform-origin: 0 0;
    z-index: 999999;
    transition-delay: .2s;
    padding: 6px 4px;
}

.menu-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.menu-ul > li {
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
}

.menu-ul > li:hover {
    background: #2a2a2a;
}

.ts-header-left-section:hover > .menu {
    transform: scale(1);
    opacity: 1;
}

.ts-tags-group {
    margin-left: auto;
    display: flex;
    gap: 0 10px;
}

.ts-tags {
    font-size: 12px;
    background: #4f4d4d;
    padding: 5px 8px;
    border-radius: 5px;
    color: #d0d0d0;
}

.home-center {
    align-self: center;
    width: 1px;
    height: 86%;
    background: #2a2a2a;
}

.rightAPP {
    display: none;
    animation: show .3s forwards;
}

@keyframes show {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.home-left-ul {
    padding: 8px 20px;
    min-width: 300px;
    box-sizing: border-box;
    list-style: none;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.home-left-ul > li {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.home-left-ul > li[focus] {
    background: #2c2c2c;
}

.home-left-ul > li:hover {
    background: #2c2c2c;
}

.home-left {
    width: 300px;;
}

.homeCard {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.homeCard-context {
    width: max-content;
    height: 250px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.home-right {
    width: 300px;
    padding: 0 20px;
}
.ts-head-user-center{
    flex: 1;
    display: flex;
    padding: 0 20px;
    align-items: center;
    justify-content: flex-end;
}
.ts-head-user-center>img{
    width: 30px;
    height: 30px;
    border-radius: 100%;
    cursor: pointer;
}