/* EPC布局样式 */

.epc_content {
    background: #ffffff;
    overflow: hidden;
}
.epc_box{
    margin: 0 auto;
    padding: 20px 70px;
    overflow: hidden;
}

.epc-layout {
    display: flex;
    gap: 20px;
    width: 100%;
}

.epc-left-menu {
    width: 300px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.menu-item {
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    border-bottom: 1px dotted #e2e2e2; 
    font-size: 16px;
}

.menu-item:hover {
    background-color: #e9e9e9;
}

.menu-item.active {
    background-color: #B43033;
    color: white;
}

.epc-right-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.grid-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 8px;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
}

.grid-item-label {
    margin-top: 30px;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.level3-container-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.level2-category{
    grid-column: 1 / -1; 
    margin-bottom: 30px;
}
.level2-title{
    font-size: 16px;
    color: #333;
    margin-bottom: 15px; 
    padding-bottom: 10px; 
    border-bottom: 1px solid #eee;
}
.epc_model_title{
    text-align: center;
    font-size: 30px;
    color: #333;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 15px; 
    border-bottom: 1px solid #eee;
}

/* SVG缩放容器样式 */
.zoomable-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fff;
    width: 100%;
    height: 100%;
}

.movable-area {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    cursor: move;
    user-select: none;
    transition: transform 0.1s ease;
    transform-origin: center center;
}

.image-wrapper:active {
    cursor: grabbing;
}

.svg-container {
    display: block;
    width: auto;
    height: auto;
}

.svg-container svg {
    width: 100%;
    height: auto;
    display: block;
}

.control-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.control-btn {
    height: 30px;
    border: none;
    background: #333;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    padding: 0 10px;
}

.control-btn:hover {
    background: #555;
}

.control-btn:active {
    background: #222;
}

/* 表格样式 */
.table-wrapper {
    height: 100%;
    overflow-y: auto;
}

#partsTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

#partsTable th,
#partsTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#partsTable th {
    background-color: #f5f5f5;
    font-weight: bold;
}

#partsTable tr:hover {
    background-color: #f9f9f9;
}

#partsTable tr.selected-row99 {
    background-color: #ffe1d4;
}

.tabBox_img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 auto;
}

.tabBox_img img {
    width: 40px;
    height: 40px;
}

.red {
    color: red;
    font-weight: 800;
}

/* 按钮样式 */
.layui-btn {
    padding: 0 15px;
    height: 28px;
    line-height: 28px;
    border-radius: 4px;
    font-size: 12px;
}

.layui-btn-danger {
    background-color: #B43033;
    border-color: #B43033;
    color: #fff;
}
.acea-row .left{
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 2px;
    flex-shrink: 0;
    width:35%;
    overflow: hidden;
}
.acea-row{
    display: flex;
    height: calc(100vh - 300px);
    flex-wrap: nowrap;
    overflow: hidden;
}
.svg-container-row{
    overflow-y: scroll;
    border: 1px solid #eee;
    height: 100%;
}
.order-data{
    flex:1;
    height:100%;
    margin-left:20px;
    overflow: hidden;
}
@media (max-width: 1440px) {

}
@media (max-width: 2560px) {

}

/* 响应式设计 - 断点1024px */
@media (max-width: 1024px) {
    .epc_box{
        padding: 10px 5px;
        margin-bottom: 20px;
    }
    .epc_model_title{
        font-size: 24px;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    .epc-left-menu{
        width: 180px;
    }
    .menu-item{
        padding: 5px
    }
    .epc-right-grid{
        grid-template-columns: repeat(3, 1fr);
    }
    .level3-container-grid{
        grid-template-columns: repeat(3, 1fr);
    }
    .acea-row{
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .acea-row .left{
        height: 400px;
        width: 100%;
    }
    .order-data{
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }
    .epc_content{
        margin-bottom: 60px;
    }

}

/* 响应式设计 - 断点768px */
@media (max-width: 768px) {
    .epc_box{
        padding: 10px 5px;
        margin-bottom: 20px;
    }
    .epc_model_title{
        font-size: 24px;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    .epc-left-menu{
        width: 150px;
    }
    .menu-item{
        padding: 5px
    }
    .epc-right-grid{
        grid-template-columns: repeat(3, 1fr);
    }
    .level3-container-grid{
        grid-template-columns: repeat(3, 1fr);
    }
    .acea-row{
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .acea-row .left{
        height: 400px;
        width: 100%;
    }
    .order-data{
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }
    .epc_content{
        margin-bottom: 60px;
    }
}
/* 响应式设计 - 断点480px */
@media (max-width: 480px) {
    .epc_box{
        padding: 10px 5px;
        margin-bottom: 20px;
    }
    .epc_model_title{
        font-size: 24px;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    .epc-left-menu{
        width: 150px;
    }
    .menu-item{
        padding: 5px
    }
    .epc-right-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .level3-container-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .acea-row{
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .acea-row .left{
        height: 400px;
        width: 100%;
    }
    .order-data{
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }
    .epc_content{
        margin-bottom: 60px;
    }
}

@media (max-width: 425px) {
    .epc_box{
        padding: 10px 5px;
        margin-bottom: 20px;
    }
    .epc_model_title{
        font-size: 24px;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    .epc-left-menu{
        width: 150px;
    }
    .menu-item{
        padding: 5px
    }
    .epc-right-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .level3-container-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .acea-row{
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .acea-row .left{
        height: 400px;
        width: 100%;
    }
    .order-data{
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }
    .epc_content{
        margin-bottom: 60px;
    }
}

@media (max-width: 375px) {

}