* {

    /* 尺寸 */
    --content-padding: 10px;
    --nav-height: 64px;

    /*--mobile-tab-height: 50px;*/
    --mobile-tab-height: 0px;

    --float-btn-size: 50px
}


@media (max-width: 768px) {
    * {
        --nav-height: 56px;
    }
}


* {
    /* 颜色  */

    --text-color: #000;
    --text-color-9: rgba(0, 0, 0, 0.9);
    --text-color-8: rgba(0, 0, 0, 0.8);
    --text-color-7: rgba(0, 0, 0, 0.7);
    --text-color-6: rgba(0, 0, 0, 0.6);
    --text-color-5: rgba(0, 0, 0, 0.5);
    --text-color-4: rgba(0, 0, 0, 0.4);
    --text-color-3: rgba(0, 0, 0, 0.3);
    --text-color-2: rgba(0, 0, 0, 0.2);
    --text-color-1: rgba(0, 0, 0, 0.1);
    --text-color-0-8: rgba(0, 0, 0, 0.08);
    --text-color-0-5: rgba(0, 0, 0, 0.05);
    --text-color-0-3: rgba(0, 0, 0, 0.03);

    --theme-color: #ACFF29;
    --theme-color-0-2: rgba(172, 255, 41, 0.2);
    --theme-color-0-1: rgba(172, 255, 41, 0.1);
    --primary-btn-bg: var(--theme-color);
    --primary-btn-text-color: #010101;

    --sub-btn-bg: #f2f2f2;
    --sub-btn-text-color: #000;

    --bg-color: #F8F9FA;

    /*--input-focus-border-color: #000;*/
    --input-focus-border-color: #000;
    --danger-color: #e76262;

    --coin-color: orange;
}

a {
    cursor: pointer;
}

.primary-btn {
    background: var(--primary-btn-bg);
    color: var(--primary-btn-text-color);
    font-weight: bold;
}

.sub-btn {
    background: var(--sub-btn-bg);
    font-weight: bold;
}

.primary-btn:hover, .sub-btn:hover {
    opacity: 0.8;
}


.clear-float:after {
    content: "";
    height: 0;
    clear: both;
    overflow: hidden;
    display: block;
    visibility: hidden;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);

    font-family: Arial, sans-serif;
    transition: background-color 0.1s, color 0.1s; /* 设置渐变效果，1秒的时间 */


    scrollbar-width: thin; /* 适配 Firefox */
}



/* 支持所有现代浏览器 */
* {
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

::-webkit-scrollbar-thumb:active {
    background: #888;
}


.ellipsis {
    white-space: nowrap; /* 禁止换行 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 超出部分显示省略号 */
}


.ellipsis-2 {
    display: -webkit-box; /* 使用 flexbox 和 WebKit 盒子模型 */
    -webkit-line-clamp: 2; /* 限制为两行 */
    -webkit-box-orient: vertical; /* 设置为垂直排列 */
    overflow: hidden; /* 隐藏超出的部分 */
    text-overflow: ellipsis; /* 超出的文本显示省略号 */
}


.ellipsis-3 {
    display: -webkit-box; /* 使用 flexbox 和 WebKit 盒子模型 */
    -webkit-line-clamp: 3; /* 限制为两行 */
    -webkit-box-orient: vertical; /* 设置为垂直排列 */
    overflow: hidden; /* 隐藏超出的部分 */
    text-overflow: ellipsis; /* 超出的文本显示省略号 */
}







/* 定义加载动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 应用动画到一个div元素 */
.loader {
    --size: 40px;
    --border-size: 5px;
    border: var(--border-size) solid var(--theme-color);
    border-top: var(--border-size) solid transparent;
    border-radius: 50%;
    width: var(--size);
    height: var(--size);
    animation: spin 1s linear infinite;
}


.loader-2 {
    --size: 40px;
    --border-size: 5px;
    border: var(--border-size) solid var(--text-color);
    border-top: var(--border-size) solid transparent;
    border-radius: 50%;
    width: var(--size);
    height: var(--size);
    animation: spin 1s linear infinite;
}




.loading-modal-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}


.loading-modal {
    --size: 100px;
    height: var(--size);
    width: var(--size);
    border-radius: 10px;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-modal-text {
    margin-bottom: 15px;
    opacity: 0.6;
}

.loading-modal .loader-2 {
    --size: 35px;
    --border-size: 5px;
}








#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: white;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success { background-color: rgb(61, 181, 110); }
.toast.warning { background-color: #FFBD59; }
.toast.error { background-color: var(--danger-color); }