* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  /* 浅色（白色）主题：入口 / 登录 / 加入会议弹窗 / 管理后台 */
  --bg-primary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-bar: #F2F2F7;
  --bg-input: #F2F2F7;
  --btn-blue: #007AFF;
  --btn-blue-press: #0066D6;
  --btn-red: #FF3B30;
  --btn-gray: #E5E5EA;
  --text-primary: #1C1C1E;
  --text-secondary: #6C6C70;
  --text-tertiary: #9A9AA0;
  --border-subtle: rgba(0, 0, 0, 0.1);
}

/* 会议界面叠加在黑色视频画面之上，保持原有深色主题，避免白字消失 */
#meetingScreen {
  --bg-primary: #000000;
  --bg-card: rgba(28, 28, 30, 0.85);
  --bg-bar: #1C1C1E;
  --bg-input: #2C2C2E;
  --btn-blue: #0A84FF;
  --btn-blue-press: #007AFF;
  --btn-red: #FF453A;
  --btn-gray: #3A3A3C;
  --text-primary: #FFFFFF;
  --text-secondary: #8E8E93;
  --text-tertiary: #555555;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

.screen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; }

/* ===== 通用按钮 ===== */
.btn-blue {
  background: var(--btn-blue);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-blue:active { background: var(--btn-blue-press); }
.btn-blue:disabled { opacity: 0.4; }

.btn-red {
  background: var(--btn-red);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-red:active { background: #D63030; }

.btn-gray {
  background: var(--btn-gray);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-gray:active { background: #2A2A2C; }

.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ===== 入口界面 ===== */
.entry-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(40% 34% at 14% 10%, rgba(86,158,255,0.60), rgba(86,158,255,0) 70%),
    radial-gradient(44% 38% at 90% 6%, rgba(196,140,255,0.55), rgba(196,140,255,0) 70%),
    radial-gradient(48% 42% at 86% 82%, rgba(255,140,196,0.48), rgba(255,140,196,0) 70%),
    radial-gradient(52% 46% at 10% 88%, rgba(96,216,255,0.62), rgba(96,216,255,0) 72%),
    radial-gradient(46% 40% at 50% 44%, rgba(255,255,255,0.34), rgba(255,255,255,0) 74%),
    linear-gradient(160deg, #DCEAFF 0%, #EBDFFF 46%, #DBF3FF 100%);
}

.entry-header {
  text-align: center;
  margin-bottom: 40px;
}

.entry-logo {
  font-size: 56px;
  margin-bottom: 12px;
}

.entry-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.entry-header p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

.entry-form {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus { border-color: var(--btn-blue); }
.form-group input::placeholder { color: var(--text-tertiary); }

.entry-buttons { display: flex; gap: 12px; }
.entry-buttons button { flex: 1; }

.entry-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.entry-features {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.entry-features span {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== 会议界面 ===== */
.meeting-screen {
  background: var(--bg-primary);
}

/* 左上角信息卡片 — 小条样式，不挡视野 */
.info-card {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  left: 8px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-title {
  display: none;
}

.info-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

.info-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: var(--btn-gray);
  color: var(--text-primary);
}
.info-badge.active {
  background: #30D158;
  color: #000;
}

/* 右上角按钮组 */
.top-right-group {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 50;
}

.member-pill {
  background: var(--bg-input);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 13px;
  color: var(--text-primary);
}

/* 中央视频区 */
.video-area {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  overflow: hidden;
  /* 关键：视频区不拦截触摸事件，让底层 bottom-bar 的按钮可点击 */
  pointer-events: none;
}

.video-area video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  display: none;
  pointer-events: none;
}
.video-area video.active { display: block; }
.video-area video.fit-contain { object-fit: contain; }

/* 视频区控制按钮 */
.video-controls {
  position: absolute;
  bottom: 140px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 11;
  /* 视频控制按钮需要可点击 */
  pointer-events: auto;
}

.video-ctrl-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(28, 28, 30, 0.92); /* 不用 backdrop-filter 省 GPU */
  border: 0.5px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-ctrl-btn:active { background: var(--btn-blue); }
.video-ctrl-btn.active { background: var(--btn-blue); }

.video-placeholder {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 15px;
  padding: 20px;
}

/* 底部控制栏 */
.bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: #1C1C1E;
  z-index: 50;
  pointer-events: auto;
}

.bottom-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.btn-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 8px;
  min-height: 52px;
  border-radius: 12px;
  font-size: 14px;
}
.btn-action .btn-icon { font-size: 20px; }

.bottom-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-line {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.status-line.sharing { color: #30D158; }

.status-detail {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== 浮窗面板 ===== */
.member-panel, .chat-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88%;
  max-width: 360px;
  max-height: 70vh;
  background: var(--bg-bar);
  border-radius: 20px;
  border: 0.5px solid var(--border-subtle);
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--border-subtle);
  font-size: 16px;
  font-weight: 600;
}

.close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFFFFF;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}
.close-btn:active { background: rgba(255, 255, 255, 0.25); }

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

/* 成员列表 */
.member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
}
.member-item:active { background: var(--bg-input); }

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.member-name { flex: 1; color: var(--text-primary); }

.member-status-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
}
.member-status-tag.sharing { background: #30D158; color: #000; }
.member-status-tag.me { background: var(--btn-blue); color: white; }

.empty-text {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
  padding: 30px 0;
}

/* 聊天区 */
.chat-messages { min-height: 200px; }

.chat-msg {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--bg-input);
  border-radius: 12px;
}
.chat-msg.self { background: rgba(10, 132, 255, 0.15); }
.chat-msg .msg-name { font-size: 12px; font-weight: 600; color: var(--btn-blue); margin-bottom: 2px; }
.chat-msg.self .msg-name { color: #30D158; }
.chat-msg .msg-text { font-size: 14px; color: var(--text-primary); word-break: break-word; }

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 0.5px solid var(--border-subtle);
}
.chat-input-bar textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  resize: none;
  font-family: inherit;
  outline: none;
  max-height: 80px;
}
.chat-input-bar textarea:focus { border-color: var(--btn-blue); }
.chat-input-bar textarea:disabled { opacity: 0.4; }
.btn-send { padding: 10px 16px; font-size: 14px; }

/* ===== 全屏 ===== */
.fullscreen-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fullscreen-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fullscreen-container video.fit-contain { object-fit: contain; }
.exit-fullscreen {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* ===== 登录区域 ===== */
.login-section, .logged-in-info {
  width: 100%;
  max-width: 340px;
  margin-bottom: 16px;
}

.login-card {
  background: rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  padding: 22px 18px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.85),
    inset 0 -1px 2px rgba(255, 255, 255, 0.25),
    0 22px 50px rgba(60, 80, 160, 0.20),
    0 6px 16px rgba(60, 80, 160, 0.10);
}

.login-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.login-hint {
  font-size: 13px;
  color: var(--btn-blue);
  margin-bottom: 16px;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-form .form-group {
  margin: 0;
}

.login-form .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.login-form .form-group input:focus {
  border-color: var(--btn-blue);
}

.login-form .form-group input::placeholder {
  color: var(--text-tertiary);
}

/* ===== 按钮扩展 ===== */
.btn-full { width: 100%; }

.btn-light-blue {
  background: rgba(10, 132, 255, 0.15);
  color: var(--btn-blue);
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-light-blue:active {
  background: rgba(10, 132, 255, 0.25);
}

.entry-buttons-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== 图片预览弹窗 ===== */
.image-preview-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview-overlay img {
  max-width: 95vw;
  max-height: 85vh;
  border-radius: 8px;
}

.image-preview-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===== 聊天图片消息 ===== */
.chat-msg .msg-image {
  margin-top: 4px;
  cursor: pointer;
}

.chat-msg .msg-image img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  display: block;
}

/* ===== 聊天上传按钮 ===== */
.chat-upload-btn {
  background: var(--bg-input);
  border: 0.5px solid var(--border-subtle);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-upload-btn:active { opacity: 0.7; }
.chat-upload-btn:disabled { opacity: 0.4; }

/* ===== 入口提示文字 ===== */
.entry-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.6;
}

/* ===== 入口操作区 ===== */
.entry-actions {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== 加入会议弹窗 ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-dialog {
  background: var(--bg-bar);
  border-radius: 20px;
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  border: 0.5px solid var(--border-subtle);
}

.modal-header-bar {
  padding: 20px 20px 0;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-body-content {
  padding: 8px 20px 20px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.modal-input-group {
  margin-bottom: 12px;
}

.modal-input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.modal-input-group input:focus {
  border-color: var(--btn-blue);
}

.modal-input-group input::placeholder {
  color: var(--text-tertiary);
}

.modal-footer-bar {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 12px 20px 20px;
}

.modal-btn-cancel {
  background: none;
  border: none;
  color: var(--btn-blue);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
}

.modal-btn-confirm {
  background: none;
  border: none;
  color: var(--btn-blue);
  font-size: 16px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
}

.modal-btn-confirm:disabled {
  color: var(--text-tertiary);
  cursor: not-allowed;
}

/* ===== 加入会议内联错误提示 ===== */
.join-error-tip {
  color: var(--btn-red);
  font-size: 14px;
  margin: 4px 20px 0;
  line-height: 1.4;
}
.join-error-tip.hidden { display: none; }

/* ===== 管理后台 ===== */
.admin-screen {
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-who {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: var(--bg-bar);
  border-radius: 10px;
  padding: 4px;
}
.admin-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 9px 4px;
  border-radius: 8px;
  cursor: pointer;
}
.admin-tab.active {
  background: var(--btn-blue);
  color: #fff;
  font-weight: 600;
}
.admin-pane.hidden { display: none; }
.admin-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 13px;
}
.admin-list { display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
}
.admin-row-main { flex: 1; min-width: 0; }
.admin-room-id {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  word-break: break-all;
}
.admin-row-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.admin-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-empty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 32px 0;
}
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.admin-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.admin-card .modal-input-group { margin-bottom: 10px; }
.role-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 6px;
  vertical-align: middle;
}
.role-tag.root_admin { background: rgba(10,132,255,0.2); color: #6DB5FF; }
.role-tag.sub_admin { background: rgba(142,142,147,0.2); color: var(--text-secondary); }
.muted { color: var(--text-tertiary); font-size: 13px; }

/* ============================================================
   Liquid Glass 2.0 —— 真正的半透明磨砂液态玻璃
   入口/登录/弹窗：浅色玻璃；会议界面：深色玻璃
   ============================================================ */

/* ---------- 入口页：玻璃输入框（内嵌玻璃槽） ---------- */
.entry-screen .form-group input,
.modal-dialog .modal-input-group input {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.70);
  color: #14283F;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.75),
    inset 0 -1px 2px rgba(60, 80, 140, 0.06);
}
.entry-screen .form-group input::placeholder,
.modal-dialog .modal-input-group input::placeholder { color: #8A93A6; }
.entry-screen .form-group input:focus,
.modal-dialog .modal-input-group input:focus {
  border-color: rgba(10, 132, 255, 0.75);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.16), inset 0 1px 2px rgba(255,255,255,0.8);
}

/* ---------- 入口页：玻璃胶囊按钮通用 ---------- */
.entry-screen .btn-blue,
.entry-screen .btn-light-blue,
.entry-screen .btn-gray {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  text-shadow: none;
  transition: transform 0.16s cubic-bezier(.2,.9,.3,1.4), box-shadow 0.25s ease, background 0.25s ease, filter 0.2s ease;
}

/* 顶部弧形镜面高光 */
.entry-screen .btn-blue::before,
.entry-screen .btn-light-blue::before,
.entry-screen .btn-gray::before,
#meetingScreen .btn-action::before,
#meetingScreen .video-ctrl-btn::before {
  content: "";
  position: absolute;
  left: 12%; right: 12%; top: 1px;
  height: 48%;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0));
  border-radius: 999px 999px 60% 60% / 999px 999px 60% 60%;
  pointer-events: none;
  z-index: -1;
}

/* 跟随手指的液态光斑 */
.entry-screen .btn-blue::after,
.entry-screen .btn-light-blue::after,
.entry-screen .btn-gray::after,
#meetingScreen .btn-action::after,
#meetingScreen .video-ctrl-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(110px circle at var(--mx, 50%) var(--my, -30%), rgba(255,255,255,0.75), rgba(255,255,255,0) 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: -1;
}
.entry-screen .btn-blue.glass-press::after,
.entry-screen .btn-light-blue.glass-press::after,
.entry-screen .btn-gray.glass-press::after,
#meetingScreen .btn-action.glass-press::after,
#meetingScreen .video-ctrl-btn.glass-press::after { opacity: 1; }

/* 主按钮：半透明蓝色玻璃（登录 / 快速会议） */
.entry-screen .btn-blue {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.46) 0%, rgba(255,255,255,0.10) 42%, rgba(0,60,160,0.16) 100%),
    rgba(10, 132, 255, 0.30);
  border-color: rgba(255, 255, 255, 0.68);
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 40, 110, 0.55), 0 0 14px rgba(0,70,160,0.35);
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,0.85),
    inset 0 -2px 5px rgba(0,50,130,0.22),
    inset 1.5px 0 1px rgba(255,255,255,0.35),
    inset -1.5px 0 1px rgba(255,255,255,0.25),
    0 12px 30px rgba(10,110,255,0.40),
    0 3px 8px rgba(10,110,255,0.22);
}

/* 次按钮：白色透明玻璃（加入会议 / 管理后台） */
.entry-screen .btn-light-blue {
  background: linear-gradient(180deg, rgba(255,255,255,0.60), rgba(255,255,255,0.22));
  border-color: rgba(255,255,255,0.85);
  color: #0A6CF5;
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,0.95),
    inset 0 -2px 4px rgba(60,90,160,0.08),
    inset 1px 0 1px rgba(255,255,255,0.4),
    inset -1px 0 1px rgba(255,255,255,0.3),
    0 12px 28px rgba(60,90,170,0.22),
    0 3px 8px rgba(60,90,170,0.12);
}

/* 中性玻璃（退出登录） */
.entry-screen .btn-gray {
  background: linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0.18));
  border-color: rgba(255,255,255,0.65);
  color: #33405A;
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(40,50,80,0.06),
    0 10px 24px rgba(60,80,140,0.16);
}

.entry-screen .btn-blue:active,
.entry-screen .btn-light-blue:active,
.entry-screen .btn-gray:active { transform: scale(0.965); }
.entry-screen .btn-blue:disabled,
.entry-screen .btn-light-blue:disabled,
.entry-screen .btn-gray:disabled { opacity: 0.4; }

/* ---------- 入口页：底部功能玻璃小胶囊 ---------- */
.entry-screen .entry-features span {
  background: rgba(255, 255, 255, 0.30);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.60);
  color: #33405A;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.75),
    0 8px 18px rgba(60,80,140,0.14);
}

/* ---------- 加入会议弹窗：毛玻璃 ---------- */
.modal-overlay {
  background: rgba(28, 38, 78, 0.20);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}
.modal-dialog {
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(32px) saturate(185%);
  backdrop-filter: blur(32px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.95),
    inset 0 -1px 2px rgba(255,255,255,0.3),
    0 34px 80px rgba(30,50,110,0.32),
    0 10px 26px rgba(30,50,110,0.16);
}

/* ============================================================
   会议界面：深色液态玻璃（叠在视频画面上）
   ============================================================ */

/* 悬浮毛玻璃底栏 */
#meetingScreen .bottom-bar {
  background: rgba(20, 22, 30, 0.42);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* 操作按钮：深色玻璃胶囊 */
#meetingScreen .btn-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #FFFFFF;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.28),
    inset 0 -1px 2px rgba(0,0,0,0.20),
    0 10px 24px rgba(0,0,0,0.28);
  transition: transform 0.14s ease, background 0.2s ease;
}
#meetingScreen .btn-action:active { transform: scale(0.96); }
/* 激活态（开麦 / 共享中）：蓝色玻璃 */
#meetingScreen .btn-action.active {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.04)),
    rgba(10, 132, 255, 0.62);
  border-color: rgba(255,255,255,0.38);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.5),
    inset 0 -2px 4px rgba(0,50,130,0.25),
    0 10px 26px rgba(10,132,255,0.5);
}

/* 圆形视频控制按钮：深色玻璃圆 */
#meetingScreen .video-ctrl-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.3),
    0 8px 18px rgba(0,0,0,0.32);
}
#meetingScreen .video-ctrl-btn.active {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04)),
    rgba(10, 132, 255, 0.62);
  border-color: rgba(255,255,255,0.38);
}

/* 右上角人数胶囊 + 左上角信息卡：深色玻璃 */
#meetingScreen .member-pill {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #FFFFFF;
}
#meetingScreen .info-card {
  background: rgba(20, 22, 30, 0.40);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* 成员 / 聊天浮窗：深色毛玻璃面板 */
#meetingScreen .member-panel,
#meetingScreen .chat-panel {
  background: rgba(32, 34, 44, 0.66);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.20),
    0 34px 80px rgba(0,0,0,0.5);
}
#meetingScreen .panel-header { border-bottom: 1px solid rgba(255,255,255,0.10); }
#meetingScreen .member-item:active { background: rgba(255,255,255,0.12); }
#meetingScreen .chat-msg { background: rgba(255,255,255,0.10); }
#meetingScreen .chat-input-bar { border-top: 1px solid rgba(255,255,255,0.10); }
#meetingScreen .chat-input-bar textarea,
#meetingScreen .chat-upload-btn {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: #FFFFFF;
}
#meetingScreen .chat-input-bar textarea::placeholder { color: #9A9AA6; }

/* ============================================================
   会议页布局修复（只作用于会议界面，不影响登录页/弹窗）
   ① 底栏瘦身，少挡共享画面  ② 放大键上移+提层级，不被底栏压住
   ③ 左上角信息卡淡化，去掉黑条感  ④ 共享中自动精简底栏
   ============================================================ */

/* 底栏整体收紧：缩小内边距与行距，降低整栏高度 */
#meetingScreen .bottom-bar {
  padding: 8px 14px calc(10px + env(safe-area-inset-bottom));
}
#meetingScreen .bottom-buttons {
  gap: 10px;
  margin-bottom: 7px;
}
#meetingScreen .btn-action {
  min-height: 46px;
  padding: 7px 6px;
  gap: 1px;
  border-radius: 16px;
}
#meetingScreen .btn-action .btn-icon { font-size: 19px; }
#meetingScreen .btn-action span:last-child { font-size: 13px; }
#meetingScreen .status-line { font-size: 13px; line-height: 1.35; }
#meetingScreen .status-detail { font-size: 11px; line-height: 1.35; }

/* 共享进行中：隐藏状态文字行，底栏只剩三枚按钮，最大限度让出画面 */
#meetingScreen.is-sharing .bottom-status { display: none; }
#meetingScreen.is-sharing .bottom-buttons { margin-bottom: 0; }

/* 右下角视频控制键（切换显示模式 / 全屏放大）：抬高并提到底栏之上，绝不被遮、可点 */
#meetingScreen .video-controls {
  z-index: 55;
  bottom: calc(150px + env(safe-area-inset-bottom));
  right: 12px;
}
/* 共享进行中：底栏已瘦身为只剩三枚按钮（约 78px 高），把两枚圆钮抬到它正上方，两个都完整露出、可点 */
#meetingScreen.is-sharing .video-controls {
  bottom: calc(96px + env(safe-area-inset-bottom));
  right: 12px;
}

/* 左上角信息卡：共享时只留一枚"正在共享"小徽章，会议号/昵称文字临时收起，不再是挡画面的大黑条 */
#meetingScreen.is-sharing .info-meta { display: none; }
#meetingScreen.is-sharing .info-card {
  padding: 4px 10px;
  opacity: 1;
}

/* 右上角人数胶囊 + 两枚按钮：共享时缩小一圈，少占画面 */
#meetingScreen.is-sharing .top-right-group { gap: 6px; }
#meetingScreen.is-sharing .member-pill { padding: 3px 10px; font-size: 11px; }
#meetingScreen.is-sharing .top-right-group .btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 9px; }
