* {
    -webkit-touch-callout: none;
    /*系统默认菜单被禁用*/
    -webkit-user-select: none;
    /*webkit浏览器*/
    -khtml-user-select: none;
    /*早期浏览器*/
    -moz-user-select: none;
    /*火狐*/
    -ms-user-select: none;
    /*IE10*/
    user-select: none;
}

:root {
    --config-width: 428px;
    --header-height: 56px;
}

input {
    -webkit-user-select: auto;
    /*webkit浏览器*/
    user-select: auto;
}

body {
    margin: 0;
    padding: 0;
    background-color: #F7F7F7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    /* ‌-apple-system‌: 这是为macOS设计的系统字体，它在macOS上提供了最佳的字体渲染效果。

    ‌BlinkMacSystemFont‌: 这是Chrome浏览器在macOS上的默认字体，确保在Chrome浏览器中显示一致。

    ‌"Segoe UI"‌: 这是Windows系统的默认字体之一，特别是在较新的Windows版本（如Windows 7、Windows 8、Windows 10）上。

    ‌Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans"‌: 这些是Linux系统和一些其他操作系统上常见的字体。虽然它们不是所有Linux发行版的默认字体，但在许多流行的Linux桌面环境中都可以找到。

    ‌"Helvetica Neue"‌: 这是一个广泛使用的字体，特别是在早期的Windows和macOS版本上。它作为备用字体，可以确保在找不到其他系统字体时的兼容性。

    ‌sans-serif‌: 这是一个通用的字体族，作为最后的备选字体。当上述所有指定的字体都无法找到时，浏览器将使用系统默认的无衬线字体 */
}

#v3d-container {
    background-color: #eeeeee;
}

#gizmo {
    position: absolute;
    top: 10px;
    right: 10px;
    /* background-color: #efefef; */
    height: auto;
    width: auto;
    font-size: 0;
    display: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 15px;
}

#gizmo button {
    position: relative;
    width: 30px;
    height: 30px;
    background-color: rgb(255 255 255);
    /* margin: 5px; */
    /* font-size: 16px; */
    border-radius: 5px;
    background-repeat: no-repeat;
    background-size: cover;
    border: none;
    cursor: pointer;
    /* border: 1px solid #f1f1f1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) */
}

#gizmo button:active {
    background-color: #f8f9ff
}

#gizmo button:hover {
    background-color: #f8f9ff;
}

#x1 {
    display: inline-block;
    background-image: url(../assets/icon/x-.png);
}

#x2 {
    display: inline-block;
    margin-left: 20px;
    background-image: url(../assets/icon/x+.png);
}

#z1 {
    display: block;
    margin-left: 25px;
    margin-bottom: 10px;
    background-image: url(../assets/icon/z-.png);
}

#z2 {
    display: block;
    margin-left: 25px;
    margin-top: 10px;
    background-image: url(../assets/icon/z+.png);
}

#btn-lucky-mb {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 8px 13px;
    border-radius: 20px;
    color: #fff;
    background: rgb(76, 175, 80);
    cursor: pointer;
    display: none;
}

#config-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    /* font-size: 14px; */
    /* background-color: white; */
    z-index: 9999;
    /* display: none; */
    pointer-events: none;
}

/* .head-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: var(--config-width);
    width: 100%;
    background-color: red;
} */

#header {
    position: absolute;
    display: flex;
    margin: 20px;
    width: 428px;
    height: var(--header-height);
    background-color: #4CAF50;
    border-radius: 16px;
    align-items: center;
    pointer-events: all;
    display: none;
}

.header-title {
    flex-grow: 1;
    margin-left: 20px;
}

#change-mat {
    margin-right: 10px;
    margin-left: 10px;
    height: 32px;
    line-height: 32px;
    padding: 0px 15px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    cursor: pointer;
}

#reverse-mat-pc {
    height: 32px;
    line-height: 32px;
    padding: 0px 15px;
    color: #fff;
    background-color: #000;
    border-radius: 16px;
    cursor: pointer;
}

#tabs {
    pointer-events: all;
}

.pickr-container,
.pickr-container2,
.pickr-container2 {
    position: absolute;
    left: 100px;
    top: 50px;
}

.color-button {
    position: relative;
    /* width: 22px; */
    /* height: 22px; */
    width: 30px;
    height: 30px;
    margin-left: 4px;
    border: none;
    border-radius: 50%;
    border: 1px solid #fff;
    /* margin: 0 5px; */
    cursor: pointer;
    vertical-align: middle;
}

.pickr {
    display: flex;
    /* padding: 10px calc(1rem - 5px); */
    flex-wrap: wrap;
    /* 允许换行 */
    vertical-align: middle;
}

.pickr .pcr-button {
    margin: 5px;
    width: 22px;
    height: 22px;
    display: none;
}

.pickr .pcr-button ::before,
.pickr .pcr-button ::after {
    border-radius: 1rem;
}

.pcr-app[data-theme='monolith'] {
    width: auto;
    box-shadow: none;
}

.h5 {
    font-size: 16px;
    font-weight: normal;
    margin: 0;
    /* padding: 5px 0 5px 10px; */
    padding: 16px 0;
    /* background-color: #efefef; */
    /* color: hsl(230, 7%, 75%); */
    /* background-color: rgba(187, 188, 196, 0.1); */
    border-bottom: 1px solid #e8e8e8;
    display: none;
    cursor: pointer;
}

.h5 span {
    position: absolute;
    right: 20px;
    width: 24px;
    height: 24px;
    pointer-events: none;
    background-image: url(../assets/icon/expand.svg);
    background-size: cover;
    /* transform: rotate(45deg); */
    transition: transform 0.5s ease;
}

.tabs {
    width: 100%;
    margin: 0 auto;
    background-color: #FFF;
    /* border: 1px solid #C0DCC0; */
    border-radius: 15px 15px 0 0;
    box-sizing: border-box;
    max-width: 600px;
    user-select: none;
    display: none;
}

.tabs2 {
    position: absolute;
    width: 100%;
    top: 80px;
    /* height: 100%; */
    max-height: calc(100% - 60px - var(--header-height));
    /* margin: 0 auto; */
    margin: 20px;
    padding: 12px 24px;
    border-radius: 16px;
    background-color: #FFF;
    /* background-color: rgb(41, 41, 46); */
    /* border: 1px solid #C0DCC0; */
    box-sizing: border-box;
    /* max-width: 380px; */
    max-width: var(--config-width);
    box-shadow: 0 -2px 10px #00000026;
    /* overflow: scroll; */
    overflow-y: auto;
    scrollbar-color: transparent transparent;
    /* 滚动条颜色透明（Firefox） */
    user-select: none;
    display: none;
}

.nav {
    height: 48px;
    text-align: center;
    line-height: 48px;
    overflow: hidden;
    /* background-color: rgb(247, 247, 247); */
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid #E8E8E8;
    /* 伸缩盒模型 */
    display: flex;
}

.nav a {
    display: block;
    /* width: 55px; */
    width: 50px;
    /* border-right: 1px solid #FFF; */
    /* color: rgb(50, 45, 73); */
    color: #7f7f7f;
    text-decoration: none;
}

.nav a:last-child {
    border-right: none;
}

.nav a.active {
    /* background-color: #9BAF9B; */
    /* color: brown; */
    color: #000;
    font-weight: bold;
}

/* .tabs section{
  display: flex;
} */

.cont {
    overflow: hidden;
    padding: 10px 0 30px 10px;
    display: none;
}

.cont2 {
    overflow: hidden;
    margin: 10px 0;
    display: none;
}

.cont ul {
    line-height: 30px;
    /* display: flex; */

    padding-inline-start: 0;
    list-style-type: none;
    margin-block-start: 0;
    margin-block-end: 0;
    border-bottom: 1px solid #e8e8e8;
    overflow: hidden;
    white-space: nowrap;
    overflow-x: auto;
    padding: 16px 0;
    display: none;
}

.li-mat {
    /* padding: 5px 10px; */
    float: left;
    margin: 8px;
    border: 1px solid #e8e8e8;
    border-radius: 25px;
}

.cont ul li {
    padding: 5px 10px;
    /* color: rgb(184, 184, 184); */
    display: inline;
    cursor: pointer;
    /* background-color: aquamarine; */
    overflow: hidden;
}

.text-li {
    /* color: black !important; */
    /* color: rgba(187, 188, 196, 0.7) !important; */
    display: block !important;
    cursor: default !important;
    vertical-align: middle;
}

.text-li input,
.text-li span,
.text-li div,
.text-li label {
    vertical-align: middle;
}

.mobile {
    width: auto;
}

input[type="radio"],
input[type="checkbox"] {
    margin: auto 5px;
    vertical-align: middle;
}

.cont ul li.active {
    /* background-color: #9BAF9B; */
    /* color: rgb(249, 145, 0); */
    border: 1px solid #000;
    border-radius: 25px;
}

.input-text {
    width: 40px;
    border-radius: 10px;
    height: 20px;
    border: none;
    background-color: #fff;
    color: #000;
    padding: 5px 12px;
    text-align: center;
    box-shadow: inset 0 1px 4px #0003;
}

.texture-text {
    width: 250px;
    border-radius: 15px;
    height: 20px;
    border: none;
    background-color: #fff;
    color: #000;
    padding: 5px 12px;
    box-shadow: inset 0 1px 4px #0003;
}

.texture-upload {
    width: 80px;
    border-radius: 15px;
    /* height: 20px; */
    border: none;
    background-color: #fff;
    color: #000;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 12px;
    box-shadow: inset 0 1px 4px #0003;
    cursor: pointer;
}

input[type="range"] {
    width: 200px;
}


#colorBtn {
    display: block;
    margin: 10px 20px 0;
}

#cont-4 .pickr {
    margin: 10px 20px 0;
}

/* 基础样式 */
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    width: 200px;
    -webkit-appearance: none;
    /* 移除默认样式 (Safari/Chrome) */
    -moz-appearance: none;
    /* 移除默认样式 (Firefox) */
    appearance: none;
    /* 移除默认样式 (标准语法) */
}

/* 添加自定义下拉箭头 */
select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* 悬停和焦点状态 */
select:hover {
    border-color: #888;
}

select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* 禁用状态 */
select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.btn-dev {
    display: none;
    position: absolute;
    bottom: 20px;
    padding: 5px 10px;
}

.container {
    position: absolute;
    top: 20px;
    left: 20px;
    /* background: rgba(255, 255, 255, 0.9); */
    border-radius: 16px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); */
    padding: 15px;
    width: 100%;
    max-width: 200px;
    text-align: center;
    display: none;
}

.eye-btn {
    background: transparent;
    /* color: white; */
    color: #434343;
    border: none;
    /* border-radius: 50px; */
    padding: 8px 18px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: 0 auto 20px; */
    margin: 0 0 10px 0;
    /* transition: all 0.3s ease; */
    /* box-shadow: 0 4px 15px rgba(78, 84, 200, 0.4); */
}

.eye-btn:hover {
    /* background: #282727; */
    color: #282727;
    transform: translateY(-2px);
}

.eye-btn:active {
    transform: translateY(1px);
}

.eye-btn i {
    margin-right: 10px;
    font-size: 20px;
}

.list-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.4s ease;
}

.list-container.show {
    max-height: 300px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: #f8f9ff;
}

.list-item i {
    margin-right: 15px;
    font-size: 20px;
    color: #434343;
    ;
    transition: all 0.3s ease;
}

.list-item .text {
    flex: 1;
    text-align: left;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.list-item.hidden i {
    color: #aaa;
}

.list-item.hidden .text {
    color: #aaa;
    text-decoration: line-through;
}

.move-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* 默认状态样式 */
.move-btn.default {
    position: absolute;
    top: 20px;
    right: 132px;
    background: #ffffff;
    color: #434343;
}

/* 悬停状态样式 */
.move-btn.default:hover {
    background: #212121;
    color: white;
    /* transform: translateY(-3px); */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 激活状态样式 */
.move-btn.default.active {
    background: #212121;
    transform: translateY(2px);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 波纹效果 */
.move-btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.move-btn.active::after {
    transform: scale(2);
    opacity: 0;
}



@media (max-width: 575.98px) {
    #header {
        width: 100%;
        height: 46px;
        margin: 0;
        border-radius: 0 0 16px 16px;
        display: none;
    }

    #gizmo {
        top: 65px;
    }

    .cont ul {
        border: none;
        display: block;
    }

    .mobile {
        width: calc(50% - 30px);
        float: left;
        /* display: grid;
        grid-template-columns: auto 50px 1fr; */
        /* 三列：自适应 | 固定 | 剩余宽度 */
        /* align-items: center;
        gap: 8px; */
    }

    .input-text {
        width: 32px;
        border-radius: 5px;
        padding: 5px;
    }

    .container {
        padding: 10px;
    }

    .eye-btn {
        margin: 0 0 10px 0;
    }
}

/* 基础滑块样式重置 */
input[type="range"] {
    -webkit-appearance: none;
    width: calc(100% - 135px);
    background: transparent;
    margin: 10px 0;
}

/* PC端样式 */
@media (hover: hover) and (pointer: fine) {

    /* 轨道样式 */
    input[type="range"]::-webkit-slider-runnable-track {
        width: auto;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        cursor: pointer;
    }

    input[type="range"]::-moz-range-track {
        width: auto;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        cursor: pointer;
    }

    /* 滑块样式 */
    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        background: #2196F3;
        border-radius: 50%;
        margin-top: -6px;
        transition: transform 0.2s;
        cursor: grab;
    }

    input[type="range"]::-moz-range-thumb {
        width: 16px;
        height: 16px;
        background: #2196F3;
        border-radius: 50%;
        border: none;
        transition: transform 0.2s;
        cursor: grab;
    }

    /* Hover效果 */
    input[type="range"]::-webkit-slider-thumb:hover {
        transform: scale(1.2);
    }

    input[type="range"]::-moz-range-thumb:hover {
        transform: scale(1.2);
    }
}

/* 移动端样式 */
@media (hover: none) and (pointer: coarse) {
    input[type="range"] {
        width: 50%;
    }

    /* 放大轨道高度便于触摸操作 */
    input[type="range"]::-webkit-slider-runnable-track {
        height: 4px;
        background: #e0e0e0;
        border-radius: 4px;
    }

    input[type="range"]::-moz-range-track {
        height: 4px;
        background: #e0e0e0;
        border-radius: 4px;
    }

    /* 放大滑块尺寸 */
    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        background: #2196F3;
        border-radius: 50%;
        margin-top: -8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    input[type="range"]::-moz-range-thumb {
        width: 24px;
        height: 24px;
        background: #2196F3;
        border-radius: 50%;
        border: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

/* 通用激活状态 */
input[type="range"]:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.2);
}

input[type="range"]:active::-moz-range-thumb {
    cursor: grabbing;
    transform: scale(1.2);
}