/* 腾讯会议直播平台 · Web 客户端（风格参照保互通综合视频） */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #3d6eff; --purple: #7c5cff; --orange: #ff9f2e; --teal: #14c9a3;
  --red: #f5483b; --green: #2bb45a;
  --bg: #f4f6fb; --card: #ffffff; --line: #e8ecf4;
  --t1: #1c2438; --t2: #5b6478; --t3: #9aa3b8;
  --radius: 12px;
}
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--t1); font-size: 14px;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--t1); }
a { color: var(--blue); text-decoration: none; }

/* ---------- 登录页 ---------- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eaf0ff 0%, #f6f9ff 45%, #eefaf6 100%);
}
.login-card {
  width: 400px; background: var(--card); border-radius: 16px; padding: 40px 36px;
  box-shadow: 0 12px 48px rgba(31, 51, 102, .12);
}
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.login-logo .logo-ic {
  width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #3d6eff, #7c5cff);
  color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center;
}
.login-logo h1 { font-size: 20px; }
.login-sub { color: var(--t3); font-size: 12px; margin-bottom: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; color: var(--t2); font-size: 13px; margin-bottom: 6px; }
.field input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px;
  outline: none; background: #fafbfe; transition: border .15s;
}
.field input:focus { border-color: var(--blue); background: #fff; }
.btn {
  border: none; border-radius: 8px; padding: 10px 18px; font-size: 14px;
  background: #eef1f8; color: var(--t1); transition: all .15s;
}
.btn:hover { filter: brightness(.96); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line); }
.btn-block { width: 100%; height: 44px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.login-tip { margin-top: 16px; color: var(--t3); font-size: 12px; text-align: center; }
.alert { border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.alert.err { background: #fdecec; color: #c53030; }
.alert.ok { background: #e7f7ee; color: #1e7e46; }
.alert.warn { background: #fff6e5; color: #9c6b12; }

/* ---------- 顶部导航 ---------- */
.topbar {
  height: 56px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 50;
}
.topbar .logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.topbar .logo-ic {
  width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #3d6eff, #7c5cff);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--t2); font-size: 13px; }
.topbar .who b { color: var(--t1); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 7px; }

/* ---------- 主布局 ---------- */
.main { display: flex; gap: 20px; padding: 20px 24px; max-width: 1120px; margin: 0 auto; }
.content { flex: 1; min-width: 0; }

.panel-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--t1); }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quick-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 18px 12px 14px; text-align: center; cursor: pointer; transition: all .15s;
}
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31,51,102,.08); }
.quick-card .ic {
  width: 46px; height: 46px; border-radius: 12px; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
  position: relative;
}
.quick-card .ic svg { width: 24px; height: 24px; }
/* 右下角「＋」角标：强调这里是「发起 / 预约」动作，与下方「加入 / 观看」页签区分 */
.quick-card .ic::after {
  content: '+'; position: absolute; right: -5px; bottom: -5px;
  width: 17px; height: 17px; border-radius: 50%; background: #fff;
  font-size: 13px; line-height: 17px; font-weight: 700; text-align: center;
  box-shadow: 0 1px 5px rgba(31, 51, 102, .22);
}
.quick-card.blue .ic { background: var(--blue); }
.quick-card.purple .ic { background: var(--purple); }
.quick-card.orange .ic { background: var(--orange); }
.quick-card.green .ic { background: var(--green); }
.quick-card.teal .ic { background: var(--teal); }
.quick-card.blue .ic::after { color: var(--blue); }
.quick-card.purple .ic::after { color: var(--purple); }
.quick-card.orange .ic::after { color: var(--orange); }
.quick-card.green .ic::after { color: var(--green); }
.quick-card.teal .ic::after { color: var(--teal); }
.quick-card .name { font-size: 14px; color: var(--t1); line-height: 1.35; }
.quick-card .sub { font-size: 11px; color: var(--t3); margin-top: 3px; line-height: 1.4; }

/* 桌面端：主页快捷卡片 3 列宫格（两行），其余场景侧栏横向条目 */
@media (min-width: 901px) {
  .quick-grid { grid-template-columns: 1fr; gap: 10px; }
  .quick-card { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 14px; }
  .quick-card .ic { margin: 0; flex-shrink: 0; }
  .quick-card .tx { flex: 1; min-width: 0; }
  .quick-card .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .quick-card .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #homeBox .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  #homeBox .quick-card { flex-direction: column; text-align: center; padding: 16px 10px 13px; }
  #homeBox .quick-card .ic { margin: 0 auto 10px; }
  #homeBox .quick-card .tx { display: block; }
  #homeBox .quick-card .name, #homeBox .quick-card .sub { white-space: normal; }
}
/* 平板/中屏：侧栏全宽，三列宫格保留 */
@media (max-width: 900px) {
  .quick-card { flex-direction: column; text-align: center; padding: 14px 8px 12px; }
  .quick-card .tx { display: contents; }
}

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.stat-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat-box .num { font-size: 20px; font-weight: 700; }
.stat-box .lab { font-size: 12px; color: var(--t3); margin-top: 2px; }

/* ---------- 主页（单列居中，与其他页签表头一致） ---------- */
.home-box { max-width: 780px; margin: 0 auto; }
.home-box .panel-title { margin: 22px 0 12px; font-size: 15px; }
#homeBox .stat-row { margin-top: 14px; }
#homeBox .home-grid { margin-top: 6px; }
.home-hero {
  background: linear-gradient(135deg, #3d6eff, #7c5cff); color: #fff;
  border-radius: 14px; padding: 14px 18px; margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.home-hero .hh-date { font-size: 12px; opacity: .85; }
.home-hero h2 { margin: 0; font-size: 16px; }

/* ---------- 列表页头部菜单（标题 + 本页发起 / 加入操作） ---------- */
.page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
.page-head .ph-tx { min-width: 0; }
.page-head .ph-tx b { display: block; font-size: 15px; color: var(--t1); }
.page-head .ph-tx i { display: block; font-style: normal; font-size: 12px; color: var(--t3); margin-top: 2px; }
.page-head .ph-ops { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .page-head { padding: 11px 12px; }
  .page-head .ph-ops { width: 100%; }
  .page-head .ph-ops .btn { flex: 1; min-width: 0; }
  /* 单个按钮（如「← 返回」）不拉伸占满整行 */
  .page-head .ph-ops .btn:only-child { flex: 0 1 auto; }
}
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-go {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; transition: all .15s; font: inherit;
}
.home-go:hover { border-color: var(--blue); box-shadow: 0 6px 16px rgba(31, 51, 102, .08); }
.home-go .hg-ic {
  width: 40px; height: 40px; border-radius: 10px; background: #f0f4ff; color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.home-go .hg-ic svg { width: 22px; height: 22px; }
.home-go .hg-tx { flex: 1; min-width: 0; }
.home-go .hg-tx b { display: block; font-size: 14px; color: var(--t1); }
.home-go .hg-tx i { display: block; font-style: normal; font-size: 12px; color: var(--t3); margin-top: 2px; }
.home-go .hg-arrow { color: #c3cbdb; font-size: 18px; }

/* ---------- 标签管理弹窗（华保课堂） ---------- */
.cat-mgr { max-height: 46vh; overflow-y: auto; margin-top: 8px; }
.cat-mgr-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.cat-mgr-row:last-child { border-bottom: none; }
.cat-mgr-row .cm-name { font-weight: 600; font-size: 14px; color: var(--t1); min-width: 88px; }
.cat-mgr-row .cm-cnt { flex: 1; font-size: 12px; color: var(--t3); }
.cat-mgr-row .cm-ops { display: flex; gap: 6px; flex-shrink: 0; }

/* ---------- 编辑成员弹窗：分区排版 ---------- */
.modal .eu-sec { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.modal .eu-sec:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.modal .eu-sec > h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--t2); display: flex; align-items: center; gap: 8px; }
.modal .eu-sec > h4::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--blue); }
.modal .eu-sec .field + .field { margin-top: 10px; }
.recperm-list { max-height: 180px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fafbfd; }

/* ---------- 华保课堂栏目条（栏目 = 标签） ---------- */
.cat-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: 13px; color: var(--t2); cursor: pointer; user-select: none; line-height: 1.4;
}
.cat-chip:hover { border-color: var(--blue); color: var(--blue); }
.cat-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.cat-chip .cc-ops { display: inline-flex; gap: 4px; }
.cat-chip .cc-ops i { font-style: normal; font-size: 11px; opacity: .6; cursor: pointer; padding: 0 1px; }
.cat-chip .cc-ops i:hover { opacity: 1; }
.cat-chip.active .cc-ops i { opacity: .85; }

/* ---------- 列表 ---------- */
/* 导航行：业务页签在左，系统管理入口独立在右，避免一行挤 9 个页签 */
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs {
  display: flex; gap: 4px; background: #eaedf5; border-radius: 9px; padding: 3px;
  width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  /* 允许收缩换行：页签过多时自动换到下一行，避免右侧「系统管理」挡住最后的页签 */
  min-width: 0; flex: 1 1 auto;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  border: none; background: transparent; padding: 7px 15px; border-radius: 7px;
  font-size: 14px; color: var(--t2); white-space: nowrap;
}
.tab-ic { display: inline-flex; align-items: center; justify-content: center; }
.tab-ic svg { width: 17px; height: 17px; }
.tab-tx { display: inline-flex; }
.tab .tx-short { display: none; }
.tab.active { background: #fff; color: var(--t1); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.tab.active .tab-ic { color: var(--blue); }

/* 系统管理下拉（仅管理员可见） */
.sys-nav { position: relative; flex-shrink: 0; display: inline-flex; }
.sys-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--t1);
  font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.sys-btn:hover { border-color: #c6d3ea; background: #f7f9ff; }
.sys-btn.on { border-color: var(--blue); color: var(--blue); background: #f2f6ff; }
.sys-ic { font-size: 13px; color: var(--t2); }
.sys-btn.on .sys-ic { color: var(--blue); }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #8a94a6; margin-left: 1px; transition: transform .15s; }
.sys-btn.on .caret { transform: rotate(180deg); border-top-color: var(--blue); }
.sys-pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 228px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 32px rgba(31,51,102,.14);
}
.sys-pop[hidden] { display: none; }
.sys-pop-group { font-size: 11px; color: var(--t3); padding: 8px 10px 4px; letter-spacing: .5px; }
.sys-item {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
  border: none; background: transparent; padding: 9px 10px; border-radius: 8px; cursor: pointer;
}
.sys-item:hover { background: #f3f7ff; }
.sys-item.active { background: #eaf1ff; }
.sys-item .si-name { font-size: 13.5px; color: var(--t1); }
.sys-item.active .si-name { color: var(--blue); font-weight: 600; }
.sys-item .si-sub { font-size: 11px; color: var(--t3); }

.item-list { display: flex; flex-direction: column; gap: 10px; }
.item-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: flex; align-items: center; gap: 14px;
}
.item-card .item-ic {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 19px; color: #fff;
}
.item-ic svg { width: 21px; height: 21px; }
.item-ic.meeting { background: var(--blue); }
.item-ic.live-push { background: var(--orange); }
.item-ic.live-inter { background: var(--purple); }
.item-main { flex: 1; min-width: 0; }
.item-main .title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-main .meta { color: var(--t3); font-size: 12px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* 自动录制 / 共享设置的文字提示（仅本人与管理员可见） */
.item-hint { margin-top: 6px; font-size: 12px; line-height: 1.5; color: #9a6b00; background: #fff8e6; border: 1px solid #f3e2ae; border-radius: 8px; padding: 6px 10px; word-break: break-all; }
/* 管理员批量删除：勾选条与卡片勾选框 */
.selbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0; padding: 8px 12px; background: #f7f9fc; border: 1px solid #e8ecf4; border-radius: 10px; }
.selbar .sel-all { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t2, #4a5568); cursor: pointer; user-select: none; }
.selbar .sel-tip { font-size: 12px; color: #9aa3b2; }
.item-sel { display: flex; align-items: center; flex-shrink: 0; padding-right: 2px; }
.item-sel input[type="checkbox"] { width: 17px; height: 17px; cursor: pointer; accent-color: #2f62d8; }
@media (max-width: 640px) { .selbar .sel-tip { display: none; } }
.item-actions { display: flex; gap: 8px; flex-shrink: 0; }

.badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 500; }
.badge.scheduled { background: #e8f0ff; color: #2f62d8; }
.badge.ongoing, .badge.live { background: #fdecec; color: #d3352a; }
.badge.ended { background: #f0f2f7; color: var(--t3); }
.badge.idle { background: #fff6e5; color: #9c6b12; }
.badge.src { background: #eefaf6; color: #0d8f74; }
.badge.pwd { background: #f3efff; color: #6b46e5; }

.empty { text-align: center; color: var(--t3); padding: 48px 0; font-size: 13px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20, 28, 50, .45); z-index: 100;
  display: flex; align-items: center; justify-content: center;
}
.modal {
  width: 440px; max-height: 86vh; overflow: auto; background: #fff; border-radius: 14px; padding: 24px;
}
/* 大窗弹窗（编辑成员等）：窗口的 90% */
.modal.modal-lg { width: 90vw; max-width: none; max-height: 90vh; }
.modal h3 { font-size: 16px; margin-bottom: 18px; }
.modal .ops { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.seg { display: flex; background: #eef1f8; border-radius: 8px; padding: 3px; gap: 3px; }
.seg-item { flex: 1; border: none; background: transparent; padding: 8px 0; border-radius: 6px; font-size: 13px; color: var(--t2); }
.seg-item.active { background: #fff; color: var(--t1); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.form-tip { font-size: 12px; color: var(--t3); margin-top: 6px; line-height: 1.6; }

/* ---------- 直播页 ---------- */
.live-page { display: flex; flex-direction: column; height: 100vh; }
.live-body { flex: 1; display: flex; gap: 16px; padding: 16px 20px; min-height: 0; }
.player-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.player-wrap {
  position: relative; flex: 1; background: #10131c; border-radius: 12px; overflow: hidden; min-height: 0;
}
.player-wrap video { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.player-wrap:fullscreen video { object-fit: contain; }
.player-mask {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #aab2c8; gap: 12px; font-size: 14px; background: rgba(16,19,28,.6);
}
.player-mask .big { font-size: 16px; color: #e6eaf5; }
.pip-cell {
  position: absolute; right: 14px; bottom: 14px; width: 220px; height: 124px; background: #1a1f2e;
  border: 1px solid rgba(255,255,255,.15); border-radius: 10px; overflow: hidden; z-index: 5;
}
.pip-cell video { width: 100%; height: 100%; object-fit: cover; }
.pip-label {
  position: absolute; left: 8px; top: 6px; color: #fff; font-size: 11px; z-index: 6;
  background: rgba(0,0,0,.35); padding: 1px 8px; border-radius: 10px;
}
.live-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chat-panel {
  width: 320px; flex-shrink: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel .hd { padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; }
.chat-list { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg .who { font-size: 12px; color: var(--t3); }
.chat-msg .who b { color: var(--t2); }
.chat-msg .txt { font-size: 13px; margin-top: 2px; word-break: break-all; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; outline: none; }

.push-info { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.push-info h4 { font-size: 14px; margin-bottom: 10px; }
.push-info .row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.push-info input { flex: 1; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 12px; color: var(--t2); background: #fafbfe; }

.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 300;
  background: rgba(28, 36, 56, .92); color: #fff; padding: 10px 22px; border-radius: 8px; font-size: 13px;
}
@media (max-width: 900px) {
  .main { flex-direction: column; padding: 14px; gap: 14px; }
  .side { width: 100%; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .live-body { flex-direction: column; }
  .chat-panel { width: 100%; height: 260px; }
  .dep-grid { grid-template-columns: 1fr; }
  .admin-head { flex-direction: column; }
  .admin-ops { flex-wrap: wrap; }
}

/* ---------- 移动端（手机 / 平板竖屏 / 打包 App WebView） ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; } /* 移动端基准字号略大，保证可读性 */
  .topbar { padding: 0 12px; gap: 8px; height: 50px; }
  .topbar .logo { font-size: 15px; gap: 8px; }
  .topbar .who { font-size: 12px; max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { padding: 12px; gap: 12px; }
  .quick-grid { gap: 10px; }
  .quick-card { padding: 14px 8px 12px; }
  .quick-card .ic { width: 40px; height: 40px; }
  .quick-card .ic svg { width: 21px; height: 21px; }
  .nav-row { flex-wrap: wrap; }
  .sys-nav { margin-left: auto; }
  .item-card { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .item-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .btn { min-height: 40px; } /* 触摸目标 ≥ 40px */
  .btn-sm { min-height: 34px; }
  .btn-block { min-height: 46px; }
  .field input { height: 44px; font-size: 16px; } /* ≥16px 防 iOS 聚焦自动放大 */
  .login-card { width: calc(100vw - 24px); max-width: 400px; padding: 28px 22px; }
  .modal { width: calc(100vw - 20px); max-height: 88vh; padding: 18px; }
  .modal .ops .btn { flex: 1; min-height: 42px; }
  .chat-panel { height: 240px; }
  .tbl { font-size: 12px; }
  .pager { justify-content: center; }
  .stat-box .num { font-size: 17px; }
  /* 手机 H5 优化（普通用户 / 主播为主）：列表操作按钮铺满行宽，触摸更稳 */
  .item-actions { display: flex; }
  .item-actions .btn { flex: 1 1 auto; }
  .home-hero { padding: 12px 14px; }
  .home-hero h2 { font-size: 15px; }
  .home-grid { grid-template-columns: 1fr; gap: 10px; }
  .cat-mgr-row { flex-wrap: wrap; }
  /* 管理员功能优先 Web 视图：手机端隐藏录制存档页签，系统管理收起为纯图标 */
  .tab[data-tab="records"] { display: none !important; }
  .sys-btn span:not(.sys-ic) { display: none; }
  .sys-btn .caret { display: none; }
  .sys-btn { padding: 0 11px; }
  /* 栏目条横向滚动，避免标签多时换行占太高 */
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
}

/* 平板横屏小高度优化 */
@media (max-height: 560px) and (orientation: landscape) {
  .topbar { height: 44px; }
}

/* ---------------- 账号管理（管理员） ---------------- */
.admin-card {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.05);
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.admin-head h3 { margin: 0; font-size: 15px; color: var(--t1); }
.admin-head .form-tip { margin-top: 2px; }
.admin-ops { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; align-items: center; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid #eef1f6;
  white-space: nowrap;
}
.tbl th { color: #7a8699; font-weight: 500; background: #f8fafc; }
.tbl td b { color: #1f2d3d; }
.tbl select {
  padding: 3px 6px;
  border: 1px solid #d5dbe5;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  color: #1f2d3d;
}
.ops-cell { display: flex; gap: 6px; }
.empty { color: #98a2b3; text-align: center; padding: 24px 0; }
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 2px 0;
}
.pager .pg-info { font-size: 12px; color: #7a8699; }
.item-ic.live-meeting { background: #eef4ff; color: #3568d4; }

/* 企业部署配置 */
.dep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
}
@media (max-width: 900px) { .dep-grid { grid-template-columns: 1fr; } }
.item-main .title.title-link { cursor: pointer; }
.item-main .title.title-link:hover { color: #3568d4; }
.live-filter { margin-bottom: 12px; }
.list-filter { margin-bottom: 10px; }

/* ---------------- 录制回看 ---------------- */
.rec-layout { display: flex; gap: 16px; align-items: flex-start; }
.rec-side { width: 240px; flex: 0 0 240px; border-right: 1px solid var(--line); padding-right: 12px; }
.rec-depts { max-height: 520px; overflow-y: auto; }
.rec-dept { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.rec-dept:hover { background: #f0f4ff; }
.rec-dept.active { background: #3568d4; color: #fff; }
.rec-dept.active .rec-dept-n { color: rgba(255,255,255,.8); }
.rec-dept-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-dept-n { font-size: 12px; color: #8a94a6; flex: 0 0 auto; }
.rec-main { flex: 1; min-width: 0; }
.rec-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 12px; }
.rec-head b { font-size: 16px; }
.rec-perm { font-size: 13px; color: #8a94a6; }
.rec-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rec-info { min-width: 0; }
.rec-title { font-weight: 600; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-title-link { color: #1f2d3d; text-decoration: none; cursor: pointer;
  border-bottom: 1px dashed #b9c6da; padding-bottom: 1px; }
.rec-title-link:hover { color: var(--blue); border-bottom-color: var(--blue); }
.rec-title-text { color: #8a94a6; }
.rec-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: #8a94a6; }
@media (max-width: 900px) {
  .rec-layout { flex-direction: column; }
  .rec-side { width: 100%; flex: none; border-right: none; padding-right: 0; }
  .rec-depts { max-height: 220px; }
}

/* 管理页子页签（账号管理：成员 / 组织机构 / 角色） */
.sub-tabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.sub-tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 9px 14px; font-size: 14px; color: var(--t2); cursor: pointer; }
.sub-tab:hover { color: var(--blue); }
.sub-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
@media (max-width: 640px) {
  .sub-tab { padding: 8px 10px; font-size: 13px; }
}

/* 附加授权部门多选列表 */
.recperrm-list, .recperm-list { max-height: 200px; overflow-y: auto; border: 1px solid var(--line);
  border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.recperrm-item, .recperm-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.recperrm-item:hover, .recperm-item:hover { background: #f0f4ff; }
.recperrm-item.own, .recperm-item.own { color: #8a94a6; }
.recperrm-item input, .recperm-item input { width: auto; margin: 0; }
.rec-link { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; min-width: 0; }
.share-link { color: #3568d4; text-decoration: none; font-weight: 600; }
.share-link:hover { text-decoration: underline; }
.rec-link a { color: #3568d4; text-decoration: none; max-width: 420px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.rec-link a:hover { text-decoration: underline; }

/* ================= 智慧党建 ================= */
.badge.party { background: #fdecec; color: #c02a1e; }
.field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  outline: none; background: #fafbfe; resize: vertical; font-size: 14px; line-height: 1.6;
}
.field textarea:focus { border-color: var(--blue); background: #fff; }

.party-wrap { display: flex; flex-direction: column; gap: 10px; }
.party-mine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.party-mine > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.party-mine .lab { display: block; font-size: 12px; color: var(--t3); margin-bottom: 4px; }
.party-mine b { font-size: 15px; color: var(--t1); }

.party-layout { display: flex; gap: 14px; align-items: flex-start; }
.party-main { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.party-sec-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600; color: var(--t1); margin: 6px 0 10px; }
.party-sec-hd .form-tip { font-weight: 400; margin: 0; }
.party-sec-hd:not(:first-child) { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.party-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.topic-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: all .15s; background: #fbfcff; }
.topic-card:hover { border-color: #c9d6f7; transform: translateY(-1px); }
.topic-card.active { border-color: var(--red); background: #fff7f6; box-shadow: 0 4px 14px rgba(217,43,43,.1); }
.topic-title { font-size: 14px; font-weight: 600; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-meta { font-size: 12px; color: var(--t3); margin-top: 6px; }

/* 华保课堂 · 栏目卡片（一级入口：一个栏目对应一个标签） */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; width: 100%; }
.cat-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; cursor: pointer; transition: all .15s; }
.cat-card:hover { border-color: #c9d6f7; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(47,98,216,.1); }
.cat-card .cc-ic { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #eaf1ff, #f6f9ff); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.cat-card .cc-ic svg { width: 22px; height: 22px; }
.cat-card .cc-name { font-size: 15px; font-weight: 700; color: var(--t1); }
.cat-card .cc-meta { font-size: 12px; color: var(--t3); margin-top: 6px; }
.cat-card .cc-users { font-size: 12px; color: #0d8f74; margin-top: 4px; }
.cat-card.stats-card { background: linear-gradient(150deg, #f2f7ff, #eef3fb); border-color: #c9d6f7; }
.cat-card.stats-card .cc-ic { background: linear-gradient(135deg, #2f62d8, #5a8bf0); color: #fff; }
.cat-crumb { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.cat-crumb .cc-name { font-weight: 700; color: var(--t1); }

/* 党课列表（自适应，不出滚动条） */
.lesson-list { display: flex; flex-direction: column; }
.lesson-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.lesson-item:last-child { border-bottom: none; }
.li-main { flex: 1; min-width: 0; }
.li-t { font-size: 14px; font-weight: 600; color: var(--t1); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.li-t .badge { flex: none; }
.li-desc { font-size: 12.5px; color: var(--t3); margin-top: 3px; }
.li-meta { font-size: 12px; color: var(--t3); margin-top: 5px; display: flex; gap: 4px 14px; flex-wrap: wrap; }
.li-meta b { color: var(--t2); font-weight: 600; }
.li-ops { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 210px; }

.party-rank { width: 340px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
/* 学习统计子页面：整宽排行榜面板 */
.rank-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.rank-panel .rank-list { margin-top: 8px; }
.rank-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14px; }
.rank-head .seg { width: 118px; }
.rank-sub { font-size: 12px; color: var(--t3); margin: 8px 0 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rank-date { height: 26px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: 12px; background: #fff; }
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #fafbfe; border: 1px solid transparent; }
.rank-row.top1 { background: linear-gradient(90deg,#fff6e0,#fffdf7); border-color: #f2dfae; }
.rank-row.top2 { background: linear-gradient(90deg,#f4f7fb,#fdfefe); border-color: #dbe5f0; }
.rank-row.top3 { background: linear-gradient(90deg,#fdf2ea,#fffdfb); border-color: #f0dcc9; }
.rank-row .rk { width: 24px; text-align: center; font-weight: 700; color: var(--t2); font-size: 13px; flex: none; }
.rank-row .nm { flex: 1; min-width: 0; }
.rank-row .n1 { font-size: 13.5px; color: var(--t1); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .n2 { font-size: 11.5px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .tt { text-align: right; flex: none; }
.rank-row .tt b { display: block; font-size: 13px; color: #c02a1e; }
.rank-row .tt span { font-size: 11px; color: var(--t3); }
.rank-foot { display: flex; gap: 8px; margin-top: 12px; }
.rank-foot .btn { flex: 1; }

/* 上传进度条 */
.prog { height: 8px; border-radius: 6px; background: #eef1f8; overflow: hidden; }
.prog-bar { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #3d6eff, #7c5cff); transition: width .2s; }

/* 云录制挑选 */
.rec-pick { margin-top: 8px; max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.rec-pick:empty { display: none; }
.rec-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.rec-item:last-child { border-bottom: none; }
.rec-item:hover { background: #f6f9ff; }
.rec-item.active { background: #eef4ff; }
.ri-main { flex: 1; min-width: 0; }
.ri-t { font-size: 13px; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ri-m { font-size: 11.5px; color: var(--t3); margin-top: 3px; }
.ri-op { font-size: 12px; color: var(--blue); flex: none; }

@media (max-width: 1000px) {
  .party-layout { flex-direction: column; }
  .party-rank { width: 100%; }
  .party-mine { grid-template-columns: repeat(2, 1fr); }
  .li-ops { max-width: none; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .party-topics { grid-template-columns: 1fr 1fr; }
  .party-mine { grid-template-columns: 1fr 1fr; gap: 8px; }
  .party-mine > div { padding: 10px 12px; }
  .party-main { padding: 12px; }
  .rank-panel { padding: 12px; }
  .rank-panel + .rank-panel, .party-mine + .rank-panel { margin-top: 10px; }
  .rank-head .seg { width: 104px; }
}
/* 超窄屏：统计卡退回单列 */
@media (max-width: 380px) {
  .party-mine { grid-template-columns: 1fr; }
}

/* ---------------- 录制自检（本地转存页顶部） ---------------- */
.rec-check {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 12px;
}
.rc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.rc-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; padding: 4px 0; border-top: 1px dashed var(--line); }
.rc-row:first-of-type { border-top: none; }
.rc-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: #c0392b; }
.rc-dot.ok { background: #27ae60; }
.rc-dot.warn { background: #e6a23c; }
.rc-name { font-weight: 600; flex: none; min-width: 176px; color: var(--t1, #1f2937); }
.rc-detail { color: var(--t2, #475467); line-height: 1.55; word-break: break-all; }
@media (max-width: 760px) {
  .rc-row { flex-wrap: wrap; }
  .rc-name { min-width: 0; }
}

/* ==================== H5 / 响应式优化（电脑 + 手机） ==================== */

/* 顶部栏：账号信息分级显示，窄屏只留姓名，保证「退出」始终可点 */
.topbar .who { display: inline-flex; align-items: baseline; gap: 0; max-width: 46vw; overflow: hidden; white-space: nowrap; }
.topbar .who .who-org,
.topbar .who .who-id { overflow: hidden; text-overflow: ellipsis; }

/* 页面主容器：宽屏不贴边，窄屏留白收窄 */
.main { padding: 20px clamp(12px, 2.2vw, 24px); }

/* 业务页签：窄屏横向滑动时右侧渐隐提示，避免看起来被截断 */
@media (max-width: 720px) {
  .nav-row { gap: 8px; margin-bottom: 10px; }
  .tabs {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
    padding-right: 26px;
  }
  .tab { padding: 7px 13px; font-size: 13.5px; }
  .sys-btn { height: 36px; padding: 0 12px; font-size: 13.5px; }
}

/* 手机端：侧栏（快捷操作 + 统计）压缩成一屏内可放下的紧凑区，避免正文被顶得太低 */
@media (max-width: 640px) {
  .side { width: 100%; }
  .panel-title { font-size: 14px; margin-bottom: 10px; }
  .quick-grid { gap: 8px; }
  .quick-card { padding: 12px 6px 10px; border-radius: 10px; }
  .quick-card .ic { width: 38px; height: 38px; margin-bottom: 6px; border-radius: 10px; }
  .quick-card .ic svg { width: 20px; height: 20px; }
  .quick-card .ic::after { width: 15px; height: 15px; font-size: 12px; line-height: 15px; right: -4px; bottom: -4px; }
  .quick-card .name { font-size: 12.5px; }
  .quick-card .sub { display: none; }

  /* ---- 业务导航：手机端改为底部固定 Tab 栏（图标 + 短名），拇指可达、不遮挡正文 ---- */
  .nav-row { justify-content: flex-end; min-height: 0; margin-bottom: 6px; gap: 6px; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    width: 100%; max-width: none; box-sizing: border-box;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); border-radius: 0;
    padding: 6px 2px calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -3px 16px rgba(31, 51, 102, .08);
    -webkit-mask-image: none; mask-image: none;
    overflow: visible; scrollbar-width: none;
  }
  .tab {
    flex-direction: column; gap: 3px; padding: 5px 0 3px;
    font-size: 10.5px; line-height: 1.2; border-radius: 9px;
    color: #7d8798; white-space: nowrap;
  }
  .tab-ic svg { width: 22px; height: 22px; }
  .tab-tx { justify-content: center; }
  .tab.active {
    background: transparent; box-shadow: none;
    color: var(--blue); font-weight: 600;
  }
  .tab .tx-full { display: none; }
  .tab .tx-short { display: inline; }
  /* 底栏占位：避免页面最后一张卡片被固定底栏遮住（含 iPhone 底部安全区） */
  body.has-tabbar { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

  .stat-row { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
  .stat-box { padding: 9px 6px; text-align: center; border-radius: 10px; }
  .stat-box .num { font-size: 17px; line-height: 1.2; }
  .stat-box .lab { font-size: 10.5px; line-height: 1.3; margin-top: 3px; }

  /* 管理类卡片：手机上减少内边距，表格靠横向滚动查看 */
  .admin-card { padding: 14px 12px; border-radius: 10px; }
  .admin-head { gap: 10px; margin-bottom: 10px; }
  .admin-head h3 { font-size: 15px; }
  .admin-ops { width: 100%; }
  .admin-ops .btn { flex: 1 1 auto; }
  .form-tip { font-size: 11.5px; }
  .item-card { gap: 10px; }
  .item-main .title { font-size: 14px; }
  .item-main .meta { gap: 6px; font-size: 11.5px; }
  .seg-item { font-size: 12.5px; padding: 7px 0; }
  .pager { padding: 10px 0 2px; }
}

/* 超窄屏（<380px）：统计条改两列，避免文字挤成一字一行 */
@media (max-width: 380px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .quick-card .ic { width: 34px; height: 34px; }
  .quick-card .ic svg { width: 18px; height: 18px; }
  .quick-card .name { font-size: 12px; }
  .tab { font-size: 10px; }
  .tab-ic svg { width: 20px; height: 20px; }
}

/* 触摸设备：去掉 hover 位移，扩大可点击区域 */
@media (hover: none) {
  .quick-card:hover { transform: none; box-shadow: none; }
  .quick-card:active { transform: scale(.985); }
  .tab, .seg-item, .sys-item, .rec-dept { -webkit-tap-highlight-color: transparent; }
}

/* 窄屏顶栏：只保留姓名，机构与账号隐藏（点开弹窗等场景仍可看到完整信息） */
@media (max-width: 640px) {
  .topbar .who { max-width: 42vw; }
  .topbar .who .who-org,
  .topbar .who .who-id { display: none; }
  .topbar { gap: 10px; }
  .topbar .logo span { font-size: 15px; }
  .topbar #btnLogout { flex: none; }
}

/* 主页统计卡：四列排布（单列居中版式内空间足够） */
#homeBox .stat-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
  #homeBox .stat-row { grid-template-columns: repeat(2, 1fr); }
}


/* ---------- 转存页：磁盘水位提醒 ---------- */
.disk-bar { background: #f7f9fc; border: 1px solid var(--line, #e3e8ef); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.disk-bar.disk-warn { background: #fffaf0; border-color: #f4d9a8; }
.disk-bar.disk-danger { background: #fdf3f2; border-color: #f0c2bd; }
.disk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--t2, #475467); margin-bottom: 6px; }
.disk-head b { color: var(--t1, #1f2937); font-size: 13.5px; }
.disk-track { height: 6px; border-radius: 4px; background: #e6ebf2; overflow: hidden; }
.disk-track i { display: block; height: 100%; background: #3b82f6; border-radius: 4px; transition: width .3s; }
.disk-bar.disk-warn .disk-track i { background: #e6a23c; }
.disk-bar.disk-danger .disk-track i { background: #c0392b; }
.disk-bar .form-tip { margin: 6px 0 0; }
@media (max-width: 640px) {
  .disk-head { gap: 6px; font-size: 12.5px; }
  .disk-bar { padding: 9px 11px; }
}

/* ---------- 转存资源页（管理员） ---------- */
.asset-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.asset-chip {
  font-size: 12px; color: #475467; background: #f2f5fa;
  border: 1px solid #e3e8ef; border-radius: 999px; padding: 3px 10px;
}
.asset-ops { white-space: nowrap; }
.asset-ops .btn { margin-right: 4px; }
.asset-ops .btn:last-child { margin-right: 0; }
@media (max-width: 640px) {
  .asset-chips { gap: 4px; }
  .asset-chip { font-size: 11.5px; padding: 2px 8px; }
  .asset-ops .btn { margin: 0 4px 4px 0; }
}

/* 转存资源表：路径长文本允许折行，保证操作列始终可见 */
.tbl td .form-tip { word-break: break-all; }
.tbl td:nth-child(1) { max-width: 420px; }
.tbl td:nth-child(2), .tbl td:nth-child(5) { white-space: nowrap; }

.tbl.asset-tbl { table-layout: fixed; }
.tbl.asset-tbl td, .tbl.asset-tbl th { word-break: break-all; overflow-wrap: anywhere; vertical-align: top; }
.tbl.asset-tbl td:nth-child(2), .tbl.asset-tbl td:nth-child(5) { white-space: normal; }
@media (max-width: 900px) {
  .tbl.asset-tbl th:nth-child(4), .tbl.asset-tbl td:nth-child(4),
  .tbl.asset-tbl th:nth-child(6), .tbl.asset-tbl td:nth-child(6) { display: none; }
}
.tbl.asset-tbl .badge { white-space: nowrap; }
.tbl.asset-tbl td:nth-child(7) { white-space: nowrap; }
.tbl.asset-tbl .asset-ops { display: flex; gap: 4px; flex-wrap: wrap; }
.tbl.asset-tbl .asset-ops .btn { margin: 0; }
