/* ============ 简拓助手后台 - 全局样式 ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; background: #f0f2f5; color: #303133; }

/* ---------- 布局 ---------- */
.layout { min-height: 100vh; }
.side { background: #1d2b3a; color: #fff; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.logo, .login-logo { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg,#409eff,#67c23a); color: #fff; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.brand-txt b { display: block; font-size: 16px; color: #fff; }
.brand-txt span { font-size: 12px; color: #8fa3b8; }
.side-menu { border-right: none; background: transparent; flex: 1; }
.side-menu .el-menu-item { color: #c0ccda; }
.side-menu .el-menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-menu .el-menu-item.is-active { background: #409eff; color: #fff; border-radius: 6px; margin: 2px 8px; }
/* 【2026-09-29 配色修复】el-sub-menu（直播间获客父菜单）深色主题适配：
   Element Plus 默认给 .el-sub-menu__title 用深色文字 + 浅色 hover 背景、
   展开的子菜单容器透出浅色底，在深色侧栏里形成刺眼浅色条带、父项文字几乎看不清。
   这里与上方 .el-menu-item 的深色定制保持同一套颜色。 */
.side-menu .el-sub-menu__title { color: #c0ccda; }
.side-menu .el-sub-menu__title:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-menu .el-sub-menu .el-menu { background: transparent; }
.side-menu .mi { margin-right: 8px; }
.topbar { background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; box-shadow: 0 1px 4px rgba(0,21,41,.08); }
.page-title { font-size: 17px; font-weight: 600; }
.top-right { display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #303133; outline: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #409eff; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.main { padding: 20px; }

/* ---------- 统计卡片 ---------- */
.stat { position: relative; overflow: hidden; }
.stat-ic { position: absolute; right: -14px; top: -14px; width: 72px; height: 72px; border-radius: 50%; opacity: .12; color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; }
.stat-label { color: #909399; font-size: 13px; }
.stat-val { font-size: 30px; font-weight: 700; margin: 6px 0 2px; }
.stat-sub { color: #c0c4cc; font-size: 12px; }

/* ---------- 进度条 ---------- */
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bar-name { width: 48px; text-align: right; color: #606266; font-size: 13px; }
.bar-track { flex: 1; }
.bar-num { width: 56px; font-weight: 600; color: #409eff; }

/* ---------- 任务配置（2026-09-29 重设计） ---------- */
.wf-toolbar { border-radius: 8px; }
.wf-field .el-form-item { margin-bottom: 4px; }
.wf-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wf-step { flex: none; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #409eff, #67c23a); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.wf-title { flex: 1; min-width: 200px; }
.wf-title b { font-size: 15px; margin-right: 8px; }
.wf-title .muted { font-size: 12px; }
.wf-head-right { display: flex; align-items: center; gap: 10px; }
.wf-sub { font-size: 12px; color: #909399; font-weight: 600; letter-spacing: 1px; margin: 10px 0 8px; }
.wf-swgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.wf-sw { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #ebeef5; border-radius: 8px; background: #f8fafc; transition: all .15s; }
.wf-sw:hover { border-color: #b3d8ff; background: #ecf5ff; }
.wf-sw-t { min-width: 0; }
.wf-sw-l { font-size: 13px; font-weight: 600; color: #303133; }
.wf-sw-h { font-size: 12px; color: #909399; margin-top: 2px; line-height: 1.4; }
.wf-params { margin-top: 8px; }
.wf-card { border-radius: 8px; }
.wf-card.wf-off .el-card__body { opacity: .55; transition: opacity .25s; }

/* ---------- 通用工具 ---------- */
.flex-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt16 { margin-top: 16px; }
.muted { color: #909399; font-size: 13px; }
/* 【2026-10-01 配置变更日志】弹窗内每条变更一行 */
.log-line { margin: 3px 0; line-height: 22px; word-break: break-all; }
.link-a { color: #409eff; text-decoration: none; }
.link-a:hover { text-decoration: underline; }
.link-result { color: #67c23a; font-size: 13px; }
a { color: #409eff; }

/* ---------- 登录页 ---------- */
.login-bg { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#1d2b3a 0%,#2b4a66 50%,#409eff 100%); }
.login-card { width: 400px; max-width: 92vw; background: #fff; border-radius: 14px; padding: 36px 32px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.login-head { text-align: center; margin-bottom: 26px; }
.login-logo { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; font-size: 26px; }
.login-head h2 { margin: 0 0 4px; font-size: 20px; }
.login-head p { margin: 0; color: #909399; font-size: 13px; }
.login-btn { width: 100%; margin-top: 6px; }
.login-tip { margin-top: 16px; text-align: center; color: #c0c4cc; font-size: 12px; }

/* ---------- install.php 兼容工具类 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 18px; border: none; border-radius: 6px; background: #409eff; color: #fff; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn:hover { opacity: .9; }
.btn-green { background: #67c23a; }
.btn-red { background: #f56c6c; }
.btn-gray { background: #909399; }
.flex { display: flex; align-items: center; }
