﻿/*配合NETX更改样式，需在layui.css后引用生效*/

/* ---------- 文本输入框 & 文本域 ---------- */
.layui-input,
.layui-textarea {
    height: 40px;
    border: 2px solid #1D9AB4;
    border-radius: 12px;
    background-color: #fff;
    padding-left: 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
}

.layui-textarea {
    height: auto;
    padding: 10px 16px;
}

.layui-input:focus,
.layui-textarea:focus {
    border-color: #1D9AB4;
    box-shadow: 0 4px 14px rgba(29, 154, 180, 0.15);
    outline: none;
}

/* ---------- 按钮基础样式 ---------- */
.layui-btn {
    height: 40px;
    line-height: 40px;
    border-width: 2px;
    /*border-style: solid;*/
    border-radius: 12px;
    font-size: 14px;
    /*padding: 0 20px;*/
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

/* 默认按钮（无额外类）- 使用主题色 */
.layui-btn {
    background-color:#1D9AB4 !important;
    /*border-color: #1D9AB4;*/
    color: #fff !important;
}

.layui-btn:hover {
    background-color: #14809e !important;
    /*border-color: #14809e;*/
    color: #fff !important;
}

/* 原始按钮（白底灰框）- 边框改为主题色 */
.layui-btn-primary {
    background-color: #1D9AB4 !important;
    /*border-color: #1D9AB4 !important;*/
    color: #fff !important;
}

.layui-btn-primary:hover {
    background-color: #f0f9ff !important;
    border-color: #1D9AB4 !important;
    color: #1D9AB4 !important;
}

/* 百搭按钮（保留原有蓝色） */
.layui-btn-normal {
    background-color: #1E9FFF;
    border-color: #1E9FFF;
    color: #fff;
}

.layui-btn-normal:hover {
    background-color: #0b7ed0;
    border-color: #0b7ed0;
}

/* 暖色按钮 */
.layui-btn-warm {
    background-color: #FFB800;
    border-color: #FFB800;
    color: #fff;
}

.layui-btn-warm:hover {
    background-color: #e6a600;
    border-color: #e6a600;
}

/* 危险按钮 */
.layui-btn-danger {
    background-color: #FF5722;
    border-color: #FF5722;
    color: #fff;
}

.layui-btn-danger:hover {
    background-color: #e64a1a;
    border-color: #e64a1a;
}

/* 按钮尺寸 */
.layui-btn-lg {
    height: 50px;
    line-height: 50px;
    padding: 0 25px;
    font-size: 16px;
}

.layui-btn-sm {
    height: 30px;
    line-height: 30px;
    padding: 0 15px;
    font-size: 12px;
}

.layui-btn-xs {
    height: 22px;
    line-height: 22px;
    padding: 0 10px;
    font-size: 12px;
}

/* ---------- 复选框 ---------- */
.layui-form-checkbox i {
    border: 2px solid #1D9AB4 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    width: 18px !important;
    height: 18px !important;
    left: 6px !important;
    top: 6px !important;
    transition: all 0.2s;
}

.layui-form-checkbox.layui-form-checked i {
    border-color: #1D9AB4 !important;
    background-color: #1D9AB4 !important;
    color: #fff !important;
}

.layui-form-checkbox:hover i {
    border-color: #1D9AB4;
    box-shadow: 0 2px 8px rgba(29, 154, 180, 0.15);
}

/* ---------- 单选框 ---------- */
.layui-form-radio i {
    border: 2px solid #1D9AB4 !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    width: 18px !important;
    height: 18px !important;
    left: 6px !important;
    top: 6px !important;
    transition: all 0.2s;
}

.layui-form-radio.layui-form-radioed i {
    border-color: #1D9AB4 !important;
    background-color: #1D9AB4 !important;
}

.layui-form-radio.layui-form-radioed i:after {
    background-color: #fff !important;
    width: 8px;
    height: 8px;
    left: 3px;
    top: 3px;
}

.layui-form-radio:hover i {
    border-color: #1D9AB4;
    box-shadow: 0 2px 8px rgba(29, 154, 180, 0.15);
}

/* ---------- 开关 ---------- */
.layui-form-switch {
    border: 2px solid #1D9AB4;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    width: 50px;
    height: 26px;
    line-height: 26px;
}

.layui-form-switch i {
    background-color: #1D9AB4;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 22px;
    height: 22px;
    left: 2px;
    top: 2px;
}

.layui-form-switch.layui-form-onswitch {
    background-color: #1D9AB4;
    border-color: #1D9AB4;
}

.layui-form-switch.layui-form-onswitch i {
    background-color: #fff;
    left: 26px;
}

/* ---------- 下拉框（原样式保留，确保优先级覆盖通用输入框） ---------- */
.layui-form-select {
    width: 100%;
}

.layui-form-select .layui-select-title input {
    height: 40px;
    border: 2px solid #1D9AB4;
    border-radius: 12px;
    background-color: #fff;
    padding-left: 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.layui-form-select .layui-select-title input:focus {
    border-color: #1D9AB4;
    box-shadow: 0 4px 14px rgba(29, 154, 180, 0.15);
    outline: none;
}

.layui-form-select .layui-select-title .layui-edge {
    border-top-color: #1D9AB4;
    right: 16px;
    border-width: 8px;
    margin-top: -4px;
}

.layui-form-select dl {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
    background: #fff;
    max-height: 240px;
    overflow-y: auto;
}

.layui-form-select dl dd {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
    border-radius: 8px;
    margin: 2px 8px;
    width: auto;
}

.layui-form-select dl dd:hover {
    background-color: #f0f9ff;
    color: #1D9AB4;
}

.layui-form-select dl dd.layui-this {
    background-color: #e6f4fa;
    color: #1D9AB4;
    font-weight: 500;
}

.layui-form-select dl dd.layui-disabled {
    color: #ccc;
}