html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
.uexa {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    padding: 5px;
    box-sizing: border-box;
}
.khcb_a {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #eee;
    padding: 16px;
    min-height: 120px;
    position: relative;
    height: 180px;
    margin-bottom: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
#addConfigBtn {
    /* 不再需要绝对定位，直接放在右下 */
    margin-right: 0;
    margin-bottom: 0;
}
.khcb_b {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #eee;
    padding: 16px;
    overflow: auto;
    flex: 1;
}
.modal {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.modal-content {
    background: #fff;
    padding: 24px 32px;
    border-radius: 8px;
    min-width: 300px;
}
.modal-actions {
    margin-top: 16px;
    text-align: right;
}

/* 加载器样式 */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}

.loader-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
}

.loader-percent {
    font-size: 16px;
    color: #3498db;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 数据加载时隐藏表格内容 */
.khcb_b.loading {
    opacity: 0.3;
    pointer-events: none;
}
