/* ==========================================================
   物联网卡管理平台 - 后台样式
   设计基线：Arco Design 风格（浅色菜单 / 4px 圆角 / 天移蓝 #1E9FFF）
   零外部依赖，所有图标为内联 SVG
   ========================================================== */
:root {
    --primary: #1E9FFF;
    --primary-dark: #0E8AEB;
    --primary-soft: #E8F3FF;
    --sidebar-bg: #ffffff;
    --sidebar-hover: #F2F3F5;
    --sidebar-active: #E8F3FF;
    --bg: #F7F8FA;
    --card: #ffffff;
    --border: #E5E6EB;
    --border-light: #F0F1F3;
    --text: #1D2129;
    --text-muted: #86909C;
    --success: #00B42A;
    --warning: #FF7D00;
    --danger: #F53F3F;
    --info: #0FC6C2;
    --radius: 8px;
    --radius-sm: 4px;
    /* 表单控件统一基线：高度 / 圆角 / 填充底色，保证全站输入框尺寸一致
       风格为「填充式」：浅灰底 + 无边框 + 大圆角，聚焦时变白底描边 */
    --radius-ctl: 10px;
    --ipt-h: 38px;
    --ipt-h-sm: 32px;
    --ipt-h-lg: 44px;
    --ipt-bg: #F2F3F5;
    --ipt-bg-hover: #EBEDF0;
    --ipt-border: #E5E6EB;
    --ipt-border-hover: #C9CDD4;
    --label-w: 96px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }

.icon { flex-shrink: 0; vertical-align: -3px; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 216px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    color: var(--text);
    position: fixed;
    top: 0; bottom: 0; left: 0;
    overflow-y: auto;
}
.sidebar .brand {
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 10px;
}
.sidebar .brand .logo {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #3CAFFF, #1E7FFF);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.sidebar .brand .name { color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.sidebar .brand .sub { font-size: 11px; color: var(--text-muted); }

.nav { padding: 10px 8px 20px; }

/* 可折叠分组 */
.nav-group { margin-bottom: 2px; }
.nav-group .group-head {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer;
    color: var(--text); font-size: 13.5px; user-select: none;
}
.nav-group .group-head:hover { background: var(--sidebar-hover); }
.nav-group .group-head .t { flex: 1; font-weight: 500; }
.nav-group .group-head .chev { transition: transform .18s; color: var(--text-muted); display: inline-flex; }
.nav-group.open .group-head .chev { transform: rotate(180deg); }
.nav-group .sub { display: none; padding: 2px 0 4px; }
.nav-group.open .sub { display: block; }

.nav a {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 10px 8px 32px; border-radius: var(--radius-sm); color: #4E5969;
    font-size: 13.5px; margin-bottom: 1px; transition: .15s;
}
.nav a:hover { background: var(--sidebar-hover); color: var(--text); }
.nav a.active { background: var(--sidebar-active); color: var(--primary); font-weight: 500; }
.nav a .ic { display: inline-flex; color: var(--text-muted); }
.nav a.active .ic { color: var(--primary); }
.nav a .tag {
    margin-left: auto; font-size: 10px; background: var(--primary-soft);
    color: var(--primary); padding: 0 6px; border-radius: 8px;
}
.nav .group-title {
    font-size: 11px; color: var(--text-muted); padding: 12px 12px 6px; letter-spacing: .5px;
}

.main { flex: 1; margin-left: 216px; min-width: 0; }

.topbar {
    height: 56px; background: #fff; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 22px; position: sticky; top: 0; z-index: 20;
}
.topbar .crumb { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.topbar .crumb b { color: var(--text); font-weight: 600; }
.topbar .user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4E5969; }
.topbar .user .sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.topbar .avatar {
    width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 600;
}
.topbar .link-out { display: inline-flex; align-items: center; gap: 5px; color: #4E5969; }
.topbar .link-out:hover { color: var(--primary); }

.content { padding: 18px 22px 40px; }

/* ---------- 卡片 / 区块 ---------- */
.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 16px;
}
.card-hd {
    padding: 13px 16px; border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card-hd h3 { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.card-hd .sub { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-left: 6px; }
.card-bd { padding: 16px; }
.card-bd.flush { padding: 0; }

/* ---------- 统计块（天移风格：浅色底 + 线性图标）---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px 16px; display: flex; align-items: center; gap: 13px;
    transition: .18s;
}
.stat:hover { border-color: #C9E6FF; box-shadow: 0 4px 14px rgba(30,159,255,.08); }
.stat .ico {
    width: 40px; height: 40px; border-radius: var(--radius-sm); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.stat .ico svg { width: 20px; height: 20px; }
.stat .num { font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.2px; }
.stat .lbl { font-size: 12.5px; color: var(--text-muted); }
.bg-blue   { background: #E8F3FF; color: #1E9FFF; }
.bg-green  { background: #E8FFEA; color: #00B42A; }
.bg-orange { background: #FFF7E8; color: #FF7D00; }
.bg-purple { background: #F0E8FF; color: #7C3AED; }
.bg-cyan   { background: #E8FFFB; color: #0FC6C2; }
.bg-red    { background: #FFECE8; color: #F53F3F; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
    background: #F7F8FA; text-align: left; padding: 10px 14px;
    font-weight: 600; color: #4E5969; border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
table.tbl tr:hover td { background: #F7F8FA; }
table.tbl td.nowrap, table.tbl th.nowrap { white-space: nowrap; }
table.tbl .r, table.tbl th.r, table.tbl td.r { text-align: right; }
table.tbl .muted, table.tbl td.muted { color: var(--text-muted); font-size: 12.5px; }
table.tbl .mono { font-family: Consolas, Menlo, monospace; font-size: 12.5px; }
.empty { padding: 44px 20px; text-align: center; color: var(--text-muted); font-size: 13.5px; }

/* ---------- 徽章 ---------- */
.badge {
    display: inline-block; padding: 1px 7px; border-radius: 3px;
    font-size: 11.5px; line-height: 1.8; white-space: nowrap; border: 1px solid transparent;
}
.badge-success { background: #E8FFEA; color: #009A29; border-color: #AFF0B5; }
.badge-warning { background: #FFF7E8; color: #D25F00; border-color: #FFCF8B; }
.badge-danger  { background: #FFECE8; color: #CB2634; border-color: #FBACA3; }
.badge-info    { background: #E8FFFB; color: #0B8A87; border-color: #8EDCD9; }
.badge-muted   { background: #F2F3F5; color: #86909C; border-color: #E5E6EB; }
.badge-primary { background: #E8F3FF; color: #0E8AEB; border-color: #B5DAFF; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border: 1px solid var(--border); background: #fff;
    border-radius: var(--radius-ctl); font-size: 13px; cursor: pointer; color: var(--text);
    transition: .15s; white-space: nowrap; font-family: inherit;
}
.btn:hover { background: #F7F8FA; border-color: #C9CDD4; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #CB2634; border-color: #CB2634; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn-warning:hover { background: #D25F00; border-color: #D25F00; }
.btn-sm { padding: 3px 9px; font-size: 12px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 表单控件（全站统一基线 · 填充式） ----------
   用裸 input/select/textarea 选择器而不是 [type=text]，
   这样没写 type 属性的 <input> 也能吃到统一样式，不会出现「有的框有样式、有的没有」。
   样式：浅灰底无边框大圆角（类似 App 表单），hover 底色加深，focus 变白底 + 主色描边 */
input, select, textarea {
    width: 100%;
    height: var(--ipt-h);
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: var(--radius-ctl);
    background-color: var(--ipt-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
input[type=hidden] { display: none; }
/* 兜底：万一出现 input 形式的按钮，不要被文本框样式污染 */
input[type=submit], input[type=button], input[type=reset], input[type=image] {
    width: auto; height: auto; padding: 6px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-ctl); background: #fff; font-size: 13px; cursor: pointer;
}
/* 日期类保留原生控件，否则 Safari/iOS 上选择器会被抹掉 */
input[type=date], input[type=time], input[type=month], input[type=datetime-local] {
    -webkit-appearance: auto; appearance: auto;
}
input[type=checkbox], input[type=radio] {
    width: 15px; height: 15px; min-height: 0; padding: 0; margin: 0;
    border: 0; border-radius: 0;
    -webkit-appearance: auto; appearance: auto;
    accent-color: var(--primary);
    vertical-align: -2px; cursor: pointer; flex-shrink: 0;
}
/* 勾选框 + 文字的组合标签 */
.cb-label, label.cb-label {
    display: inline-flex; align-items: center; gap: 6px; width: auto;
    font-size: 13px; color: var(--text); cursor: pointer; user-select: none;
}
.cb-label input[type=checkbox], .cb-label input[type=radio] { margin: 0; }
.hint .cb-label, .cb-label.sm { font-size: 12px; color: var(--text-muted); }
input[type=file] {
    height: auto; padding: 8px 12px; font-size: 12.5px; cursor: pointer;
    -webkit-appearance: auto; appearance: auto;
}
input[type=file]::file-selector-button {
    margin-right: 10px; padding: 4px 11px; border: 1px solid transparent;
    border-radius: var(--radius-sm); background: #fff; color: var(--text);
    font-family: inherit; font-size: 12.5px; cursor: pointer; transition: .15s;
}
input[type=file]::file-selector-button:hover { background: #F7F8FA; border-color: var(--ipt-border-hover); }
textarea {
    height: auto; min-height: 92px; padding: 9px 13px;
    line-height: 1.7; resize: vertical;
}
select {
    padding-right: 32px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 4.4L6 7.8l3.4-3.4' fill='none' stroke='%2386909C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    background-size: 12px 12px;
}
select::-ms-expand { display: none; }

input::placeholder, textarea::placeholder { color: #A9AEB8; }
input:hover:not(:disabled):not([readonly]):not(:focus),
select:hover:not(:disabled):not(:focus),
textarea:hover:not(:disabled):not([readonly]):not(:focus) { background-color: var(--ipt-bg-hover); }
input:focus, select:focus, textarea:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 159, 255, .14);
}
input:disabled, select:disabled, textarea:disabled,
input[readonly], textarea[readonly] {
    background-color: #F7F8FA; color: #A9AEB8; border-color: transparent; cursor: not-allowed;
}
select:disabled { background-image: none; }

/* 尺寸 / 状态修饰 */
.ipt-sm { height: var(--ipt-h-sm); padding: 0 10px; font-size: 13px; }
.ipt-lg { height: var(--ipt-h-lg); padding: 0 14px; font-size: 15px; }
.ipt-mono { font-family: Consolas, Menlo, monospace; font-size: 13px; letter-spacing: .2px; }
.ipt-error, select.ipt-error, textarea.ipt-error { border-color: var(--danger); }
.ipt-error:focus, select.ipt-error:focus, textarea.ipt-error:focus {
    border-color: var(--danger); box-shadow: 0 0 0 3px rgba(245, 63, 63, .14);
}

/* 表单行：label 定宽右对齐，与控件垂直居中（有 hint 也不跑偏） */
.form-row { display: flex; align-items: flex-start; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.form-row > label {
    flex: 0 0 var(--label-w); width: var(--label-w);
    min-height: var(--ipt-h);
    display: flex; align-items: center; justify-content: flex-end;
    text-align: right; color: #4E5969; font-size: 13.5px; line-height: 1.4;
}
.form-row > label.req::after { content: '*'; color: var(--danger); margin-left: 3px; }
.form-row .ctl { flex: 1 1 220px; min-width: 200px; }
.form-row > .hint, .form-row .ctl > .hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; line-height: 1.6; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; min-width: 130px; }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* 筛选栏：控件与按钮同高，间距统一 */
.filters {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid var(--border-light); background: #FCFCFD;
}
.filters input, .filters select { width: auto; min-width: 140px; }
.filters input[type=text] { min-width: 180px; }
.filters > .btn { height: var(--ipt-h); }
.filters > span { color: var(--text-muted); font-size: 12.5px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 6px; padding: 12px 16px; flex-wrap: wrap; }
.pager-info { color: var(--text-muted); font-size: 12.5px; margin-right: 6px; }
.pager-item {
    padding: 4px 11px; border: 1px solid var(--border); border-radius: var(--radius-ctl);
    font-size: 13px; color: var(--text); background: #fff;
}
.pager-item:hover { background: #F2F3F5; }
.pager-item.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 提示条 ---------- */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 13.5px; border: 1px solid transparent; }
.alert-success { background: #E8FFEA; border-color: #AFF0B5; color: #009A29; }
.alert-danger { background: #FFECE8; border-color: #FBACA3; color: #CB2634; }
.alert-info { background: #E8F3FF; border-color: #B5DAFF; color: #0E8AEB; }
.alert-warning { background: #FFF7E8; border-color: #FFCF8B; color: #D25F00; }

/* ---------- 详情页 ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.detail-item { background: #F7F8FA; border-radius: var(--radius-sm); padding: 11px 13px; min-width: 0; }
.detail-item .k { font-size: 12px; color: var(--text-muted); }
.detail-item .v { font-size: 14.5px; font-weight: 600; margin-top: 2px; word-break: break-all; overflow-wrap: anywhere; }

/* 进度条 */
.progress { height: 6px; background: #E5E6EB; border-radius: 6px; overflow: hidden; margin-top: 6px; }
.progress > i { display: block; height: 100%; background: var(--primary); border-radius: 6px; }

/* 图表 */
/* 操作说明步骤条 */
.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 11px; line-height: 1.8; color: #4E5969; font-size: 13.5px; }
.steps li b { color: var(--text); }
.steps-sub {
    margin-top: 7px; padding: 10px 13px; background: #F7F8FA;
    border-radius: var(--radius-sm); color: #4E5969; font-size: 13px; line-height: 2;
}
/* 表格里可直接点击修改的字段（如显示卡号） */
.editable { display: inline-flex; align-items: center; gap: 3px; }
.editable .pen { color: #C9CDD4; font-size: 13px; }
.editable:hover, .editable:hover .pen { color: var(--primary); }
.editable:hover { border-bottom: 1px dashed var(--primary); }

/* 行内操作按钮组：表格里的表单不换行、不留默认 margin */
.ops form { display: inline-flex; margin: 0; }

/* ---------- 小开关（卡板管理操作开关 / 提现开关等） ---------- */
.sw-bar {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch;
}
.sw-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 13px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: #fff; min-width: 232px; flex: 0 1 auto;
}
.sw-item.on { border-color: #A7D9B4; background: #F4FBF6; }
.sw-item .sw-txt { flex: 1; min-width: 0; }
.sw-item .sw-txt b { display: block; font-size: 13px; font-weight: 600; }
.sw-item .sw-txt span { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.5; }
.sw { position: relative; flex: 0 0 auto; width: 42px; height: 23px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sw i {
    position: absolute; inset: 0; background: #C9CDD4; border-radius: 23px;
    transition: background .18s ease; display: block;
}
.sw i::after {
    content: ''; position: absolute; left: 2px; top: 2px; width: 19px; height: 19px;
    background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s ease;
}
.sw input:checked + i { background: var(--success, #00B42A); }
.sw input:checked + i::after { transform: translateX(19px); }
.sw-lock { opacity: .45; cursor: not-allowed; }

/* 通知/提示条 */
.notice {
    display: flex; align-items: flex-start; gap: 8px; padding: 10px 13px; border-radius: var(--radius-sm);
    background: #F2F3F5; color: #4E5969; font-size: 12.5px; line-height: 1.7;
}
.notice.warn { background: #FFF7E8; color: #D25F00; }
.notice .ic { flex: 0 0 auto; margin-top: 2px; }

/* 金额大字 */
.money-lg { font-size: 26px; font-weight: 700; letter-spacing: .5px; }
.money-lg small { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-left: 4px; }

.chart { width: 100%; height: auto; display: block; }
.lgd { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); align-items: center; }
.lgd i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: 2px; }

/* 代码 */
pre.code {
    background: #1D2129; color: #E5E6EB; padding: 14px 16px; border-radius: var(--radius-sm);
    overflow-x: auto; font-family: Consolas, Menlo, monospace; font-size: 12.5px; line-height: 1.7;
}
code.inline {
    background: #F2F3F5; padding: 1px 6px; border-radius: 3px; font-size: 12.5px;
    font-family: Consolas, Menlo, monospace; word-break: break-all; overflow-wrap: anywhere;
}

/* 模态框 */
.modal-mask {
    position: fixed; inset: 0; background: rgba(29,33,41,.55);
    display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff; border-radius: var(--radius); width: 100%; max-width: 520px;
    max-height: 86vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(29,33,41,.22);
}
.modal-hd { padding: 14px 18px; border-bottom: 1px solid var(--border-light); font-weight: 600; display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; }
.modal-bd { padding: 16px 18px; }
.modal-ft { padding: 12px 18px; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: 10px; }
.close-x { cursor: pointer; color: var(--text-muted); font-size: 20px; line-height: 1; background: none; border: 0; }

/* 表格内操作链接 */
.ops { display: flex; gap: 8px; flex-wrap: wrap; }
.ops a { font-size: 12.5px; }

/* 两栏布局（卡片详情 / 首页 / 设置页） */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-col.tight { gap: 0 24px; }

/* 响应式 */
@media (max-width: 900px) {
    .sidebar { width: 60px; }
    .sidebar .brand .name, .sidebar .brand .sub, .nav a span.txt,
    .nav-group .group-head .t, .nav-group .group-head .chev { display: none; }
    .nav a, .nav-group .group-head { justify-content: center; padding-left: 10px; }
    .main { margin-left: 60px; }
    .form-row > label { flex: 0 0 84px; width: 84px; }
    .form-row .ctl { min-width: 160px; }
    .login-side { display: none !important; }
    .login-split { max-width: 420px; }
}

/* ==========================================================
   登录页：左右分栏 + 品牌轮播
   ========================================================== */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: #F2F7FD; padding: 28px;
}
.login-split {
    display: flex; width: 100%; max-width: 940px; min-height: 540px;
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 16px 48px rgba(29,33,41,.10);
}
.login-side {
    flex: 1.15; padding: 40px 38px; display: flex; flex-direction: column;
    background: linear-gradient(158deg, #E6F2FF 0%, #F4F9FF 52%, #EAF1FF 100%);
    position: relative;
}
.login-side .lb { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.login-side .lb .lg {
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #3CAFFF, #1E7FFF); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.login-side .lb .nm { font-size: 15px; font-weight: 600; color: #1D2129; line-height: 1.25; }
.login-side .lb .en { font-size: 11px; color: #6B7A8F; letter-spacing: .4px; }

.slides { position: relative; flex: 1; min-height: 250px; }
.slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
    display: flex; flex-direction: column; justify-content: center; pointer-events: none;
}
.slide.on { opacity: 1; pointer-events: auto; }
.slide h2 { font-size: 23px; font-weight: 600; color: #0E6FD1; line-height: 1.35; margin-bottom: 10px; }
.slide p { font-size: 13.5px; color: #5A6B80; line-height: 1.85; margin-bottom: 18px; }
.slide .pic { display: flex; justify-content: center; }
.dots { display: flex; gap: 7px; margin-top: 18px; }
.dots i {
    width: 7px; height: 7px; border-radius: 50%; background: #BBD8F5; cursor: pointer;
    transition: .2s; display: block;
}
.dots i.on { width: 20px; border-radius: 4px; background: #1E9FFF; }

.login-form {
    flex: 1; max-width: 400px; padding: 44px 40px;
    display: flex; flex-direction: column; justify-content: center;
}
.login-form h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.login-form .sub { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.login-form .field { margin-bottom: 15px; }
.login-form label { display: block; font-size: 13px; color: #4E5969; margin-bottom: 6px; }
.login-form .ipt { position: relative; }
.login-form .ipt > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #86909C; }
.login-form .ipt input { height: var(--ipt-h-lg); padding-left: 40px; }
.login-form .ipt input:focus { box-shadow: 0 0 0 3px rgba(30, 159, 255, .16); }
.login-form .ipt > svg { left: 13px; }
.login-form .ipt .eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: #86909C; cursor: pointer; display: flex; padding: 4px;
}
.login-form .ipt .eye:hover { color: var(--primary); }
.login-form .btn { width: 100%; justify-content: center; height: 40px; font-size: 14px; margin-top: 6px; }
.login-form .foot {
    margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-light);
    font-size: 12px; color: var(--text-muted); text-align: center;
}

/* 兼容旧的单卡登录 */
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 14px; padding: 34px 32px; box-shadow: 0 20px 60px rgba(29,33,41,.12); }
.login-card h2 { font-size: 20px; margin-bottom: 6px; }
.login-card .sub { color: var(--text-muted); font-size: 13px; margin-bottom: 22px; }
.login-card .field { margin-bottom: 14px; }
.login-card label { display: block; font-size: 13px; color: #4E5969; margin-bottom: 6px; }

/* ==========================================================
   小屏：表单纵向排布 + 触控友好尺寸
   ========================================================== */
@media (max-width: 760px) {
    /* 输入框加高到 44px，符合触控目标 ≥44px（App 级手感） */
    input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),
    select { height: 44px; font-size: 15px; padding: 0 14px; border-radius: 12px; }
    select { padding-right: 34px; background-position: right 13px center; }
    textarea { font-size: 15px; border-radius: 12px; }

    /* label 独占一行，输入框整行铺满 */
    .form-row { flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 14px; }
    .form-row > label {
        flex: none; width: auto; min-height: 0;
        justify-content: flex-start; text-align: left; font-size: 13px; color: var(--text-muted);
    }
    .form-row .ctl { flex: 1 1 auto; min-width: 0; }

    /* 筛选栏：控件整行铺满，按钮并排 */
    .filters { gap: 10px; padding: 12px; }
    .filters input, .filters select, .filters input[type=text] { width: 100%; min-width: 0; }
    .filters > .btn { height: 44px; flex: 1 1 40%; justify-content: center; }
    .filters > span { display: none; }

    .inline-form input, .inline-form select { width: 100%; min-width: 0; }
    .btn { min-height: 36px; }

    /* 详情网格：窄屏改为 2 列，避免 minmax(240px) 撑破 320px 屏 */
    .detail-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 9px; }
    .detail-item { padding: 9px 10px; }
    .detail-item .v { font-size: 13.5px; }

    /* 两栏布局收敛为单栏 */
    .two-col { grid-template-columns: 1fr; gap: 14px; }
    .two-col.tight { gap: 0; }
}
