/* ============================================================
   栓Q网络验证系统 · 后台界面优化 V7.5.8
   纯样式增强：不修改任何业务逻辑、组件结构与字段绑定
   ============================================================ */

/* ---------- 基础排版 ---------- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.app-main {
    background: #f5f7fa;
    padding: 16px;
    box-sizing: border-box;
}

/* ---------- 卡片 ---------- */
.el-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 21, 41, .06);
}

.el-card__header {
    border-bottom: 1px solid #f0f2f5;
    font-weight: 600;
    color: #303133;
}

/* ---------- 按钮 / 输入框 ---------- */
.el-button {
    border-radius: 6px;
    font-weight: 500;
}

.el-button--primary {
    background: #3a8ee6;
    border-color: #3a8ee6;
}

.el-button--primary:hover,
.el-button--primary:focus {
    background: #5aa0ec;
    border-color: #5aa0ec;
}

.el-input__inner,
.el-textarea__inner,
.el-select .el-input__inner {
    border-radius: 6px;
}

.el-input__inner:focus {
    border-color: #3a8ee6;
}

/* ---------- 表格 ---------- */
.el-table {
    border-radius: 8px;
    overflow: hidden;
}

.el-table th {
    background: #fafbfc !important;
    color: #303133;
    font-weight: 600;
    font-size: 13px;
}

.el-table td {
    border-bottom-color: #f2f4f7;
}

.el-table--enable-row-hover .el-table__body tr:hover > td {
    background: #f7faff !important;
}

/* ---------- 分页 / 标签 / 弹窗 ---------- */
.el-pagination {
    padding: 14px 0 4px;
    text-align: right;
}

.el-tag {
    border-radius: 4px;
    font-weight: 500;
}

.el-dialog {
    border-radius: 10px;
    overflow: hidden;
}

/* ---------- 搜索栏 ---------- */
.user-search {
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    padding: 14px 16px 2px;
    margin-bottom: 14px;
}

.user-search .el-form-item {
    margin-bottom: 12px;
}

/* ---------- 表单标签 ---------- */
.app-main .el-form:not(.el-form--inline) .el-form-item__label {
    font-weight: 600;
    color: #303133;
}

/* ============================================================
   配置类页面：每个单选项一行，改为“卡片 + 选项卡”
   这些类名由 custom-ui.js 动态添加，不影响原结构与绑定
   ============================================================ */
.sq-config-row {
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    padding: 14px 18px 16px;
    margin: 0 0 12px;
    transition: border-color .2s, box-shadow .2s;
}

.sq-config-row:hover {
    border-color: #c6e2ff;
    box-shadow: 0 2px 10px rgba(58, 142, 230, .08);
}

/* 行标题（“[全局]xxx方式：”）加粗 */
.sq-config-row > div:first-child span {
    font-weight: 600;
    color: #303133;
    font-size: 14px;
}

/* 选项组变成横向卡片式 */
.sq-opt-group {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.sq-opt-group .el-radio {
    margin-right: 0 !important;
    padding: 6px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    background: #fff;
    transition: all .15s;
    height: auto;
    line-height: 22px;
}

.sq-opt-group .el-radio:hover {
    border-color: #3a8ee6;
    color: #3a8ee6;
}

.sq-opt-group .el-radio.is-checked {
    border-color: #3a8ee6;
    background: #ecf5ff;
}

.sq-opt-group .el-radio__label {
    padding-left: 8px;
    font-size: 13px;
}

.sq-opt-group .el-radio__input.is-checked + .el-radio__label {
    color: #2f7ed8;
}
