﻿.line-zone {
    min-height: 56px; /* 适当高度，可根据实际内容调整 */
    margin-bottom: 18px; /* 区块间距 */
    padding: 12px 8px;
    background: #fff; /* 可选，提升可视性 */
    border-radius: 8px; /* 可选，element-plus风格 */
    border: 1px solid #ebeef5; /* 可选，element-plus风格 */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

    .line-zone select.form-control {
        width: 340px !important;
        height:50px;
        min-width: 0;
        max-width: 100%;
        display: block;
        box-sizing: border-box;
        font-size: 16px;
        /* 防止被遮挡 */
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        padding: 10px 8px;
    }

.line-zone-title {
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 0 8px 4px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 8px 8px 0 0;
    user-select: none;
}

.line-zone-title i {
    margin-right: 8px;
    color: #409EFF;
    transition: transform 0.2s;
}

.line-zone-btns {
    border-radius: 0 0 0 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin: 12px 0 0 0;
    padding: 0 20px;
    background: #f5f7fa;
}

/* 针对 line-zone 按钮和选择框的移动端优化 */
.line-zone-btns {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin: 12px 0 0 0;
    padding: 0 0 0 0;
    background: transparent;
    justify-content: flex-start;
    align-items: center;
}

.line-zone-content {
    width: 340px !important;
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 0;
    display: block;
}

.line-zone .form-group {
    margin-bottom: 12px;
}

.line-zone-body {
    padding: 0 0 10px 0;
}

.line-zone-btns .btn {
    width: 110px;
    min-width: 80px;
    max-width: 100%;
    margin-right: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .wrapper-content, .ibox-content, .panel, .el-card, .line-zone {
        padding: 8px 2px;
    }

    .form-control, .el-input__inner {
        font-size: 16px;
        padding: 10px 8px;
    }

    .btn, .el-button {
        font-size: 16px;
        padding: 10px 0;
    }

    .line-zone select.form-control,
    select.form-control {
        height: auto !important;
        min-height: 55px !important;
        line-height: 55px !important;
        font-size: 16px !important;
        padding: 10px 12px !important;
        white-space: normal !important;
        overflow: visible !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-all !important;
        /* 兼容部分浏览器 */
        display: block;
    }

    .line-zone-btns {
        gap: 8px;
        padding: 0;
    }

    .form-group > .btn,
    .form-group > button.btn,
    .form-group > button[type="button"].btn,
    .form-group > button[type="submit"].btn {
        width: 100% !important;
        display: block;
        box-sizing: border-box;
        margin: 0 auto;
        text-align: center;
    }

    .form-group.button-row {
        text-align: center !important;
    }
}
