/* 翼维帮 Web 端样式 · 界面 v2（V3.2 电信蓝亮色） */
:root {
  --primary: #0071BC;
  --primary-dark: #005A94;
  --primary-soft: #EAF4FC;
  --danger: #C7000B;
  --success: #1E9E63;
  --warn: #C07B00;
  --text: #1F2D3D;
  --text-2: #5A7290;
  --text-3: #9FB3CC;
  --border: #E4EAF2;
  --bg: #EEF2F7;
  --card-shadow: 0 1px 3px rgba(20,40,70,.04);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }

/* ===== 登录页 ===== */
.login-page { display: flex; height: 100vh; background: linear-gradient(135deg, #0071BC 0%, #005A94 55%, #003F6B 100%); position: relative; overflow: hidden; }
.login-page .deco { position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); }
.login-page .deco.d1 { width: 480px; height: 480px; top: -140px; right: -100px; }
.login-page .deco.d2 { width: 320px; height: 320px; bottom: -90px; left: -80px; }
.login-page .deco.d3 { width: 180px; height: 180px; bottom: 18%; right: 14%; background: rgba(0,212,255,.10); }
.login-side { position: absolute; left: 8vw; top: 50%; transform: translateY(-50%); color: #fff; max-width: 420px; z-index: 2; }
.login-side .ls-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border-radius: 20px; padding: 6px 14px; font-size: 13px; margin-bottom: 20px; }
.login-side h2 { font-size: 30px; font-weight: 700; line-height: 1.5; margin-bottom: 14px; }
.login-side p { font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.85); }
.login-box { position: absolute; right: 8vw; top: 50%; transform: translateY(-50%); width: 380px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,20,50,.35); padding: 36px 34px; z-index: 2; }
.login-box .lb-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.logo-badge { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #0071BC, #00A6E8); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.login-box h1 { font-size: 22px; color: var(--text); }
.login-box .sub { color: var(--text-2); font-size: 13px; margin-bottom: 26px; }
.login-box label { display: block; font-size: 13px; color: var(--text-2); margin: 14px 0 6px; }
.login-box input { width: 100%; height: 44px; border: 1px solid #DCE4EE; border-radius: 10px; padding: 0 14px; font-size: 14px; outline: none; transition: border .2s, box-shadow .2s; background: #fff; color: var(--text); }
.login-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,188,.12); }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row button { height: 44px; padding: 0 14px; border: 1px solid var(--primary); background: #fff; color: var(--primary); border-radius: 10px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.code-row button:hover { background: var(--primary-soft); }
.login-btn { width: 100%; height: 46px; margin-top: 24px; border: none; border-radius: 10px; background: linear-gradient(135deg, #0071BC, #0093E0); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .2s; }
.login-btn:hover { opacity: .9; }
.login-msg { font-size: 13px; color: var(--danger); margin-top: 12px; min-height: 18px; }

/* ===== 主框架 ===== */
.app { display: flex; height: 100vh; }
.sidebar { width: 224px; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; }
.side-logo { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #F0F3F8; }
.side-logo .logo-badge { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; }
.side-logo b { font-size: 16px; color: var(--text); font-weight: 700; }
.menu { flex: 1; padding: 12px 10px; overflow-y: auto; }
.menu-group { font-size: 11px; color: var(--text-3); padding: 14px 10px 6px; letter-spacing: 1px; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: #4A5E75; cursor: pointer; margin-bottom: 2px; transition: background .15s, color .15s; user-select: none; }
.menu-item .mi { width: 18px; text-align: center; font-size: 15px; }
.menu-item:hover { background: #F2F7FC; color: var(--primary); }
.menu-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
/* 导航角标：红色圆圈数字 */
.nav-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 9px;
  background: #D64545;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: 60px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 26px; flex-shrink: 0; }
.crumb { font-size: 16px; font-weight: 600; color: var(--text); }
.crumb small { font-weight: 400; color: var(--text-3); font-size: 12px; margin-left: 10px; }
.tb-right { display: flex; align-items: center; gap: 18px; }
.tb-user { display: flex; align-items: center; gap: 10px; }
.tb-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #0071BC, #00A6E8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.tb-user .nm { font-size: 14px; color: var(--text); }
.tb-user .rl { font-size: 11px; color: var(--primary); background: var(--primary-soft); border-radius: 4px; padding: 1px 6px; }
.tb-exit { font-size: 13px; color: var(--text-2); cursor: pointer; }
.tb-exit:hover { color: var(--danger); }
.tb-admin-btn { margin-left: 8px; }
.tb-admin-btn .admin-switch { font-size: 13px; padding: 7px 14px; border-radius: 8px; cursor: pointer; border: 1px solid var(--primary); color: var(--primary); background: #fff; font-weight: 600; transition: all .15s; }
.tb-admin-btn .admin-switch:hover, .tb-admin-btn .admin-switch.on { background: var(--primary); color: #fff; }
.content { flex: 1; overflow-y: auto; padding: 22px 26px; }

/* 学习视图全屏（PPT 逐页学习：隐藏导航，缩略图+大图占满） */
body.garden-fs .sidebar { display: none; }
body.garden-fs .topbar { display: none; }
body.garden-fs .content { padding: 14px; }

/* ===== 卡片与表格 ===== */
.card { background: #fff; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--card-shadow); padding: 18px 20px; margin-bottom: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; background: #F7F9FC; color: var(--text-2); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid #F0F3F8; color: var(--text); }
tr:hover td { background: #FAFCFE; }
.tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 20px; font-weight: 500; white-space: nowrap; }
.tag-blue { background: var(--primary-soft); color: var(--primary); }
.tag-green { background: #E8F7EF; color: #1E9E63; }
.tag-orange { background: #FFF4E5; color: #E8830C; }
.tag-red { background: #FDEBEC; color: var(--danger); }
.tag-gray { background: #F0F3F8; color: var(--text-2); }
.tag-warn { background: #FFF4E0; color: #C07B00; }

/* ===== 按钮 ===== */
.btn { display: inline-flex; align-items: center; gap: 5px; border: none; border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: all .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-plain { background: #fff; border: 1px solid #DCE4EE; color: #4A5E75; }
.btn-plain:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: #fff; border: 1px solid #F1C6C9; color: var(--danger); }
.btn-danger:hover { background: #FDEBEC; }
.btn-success { background: #fff; border: 1px solid #B8E3CD; color: #1E9E63; }
.btn-success:hover { background: #E8F7EF; }
.btn-warn { background: #fff; border: 1px solid #F1D9A8; color: var(--warn); }
.btn-warn:hover { background: #FFF4E0; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 工作台 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: 12px; border: 1px solid var(--border); padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.stat-ico { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.stat-ico.s1 { background: var(--primary-soft); } .stat-ico.s2 { background: #E8F7EF; } .stat-ico.s3 { background: #FFF4E0; } .stat-ico.s4 { background: #FDEBEC; }
.stat-card .sv { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.2; }
.stat-card .sl { font-size: 12px; color: var(--text-2); }
.quick-row { display: flex; gap: 12px; flex-wrap: wrap; }
.quick-btn { flex: 1; min-width: 160px; border: 1px dashed #C4D6E8; border-radius: 12px; padding: 22px; text-align: center; color: var(--primary); cursor: pointer; background: #FBFDFF; transition: all .15s; }
.quick-btn:hover { background: var(--primary-soft); border-style: solid; }
.quick-btn .q-ico { font-size: 26px; margin-bottom: 8px; }
.quick-btn .q-tx { font-size: 14px; font-weight: 600; }
.quick-btn .q-sb { font-size: 12px; color: var(--text-2); margin-top: 4px; }

/* ===== 表单 ===== */
.form-row { display: flex; align-items: flex-start; margin-bottom: 16px; }
.form-label { width: 130px; font-size: 13px; color: #4A5E75; line-height: 1.6; padding-top: 8px; flex-shrink: 0; white-space: normal; word-break: break-all; }
.form-row > .form-input, .form-row > .form-select, .form-row > .form-textarea,
.form-row > .grid-2, .form-row > div:not(.form-label) { flex: 1; min-width: 0; }
.form-input, .form-select, .form-textarea { min-height: 36px; border: 1px solid #DCE4EE; border-radius: 8px; padding: 0 12px; font-size: 13px; outline: none; transition: border .15s, box-shadow .15s; background: #fff; color: var(--text); }
/* 通用输入框（练题/纠错等页面 .ipt 统一美化，与表单控件一致） */
.ipt {
  min-height: 36px;
  border: 1px solid #DCE4EE;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  outline: none;
  transition: border .15s, box-shadow .15s;
  background: #fff;
  color: var(--text);
  box-sizing: border-box;
}
.ipt:focus, .ipt:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,188,.10); }
.ipt::placeholder { color: #A7B9CE; }
/* 搜索框（带放大镜感：浅底圆角） */
.ipt-search {
  min-height: 36px;
  border: 1px solid #DCE4EE;
  border-radius: 18px;
  padding: 6px 16px 6px 34px;
  font-size: 13px;
  outline: none;
  transition: border .15s, box-shadow .15s;
  background: #F7F9FC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238AA3BF' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E") 12px center no-repeat;
  color: var(--text);
  box-sizing: border-box;
}
.ipt-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,188,.10); background-color: #fff; }
.ipt-search::placeholder { color: #A7B9CE; }
/* 穿梭框双栏保护（防止被挤压过窄） */
.transfer .col { min-width: 260px; }
.form-textarea { padding: 10px 12px; min-height: 80px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,188,.10); }
.form-select { cursor: pointer; }
.msg { font-size: 13px; padding: 10px 0; }
.msg.ok { color: var(--success); }
.msg.err { color: var(--danger); }
.empty { text-align: center; color: var(--text-3); padding: 30px 0; font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ===== 穿梭框 ===== */
.transfer { display: flex; gap: 12px; flex-wrap: wrap; }
.transfer .col { flex: 1; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; min-width: 300px; }
.transfer .col-head { padding: 9px 14px; font-size: 13px; font-weight: 600; background: #F7F9FC; color: var(--text); display: flex; justify-content: space-between; }
.transfer .col.right .col-head { background: var(--primary-soft); color: var(--primary); }
.transfer .col-body { padding: 10px; }
.transfer .col-list { max-height: 240px; overflow-y: auto; border-top: 1px solid #F0F3F8; flex: 1; }
.transfer .item { display: flex; align-items: center; gap: 8px; padding: 7px 14px; font-size: 13px; border-bottom: 1px solid #F5F8FB; cursor: pointer; }
.transfer .item:hover { background: #FAFCFE; }
.transfer .item .ph { color: var(--text-3); font-size: 11px; }
.transfer .item .dp { margin-left: auto; font-size: 11px; color: var(--text-2); }

/* ===== 部门树 ===== */
.dept-tree-row { display: flex; align-items: center; font-size: 13px; line-height: 26px; }
.dept-tree-row .tw { width: 16px; display: inline-flex; justify-content: center; cursor: pointer; color: var(--text-3); font-weight: 600; flex-shrink: 0; }
.dept-tree-row .dept-name { cursor: pointer; padding: 2px 6px; border-radius: 6px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dept-tree-row .dept-name:hover { background: #F2F7FC; }
.dept-tree-row .dept-name.sel { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.dept-tree-row .dept-cnt { font-size: 12px; color: var(--text-2); flex-shrink: 0; }

/* ===== 弹窗 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(15,30,50,.45); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #fff; border-radius: 14px; min-width: 520px; max-width: 880px; max-height: 86vh; overflow-y: auto; padding: 24px 26px; box-shadow: 0 24px 80px rgba(10,30,60,.3); }
.modal.modal-lg { width: 94vw; max-width: 94vw; height: 92vh; max-height: 92vh; display: flex; flex-direction: column; }
.modal.modal-lg .modal-body { flex: 1; overflow: auto; min-height: 0; }
.modal h3 { font-size: 16px; margin-bottom: 18px; color: var(--text); }
.btn-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ===== 工具 ===== */
.notice { background: #FFF8EE; border: 1px solid #F1D9A8; border-radius: 8px; padding: 10px 14px; font-size: 12px; color: #8A6D1F; margin-bottom: 14px; line-height: 1.8; }
.tree-box { border: 1px solid var(--border); border-radius: 8px; padding: 8px; max-height: 180px; overflow-y: auto; }
