/*!
 * ui-lite.css：替代 ZUI（zui.min.css）的样式集
 * ------------------------------------------------------------
 * 原页面依赖 ZUI 的以下能力，这里用自写样式等价替代：
 *   0. 全局基础重置（box-sizing/body 基线等，数值与官方 ZUI 1.9.2 一致，
 *      app.css 的组件尺寸均基于该基线编写，缺失会导致气泡等变高）
 *   1. nav-tabs 标签页（外观设置 / 对话设置）
 *   2. form-control 表单控件
 *   3. btn / btn-primary / btn-success 按钮
 *   4. 图片预览弹窗（替代 ZUI jQuery lightbox 插件）
 * 配色沿用 ZUI 1.9：主色 #3280fc、成功色 #38b03f、链接色 #145ccd。
 */

/* ============================================================
 * 全局基础重置（还原 ZUI normalize/base 层，app.css 依赖这些基线）
 * 数值与官方 ZUI 1.9.2 完全一致
 * ============================================================ */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

html {
    font-size: 10px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

body {
    margin: 0;
    font-size: 13px;
    line-height: 1.53846154;
    color: #353535;
    background-color: #fff
}

img {
    border: 0
}

audio,
canvas,
img,
video {
    max-width: 100%;
    vertical-align: middle
}

a {
    color: #145ccd;
    text-decoration: none;
    cursor: pointer
}

button,
input,
select,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit
}

/* ===== 标签页（数值取自官方 ZUI 1.9.2） ===== */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin: 0 0 15px;
    list-style: none;
    border-bottom: 1px solid #ddd
}

.nav-tabs > li {
    margin-bottom: -1px
}

.nav-tabs > li > a {
    display: block;
    padding: 10px 15px;
    margin-right: 2px;
    line-height: 1.53846154;
    color: #666;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    text-decoration: none;
    cursor: pointer
}

.nav-tabs > li > a:hover {
    background: #f5f5f5
}

.nav-tabs > li.active > a {
    color: grey;
    background: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
    cursor: default
}

.tab-content > .tab-pane {
    display: none
}

.tab-content > .tab-pane.active,
.tab-content > .active {
    display: block
}

/* ===== 表单控件（数值取自官方 ZUI 1.9.2） ===== */
.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.53846154;
    color: #353535;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-sizing: border-box
}

.form-control:focus {
    border-color: #3280fc;
    outline: 0
}

/* ===== 按钮（数值取自官方 ZUI 1.9.2） ===== */
.btn {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.53846154;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    user-select: none;
    text-decoration: none
}

.btn:active {
    transform: translateY(1px)
}

.btn-primary {
    color: #fff;
    background-color: #3280fc;
    border-color: #1970fc
}

.btn-primary:hover {
    background: #1a6ef5
}

.btn-success {
    color: #fff;
    background-color: #38b03f;
    border-color: #329d38
}

.btn-success:hover {
    background: #2e9a34
}

/* ===== 图片预览弹窗（替代 ZUI lightbox） ===== */
.lightbox-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1700;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75)
}

.lightbox-mask.show {
    display: flex
}

.lightbox-dialog {
    position: relative;
    max-width: 90vw
}

.lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 80vh
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 16px;
    line-height: 28px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .4)
}

.lightbox-caption {
    background: rgba(0, 0, 0, .6);
    color: #fff;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer
}
