/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */
:root {
    --sidebar-width: 260px;
    --color1: #cb2b1b;
    --color2: #1d1817;
    /* 定义滚动条样式颜色变量 */
    --scrollbar-track: #f1f1f1;
    /* --scrollbar-track: transparent; */
    --scrollbar-thumb: #9d9d9d;
    /* --scrollbar-thumb: #cb2b1b; */
    --scrollbar-thumb-hover: #cb2b1b;
}

body {

    margin: 0px;
    overflow: hidden;
    font-family: 'Inter', Arial, sans-serif;
}

a {
    text-decoration: none;
}

.sidebar {
    position: absolute;
    width: var(--sidebar-width);
    height: 100%;
    overflow: hidden;
}

.sidebar-cont {
    overflow-y: auto;
    /* height: 100%; */
    height: calc(100% - 50px);
    background-color: #f8f8f8;
}

/* 隐藏滚动条的样式 */
.sidebar-cont2::-webkit-scrollbar {
    display: none;
    /* 对于WebKit浏览器（如Chrome、Safari） */
}

/* 非WebKit浏览器的兼容性处理 */
.sidebar-cont2 {
    -ms-overflow-style: none;
    /* 对于IE和Edge */
    scrollbar-width: none;
    /* 适用于Firefox */
}

.sidebar-cont-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    display: block;
    height: 50px;
    line-height: 50px;
    background-color: #B30909;
    color: #fff;
}

.sidebar-cont h5 {
    font-weight: 400;
    margin: 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--color2);
    /* background-color: var(--color2); */
    text-align: center;
    user-select: none;
}

.grid {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 10px;
    touch-action: pan-y;
}

.grid-item {
    display: flex;
    width: 100px;
    gap: 5px;
    padding: 0 10px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-size: 12px;
    line-height: 14px;
    text-align: center;
    /* background-color: #fff; */
    -webkit-user-select: none;
    user-select: none;
    /* cursor: grab; */
    cursor: pointer;
}

.disabled {
    /* 降低透明度 */
    opacity: 0.6;
    /* 变灰色 */
    filter: grayscale(100%);
    /* 禁止鼠标事件 */
    /* pointer-events: none; */
    /* 显示禁止光标 */
    cursor: not-allowed;
}

.grid-item div {
    width: 100px;
    height: 80px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.grid-item div img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.grid-item span {
    pointer-events: none;
}

.grid label {
    display: flex;
    padding: 10px 0;
    font-size: 12px;
    line-height: 14px;
    align-items: center;
    margin-right: 5px;
    gap: 4px;
    cursor: pointer;
}

input[type="radio" i] {
    margin: 0;
}

.container {
    position: absolute;
    right: 0px;
    width: calc(100% - var(--sidebar-width) - 20px);
    height: 100%;
    border-radius: 16px;
    /* cursor: grab; */
    background: radial-gradient(#d0e1fd, #656a7d);
}

.border {
    border-radius: 16px;
    border: 1px solid var(--color1);
    box-sizing: border-box;
}

.header {
    height: auto;
    width: 100%;
    padding: 15px 0;
    /* background-color: aqua; */
    display: flex;
    justify-content: flex-end;
}

.header button {
    margin: 0;
    margin-right: 10px;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border: 2px solid var(--color2);
    border-radius: 20px;
    font-size: 14px;
    /* text-transform: uppercase; */
    transition: background-color 0.3s ease;
    -webkit-user-select: none;
    background-color: var(--color2);
    cursor: pointer;
    user-select: none;
    z-index: 9;
}

.header button:hover {
    color: var(--color2);
    background-color: #ffffff;
    /* background-color: var(--color1); */
    border: 2px solid var(--color2);
}

.tips-model {
    width: 600px;
    /* height: 70px; */
    margin: 200px auto;
    padding: 16px;
    font-size: 14px;
    font-weight: 400;
    user-select: none;
    background: #ffffff80;
    border-radius: 16px;
    text-align: center;
}

.tips {
    position: absolute;
    bottom: 0;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    line-height: 140%;
    text-align: left;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.tips span {
    font-size: 12px;
    font-weight: 400;
    color: rgba(23, 23, 23, 0.502);
}

.model-btn-cont {
    /* display: flex; */
    position: absolute;
    /* margin-left: -48px; */
    margin-left: -38px;
    margin-top: -20px;
    visibility: hidden;
    user-select: none;
    pointer-events: none;
}

.model-btn {
    width: 14px;
    height: 14px;
    padding: 8px;
    border-radius: 15px;
    background-color: var(--color2);
    transition: background-image 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-origin: content-box;
    /* background-clip: content-box; */
    cursor: pointer;
    display: inline-block;
    pointer-events: all;
}

.model-btn:hover {
    background-color: var(--color1);
}

#model-info {
    background-image: url('../assets/images/info.svg');
}

#model-delete {
    margin-left: 10px;
    background-image: url('../assets/images/delete.svg');
}

#model-info:hover {
    /* background-image: url('../assets/images/info-fill.svg'); */
}

#model-delete:hover {
    /* background-image: url('../assets/images/delete-fill.svg'); */
}

.popup-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    background-color: rgba(0, 0, 0, 0.35);
    display: none;
}

.popup {
    /* width: 800px; */
    /* width: 782px; */
    max-width: 782px;
    min-width: 675px;
    margin-left: 280px;
    /* height: 400px; */
    background-color: #fff;
    /* border-radius: 8px; */
    border-radius: 50px;
}

.popup-close {
    position: relative;
    float: right;
    width: 14px;
    height: 14px;
    padding: 17px;
    margin: 30px;
    border: 1px solid #1717171A;
    border-radius: 50%;
    /* background-color: red; */
    background-image: url(../assets/images/close.svg);
    background-size: 100%;
    background-origin: content-box;
    background-clip: content-box;
    cursor: pointer;
}

.popup-close:hover {
    border: 1px solid var(--color2);
}

.popup-cont {
    padding: 56px;
    /* display: flex; */
    flex-direction: column;
}

.popup-title {
    padding: 0;
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 30px;
}

.popup-title span {
    font-size: 16px;
    font-weight: 400;
    color: #17171780;
}

.popup-card-list {
    position: relative;
    width: 100%;
    /* height: 200px; */
    margin: 30px 0;
    /* background-color: rgb(40, 255, 216); */
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.popup-card {
    position: relative;
    width: 160px;
    height: 120px;
    border-radius: 16px;
    border: 1px solid #171717;
    /* background-color: rgba(255, 0, 0, 0.209); */
    background-color: #f6f6f6;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
}

.popup-card:hover {
    border: 1px solid var(--color1);
}

.popup-card.active {
    border: 1px solid var(--color1);
}

.popup-card img {
    width: 100%;
    /* height: 100%; */
    height: calc(100% 192px - 22px);
    object-fit: contain;
    /* background-color: #333333; */
    pointer-events: none;
}

.popup-card span {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    font-size: 14px;
    line-height: 30px;
    text-align: center;
    /* color: #ffffff; */
    /* background: var(--color2); */
    background-color: rgb(249, 249, 249);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.popup-card:hover span {
    color: #ffffff;
    background-color: var(--color1);
    transition: background-color 0.3s ease;
}

.popup-card.active span {
    color: #ffffff;
    background-color: var(--color1);
    transition: background-color 0.3s ease;
}

.popup-button {
    width: 100%;
    height: 50px;
    /* padding: 12px 40px; */
    color: #ffffff;
    text-align: center;
    /* text-transform: uppercase; */
    border-radius: 25px;
    border: none;
    font-size: 16px;
    background-color: var(--color2);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.popup-button:hover {
    /* background-color: var(--color1); */
    border: 2px solid var(--color2);
    background-color: #fff;
    color: var(--color2);
}

.popup-button:disabled {
    /* 禁用状态下的样式 */
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border: 1px solid #ddd;
}

.popup-form {
    position: relative;
    width: 100%;
    min-height: 100px;
    margin: 30px 0;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
}

.popup-form-input {
    /* min-width: 240px; */
    width: 100%;
    padding: 20px;
    border: none;
    background: #FAFAFA;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s;
}

.popup-form-input:focus {
    border-color: #4285f4;
    box-shadow: 0 0 5px rgba(66, 133, 244, 0.5);
}

.error-message {
    color: #ff4444;
    font-size: 14px;
    text-align: center;
    margin-top: 4px;
    flex-basis: 100%;
    display: none;
}

.popup-form-cont {
    text-align: center;
    font-weight: 700;
    letter-spacing: 15px;
    /* flex-basis: 60%; */
    width: 100%;
    padding: 20px;
    border: none;
    background: #FAFAFA;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s;
    display: none;
}




#container:active {
    /* cursor: grabbing; */
}

#preloader-background {
    position: absolute;
    z-index: 1;
    height: 100%;
    width: 100%;
    background: #ffffff;
    background-size: cover;
}

.preloader-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
}

.preloader-text {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #1d1817;
    /*text-shadow: 0px 0px 3px rgb(255 255 255 / 50%);*/
}

.preloader-img {
    position: relative;
    /* top: 35%; */
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.preloader-line-container {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    height: 8px;
    border-radius: 6px;
    overflow: hidden;
    background: #1d1817;
}

#preloader-line {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 8px;
    width: 0;
    border-radius: 6px;
    background: #cb2b1b;
}

.size-container {
    /* position: absolute;
    width: 100%;
    background-color: #4285f4; */
    pointer-events: none;
}

.size-point {
    position: absolute;
    margin-left: -4px;
    margin-top: -4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    border: 2px solid #000000;
    background-color: #ffffff;
}

.size-cont {
    position: absolute;
    margin-left: -100px;
    margin-top: -40px;
    width: 200px;
    height: auto;
    padding: 5px 0;
    /* background-color: #fff; */
    color: #000000;
    font-size: 16px;
    text-align: center;
}


.loading-container {
    display: none;
}

.loading-text {
    font-size: 20px;
    color: #333;
    margin-top: 20px;
    font-weight: 500;
}

.loading-dots {
    display: inline-block;
    width: 20px;
    text-align: left;
}

.pdf-icon {
    width: 40px;
    height: 50px;
    background-color: #e74c3c;
    position: relative;
    margin: 0 auto 20px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pdf-icon::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 0;
    border-color: transparent #fff transparent transparent;
}



.v3d-annotation {
    position: absolute;
    top: 0px;
    left: 0px;
    width: auto;
    min-width: 14px;
    /* height: 22px; */
    padding: 0px;
    border: 0px solid transparent;
    border-radius: 4px;
    /* font-size: 14px; */
    font-size: 10px;
    font-family: sans-serif;
    /* line-height: 22px; */
    text-align: center;
    user-select: none;
    background: rgba(4, 112, 114, 0.75);
    cursor: pointer;
    color: #ffffff;
}

.v3d-annotation-transparent {
    /* opacity: 0.2; */
    opacity: 1;
}

.v3d-annotation-dialog {
    top: 42px;
    left: 0;
    width: 330px;
    height: 182px;
    padding: 0;
    border-radius: 6px;
    background-color: transparent;
    background-image: url('../assets/images/annotation-des-bg.png');
    background-size: cover;
}





/* 适用于所有支持自定义滚动条的浏览器 */
/* WebKit浏览器 */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
    border: 3px solid var(--scrollbar-track);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Firefox */
@supports (scrollbar-color: red blue) {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    }
}


.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}

/*WebGL报错提示*/
.v3d-webgl-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0;
    margin-left: 0;
    width: 100%;
    height: 100%;
    color: #333333;
    background: rgba(0, 0, 0, .75);
    text-align: center;
    border-style: solid;
    border-width: 0;
    border-radius: 0;
    border-color: transparent;
    font-size: 14px;
    font-weight: 600;
    font-family: sans-serif;
    line-height: 30px;
    padding: 10px 60px;
    z-index: 999;
    display: block;
}

.v3d-webgl-error-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: auto;
    background: white;
    padding: 30px 0px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.v3d-webgl-error-link {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    color: #333333;
    font-size: 12px;
    margin-top: 30px;
    width: 120px;
}

.v3d-webgl-error-link button {
    background: #333333;
    padding: 5px 25px;
    color: white;
    cursor: pointer;
    border-radius: 2px;
    border-width: 1px;
    position: relative;
    width: 120px;
    font-size: 12px;
    user-select: none;
}

.v3d-webgl-error-link button:hover {
    background: #000000;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, .5)
}

/* removes tap blinking on ios devices */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Animation keys */
@keyframes hide {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

@keyframes show {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@keyframes lefthide {
    0% {
        opacity: 1;
        margin-left: 0;
    }

    100% {
        opacity: 0;
        margin-left: -160px;
    }
}

@keyframes leftshow {
    0% {
        opacity: 0;
        margin-left: -160px;
    }

    100% {
        opacity: 1;
        margin-left: 0;
    }
}

@keyframes downhide {
    0% {
        opacity: 1;
        margin-bottom: 0;
    }

    100% {
        opacity: 0;
        margin-bottom: -160px;
    }
}

@keyframes upshow {
    0% {
        opacity: 0;
        margin-bottom: -160px;
    }

    100% {
        opacity: 1;
        margin-bottom: 0;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes scale {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(0.6);
    }
}

@media only screen and (max-width: 540px) {
    .v3d-webgl-error-container {
        width: 60%;
    }
}

@media screen and (max-width: 800px) {
    .preloader-container {
        width: 160px;
    }
}