/* 搜索栏 */
.search-bar {
    background-color: #fff; 
    padding: 20px; 
    border: 1px solid #e4e7ed; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-wrap: wrap;
}
.search-bar .form-item {
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.search-bar label {
    font-size: 14px; 
    color: #4e5969; 
    font-weight: 500;
}
.search-bar input {
    padding: 8px 12px; 
    border: 1px solid #e4e7ed; 
    width: 220px; 
    border-radius: 6px; 
    font-size: 14px; 
    color: #4e5969; 
    transition: all 0.3s ease; 
    outline: none;
}
.search-bar input:focus {
    border-color: #1ab394; 
    box-shadow: 0 0 0 2px rgba(26, 179, 148, 0.1);
}
.search-bar .btn-default {
    background-color: #f5f7fa; 
    color: #4e5969; 
    border: 1px solid #e4e7ed;
}
.search-bar .btn-default:hover {
    background-color: #eef1f5; 
    box-shadow: none;
}

/* 操作栏 */
.operate-bar {
    display: flex; 
    gap: 8px;
}
.operate-bar .btn {
    background-color: #ed5565;
}
.operate-bar .btn:hover {
    background-color: #dc4655; 
    box-shadow: 0 2px 6px rgba(237, 85, 101, 0.2);
}
.operate-bar .btn-success {
    background-color: #1ab394;
}
.operate-bar .btn-success:hover {
    background-color: #18a689;
}

/* 表单盒子 */
.form-box {
    background-color: #fff; 
    padding: 24px; 
    border: 1px solid #e4e7ed; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.form-box h3 {
    font-size: 18px; 
    color: #4e5969; 
    margin-bottom: 20px; 
    padding-bottom: 12px; 
    border-bottom: 1px solid #e4e7ed; 
    font-weight: 600;
}
.form-box h4 {
    font-size: 16px; 
    color: #4e5969; 
    margin-bottom: 12px; 
    font-weight: 600;
}
.form-box .form-item {
    margin-bottom: 20px; 
    display: flex; 
    align-items: flex-start; 
    gap: 12px;
}
.form-box label {
    display: inline-block; 
    width: 100px; 
    text-align: right; 
    font-size: 14px; 
    color: #4e5969; 
    font-weight: 500; 
    padding-top: 8px;
}
.form-box input, .form-box select, .form-box textarea {
    padding: 8px 12px; 
    border: 1px solid #e4e7ed; 
    width: 320px; 
    border-radius: 6px; 
    font-size: 14px; 
    color: #4e5969; 
    transition: all 0.3s ease; 
    outline: none; 
    resize: vertical;
}
.form-box input:focus, .form-box select:focus, .form-box textarea:focus {
    border-color: #1ab394; 
    box-shadow: 0 0 0 2px rgba(26, 179, 148, 0.1);
}
.form-box textarea {
    height: 100px; 
    line-height: 1.6;
}

/* 上传区域 */
.upload {
    margin-left: 112px; 
    margin-top: 8px; 
    display: flex; 
    gap: 10px; 
    align-items: center;
}
.upload-tip {
    font-size: 12px; 
    color: #909399;
}

/* 表格盒子 */
.table-box {
    background-color: #fff; 
    border: 1px solid #e4e7ed; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    overflow: hidden;
}
.table {
    width: 100%; 
    border-collapse: collapse; 
    font-size: 14px;
}
.table th, .table td {
    padding: 14px 20px; 
    text-align: left; 
    border-bottom: 1px solid #f0f2f5;
}
.table th {
    background-color: #f8f9fa; 
    color: #4e5969; 
    font-weight: 600; 
    white-space: nowrap;
}
.table tr:hover {
    background-color: #fafbfc;
}
.table tr:last-child td {
    border-bottom: none;
}
.table .badge {
    display: inline-block; 
    padding: 3px 8px; 
    border-radius: 4px; 
    font-size: 12px; 
    font-weight: 500; 
    white-space: nowrap;
}
.table .badge-primary {
    background-color: #e6f7ef; 
    color: #1ab394;
}
.table .badge-warning {
    background-color: #fff5e6; 
    color: #f8ac59;
}
.table .badge-danger {
    background-color: #feeaea; 
    color: #ed5565;
}

/* 蓝色快捷按钮 */
.btn-blue {
    background-color: #1c84c6 !important;
}
.btn-blue:hover {
    background-color: #1a76b5 !important;
    box-shadow: 0 2px 6px rgba(28, 132, 198, 0.2) !important;
}
.shortcut-btn-area {
    margin-left: 112px; 
    margin-top: 8px; 
    margin-bottom: 16px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px;
}

/* 开关样式 */
.switch-wrap {
    margin-left: 112px; 
    margin-top: 8px; 
    margin-bottom: 8px; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.switch {
    position: relative; 
    width: 40px; 
    height: 20px; 
    background-color: #e4e7ed; 
    border-radius: 10px; 
    cursor: pointer; 
    transition: background-color 0.3s;
}
.switch.checked {
    background-color: #1c84c6;
}
.switch::after {
    content: ''; 
    position: absolute; 
    width: 16px; 
    height: 16px; 
    border-radius: 50%; 
    background-color: #fff; 
    top: 2px; 
    left: 2px; 
    transition: left 0.3s;
}
.switch.checked::after {
    left: 22px;
}

/* 快捷按钮表单项 */
.shortcut-form-item {
    margin-bottom: 16px;
}

/* 用户端按钮预览 */
.btn-preview-row {
    display: flex; 
    gap: 8px; 
    margin-bottom: 8px; 
    flex-wrap: wrap;
}
.btn-preview {
    background-color: #1c84c6; 
    color: #fff; 
    padding: 8px 16px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 14px; 
    transition: all 0.2s;
}
.btn-preview:hover {
    background-color: #1a76b5; 
    transform: scale(1.02);
}

/* 导入区域 */
.import-area {
    margin-left: 112px; 
    margin-top: 8px; 
    display: none;
}
#importFile {
    display: none;
}