/* TKhelper 管理后台 */
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; background: #f5f7fa; }

.page { padding: 16px 20px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
.card { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.muted { color: #909399; font-size: 12px; }
.pager { margin-top: 14px; display: flex; justify-content: flex-end; }

.login-wrap { height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.login-card { width: 360px; background: #fff; border-radius: 12px; padding: 34px 30px 26px;
  box-shadow: 0 12px 40px rgba(30,27,75,.35); }
.login-title { font-size: 20px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.login-sub { font-size: 12px; color: #9ca3af; margin-bottom: 22px; }

.layout-aside { width: 200px; background: #1e293b; }
.layout-aside .logo { color: #fff; font-weight: 700; padding: 18px 20px; font-size: 16px;
  letter-spacing: .5px; border-bottom: 1px solid rgba(255,255,255,.08); }
.layout-aside .el-menu { border-right: none; background: transparent; }
.layout-header { background: #fff; display: flex; align-items: center; justify-content: flex-end;
  padding: 0 20px; height: 52px; box-shadow: 0 1px 3px rgba(0,0,0,.05); gap: 14px; z-index: 5; }
.layout-main { background: #f5f7fa; overflow-y: auto; }

.tag-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.form-tip { color: #909399; font-size: 12px; line-height: 1.5; margin-top: 4px; }

/* 定时采集条件表单 */
.cond-group { font-size: 12px; font-weight: 700; color: #4f46e5; margin: 14px 0 8px;
  border-left: 3px solid #4f46e5; padding-left: 8px; }
.cat-tree { border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 12px; max-height: 260px; overflow-y: auto; }
.cat-parent { margin: 4px 0; }
.cat-children { display: flex; flex-wrap: wrap; gap: 2px 16px; padding-left: 24px; }
.cat-children .el-checkbox { margin-right: 0; height: 22px; }

/* 模板块编辑 */
.tpl-block { border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.tpl-block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tpl-img-row { display: flex; align-items: center; gap: 12px; }
.tpl-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; }
