/* ============================================================================
 * PAD端 & 移动端 独立参会终端样式表 (严格参照根目录 PAD端.jpg 架构设计)
 * 支持：PAD 16:9 横屏双栏布局 <-> 手机端竖屏单栏布局 自动响应式切换
 * ============================================================================ */
:root {
  --header-bg: #9b1b1b;
  --party-red: #9b1b1b;        /* 主题主色（动态可调） */
  --party-red-dark: #7a0c0c;
  --party-red-light: #b82828;
  --party-gold: #e6b85c;
  --party-soft-bg: rgba(155, 27, 27, 0.06);
  --party-soft-hover: rgba(155, 27, 27, 0.11);
  --party-border-tint: rgba(155, 27, 27, 0.24);
  --pad-header-gradient: linear-gradient(90deg, #841717 0%, #9b1b1b 55%, #b82828 100%);
  --pad-page-bg: #f4f6f9;      /* PAD 整体主背景色（可在后台自定义） */
  --pad-main-bg: #ffffff;      /* PAD 主工作区背景色 */
  --pad-pane-bg: #f8fafc;      /* PAD 侧栏/底栏协调浅底色 */
  --pad-gate-bg: linear-gradient(135deg, #450a0a 0%, #7a0c0c 52%, #9b1b1b 100%); /* 入会门禁遮罩背景（与PC管理后台登录页保持一致） */
  --pad-viewer-bg: #eef2f6;    /* 资料阅读区衬底色（可在后台自定义） */
  --accent-blue: var(--party-red);
  --bg-main: #f4f5f7;
  --card-bg: #ffffff;
  --text-primary: #222222;
  --text-secondary: #666666;
  --border-line: #e2e5ec;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--pad-page-bg, #f4f6f9);
  color: var(--text-primary);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  /* 默认全屏铺满无黑框；若在后台切换为卡片留边模式 (data-pad-frame="card") 则自动展开四周背景边距 */
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px) 0;
}

html[data-pad-frame="card"] body {
  padding: max(14px, env(safe-area-inset-top, 14px)) 14px max(10px, env(safe-area-inset-bottom, 10px)) 14px;
}

input, textarea, select {
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* 1. 顶部栏（模块标题 + 会议室 + 在线状态同行紧凑显示，不上下叠行） */
.pad-top-bar {
  min-height: 52px;
  height: auto;
  background: var(--pad-header-gradient, linear-gradient(90deg, #841717 0%, #9b1b1b 55%, #b82828 100%));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 18px;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
  z-index: 20;
}

html[data-pad-frame="card"] .pad-top-bar {
  border-radius: 12px 12px 0 0;
}

html[data-pad-header-tone="light"] .pad-top-bar {
  color: #0f172a;
  border-bottom: 2px solid var(--party-border-tint);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.top-left-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.top-title-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.top-left-title h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

.top-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

.room-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #fde68a;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

html[data-pad-header-tone="light"] .room-badge {
  background: var(--party-soft-bg);
  color: var(--party-red);
  border-color: var(--party-border-tint);
}

.net-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1.4;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.net-pill.online { background: rgba(16, 185, 129, 0.25); color: #d1fae5; border: 1px solid rgba(110, 231, 183, 0.65); }
.net-pill.unsynced { background: rgba(245, 158, 11, 0.28); color: #fef3c7; border: 1px solid rgba(252, 211, 77, 0.78); }
.net-pill.offline { background: rgba(239, 68, 68, 0.26); color: #fee2e2; border: 1px solid rgba(252, 165, 165, 0.72); }

html[data-pad-header-tone="light"] .net-pill.online {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}
html[data-pad-header-tone="light"] .net-pill.unsynced {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}
html[data-pad-header-tone="light"] .net-pill.offline {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.top-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.top-action-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}
.top-action-btn:hover, .top-action-btn.active {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

html[data-pad-header-tone="light"] .top-action-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
}
html[data-pad-header-tone="light"] .top-action-btn:hover,
html[data-pad-header-tone="light"] .top-action-btn.active {
  background: var(--party-soft-bg);
  border-color: var(--party-border-tint);
  color: var(--party-red);
}

.switch-room-btn {
  background: rgba(253, 230, 138, 0.18);
  border: 1px solid rgba(253, 230, 138, 0.55);
  color: #fde68a;
}
.switch-room-btn:hover {
  background: rgba(253, 230, 138, 0.28);
  border-color: #fde68a;
  color: #fef3c7;
}
html[data-pad-header-tone="light"] .switch-room-btn {
  background: var(--party-soft-bg);
  border: 1px solid var(--party-border-tint);
  color: var(--party-red);
  font-weight: 700;
}

.logout-pad-btn {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(252, 165, 165, 0.6);
  color: #fee2e2;
}
.logout-pad-btn:hover {
  background: rgba(239, 68, 68, 0.36);
  border-color: #fca5a5;
  color: #ffffff;
}
html[data-pad-header-tone="light"] .logout-pad-btn {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-weight: 700;
}
html[data-pad-header-tone="light"] .logout-pad-btn:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}

/* 会议资料页：议题折叠/展开卡片 */
.agenda-fold-card {
  flex-shrink: 0;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.agenda-fold-card.active {
  border-color: var(--party-red);
  background: var(--party-soft-bg);
}
.agenda-fold-header {
  padding: 11px 12px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
}
.agenda-fold-header:hover {
  background: rgba(15, 23, 42, 0.025);
}
.agenda-fold-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  margin-top: 1px;
  transition: all 0.15s;
}
.agenda-fold-card.expanded .agenda-fold-toggle {
  background: #fef2f2;
  color: var(--party-red);
  border-color: var(--party-border-tint);
}
.agenda-fold-body {
  padding: 0 12px 11px 12px;
  border-top: 1px dashed #e2e8f0;
}

/* 2. 中间主工作区（PAD端 16:9 横屏与手机端竖屏自适应） */
.pad-main-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  background: var(--pad-main-bg, #ffffff);
}

.pad-chat-panel {
  padding: 18px 22px;
  width: 100%;
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* PAD端.jpg 的“会议信息”左右分栏架构 */
.meeting-info-split {
  display: grid;
  grid-template-columns: 38% 62%;
  width: 100%;
  height: 100%;
}

.info-left-pane {
  border-right: 1px solid var(--border-line);
  padding: 16px 24px 20px;
  overflow-y: auto;
  background: var(--pad-pane-bg, #fafbfc);
  display: flex;
  flex-direction: column;
}

.info-field-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-line);
}

.info-field-row:first-child {
  padding-top: 4px;
}

.info-field-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #475569;
  flex-shrink: 0;
  margin-top: 1px;
}

.info-field-content {
  flex: 1;
  min-width: 0;
}

.info-field-content .label {
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 3px;
}

.info-field-content .val {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.45;
  word-break: break-word;
}

/* 手写原迹签到独立卡片与三按钮规整排版 */
.sig-checkin-card {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  padding: 14px 15px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sig-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.sig-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sig-card-title-bar {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--party-red);
  flex-shrink: 0;
}

.sig-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.sig-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.sig-status-badge.is-signed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.sig-status-badge.is-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.sig-card-tip {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  margin-top: -2px;
}

.sig-canvas-box {
  position: relative;
  width: 100%;
  height: 118px;
  background: #fffdf9;
  border: 1.5px dashed var(--party-border-tint);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sig-canvas-box:hover {
  border-color: var(--party-red);
}

.sig-canvas-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: opacity 0.18s ease;
}

.sig-canvas-guide::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 26px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.sig-canvas-guide span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(100, 116, 139, 0.34);
  transform: translateY(-4px);
}

.sig-canvas-box.has-strokes .sig-canvas-guide {
  opacity: 0;
}

.sig-canvas-el {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  touch-action: none;
  cursor: crosshair;
}

.sig-actions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 9px;
  margin-top: 2px;
}

.sig-btn-primary {
  grid-column: 1 / -1;
  height: 42px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10);
  transition: all 0.15s ease;
}

.sig-btn-secondary,
.sig-btn-reset {
  height: 38px;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.sig-btn-reset {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.sig-btn-reset:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.sig-zoom-pill {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.94);
  color: var(--party-red);
  border: 1px solid var(--party-border-tint);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: all 0.15s;
}
.sig-zoom-pill:hover {
  background: var(--party-red);
  color: #ffffff;
  border-color: var(--party-red);
}

/* 放大手写签字板全屏模态框 */
.zoom-sig-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.zoom-sig-dialog {
  width: 100%;
  max-width: 960px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 2.5px solid var(--party-red);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
}
.zoom-sig-header {
  background: var(--pad-header-gradient, linear-gradient(90deg, #841717 0%, #9b1b1b 55%, #b82828 100%));
  color: #ffffff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.zoom-sig-body {
  padding: 20px 22px;
  background: #f8fafc;
}
.zoom-sig-canvas-box {
  position: relative;
  width: 100%;
  height: min(56vh, 420px);
  min-height: 240px;
  background: #fffdf9;
  border: 2px dashed var(--party-border-tint);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(15, 23, 42, 0.04);
}
.zoom-sig-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: opacity 0.18s ease;
}
.zoom-sig-guide::after {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 64px;
  border-bottom: 1.5px dashed rgba(148, 163, 184, 0.45);
}
.zoom-sig-guide span {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 5px;
  color: rgba(100, 116, 139, 0.24);
}
.zoom-sig-canvas-box.has-strokes .zoom-sig-guide {
  opacity: 0;
}
.zoom-sig-footer {
  padding: 14px 22px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.info-right-pane {
  padding: 20px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* PAD端.jpg 右侧顶部【人名单 | 排位图】分段切换器 */
.sub-segmented-tabs {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  align-self: flex-start;
  margin-bottom: 18px;
}

.seg-btn {
  padding: 8px 22px;
  font-size: 15px;
  background: #ffffff;
  color: #334155;
  border: none;
  cursor: pointer;
  font-weight: 500;
}
.seg-btn.active {
  background: var(--party-red);
  color: #ffffff;
  font-weight: 600;
}

/* PAD端.jpg 右侧人员签到表格（姓名 | 部门 | 职务 | 签到时间） */
.roster-table {
  width: 100%;
  border-collapse: collapse;
}
.roster-table th {
  text-align: left;
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid var(--border-line);
}
.roster-table td {
  padding: 16px 12px;
  font-size: 15.5px;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
}

/* 排位图网格 */
.seat-map-box {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.rostrum-stage {
  background: var(--party-red);
  color: #fff;
  padding: 10px 48px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(155, 27, 27, 0.25);
}
.seat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  width: 100%;
}
.seat-card {
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.seat-card.signed {
  border-color: #16a34a;
  background: #f0fdf4;
}

/* 3. 底部 7 项固定图标导航栏（1:1 还原 PAD端.jpg 底部栏架构） */
.pad-bottom-nav {
  height: 70px;
  background: var(--pad-pane-bg, #f8f9fa);
  border-top: 1px solid #dcdfe6;
  border-radius: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex-shrink: 0;
  z-index: 20;
}

html[data-pad-frame="card"] .pad-bottom-nav {
  border-radius: 0 0 12px 12px;
}

.bottom-nav-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #5a626a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  position: relative;
}
.bottom-nav-item .nav-icon {
  font-size: 21px;
  line-height: 1;
}
.bottom-nav-item.active {
  color: var(--party-red);
  font-weight: 700;
  background: var(--party-soft-bg);
}
.bottom-nav-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--party-red);
  border-radius: 0 0 4px 4px;
}
.bottom-nav-item.offline-disabled {
  opacity: 0.42;
  filter: grayscale(100%);
  color: #94a3b8 !important;
  background: #f1f5f9 !important;
  cursor: not-allowed !important;
}
.bottom-nav-item.offline-disabled .nav-icon {
  filter: grayscale(100%);
  opacity: 0.65;
}
.offline-disabled-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 56px 24px;
  margin: 24px auto;
  max-width: 560px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  color: #64748b;
}

/* 会议资料与手写批注视图（顶部控制栏永久固定在屏幕顶端，向下滚动翻阅时随时一键切换） */
.docs-screen-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.docs-fixed-topbar {
  flex-shrink: 0;
  z-index: 60;
  background: #ffffff;
  border-bottom: 2px solid var(--party-border-tint);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.doc-mode-segmented {
  display: inline-flex;
  align-items: center;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 999px;
  gap: 3px;
  flex-shrink: 0;
}

.doc-mode-pill {
  border: none;
  background: transparent;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 15px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.doc-mode-pill.active-scroll {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.32);
}

.doc-mode-pill.active-draw {
  background: var(--party-red);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(155, 27, 27, 0.35);
}

.docs-fixed-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.doc-pen-quick-group,
.doc-view-quick-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pen-dot-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
}
.pen-dot-btn span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.pen-dot-btn.active {
  border-color: var(--party-red);
  background: var(--party-soft-bg);
  box-shadow: 0 0 0 2px rgba(155, 27, 27, 0.14);
}

.doc-mini-btn {
  padding: 5px 10px !important;
  font-size: 12.5px !important;
  white-space: nowrap;
}

.doc-mobile-only {
  display: none !important;
}

.docs-scroll-host {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  width: 100%;
}

.docs-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.docs-sidebar {
  position: relative;
  border-right: 1px solid var(--border-line);
  background: var(--pad-pane-bg, #fafbfc);
  padding: 16px 14px 28px 16px;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.docs-sidebar > * {
  flex-shrink: 0;
}
.docs-sidebar::-webkit-scrollbar {
  width: 6px;
}
.docs-sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.55);
  border-radius: 99px;
}
.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.docs-viewer {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.paper-scroll-area {
  flex: 1;
  min-height: 0;
  background: var(--pad-viewer-bg, #eef2f6);
  overflow: auto;
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.paper-sheet {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 880px;
  height: auto;
  min-height: 560px;
  padding: 28px 44px 44px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(148, 163, 184, 0.25);
  border-radius: 4px;
  line-height: 1.85;
  font-size: calc(16.5px * var(--pad-font-scale, 1));
  white-space: normal;
  word-break: break-word;
  transform-origin: top center;
  margin-bottom: 40px;
}
.paper-sheet.original-layout {
  background: #ffffff;
  max-width: 960px;
  padding: 16px 20px 24px;
  white-space: normal;
  line-height: normal;
}

/* 正式会议发文抬头（顶部工具栏 + 红头公文版式 + 精简文件栏） */
.official-doc-utilbar {
  position: relative;
  z-index: 18;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 10px 0;
  margin-bottom: 14px;
  border-bottom: 1px dashed #e2e8f0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.official-doc-util-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}
.official-doc-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 11.5px;
  border: 1px solid #e2e8f0;
}
.official-doc-pill.red {
  background: #fef2f2;
  color: var(--party-red);
  border-color: var(--party-border-tint);
}
.official-doc-quicknote {
  padding: 5px 11px !important;
  font-size: 12.5px !important;
  min-width: 190px;
  max-width: 280px;
  flex: 1 1 190px;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  color: #1e293b !important;
}
.official-doc-quicknote:focus {
  background: #ffffff !important;
  border-color: var(--party-red) !important;
  outline: none;
}

/* Word/PPT/PDF 原版文件页顶精简正式抬头栏 */
.official-doc-compact-header {
  position: relative;
  z-index: 18;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(155, 27, 27, 0.055) 0%, #f8fafc 70%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--party-red);
  border-radius: 6px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.official-doc-compact-left {
  flex: 1 1 280px;
  min-width: 0;
}
.official-doc-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 4px;
}
.official-doc-compact-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  word-break: break-word;
}
.official-doc-compact-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 正式红头会议发文版式抬头（GB/T 9704 风格，用于 Markdown / 纯文本会议资料） */
.official-doc-masthead {
  position: relative;
  z-index: 2;
  padding: 6px 4px 4px;
  margin-bottom: 18px;
}
.official-doc-org-red {
  text-align: center;
  font-family: "FZShuSong-Z01", "STSong", "SimSun", "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--party-red);
  letter-spacing: 5px;
  line-height: 1.35;
  padding: 4px 0 6px;
}
.official-doc-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  padding: 0 2px;
  font-family: "FangSong", "STFangsong", "仿宋", "Microsoft YaHei", serif;
  font-size: 13.5px;
  color: #475569;
}
.official-doc-red-rule {
  position: relative;
  display: flex;
  align-items: center;
  margin: 10px 0 4px;
}
.official-doc-red-rule::before,
.official-doc-red-rule::after {
  content: "";
  flex: 1;
  height: 3px;
  background: var(--party-red);
}
.official-doc-red-star {
  color: var(--party-red);
  font-size: 15px;
  line-height: 1;
  padding: 0 12px;
  user-select: none;
}
.official-doc-red-subrule {
  height: 1px;
  background: var(--party-red);
  opacity: 0.45;
  margin-bottom: 18px;
}
.official-doc-main-title {
  text-align: center;
  font-family: "FZXiaoBiaoSong-B05S", "STSong", "SimSun", "Microsoft YaHei", serif;
  font-size: calc(22px * var(--pad-font-scale, 1));
  font-weight: 800;
  color: #0f172a;
  line-height: 1.48;
  margin: 8px auto 16px;
  max-width: 94%;
  letter-spacing: 0.5px;
}

/* Markdown 正式公文精排正文 */
.official-md-body {
  position: relative;
  z-index: 2;
  color: #1e293b;
  font-family: "FangSong", "STFangsong", "仿宋", "Microsoft YaHei", "PingFang SC", serif;
  font-size: calc(16.5px * var(--pad-font-scale, 1));
  line-height: 1.92;
}
.official-md-h {
  font-family: "SimHei", "Heiti SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.45;
  margin: 22px 0 10px;
  letter-spacing: 0.3px;
}
.official-md-h1 {
  font-size: calc(20px * var(--pad-font-scale, 1));
  color: var(--party-red);
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--party-border-tint);
}
.official-md-h2 {
  font-size: calc(18px * var(--pad-font-scale, 1));
  color: var(--party-red);
  padding: 5px 12px;
  border-left: 4px solid var(--party-red);
  background: linear-gradient(90deg, rgba(155, 27, 27, 0.06) 0%, transparent 100%);
  border-radius: 0 4px 4px 0;
}
.official-md-h3 {
  font-size: calc(16.5px * var(--pad-font-scale, 1));
  color: #1e293b;
  margin: 16px 0 8px;
}
.official-md-h4,
.official-md-h5 {
  font-size: calc(15.5px * var(--pad-font-scale, 1));
  color: #334155;
  margin: 13px 0 6px;
}
.official-md-p {
  margin: 0 0 12px 0;
  text-indent: 2em;
  text-align: justify;
}
.official-md-p.no-indent {
  text-indent: 0;
}
.official-md-body strong {
  color: #0f172a;
  font-weight: 700;
}
.official-md-list {
  margin: 6px 0 14px 0;
  padding-left: 2.1em;
}
.official-md-list li {
  margin-bottom: 6px;
  text-align: justify;
}
.official-md-list li.official-md-li-sub {
  margin-left: 1.4em;
  list-style-type: circle;
}
.official-md-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 18px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  border-top: 2.5px solid var(--party-red);
}
.official-md-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: calc(14px * var(--pad-font-scale, 1));
  line-height: 1.55;
  background: #ffffff;
}
.official-md-table thead th {
  background: #fef2f2;
  color: var(--party-red);
  font-weight: 800;
  padding: 9px 12px;
  border-bottom: 1.5px solid var(--party-border-tint);
  border-right: 1px solid #e2e8f0;
  white-space: nowrap;
}
.official-md-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: top;
}
.official-md-table thead th:last-child,
.official-md-table tbody td:last-child {
  border-right: none;
}
.official-md-table tbody tr:nth-child(even) {
  background: #f8fafc;
}
.official-md-quote {
  margin: 12px 0 16px;
  padding: 10px 15px;
  border-left: 4px solid var(--party-red);
  background: #fff9f5;
  border-radius: 0 6px 6px 0;
  color: #334155;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: calc(14.5px * var(--pad-font-scale, 1));
  line-height: 1.72;
}
.official-md-quote p {
  margin: 0 0 4px 0;
}
.official-md-quote p:last-child {
  margin-bottom: 0;
}
.official-md-quote-title {
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--party-red);
}
.official-md-alert-note {
  border-left-color: #2563eb;
  background: #eff6ff;
}
.official-md-alert-note .official-md-quote-title { color: #1d4ed8; }
.official-md-alert-tip {
  border-left-color: #16a34a;
  background: #f0fdf4;
}
.official-md-alert-tip .official-md-quote-title { color: #15803d; }
.official-md-alert-warning {
  border-left-color: #d97706;
  background: #fffbeb;
}
.official-md-alert-warning .official-md-quote-title { color: #b45309; }
.official-md-pre-wrap {
  margin: 12px 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #f8fafc;
}
.official-md-pre-lang {
  background: #e2e8f0;
  color: #475569;
  font-family: Consolas, Monaco, monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  letter-spacing: 0.6px;
}
.official-md-pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  font-family: Consolas, "Courier New", Monaco, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #0f172a;
  white-space: pre;
}
.official-md-code {
  font-family: Consolas, "Courier New", Monaco, monospace;
  font-size: 0.88em;
  background: #f1f5f9;
  color: #9b1b1b;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}
.official-md-hr {
  border: none;
  border-top: 1px solid #cbd5e1;
  margin: 18px 0;
}
.official-md-link {
  color: #1d4ed8;
  text-decoration: underline;
}
.official-plain-text-body {
  position: relative;
  z-index: 2;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "FangSong", "STFangsong", "仿宋", "Microsoft YaHei", serif;
  font-size: calc(16.5px * var(--pad-font-scale, 1));
  line-height: 1.9;
  color: #1e293b;
}
.official-doc-footer {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  padding-top: 12px;
  border-top: 1.5px solid #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  color: #64748b;
}
.docx-original-paper {
  background: #ffffff;
  padding: 28px 36px;
  color: #1e293b;
  font-family: "Microsoft YaHei", "PingFang SC", "SimSun", sans-serif;
  line-height: 1.65;
  position: relative;
  z-index: 2;
}
.docx-original-doc p {
  word-break: break-word;
}
.docx-original-doc img {
  max-width: 100%;
  height: auto;
}
.docx-page-divider {
  border-top: 1.5px dashed #cbd5e1;
  margin: 22px 0;
}
@media (max-width: 768px) {
  .docx-original-paper {
    padding: 14px 12px;
  }
}

.watermark-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-around;
  opacity: 0.1;
}
.watermark-item {
  transform: rotate(-22deg);
  font-size: 15px;
  font-weight: 700;
  color: var(--party-red);
  padding: 28px;
}
.draw-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  cursor: crosshair;
  touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}
.draw-canvas.scroll-mode {
  pointer-events: none !important;
  touch-action: pan-x pan-y !important;
}

.whiteboard-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 140px);
  padding: 16px;
  background: var(--pad-pane-bg, #eef2f6);
  gap: 12px;
}

.whiteboard-stage {
  flex: 1;
  min-height: 480px;
  height: calc(100vh - 220px);
  background: #ffffff;
  border: 2px solid #94a3b8;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  touch-action: none !important;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.04);
}

.btn {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: #f1f5f9; }
.btn-red { background: var(--party-red); color: #fff; border-color: var(--party-red-dark); }
.btn-red:hover { background: var(--party-red-dark); }
.btn-dark { background: var(--party-soft-bg); color: var(--party-red); border-color: var(--party-border-tint); }
.btn-dark:hover { background: var(--party-soft-hover); }

/* ============================================================================
 * PAD 端内置虚拟触控软键盘（支持中文拼音联想 + 英文数字 + 会议常用语一键输入）
 * ============================================================================ */
.pad-vkbd-panel {
  margin-top: 12px;
  background: #e2e8f0;
  border: 2px solid #94a3b8;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.12);
  user-select: none;
}

.vkbd-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  min-height: 44px;
  flex-wrap: wrap;
}

.vkbd-pinyin-buffer {
  font-size: 15px;
  font-weight: 800;
  color: var(--party-red);
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.vkbd-cand-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.vkbd-cand-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.1s;
}
.vkbd-cand-item:hover, .vkbd-cand-item:active {
  background: var(--party-red);
  color: #ffffff;
  border-color: var(--party-red);
}

.vkbd-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}
.vkbd-row:last-child {
  margin-bottom: 0;
}

.vkbd-key {
  flex: 1;
  min-width: 32px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-bottom: 3px solid #64748b;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.05s, background 0.1s;
}
.vkbd-key:active {
  transform: translateY(2px);
  background: #cbd5e1;
}
.vkbd-key.fn-key {
  background: #cbd5e1;
  color: #0f172a;
  font-size: 14px;
  flex: 1.4;
}
.vkbd-key.action-key {
  background: var(--party-red);
  color: #ffffff;
  border-color: #7f1d1d;
  border-bottom-color: #450a0a;
  font-size: 14px;
  flex: 1.6;
}

/* ============================================================================
 * 0. 进入会议室 / 切换会议室 强制密码门禁遮罩层 (防止未经密码验证随意串场 D31)
 * ============================================================================ */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  background: var(--pad-gate-bg, linear-gradient(135deg, #450a0a 0%, #7a0c0c 52%, #9b1b1b 100%));
  background-size: cover;
  background-position: center;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-gate-card {
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.42);
  border: 2px solid var(--party-border-tint);
}

.auth-gate-header {
  background: var(--pad-header-gradient, linear-gradient(135deg, #841717 0%, #9b1b1b 100%));
  padding: 20px 24px;
  border-bottom: 3px solid var(--party-gold, #e6b85c);
}

html[data-pad-header-tone="light"] .auth-gate-header {
  border-bottom: 2px solid var(--party-border-tint);
}

.gate-org-banner {
  font-size: 13px;
  color: var(--party-gold, #fcd34d);
  letter-spacing: 1px;
  font-weight: 700;
}

html[data-pad-header-tone="light"] .gate-org-banner {
  color: var(--party-red);
}

.gate-sub-title {
  font-size: 21px;
  margin-top: 6px;
  color: #ffffff;
}

html[data-pad-header-tone="light"] .gate-sub-title {
  color: #0f172a;
}

.auth-gate-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gate-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.gate-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15.5px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  color: #0f172a;
  background: #ffffff;
}
.gate-input:focus {
  border-color: var(--party-red);
  box-shadow: 0 0 0 3px rgba(155, 27, 27, 0.12);
}

/* ============================================================================
 * 竖屏 PAD / 手机端响应式规则
 * 顶部超紧凑单行显示，大幅释放手机端主内容区可视高度
 * ============================================================================ */
@media (max-width: 860px), (max-aspect-ratio: 11/10) {
  html[data-pad-frame="card"] body {
    padding: max(8px, env(safe-area-inset-top, 8px)) 8px max(6px, env(safe-area-inset-bottom, 6px)) 8px;
  }
  .pad-top-bar {
    min-height: 44px;
    padding: 5px 10px;
    gap: 8px;
  }
  #padHeaderLogoImg {
    max-height: 26px !important;
    max-width: 110px !important;
    padding: 2px 5px !important;
  }
  .top-left-title {
    gap: 6px;
  }
  .top-title-group {
    gap: 6px;
  }
  .top-left-title h1 {
    font-size: 14.5px;
  }
  .room-badge {
    font-size: 11px;
    padding: 1px 6px;
    max-width: 115px;
  }
  .net-pill {
    font-size: 11px;
    padding: 1px 6px;
  }
  .top-right-actions {
    gap: 5px;
  }
  .top-action-btn {
    font-size: 12px;
    padding: 4px 8px;
    gap: 3px;
    border-radius: 6px;
  }
  .docs-fixed-topbar {
    padding: 5px 10px;
    gap: 6px;
  }
  .doc-mode-pill {
    font-size: 13px;
    padding: 5px 12px;
  }
  .docs-fixed-tools {
    gap: 5px;
    overflow-x: auto;
    max-width: 100%;
  }
  .doc-pen-quick-group,
  .doc-view-quick-group {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .doc-mini-btn {
    padding: 4px 8px !important;
    font-size: 12px !important;
  }
  .doc-mobile-only {
    display: inline-flex !important;
  }
  .docs-scroll-host {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
  }
  .meeting-info-split, .docs-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    flex-shrink: 0;
    overflow: visible;
    overflow-y: visible;
  }
  .info-left-pane, .docs-sidebar {
    border-right: none;
    border-bottom: 4px solid #e2e8f0;
    height: auto;
    max-height: none;
    overflow-y: visible;
    padding: 12px;
  }
  .info-right-pane, .docs-viewer {
    overflow-y: visible;
    height: auto;
  }
  .paper-scroll-area {
    overflow-y: visible;
    overflow-x: auto;
    padding: 10px;
  }
  .paper-sheet {
    padding: 20px 18px;
    margin-bottom: 20px;
  }
  .pad-main-body {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .pad-chat-panel {
    padding: 10px 12px;
    gap: 8px;
  }
  .pad-chat-panel h3 {
    font-size: 14.5px;
  }
  .whiteboard-layout {
    flex: 1;
    min-height: 360px;
    padding: 10px;
    gap: 8px;
  }
  .whiteboard-stage {
    flex: 1;
    min-height: 300px;
    height: auto;
  }
  .pad-bottom-nav {
    height: 54px;
    overflow-x: auto;
    display: flex;
  }
  .bottom-nav-item {
    min-width: 64px;
    flex: 1;
    font-size: 11px;
    gap: 2px;
  }
  .bottom-nav-item .nav-icon {
    font-size: 17px;
  }
  .auth-gate-overlay {
    overflow-y: auto;
    align-items: flex-start;
    padding: 10px;
  }
  .auth-gate-header {
    padding: 14px 16px;
  }
  .gate-sub-title {
    font-size: 17px;
  }
  .auth-gate-body {
    padding: 14px 16px;
    gap: 12px;
  }
}

/* 手机竖屏窄屏（<=640px）：第一行 [标题 + 会议室 + 在线状态]，第二行超薄快捷按钮，总高度仅约 60px */
@media (max-width: 640px) {
  .pad-top-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 5px 10px;
    gap: 4px;
  }
  .top-left-title {
    width: 100%;
  }
  .top-title-group {
    flex: 1;
    justify-content: space-between;
  }
  .room-badge {
    max-width: 108px;
  }
  .top-right-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  .top-action-btn {
    padding: 3px 6px;
    font-size: 11.5px;
  }
}

/* PAD / 手机端标准触控分页栏 */
.pad-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #475569;
  flex-shrink: 0;
}
.pad-pg-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pad-pg-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.pad-pg-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.pad-pg-btn:hover:not(:disabled) {
  border-color: var(--party-red);
  color: var(--party-red);
  background: var(--party-soft-bg);
}
.pad-pg-btn.active {
  background: var(--party-red);
  border-color: var(--party-red);
  color: #fff;
  font-weight: 700;
}
.pad-pg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
}
.pad-pg-ellipsis {
  padding: 0 4px;
  color: #94a3b8;
  user-select: none;
}
.pad-pg-select {
  height: 34px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-size: 13px;
}
.pad-pg-jump {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
}
.pad-pg-jump-input {
  width: 48px;
  height: 34px;
  padding: 0 6px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  text-align: center;
  font-size: 13px;
  color: #0f172a;
}
@media (max-width: 640px) {
  .pad-pagination-bar {
    font-size: 12px;
    gap: 6px;
  }
  .pad-pg-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    font-size: 12px;
  }
  .pad-pg-select, .pad-pg-jump-input {
    height: 30px;
    font-size: 12px;
  }
}
