: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 {
    position: relative;
    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 {
    position: relative;
    font-size: 13px;
    height: 100%;
    color: #cbcbcb;
    display: flex;
    text-overflow: ellipsis;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

#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;
}

.loginMenu {
    position: absolute;
    right: 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: 100% 0;
    z-index: 999999;
    transition-delay: .2s;
    padding: 6px 4px;
}

.loginMenu-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.loginMenu-ul > li {
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
}

.loginMenu-ul > li:hover {
    background: #2a2a2a;
}

.ts-head-user-center:hover > .loginMenu {
    transform: scale(1);
    opacity: 1;
}

.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 {
    position: relative;
    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;
}

.fixedRight {
    position: fixed;
    right: 100px;
    width: 50px;
    pointer-events: none;
    height: var(--headerHeight);
    background-image: linear-gradient(to right, transparent, #383838);
}


.add-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.add-head-title {
    font-size: 15px;
    font-weight: bold;
}

.addService {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    background: rgba(0, 0, 0, 0.82);
    inset: 0;
    justify-content: center;
    align-items: center;
    display: none;
    opacity: 0;
}

.addServiceBox {
    position: relative;
    padding: 15px 5px;
    margin: auto;
    width: 380px;
    opacity: 0;
    transition: all 300ms;
    transform: translateY(40px);
    border-radius: 10px;
    border: 1px solid #383838;
    background-color: #1f1f1f;
}


.formBody {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}


.formBody-item {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.f-title {
    font-size: 12px;
    color: #bababa;
}

.f-input {
    text-indent: 10px;
    margin-top: 10px;
    height: 30px;
    background: transparent;
    border-radius: 5px;
    color: hsla(0, 0%, 100%, .9);
    border: 1px solid #4b4b4b;
    outline: none;
    font-size: 12px;
}

.f-input:focus {
    border: 1px solid #007dbe;
}

.swipe {
    margin-top: 10px;
    background: #2c2c2c;
    border-radius: 5px;
    height: 30px;
    display: flex;
}

.swipe > button {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.swipe > button[focus] {
    background: #383838;
}

.formFooter {
    padding: 0 20px;
    margin-top: 10px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.formFooter > button {
    padding: 8px 15px;
    border: none;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

}

.formFooter > button:hover {
    opacity: 0.8;
}

.getCode {
    margin-top: 10px;
    height: 32px;
    border-radius: 5px;
    color: hsla(0, 0%, 100%, .9);
    background: #3a8ee6;
    outline: none;
    border: none;
    padding: 0 20px;
    font-size: 12px;
    cursor: pointer;
}

.login {
    flex-shrink: 0;
    height: 32px;
    border-radius: 5px;
    color: hsla(0, 0%, 100%, .9);
    background: #3a8ee6;
    outline: none;
    border: none;
    padding: 0 20px;
    font-size: 12px;
    cursor: pointer;
}

.getCodeWait {
    display: none;
    margin-top: 10px;
    height: 32px;
    border-radius: 5px;
    color: hsla(0, 0%, 0%, 0.9);
    background: #bbbbbb;
    outline: none;
    border: none;
    padding: 0 20px;
    font-size: 12px;
    cursor: pointer;
}

.loadIngIco {
    display: none;
    width: 15px;
    height: 15px;
    animation: loading 1s infinite linear;
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}