/* XL网络验证系统 - 后台样式 */
* { box-sizing: border-box; }
body { font-family: -apple-system, "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif; background: #f2f4f8; }
a { color: #1e9fff; text-decoration: none; }

/* 头部 */
.wy-header { background: linear-gradient(90deg, #1b2a41, #223a5e); height: 60px; border-bottom: none; }
.wy-logo { float: left; height: 60px; line-height: 60px; padding-left: 22px; color: #fff; font-size: 17px; }
.wy-logo img { width: 32px; height: 32px; border-radius: 50%; vertical-align: middle; margin-right: 10px; background: #fff; }
.wy-logo em { font-style: normal; font-size: 12px; opacity: .6; margin-left: 10px; }
.wy-nav-right { position: absolute; right: 20px; top: 0; background: none !important; }
.wy-nav-right .layui-nav-item > a { color: #dce6f2; }

/* 侧边 */
.wy-side { width: 220px; top: 60px; background: #1f2d3d; }
.wy-side-scroll { height: 100%; overflow-y: auto; }
.wy-side .layui-nav { background: transparent; width: 100%; padding: 8px 0; }
.wy-side .layui-nav-item > a { color: #c6d2e0; height: 44px; line-height: 44px; font-size: 14px; }
.wy-side .layui-nav-item > a:hover { background: rgba(255,255,255,.06); }
.wy-side .layui-nav-itemed > a { color: #fff; background: rgba(30,159,255,.14) !important; }
.wy-side .layui-nav-child dd a { color: #9fb0c4; font-size: 13px; padding-left: 46px; height: 40px; line-height: 40px; }
.wy-side .layui-nav-child dd.layui-this a { color: #fff; background: #1e9fff !important; }
.wy-side .layui-nav-tree .layui-nav-bar { display: none; }

/* 主体 */
.wy-body { left: 220px; top: 60px; bottom: 44px; padding: 0; }
.wy-crumb { height: 44px; line-height: 44px; padding: 0 22px; background: #fff; border-bottom: 1px solid #eef1f6; color: #667; font-size: 13px; }
.wy-content { padding: 20px 22px 40px; }
.wy-footer { left: 220px; height: 44px; line-height: 44px; padding: 0 22px; background: #fff; border-top: 1px solid #eef1f6; color: #99a3b0; font-size: 12px; }

/* 卡片 */
.wy-card { background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(20,30,50,.06); margin-bottom: 18px; }
.wy-card-hd { padding: 14px 18px; border-bottom: 1px solid #f2f4f8; font-size: 15px; color: #223; display: flex; align-items: center; justify-content: space-between; }
.wy-card-hd .t { font-weight: 600; }
.wy-card-bd { padding: 18px; }
.wy-card-bd.np { padding: 0; }

/* 统计卡 */
.wy-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 18px; }
.wy-stat-item { background: #fff; border-radius: 6px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(20,30,50,.06); position: relative; overflow: hidden; }
.wy-stat-item .lbl { color: #8a94a6; font-size: 13px; }
.wy-stat-item .val { font-size: 26px; font-weight: 600; color: #223; margin-top: 8px; }
.wy-stat-item .ico { position: absolute; right: 16px; top: 18px; font-size: 34px; opacity: .12; }
.wy-stat-item.blue .val { color: #1e9fff; }
.wy-stat-item.green .val { color: #16b777; }
.wy-stat-item.orange .val { color: #ff9f28; }
.wy-stat-item.purple .val { color: #8b5cf6; }

/* 表格 */
.wy-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wy-table th, .wy-table td { padding: 11px 12px; border-bottom: 1px solid #f2f4f8; text-align: left; }
.wy-table th { background: #fafbfd; color: #667; font-weight: 600; white-space: nowrap; }
.wy-table tr:hover td { background: #fafcff; }
.wy-table-wrap { overflow-x: auto; }

/* 标签 */
.wy-tag { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; line-height: 20px; }
.wy-tag.ok { background: #e8f9f1; color: #16b777; }
.wy-tag.no { background: #ffeceb; color: #ff5722; }
.wy-tag.off { background: #f1f2f5; color: #8a94a6; }
.wy-tag.blue { background: #e8f4ff; color: #1e9fff; }

/* 表单 */
.wy-form .layui-form-label { width: 120px; }
.wy-form .layui-input-block { margin-left: 150px; }
.wy-form .layui-form-item { margin-bottom: 16px; }
.wy-tip { color: #98a2b3; font-size: 12px; margin-top: 6px; line-height: 20px; }

/* 分页 */
.wy-pager { padding: 14px 18px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wy-pager-item { display: inline-block; min-width: 34px; height: 32px; line-height: 32px; text-align: center; padding: 0 10px; border: 1px solid #e4e9f0; border-radius: 4px; color: #556; font-size: 13px; background: #fff; }
.wy-pager-item:hover { border-color: #1e9fff; color: #1e9fff; }
.wy-pager-item.active { background: #1e9fff; border-color: #1e9fff; color: #fff; }
.wy-pager-item.disabled { color: #c5ccd6; pointer-events: none; }
.wy-pager-info { margin-left: auto; color: #98a2b3; font-size: 12px; }

/* 搜索条 */
.wy-search { padding: 16px 18px; background: #fff; border-radius: 6px; margin-bottom: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wy-search input, .wy-search select { height: 36px; border: 1px solid #e4e9f0; border-radius: 4px; padding: 0 10px; font-size: 13px; outline: none; }
.wy-search input:focus, .wy-search select:focus { border-color: #1e9fff; }

/* 密钥展示 */
.wy-key { font-family: Consolas, Monaco, monospace; background: #f6f8fb; padding: 2px 8px; border-radius: 3px; font-size: 12px; color: #d0555a; word-break: break-all; }
.wy-copy { cursor: pointer; color: #1e9fff; font-size: 12px; margin-left: 6px; }

/* 登录页 */
.wy-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1b2a41 0%, #223a5e 45%, #2f5d8f 100%); position: relative; overflow: hidden; }
.wy-login-page:before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: rgba(30,159,255,.18); top: -220px; right: -160px; }
.wy-login-page:after { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: rgba(30,159,255,.10); bottom: -180px; left: -120px; }
.login-wrapper { position: relative; z-index: 2; width: 400px; max-width: 92vw; }
.login-card { background: #fff; border-radius: 8px; padding: 32px 30px 24px; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.login-card .logo { text-align: center; margin-bottom: 6px; }
.login-card .logo img { width: 68px; height: 68px; border-radius: 50%; }
.login-card h2 { text-align: center; font-size: 18px; color: #223; margin: 10px 0 22px; font-weight: 600; }
.login-card .layui-input { height: 44px; border-radius: 4px; }
.login-card .btn { height: 44px; line-height: 44px; width: 100%; border-radius: 4px; background: #1e9fff; color: #fff; border: none; font-size: 15px; cursor: pointer; }
.login-card .btn:hover { background: #0d8bf0; }
.login-links { display: flex; justify-content: space-between; font-size: 13px; margin-top: 14px; color: #8a94a6; }
.login-copyright { text-align: center; color: rgba(255,255,255,.55); font-size: 12px; margin-top: 18px; }
.login-oauth { text-align: center; margin: 16px 0 4px; }
.login-oauth a { display: inline-block; margin: 0 10px; color: #8a94a6; font-size: 22px; }
.login-oauth a:hover { color: #1e9fff; }

@media (max-width: 768px) {
    .wy-side { display: none; }
    .wy-body, .wy-footer { left: 0; }
    .wy-logo em { display: none; }
}

/* --- 移动端可点性：登录页社交图标与链接不小于 44px --- */
.login-oauth a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 6px; }
.login-links { align-items: center; }
.login-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* --- 后台小按钮与卡片内链接：保证 44px 可点区域 --- */
.layui-btn-sm { min-height: 44px; line-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; }
.wy-card-hd a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.wy-card-hd { display: flex; align-items: center; }
.wy-card-hd .t { flex: 1; }

/* --- 所有 layui 按钮与表单控件保证 44px 可点高度 --- */
.layui-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.layui-btn.layui-btn-sm { min-height: 44px; line-height: 44px; }
select, .layui-input, .layui-textarea { min-height: 44px; }
