/* 客户管理页面样式 */

/* 标签页 */
.customer-tabs {
    padding: 0 20px;
    background-color: #fff;
    border-bottom: 1px solid #e4e7ed;
}

.customer-tabs .tab-item {
    padding: 14px 20px;
    font-size: 14px;
    color: #606266;
    position: relative;
    transition: color 0.2s;
}

.customer-tabs .tab-item.active {
    color: #409eff;
    font-weight: 600;
    background-color: #ecf5ff;
    border-bottom: 2px solid #409eff;
    margin-bottom: -1px;
}

/* 表单区 */
.customer-form {
    padding: 28px 32px;
    background-color: #fff;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    gap: 24px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 22px;
}

.form-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.form-item label {
    font-size: 14px;
    color: #303133;
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
}

.form-item label.required::before {
    content: "*";
    color: #f56c6c;
    margin-right: 2px;
}

.form-input,
.form-select {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background-color: #fff;
    color: #606266;
    font-size: 14px;
    outline: none;
    min-width: 220px;
    transition: border-color 0.2s;
}

.form-input-wide {
    flex: 1;
    min-width: 600px;
}

.form-input:focus,
.form-select:focus {
    border-color: #409eff;
}

/* 只读字段（如自动算出的「高考位次」）：视觉上像「结果」而不是「输入」 */
.form-input[readonly] {
    background-color: #f5f7fa;
    border-style: dashed;
    color: #409eff;
    font-weight: 600;
    cursor: default;
}
.form-input[readonly]:focus { border-color: #dcdfe6; }

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23909399' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.form-tip {
    font-size: 12px;
    color: #e6a23c;
    margin-left: 4px;
}

.form-tip.red {
    color: #f56c6c;
}

.form-tip-inline {
    flex: 1;
    font-size: 13px;
    color: #303133;
    line-height: 1.6;
}

.red-text {
    color: #f56c6c;
}

.link-blue {
    color: #409eff;
    text-decoration: none;
}

.link-blue:hover {
    text-decoration: underline;
}

/* 滑块开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #67c23a;
    border-radius: 20px;
    transition: 0.3s;
}

.switch .slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 20px;
    bottom: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked + .slider {
    background-color: #67c23a;
}

.switch input:checked + .slider::before {
    transform: translateX(-18px);
}

.switch-text {
    font-size: 13px;
    color: #67c23a;
    margin-left: 8px;
}

/* 验证码框 */
.captcha-box {
    justify-content: flex-end;
}

.captcha-display {
    width: 220px;
    height: 36px;
    background-color: #303133;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.captcha-icon {
    font-size: 16px;
    line-height: 1;
    margin-bottom: 2px;
}

.captcha-text {
    font-size: 12px;
    color: #fff;
    line-height: 1;
}

/* 按钮 */
.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
}

.btn-primary-save {
    height: 36px;
    padding: 0 24px;
    background-color: #409eff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary-save:hover {
    background-color: #66b1ff;
}

.btn-default-cancel {
    height: 36px;
    padding: 0 24px;
    background-color: #fff;
    color: #606266;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-default-cancel:hover {
    color: #409eff;
    border-color: #409eff;
}

/* 版本号 */
.version {
    margin-left: auto;
    color: #909399;
}

/* tab-pane 容器 */
.tab-pane {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* radio 组 */
.radio-group {
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.radio-group-3 {
    gap: 16px;
}

.radio-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #303133;
    cursor: pointer;
    user-select: none;
}

.radio-item input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: #409eff;
    cursor: pointer;
}

.radio-item input[type="radio"]:checked + span {
    color: #409eff;
}

/* checkbox 组 */
.check-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 400px;
}

.check-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #303133;
    cursor: pointer;
    user-select: none;
}

.check-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #409eff;
    cursor: pointer;
}

.check-item input[type="checkbox"]:checked + span {
    color: #409eff;
}

/* 同位分 + 当前位次 结果展示（仅展示结果，无说明文字） */
.ss-result {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 12px 20px;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    background-color: #f5f7fa;
    flex-wrap: wrap;
}

.ss-result .ss-item {
    font-size: 15px;
    color: #303133;
    white-space: nowrap;
}

.ss-result .ss-item b {
    color: #409eff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 2px;
}

.ss-result .ss-note {
    font-size: 12px;
    color: #e6a23c;
    white-space: nowrap;
}
