﻿:root {
    --primary-color: #ffd100;
    --bg-color: #f5f6f7;
    --panel-bg: #131313;
    --text-primary: #333333;
    --text-secondary: #f5f5f5;
    --border-color: #e0e0e0;
    --hover-bg: #f9f9f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    flex-direction: column;
}
/* --- 顶部导航栏 --- */
.header {
    background-color: var(--panel-bg);
    /* border-bottom: 1px solid var(--border-color); */
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai_logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    color: #fff;
}

.ai_logo img {
    width: 40px;
    height: 30px;
}

.domain-selector {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    color: #ffffff;
}

.upload-btn {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-tools {
    display: flex;
    gap: 20px;
    align-items: center;
	margin-left:-135px;
}


.layui-input, .layui-select, .layui-textarea{
    height: 30px !important;
}
.layui-form-select dl dd.layui-this{
    background-color: var(--primary-color) !important;
}



.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    gap: 4px;
}

    .tool-item.active {
        color: var(--primary-color);
    }

    .tool-item i {
        font-size: 16px;
    }

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.vip-badge {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}
/* --- 主体内容区 --- */
.main-container {
    min-height: calc(100vh - 60px);
    display: flex;
    flex: 1;
    overflow: hidden;
}


/* --- 左侧面板 --- */

.left-panel{
    
}

/* 工具栏 */
.toolba-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.toolbar {
    height: 100%;
    background-color: var(--panel-bg);
    color: white;
    padding: 10px 5px;
    /* border-radius: 8px; */
    z-index: 10;
}

.tool-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.tool-btn{
    padding: 5px 10px;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}
.tool-bnitm{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.tool-icon {
    width: 20px;
    height: 20px;
}
.tool-bnitm span{
    font-size: 12px;
    color: #eeeeee;
}

.actives {
    background: #5c5c5c;
}
.tool-btn:hover .tool-txt{
    display: block;
}
.tool-txt{
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 10px 15px;
    display: none;
}
.tool-txt p{
    white-space: nowrap;
}
.slider {
    width: 120px;
    margin-left: 8px;
}
.actives .brush-child{
    display: block !important;
}
.actives .tool-txt{
    display: none !important;
}
.brush-child{
    position: absolute;
    left: 55px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    display: none;
}
.tool-silde {
    width: 180px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}


    .tool-silde .layui-slider-bar {
        background: #ff9900 !important;
    }

    .tool-silde .layui-slider-wrap-btn {
        border: 2px solid #ff9900 !important;
    }



/* --- 中间画布区 --- */
.canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    position: relative;
    background-color: #222222;
}

.canvas-box{
    width: 100%;
    padding-top: 30px;
}

.canva-up{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.canva-up .layui-upload-drag{
    width: 60%;
    background-color: #444444;
}
.upload-tit{
    font-size: 16px;
    color: #ffffff;
}
.upload-txt{
    font-size: 14px;
    color: #999999;
    margin-top: 10px;
}
.upload-txt span{
    color: #ffffff;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-right: 15px;
}

    .toolbar-group:last-child {
        border-right: none;
        padding-right: 0;
    }

.toolbar-icon {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.8;
}

    .toolbar-icon:hover {
        opacity: 1;
    }

.brush-size-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.brush-slider {
    width: 100px;
}

.main-canvas {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    transform: translateY(-10px);
}

    .main-canvas canvas {
        max-width: 100%;
        max-height: 100%;
        display: block;
    }

    .main-canvas img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.thumbnail-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}
/* 文本输入框容器 */
.caption-input-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 15px auto 10px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    justify-content: center;
}

#caption-input {
    flex: 1;
    min-height: 60px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
}

#caption-input:focus {
    border-color: #409EFF;
}

#save-caption {
    padding: 10px 20px;
    background-color: #409EFF;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
    height: fit-content;
}

#save-caption:hover {
    background-color: #66b1ff;
}

#save-caption:active {
    background-color: #3a8ee6;
}




.canvas-btm {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bottom-toolbar {
    width: 70%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.toolbar-btn {
    display: flex;
    gap: 10px;
}

.bottom-toolbar .layui-btn {
    background-color: #2a2a2a;
    border: none;
    font-size: 12px;
    color: #ffffff;
    border-radius: 5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
}

.navimga {
    display: block;
}

.navimgb {
    display: none;
}

.toolshw {
    background-color: #ffd000 !important;
    color: #131313 !important;
}

.toolshw .navimga {
    display: none;
}

.toolshw .navimgb {
    display: block;
}


.toolbar-add {
    color: #bbbbbb;
    cursor: pointer;
}

.prompt-area {
    width: 70%;
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 10px;
}

.area-top {
    display: flex;
    gap: 10px;
}

.area-tpimg {
    width: 60px;
    height: 80px;
    border-radius: 12px;
    background-color: #404040;
    border: 2px dashed #666666;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-weight: 600;
}


.prompt-area .area-top textarea {
    width: 80%;
    flex: 1;
    background-color: #2a2a2a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #fff;
    padding: 8px;
    min-height: 60px;
    resize: none;
}

.prompt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 12px;
    color: #999;
}

.prompt-left {
    padding: 8px 6px;
    background-color: #404040;
    border-radius: 50px;
    display: flex;
    align-items: center;
}

.prompt-leitm {
    padding: 0 8px;
    border-right: 1px solid #5c5c5c;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #bbbbbb;
    font-size: 14px;
}

.prompt-leitm:last-child {
    border-right: 0px solid #5c5c5c;
}

.prompt-leitm img {
    width: 16px;
    height: 16px;
}

.leitmwid {
    width: 80px;
}

.leitmwid .layui-input {
    height: 20px;
    border-width: 0px;
    background-color: transparent;
    color: #bbbbbb;
}


.prompt-footer button {
    border-radius: 50px;
    font-weight: 600;
}

.right-area {
    width: 280px;
    background-color: #1d1d1d;
    border-left: 1px solid #333;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preview-card {
    background-color: #2e2e2e;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
}

.preview-card img {
    width: 90%;
    height: auto;
    object-fit: cover;
}




.area-btm{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* 右侧预览图容器 */
.preview-thumb {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* 响应式适配：小屏幕时预览图移到下方 */
@media (max-width: 1200px) {
    .preview-thumb {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 10px auto;
        width: 120px;
        height: 120px;
    }
    
    .canvas-area {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.nav-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 240px;
    height: 135px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

    .thumbnail.active {
        border-color: var(--primary-color);
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.thumbnail-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 10px;
    text-align: center;
    padding: 2px 0;
}
/* --- 右侧面板 --- */
.right-panel {
    width: 280px;
    background-color: var(--panel-bg);
    /* border-left: 1px solid var(--border-color); */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-panel .panel-section .lable{
	margin-bottom:10px;
}	

.result-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

    .result-card img {
        width: 100%;
        display: block;
    }

.result-info {
    padding: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    background-color: #f9f9f9;
    text-align: center;
}
/* --- 下拉菜单 (模拟) --- */
.dropdown-menu {
    position: absolute;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 200px;
    padding: 8px 0;
}

.dropdown-item {
    padding: 10px 15px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .dropdown-item:hover {
        background-color: var(--hover-bg);
    }

.dropdown-item-title {
    font-weight: bold;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.new-tag {
    background-color: #fff3cd;
    color: #856404;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: normal;
}

.dropdown-item-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.check-icon {
    color: var(--primary-color);
    margin-left: auto;
}
/* 定位下拉菜单 */
#domain-dropdown {
    top: 30px;
    left: 0px;
    display: none;
}

#download-dropdown {
    top: 30px;
    right: 0px;
    display: none;
    min-width: 150px;
}

    #download-dropdown .dropdown-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

.canvas-centered {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 400px;
}

    .canvas-centered canvas {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

/* 弹框遮罩层 */
.modal-overlay {
    /*position: fixed;*/
    top: 0;
    left: 0;
    /*width: 100%;
        height: 100%;*/
    /*background-color: rgba(0, 0, 0, 0.5);*/
    /*display: none;*/ /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
/* 弹框主体 */
.modal {
    /*background-color: #1e1e1e;*/
    color: #cccccc;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    /* padding: 24px; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
}
/* 预览图区域 */
.preview-image-container {
    width: 100%;
    height: 200px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
}

    .preview-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
/* 按钮通用样式 */
.btn {
    width: 100%;
    padding: 12px 0;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #666;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn:hover {
        background-color: #333;
        border-color: #999999;
        color: #ffffff;
    }
/* 表格样式 */
.material-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .material-table th,
    .material-table td {
        text-align: left;
        padding: 12px 8px;
        border-bottom: 1px solid #999999;
        vertical-align: middle;
        line-height: 1.5;
        color: #999999;
    }

    .material-table th {
        color: #999999;
        font-weight: normal;
    }

    .material-table tr:last-child td {
        border-bottom: none;
    }
/* 物料列表容器滚动优化 */
#wuliao {
    max-height: 300px;
    overflow-y: auto;
    display: block;
}

    #wuliao::-webkit-scrollbar {
        width: 6px;
    }

    #wuliao::-webkit-scrollbar-track {
        background: #999999;
    }

    #wuliao::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 3px;
    }

        #wuliao::-webkit-scrollbar-thumb:hover {
            background: #777;
        }
/* material-table 容器滚动与表头固定 */
.material-table {
    display: block;
    table-layout: fixed;
    width: 100%;
    border: 1px solid #666666;
    border-radius: 10px;
    overflow: hidden;
}

    .material-table thead,
    .material-table tbody {
        display: block;
    }

    .material-table tbody {
        max-height: 250px;
        overflow-y: auto;
    }

    .material-table thead {
        display: block;
        position: sticky;
        top: 0;
        background-color: transparent;
        z-index: 10;
        border-bottom: 1px solid #999999;
    }
    /* material-table tbody 滚动条样式 */
    .material-table tbody::-webkit-scrollbar {
        width: 6px;
    }

    .material-table tbody::-webkit-scrollbar-track {
        background: #2d2d2d;
    }

    .material-table tbody::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 3px;
    }

        .material-table tbody::-webkit-scrollbar-thumb:hover {
            background: #777;
        }
/* 表格列宽控制 */
.col-id {
    width: 8%;
    text-align: center;
}

.col-image {
    width: 12%;
}

.col-name {
    width: 25%;
}

.col-gys {
    width: 30%;
}

.col-cz {
    width: 25%;
    text-align: center;
}


/* 修改和删除按钮样式 */
.btn-modify, .btn-repaint, .btn-delete, .btn-match {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 4px;
    border: none;
}

.btn-repaint {
    background-color: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid #ff9800;
}

    .btn-repaint:hover {
        background-color: rgba(255, 152, 0, 0.3);
        transform: translateY(-1px);
    }

.btn-modify {
    background-color: rgba(255, 209, 0, 0.15);
    color: #ffd100;
    border: 1px solid #ffd100;
}

    .btn-modify:hover {
        background-color: rgba(255, 209, 0, 0.3);
        transform: translateY(-1px);
    }

.btn-delete {
    background-color: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid #f44336;
}

    .btn-delete:hover {
        background-color: rgba(244, 67, 54, 0.3);
        transform: translateY(-1px);
    }
	
	.btn-match {
    background-color: rgba(156, 39, 176, 0.15);
    color: #9c27b0;
    border: 1px solid #9c27b0;
}

    .btn-match:hover {
        background-color: rgba(156, 39, 176, 0.3);
        transform: translateY(-1px);
    }

/* 图片占位符 */
.image-placeholder {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #7a9bbd; /* 从设计稿取色 */
    border-radius: 4px;
    vertical-align: middle;
}
/* 表格内图片垂直对齐 */
.material-table td img {
    vertical-align: middle;
}

/* 用于演示的触发按钮 */
.trigger-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
/* 提示信息 */
.loading-tip {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

.goods-popup {
    width: auto;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99;
    display: none;
    background-color: rgba(0,0,0,.5);
    z-index:1003;
}

.modal {
    width: 35vw;
    height: 100%;
    background-color: #0f0f12;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: absolute;
    right: 0;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    line-height: 24px;
    display: flex;
    align-items: center;
}



.close-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    font-size: 22px;
    color: #8c8c8c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
    .close-btn:hover {
        background-color: #333333;
        color: #999999;
    }
.modal-ziding{
    display: flex;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
}

.modal-content {
    height: calc(100vh - 118px);
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.category-section {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 14px;
    color: #262626;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 22px;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.product-item {
    width: 48%;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s;
}

    .product-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
        border-color: transparent;
    }

.product-image {
    height: 160px;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .product-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
    }

.image-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
}

.image-chld-img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    border-width: 2px;
}

    .image-chld-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .image-chld-img.active {
        border: 2px solid #666666;
    }

.product-info {
    padding: 12px;
}

.product-category {
    font-size: 12px;
    color: #8c8c8c;
    margin-bottom: 4px;
    line-height: 20px;
}

.product-name {
    font-size: 14px;
    color: #262626;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 22px;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    margin-bottom: 12px;
}

.current-price {
    font-size: 20px;
    color: #f5222d;
    font-weight: 500;
    line-height: 28px;
}

.original-price {
    font-size: 12px;
    color: #8c8c8c;
    text-decoration: line-through;
    margin-left: 4px;
    line-height: 20px;
}

.replace-btn {
    width: 94%;
    padding: 4px 15px;
    background-color: #ffd000;
    border: 1px solid #ffd000;
    border-radius: 2px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    line-height: 32px;
    transition: all 0.3s;
}

    .replace-btn:hover {
        /*background-color: #40a9ff;
    border-color: #40a9ff;*/
    }

.windows-activation {
    /*background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 2px;*/
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activation-text {
    font-size: 14px;
    color: #262626;
    line-height: 22px;
}

.activation-link {
    color: #1890ff;
    text-decoration: none;
    cursor: pointer;
}

    .activation-link:hover {
        text-decoration: underline;
    }

.activation-btn {
    padding: 4px 15px;
    background-color: transparent;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    font-size: 14px;
    color: #262626;
    cursor: pointer;
    line-height: 32px;
    transition: all 0.3s;
}

    .activation-btn:hover {
        /* color: #1890ff;
    border-color: #1890ff;*/
    }

.modal-footer {
    padding: 10px 16px;
    background-color: #0f0f12;
    border-top: 1px solid #0f0f12;
    display: flex;
    justify-content: center;
}

.footer-btn {
    padding: 4px 15px;
    background-color: transparent;
    border: 1px solid #ebc004;
    border-radius: 2px;
    font-size: 14px;
    color: #ebc004;
    cursor: pointer;
    line-height: 32px;
    margin-left: 8px;
    transition: all 0.3s;
}

    .footer-btn:hover {
        /* color: #1890ff;
    border-color: #1890ff;*/
    }

    .footer-btn.primary {
        /*background-color: #1890ff;
    border-color: #1890ff;*/
        /* color: white; */
    }


.notice {
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 4px;
    line-height: 20px;
}
.image-chld-img.active {
    border: 2px solid #666666;
}

.product-info {
    padding: 10px;
}

.info-tit {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-text {
    font-size: 12px;
    color: #999;
}

.layui-bg-red {
    background-color: #ffce00 !important;
}

.product-price {
    color: #ffce00;
    font-size: 16px;
    margin-top: 10px;
}

    .product-price del {
        color: #999;
        font-size: 12px;
        margin-left: 8px;
    }

.product-diz {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

.thumbnails-btm {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

    .product-thumbnails .thumb {
        width: 50px;
        height: 50px;
        background-color: #e5e5e5;
        border-radius: 5px;
        cursor: pointer;
        border: 2px solid transparent;
    }

        .product-thumbnails .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .product-thumbnails .thumb.active {
            border-color: #ffce00;
        }

.change-product {
    color: #ff5722;
    font-size: 12px;
    margin-top: 10px;
    text-align: right;
    cursor: pointer;
}

/* 遮罩层 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
/* 加载弹框容器 */
.loading-modal {
    background: white;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
    min-width: 300px;
}
/* 提示信息 */
.loading-tip {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}
/* 加载文字 */
.loading-text {
    font-size: 18px;
    color: #333;
    margin-top: 15px;
    font-weight: 500;
}
/* 进度条样式 */
.progress-container {
    width: 100%;
    background: #f0f0f0;
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
    height: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0%;
    transition: width 0.3s ease;
}
/* 百分比显示 */
.progress-text {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 旋转动画加载器 */
.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 5px solid rgba(76, 175, 80, 0.2);
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 覆盖goods-popup弹窗宽度以支持每行显示2个产品项 */
.modal {
     width: 50vw !important; 
    max-width: 1000px;
}

.product-list {
    gap: 16px !important;
}

.product-item {
    width: 45% !important;
}

.none {
    display: none;
}

.label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #fff;
}

.tooltip {
    position: relative;
    display: inline-block;
    color: #999999;
}

    .tooltip .tooltiptext {
        visibility: hidden;
        width: 195px;
        background-color: #333;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px;
        position: absolute;
        z-index: 1;
        top: 100%;
        left: 50%;
        margin-left: -60px;
        opacity: 0;
        transition: opacity 0.3s;
        font-size: 12px;
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }
/* 官方图库 hover 变色效果 */
.upload-lib-text {
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .upload-lib-text:hover {
        color: #ffcd00;
    }
/* 弹框背景遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 弹框主体 */
.modal-containers {
    background-color: #2b2b2b;
    color: #e0e0e0;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 弹框头部 */
.modal-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    flex-shrink: 0;
}

.header-tabs {
    display: flex;
    margin-right: 20px;
}

.tab {
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
}

    .tab.active {
        background-color: #444;
        color: #fff;
        font-weight: bold;
    }

.search-bar {
    flex-grow: 1;
    position: relative;
}

    .search-bar input {
        width: 100%;
        padding: 10px 15px 10px 40px;
        border-radius: 20px;
        border: 1px solid #555;
        background-color: #3a3a3a;
        color: #fff;
        outline: none;
        font-size: 14px;
    }

        .search-bar input::placeholder {
            color: #aaa;
        }

    .search-bar svg {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        fill: #aaa;
        width: 16px;
        height: 16px;
    }

.close-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
    transition: color 0.2s;
}

    .close-btn:hover {
        color: #fff;
    }

    .close-btn svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

/* 弹框主体内容区 */
.modal-body {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

/* 左侧边栏 */
.sidebar {
    width: 200px;
    background-color: #222;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #444;
    flex-shrink: 0;
}

.category-list {
    list-style: none;
    flex-grow: 1;
}

.category-item {
    padding: 7px 25px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-size: 14px;
    color: #bbb;
}

    .category-item:hover {
        background-color: #333;
        color: #fff;
    }

    .category-item.active {
        background-color: #3a3a3a;
        color: #fff;
        border-left: 3px solid #007bff;
    }

.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid #444;
}

.footer-btns {
    display: flex;
    align-items: center;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 0;
    transition: color 0.2s;
}

    .footer-btns:hover {
        color: #fff;
    }

    .footer-btns svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
        margin-right: 10px;
    }

/* 右侧图片网格 */
.content-area {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #2b2b2b;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.image-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

    .image-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }

    .image-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* 自定义滚动条样式 */
.content-area::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
    background: #2b2b2b;
}

.content-area::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}

    .content-area::-webkit-scrollbar-thumb:hover,
    .sidebar::-webkit-scrollbar-thumb:hover {
        background-color: #777;
    }

.tabtt {
    font-size: 13px;
    //font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

    .tabtt.active {
        color: #ffffff;
    }

        .tabtt.active::after {
            content: '';
            position: absolute;
            bottom: -16px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: #ffffff;
        }

    .tabtt.inactive {
        color: #888;
    }

        .tabtt.inactive:hover {
            color: #aaa;
        }
/* 色系调整面板容器 - 修复内容裁剪问题 */
.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 15px;
    /* 确保内容完整显示：允许垂直滚动 */
    max-height: calc(100vh - 150px); /* 减去 header 和 panel 间距 */
    /*overflow-y: auto;*/ /* 内容超出时显示滚动条 */
    /*overflow-x: hidden;*/ /* 禁止横向滚动 */
    width:100%;
}

/* 自定义滚动条样式，与整体风格保持一致 */
.container::-webkit-scrollbar {
    width: 6px;
}

.container::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 3px;
}

.container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.container::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}



.section-title {
    font-size: 14px;
   /* font-weight: 500;
    margin-bottom: 20px;*/
    color: #ff6b6b;
}

    /*.section-title::before {
        content: '*';
        margin-right: 5px;
    }*/

.color-template {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 9px 9px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .color-template:hover {
        background-color: #333;
    }

    .color-template.selected {
        border: 2px solid #4ecdc4;
    }

.template-name {
    font-size: 14px;
    white-space: nowrap;
    width: 60px;
    color: #ffffff;
}

.color-samples {
    display: flex;
    gap: 8px;
    flex: 1;
}

.color-sample {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

    .color-sample:hover {
        transform: scale(1.1);
    }

.input-section {
    margin-top: 40px;
}

.input-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

.input-area {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    min-height: 200px;
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
}

.placeholder-text {
    color: #888;
    font-style: italic;
}

.slider-container1 {
    margin-bottom: 40px;
}

.slider-labels1 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-wrapper {
    position: relative;
    height: 40px; /* 增加高度方便触摸 */
    display: flex;
    align-items: center;
    cursor: pointer;
}

.slider-track {
    width: 100%;
    height: 4px;
    background-color: #444;
    border-radius: 2px;
    position: relative;
}

.slider-fill {
    height: 100%;
    background-color: #4ecdc4; /* 高亮色 */
    border-radius: 2px;
    position: absolute;
    left: 0;
    width: 50%; /* 初始值 */
    pointer-events: none; /* 让点击事件穿透到 wrapper */
    transition: width 0.1s linear;
}

.slider-handle {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%; /* 初始值 */
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: left 0.1s linear, transform 0.2s;
    z-index: 2;
}

    .slider-handle:active {
        cursor: grabbing;
        transform: translate(-50%, -50%) scale(1.2);
    }

.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 2px; /* 对齐刻度 */
}

.tick {
    width: 1px;
    height: 6px;
    background-color: #555;
}


/* Right Sidebar */
.sidebar {
    width: 340px;
    background-color: var(--panel-bg);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-tabs {
    display: flex;
    padding: 16px 16px 0;
    border-bottom: 1px solid var(--border-color);
    /*margin-bottom: 16px;*/
}

.tab-item {
    font-size: 14px;
    color: #9ca3af;
    margin-right: 20px;
    cursor: pointer;
    padding-bottom: 8px;
    position: relative;
}

    .tab-item.active {
        color: #ffffff;
        font-weight: 500;
    }

        .tab-item.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--text-main);
        }

.sidebar-content {
    padding: 0 16px 16px;
    flex: 1;
    overflow-y: auto;
}

.section-title {
    font-size: 13px;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.red-dot {
    color: #ef4444;
    font-size: 10px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.template-card {
    background: #333;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    border: 2px solid transparent;
    transition: all 0.2s;
}

    .template-card:hover {
        filter: brightness(1.1);
    }

    .template-card.selected {
        border-color: #ffd100;
    }

    .template-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.template-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    backdrop-filter: blur(2px);
}

.template-grid1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.template-card1 {
    background: #333;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    border: 2px solid transparent;
    transition: all 0.2s;
}

    .template-card1:hover {
        filter: brightness(1.1);
    }

    .template-card1.selected {
        border-color: #ffd100;
    }

    .template-card1 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.template-label1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    backdrop-filter: blur(2px);
}

.add-card {
    background: #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    border: 1px dashed #555;
}

    .add-card:hover {
        background: #3a3a3a;
        color: var(--text-main);
    }

.add-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-bottom: 4px;
}

.free-trial-bar {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-free-trial {
    width: 100%;
    background-color: #333;
    color: var(--text-main);
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-free-trial:hover {
        background-color: #444;
    }

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

.adjustment-group {
    margin-bottom: 24px;
}

.group-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
}

.slider-container {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-label {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    min-width: 32px;
}

.slider-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    height: 20px;
}

/* Custom Range Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    position: absolute;
    z-index: 2;
    cursor: pointer;
}

    input[type=range]:focus {
        outline: none;
    }

    /* Webkit (Chrome, Safari) Thumb */
    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #ffffff;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        margin-top: -6px; /* Adjust for track height */
    }

    /* Webkit Track */
    input[type=range]::-webkit-slider-runnable-track {
        width: 100%;
        height: 4px;
        cursor: pointer;
        background:#333;
        border-radius: 2px;
    }

    /* Firefox Thumb */
    input[type=range]::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border: none;
        border-radius: 50%;
        background: #333;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    /* Firefox Track */
    input[type=range]::-moz-range-track {
        width: 100%;
        height: 4px;
        cursor: pointer;
        background: #333;
        border-radius: 2px;
    }

/* Center Marker on Track */
.slider-center-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 12px;
    background-color: #555;
    z-index: 1;
}

/* Percentage Display */
.percentage-display {
    font-size: 14px;
    color: #fff;
    min-width: 40px;
    text-align: right;
}

/* Toggle Switch */
.toggle-row {
    background-color: var(--input-bg);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color:#fff;
}

.info-icon {
    width: 14px;
    height: 14px;
    fill: var(--text-secondary);
    cursor: help;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 22px;
}

    .slider-toggle:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider-toggle {
    background-color: rgb(255, 209, 0);
}

    input:checked + .slider-toggle:before {
        transform: translateX(18px);
    }


/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
.sidebar {
    width: 320px;
    background-color: var(--panel-bg);
    border-left: 1px solid #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto;
}

.control-section h3 {
    font-size: 12px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-icon {
    width: 12px;
    height: 12px;
    border: 1px solid #666;
    border-radius: 50%;
    text-align: center;
    line-height: 10px;
    font-size: 9px;
    color: #666;
    cursor: help;
}

/* Segmented Controls */
.segmented-control {
    display: flex;
    background-color: var(--input-bg);
    padding: 3px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.seg-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #a0a0a0;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

    .seg-btn.active {
        background-color: #444; /* Darker grey for active state */
        color: #ffd100;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        border: 1px solid #555;
    }

/* Slider Control */
.slider-container2 {
    margin-top: 10px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #a0a0a0;
}

.slider-value {
    background: #333;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #444;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 14px;
        width: 14px;
        border-radius: 50%;
        background: #fff;
        cursor: pointer;
        margin-top: -5px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }

    input[type=range]::-webkit-slider-runnable-track {
        width: 100%;
        height: 4px;
        cursor: pointer;
        background: #555;
        border-radius: 2px;
    }

.slider-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: var(--text-muted);
}

.action-icon {
    cursor: pointer;
    width: 16px;
    height: 16px;
    fill: #a0a0a0;
}

    .action-icon:hover {
        fill: white;
    }

/* Stats Footer */
.stats-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #898888;
    font-size: 11px;
    line-height: 1.6;
}

/* SVG Icons Definition */
svg {
    display: block;
}


/* 覆盖 layui 表格行悬浮样式 - 移除背景色变化 */
.layui-table tbody tr:hover,
.layui-table thead tr:hover,
.table-bj tbody tr:hover,
.table-bj thead tr:hover,
.modal-content .layui-table tbody tr:hover,
.modal-content .layui-table tbody tr:hover td {
    background-color: transparent !important;
}

    /* 确保表格单元格悬浮也没有背景变化 */
    .layui-table tbody tr:hover td,
    .table-bj tbody tr:hover td,
    .modal-content table tbody tr:hover td {
        background-color: transparent !important;
    }



/* 弹窗折叠相关样式 */
.goods-popup {
    transition: transform 0.3s ease;
}

    .goods-popup.collapsed .modal {
        transform: translateX(100%);
    }

/* 折叠按钮样式 */
.popup-collapse-btn {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background: #0f0f12;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1004;
    border: 1px solid #333;
    border-right: none;
    transition: all 0.3s ease;
}

    .popup-collapse-btn:hover {
        background: #1a1a1e;
    }

.collapse-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 14px;
    color: #ffd100;
    letter-spacing: 2px;
    transition: content 0.3s ease;
}

/* 弹窗主体 - 添加过渡效果 */
.goods-popup .modal {
    transition: transform 0.3s ease;
}

/* 弹窗折叠状态 - 完全收起 */
.goods-popup.collapsed {
    transform: translateX(100%);
}

    .goods-popup.collapsed .modal {
        transform: translateX(100%);
    }

/* 确保弹窗容器有相对定位 */
.goods-popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: auto;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

   