* {
    box-sizing: border-box;
}

body, html {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    height: 100%;
    padding: 0;
    margin: 0;
}

a:link {
    text-decoration: none;
}

.content,
.content > div {
    width: 100%;
    height: 100%;
    position: relative;
}

    .content > .message {
        text-align: center;
        display: table;
        font-size: 16px;
        color: #111;
    }

        .content > .message .note {
            vertical-align: middle;
            text-align: center;
            display: table-cell;
        }

    .content .error .details {
        max-width: 500px;
        font-size: 12px;
        margin: 20px auto;
        text-align: left;
    }

    .content .error pre {
        border: solid 1px #CCC;
        background: #EEE;
        padding: 10px;
    }

    .content:not(.with-error) .error,
    .content.with-error .intro,
    .content.with-diagram .intro {
        display: none;
    }


    .content .canvas,
    .content.with-error .canvas {
        visibility: hidden;
    }

    .content.with-diagram .canvas {
        visibility: visible;
    }

.dropdown-menu .divider {
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
    background-color: #e5e5e5;
}

.buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .buttons > li {
        display: inline-block;
        margin-right: 10px;
    }

        .buttons > li > a {
            background: #DDD;
            border: solid 1px #666;
            display: inline-block;
            padding: 5px;
        }

    .buttons a {
        opacity: 0.3;
    }

        .buttons a.active {
            opacity: 1.0;
        }


/*ui bttons*/
.icoBtn {
    background-image: url(../images/buttonicon.gif);
    background-repeat: no-repeat;
    float: left;
    margin: 5px 0 0 5px;
    width: 20px;
    height: 20px;
    display: block;
    font-size: 1px;
}

.btnNew {
    background-position: -60px -140px;
}
/*add*/
.btnDel {
    background-position: -20px -140px;
    width: 18px;
}
/*delete*/
.btnEdit {
    background-position: -80px -140px;
}

.btnUp {
    background-position: -100px -60px;
}

.btnSave {
    background-position: -0px -60px;
}

.btnSetting {
    background-position: -60px -20px;
}

.btnDelete {
    background-position: -80px -120px;
}

.btnRefresh {
    background-position: -60px -60px;
}
.dropdown-menu li {
    position: relative;
}

.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -7px;
}

.dropdown-menu .dropdown-submenu-left {
    right: 100%;
    left: auto;
}

.dropdown-menu > li:hover > .dropdown-submenu {
    display: block;
}

/* ɫԻ */
.dialog-container {
    position: fixed;
    display: none;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 360px !important; /* ̶ */
    height: 320px !important; /* ̶߶ */
    display: flex;
    flex-direction: column;
}

/* ͷʽ */
.dialog-header {
    padding: 10px 16px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-title {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/*  */
.dialog-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ı */
.text-area {
    width: 100%;
    height: 130px; /* ̶߶ */
    padding: 8px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    resize: none;
    font-size: 13px;
    color: #333;
    margin-bottom: 12px;
}

    .text-area:focus {
        outline: none;
        border-color: #1890ff;
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    }

/* ť */
.button-group {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: auto;
}

.btn {
    padding: 6px 16px;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-primary {
    background: #1890ff;
    color: white;
}

    .btn-primary:hover {
        background: #40a9ff;
    }

.btn-close {
    color: #666;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
}

    .btn-close:hover {
        color: #333;
    }

/* Ӧ */
.response-area {
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    overflow-y: auto;
    background: #fafafa;
    height: 56px;
    white-space: pre-wrap;
}

/* ״̬ */
.loading {
    display: none;
    color: #1890ff;
    font-size: 12px;
    text-align: center;
    margin-top: 8px;
}

/* ʽ */
.progress-container-ai {
    width: 100%;
    height: 4px;
    background: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
    display: none; /* Ĭ */
}

.progress-bar-ai {
    width: 100%;
    height: 100%;
    background: #1890ff;
    border-radius: 2px;
    transform-origin: left;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        transform: scaleX(0);
    }

    50% {
        transform: scaleX(0.7);
    }

    100% {
        transform: scaleX(0);
    }
}