/* =========================================================================
   MeetShare · 设计系统（腾讯会议风格）
   浅色：登录 / 注册 / 首页 / 个人中心 / 管理后台
   深色：会议室（.dark-scope）
   ========================================================================= */

:root {
  /* 品牌色 */
  --brand:        #2b5fff;
  --brand-hover:  #1d4ee8;
  --brand-active: #1740cc;
  --brand-light:  #eaf0ff;
  --brand-light2: #f5f8ff;

  /* 功能色 */
  --success:  #00b42a;
  --warning:  #ff7d00;
  --danger:   #f53f3f;
  --danger-h: #e02b2b;
  --verify:   #1d9bf0;

  /* 中性色 */
  --text-1: #1d2129;
  --text-2: #4e5969;
  --text-3: #86909c;
  --text-4: #c9cdd4;

  --bg:       #f2f3f5;
  --surface:  #ffffff;
  --surface-2:#f7f8fa;
  --surface-3:#f2f3f5;

  --border:   #e5e6eb;
  --border-2: #dcdfe6;

  /* 圆角 */
  --r-sm: 6px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl:20px;

  /* 阴影 */
  --sh-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --sh:    0 2px 12px rgba(29, 33, 41, .08);
  --sh-lg: 0 8px 32px rgba(29, 33, 41, .12);
  --sh-xl: 0 16px 48px rgba(29, 33, 41, .16);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
}

/* ---------------- 深色作用域（会议室） ---------------- */
.dark-scope {
  --text-1: #ffffff;
  --text-2: #c2c7d0;
  --text-3: #8a9099;
  --text-4: #5a6068;

  --bg:       #1a1a1c;
  --surface:  #242528;
  --surface-2:#2c2d31;
  --surface-3:#34353a;

  --border:   #35363b;
  --border-2: #43454b;
}

/* ---------------- 基础 ---------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
svg { display: block; }
.tabnum { font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(134, 144, 156, .35); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(134, 144, 156, .55); }

/* =========================================================================
   按钮
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, opacity .18s, transform .1s;
  user-select: none;
}
.btn:hover  { background: var(--brand-hover); }
.btn:active { background: var(--brand-active); transform: translateY(.5px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }

.btn.lg    { height: 44px; padding: 0 26px; font-size: 15px; border-radius: var(--r); }
.btn.sm    { height: 30px; padding: 0 13px; font-size: 13px; border-radius: var(--r-sm); }
.btn.block { width: 100%; }

.btn.ghost {
  background: var(--surface);
  border-color: var(--border-2);
  color: var(--text-1);
}
.btn.ghost:hover  { background: var(--surface-2); border-color: var(--brand); color: var(--brand); }
.btn.ghost:active { background: var(--brand-light); }

.btn.soft { background: var(--brand-light); color: var(--brand); }
.btn.soft:hover { background: #dde7ff; }

.btn.danger { background: var(--danger); }
.btn.danger:hover { background: var(--danger-h); }

.btn.text {
  background: transparent;
  color: var(--brand);
  padding: 0 8px;
  height: 30px;
}
.btn.text:hover { background: var(--brand-light); }

.dark-scope .btn.ghost {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text-1);
}
.dark-scope .btn.ghost:hover { background: var(--surface-3); border-color: var(--text-3); color: #fff; }

/* 图标按钮 */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background .16s, color .16s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text-1); }
.icon-btn.danger:hover { background: #ffece8; color: var(--danger); }
.icon-btn svg { width: 16px; height: 16px; }
.dark-scope .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.dark-scope .icon-btn.danger:hover { background: rgba(245, 63, 63, .18); color: #ff7875; }

/* =========================================================================
   表单
   ========================================================================= */
.field { margin-bottom: 18px; }
.field > label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.field .hint { margin-top: 6px; font-size: 12px; color: var(--text-3); line-height: 1.6; }
.field .err  { margin-top: 6px; font-size: 12px; color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text-1);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.textarea { height: auto; min-height: 92px; padding: 11px 13px; resize: vertical; line-height: 1.7; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-4); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 95, 255, .12);
}
.input:disabled { background: var(--surface-3); color: var(--text-3); cursor: not-allowed; }

.select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 15px;
  cursor: pointer;
}

.dark-scope .input, .dark-scope .select, .dark-scope .textarea {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: #fff;
}
.dark-scope .input:focus, .dark-scope .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 95, 255, .25);
}

/* 输入框带图标 */
.input-icon { position: relative; }
.input-icon .input { padding-left: 42px; }
.input-icon > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-3);
  pointer-events: none;
}
.input-icon .eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

/* 复选框 */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--text-2);
}
.checkbox input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid var(--border-2);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: .16s;
}
.checkbox input:checked { background: var(--brand); border-color: var(--brand); }
.checkbox input:checked::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 开关 */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute;
  inset: 0;
  background: #c9cdd4;
  border-radius: 12px;
  cursor: pointer;
  transition: background .22s;
}
.switch .slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .22s;
}
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { opacity: .5; cursor: not-allowed; }

/* =========================================================================
   卡片 / 徽标 / 头像
   ========================================================================= */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-body { padding: 20px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.badge.blue   { background: var(--brand-light); color: var(--brand); }
.badge.green  { background: #e8ffea; color: #009a29; }
.badge.orange { background: #fff7e8; color: #d25f00; }
.badge.red    { background: #ffece8; color: var(--danger); }
.badge.gray   { background: var(--surface-3); color: var(--text-3); }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--surface-3);
  line-height: 1;
}

/* 蓝V */
.verify-icon { display: inline-block; vertical-align: -2px; margin-left: 3px; flex-shrink: 0; }
.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 8px 0 6px;
  border-radius: 11px;
  background: var(--verify);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.verify-badge svg { width: 13px; height: 13px; }

/* =========================================================================
   Toast / Modal
   ========================================================================= */
.toast-wrap {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 460px;
  padding: 11px 18px;
  border-radius: var(--r);
  background: rgba(29, 33, 41, .92);
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--sh-lg);
  backdrop-filter: blur(8px);
  animation: toastIn .26s cubic-bezier(.22, 1, .36, 1);
}
.toast.success { background: rgba(0, 152, 41, .95); }
.toast.error   { background: rgba(232, 43, 43, .95); }
.toast.warn    { background: rgba(217, 106, 0, .95); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .18s;
  backdrop-filter: blur(2px);
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text-1);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  animation: modalIn .24s cubic-bezier(.22, 1, .36, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
}
.modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #86909c;
  font-size: 22px;
  line-height: 1;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.modal-close:hover { background: #f2f3f5; color: #1d2129; }
.modal-body { padding: 0 22px 4px; overflow-y: auto; }
.modal-body .field:last-child { margin-bottom: 8px; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px 20px;
}

/* =========================================================================
   登录 / 注册页
   ========================================================================= */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: #fff;
}

/* 左侧品牌区 */
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 68px;
  background: linear-gradient(145deg, #2b5fff 0%, #1a45d8 55%, #16309e 100%);
  color: #fff;
  overflow: hidden;
}
.auth-brand::before,
.auth-brand::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.auth-brand::before { width: 460px; height: 460px; right: -170px; top: -150px; }
.auth-brand::after  { width: 320px; height: 320px; left: -120px; bottom: -110px; background: rgba(255, 255, 255, .05); }

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  margin-bottom: 52px;
}
.auth-logo .mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}
.auth-logo .mark svg { width: 24px; height: 24px; color: #fff; }
.auth-logo .txt { font-size: 19px; font-weight: 600; letter-spacing: .3px; }

.auth-brand h1 {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .5px;
}
.auth-brand .sub {
  position: relative;
  z-index: 2;
  margin: 0 0 44px;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .82);
  max-width: 420px;
}
.auth-feats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
  max-width: 460px;
}
.auth-feat { display: flex; align-items: flex-start; gap: 11px; }
.auth-feat .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .16);
  flex-shrink: 0;
}
.auth-feat .ic svg { width: 17px; height: 17px; color: #fff; }
.auth-feat b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.auth-feat span { font-size: 12.5px; color: rgba(255, 255, 255, .7); line-height: 1.55; }

.auth-foot {
  position: relative;
  z-index: 2;
  margin-top: 52px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
}

/* 右侧表单区 */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: #fff;
}
.auth-form { width: 100%; max-width: 372px; }
.auth-form .m-logo { display: none; }

.auth-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  position: relative;
  padding: 0 2px 13px;
  border: none;
  background: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: color .2s;
}
.auth-tab:hover { color: var(--text-1); }
.auth-tab.active { color: var(--text-1); font-weight: 600; }
.auth-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: var(--r);
  background: #fff7e8;
  color: #d25f00;
  font-size: 12.8px;
  line-height: 1.65;
}
.auth-alert svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.auth-alert.err { background: #ffece8; color: var(--danger); }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 22px;
}
.auth-guest {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.auth-guest .t { font-size: 13px; color: var(--text-3); margin-bottom: 13px; }

@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { padding: 32px 22px; align-items: flex-start; }
  .auth-form { margin: 24px auto 0; }
  .auth-form .m-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 34px;
  }
  .auth-form .m-logo .mark {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; background: var(--brand);
  }
  .auth-form .m-logo .mark svg { width: 22px; height: 22px; color: #fff; }
  .auth-form .m-logo .txt { font-size: 18px; font-weight: 600; }
}

/* =========================================================================
   应用外壳（首页 / 个人中心 / 后台）
   ========================================================================= */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; margin-right: 8px; }
.nav-brand .mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
}
.nav-brand .mark svg { width: 17px; height: 17px; color: #fff; }
.nav-brand .txt { font-size: 16px; font-weight: 600; color: var(--text-1); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 14px;
  transition: .16s;
}
.nav-link:hover { background: var(--surface-3); color: var(--text-1); }
.nav-link.active { background: var(--brand-light); color: var(--brand); font-weight: 500; }

.nav-spacer { flex: 1; }
.nav-user {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 10px 0 6px;
  border-radius: 20px;
  cursor: pointer;
  transition: background .16s;
}
.nav-user:hover { background: var(--surface-3); }
.nav-user .nm { font-size: 13.5px; font-weight: 500; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 下拉菜单 */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  z-index: 200;
  animation: ddIn .16s ease;
}
@keyframes ddIn { from { opacity: 0; transform: translateY(-5px) } to { opacity: 1; transform: none } }
.dropdown-menu.hide { display: none; }
.dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: none;
  border-radius: var(--r-sm);
  background: none;
  color: var(--text-1);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.dd-item:hover { background: var(--surface-2); }
.dd-item.danger { color: var(--danger); }
.dd-item.danger:hover { background: #ffece8; }
.dd-item svg { width: 16px; height: 16px; color: var(--text-3); }
.dd-item.danger svg { color: var(--danger); }
.dd-sep { height: 1px; margin: 5px 0; background: var(--border); }

.page { max-width: 1160px; margin: 0 auto; padding: 28px 24px 56px; }
.page-title { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.page-sub { margin: 0 0 24px; font-size: 13.5px; color: var(--text-3); }

/* =========================================================================
   首页：四宫格快捷入口（腾讯会议标志性布局）
   ========================================================================= */
.hero {
  background: linear-gradient(135deg, #2b5fff 0%, #1a45d8 100%);
  border-radius: var(--r-xl);
  padding: 30px 34px;
  color: #fff;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hero .greet { position: relative; z-index: 2; font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.hero .date  { position: relative; z-index: 2; font-size: 13.5px; color: rgba(255, 255, 255, .78); }

.actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 26px 12px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.action-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh);
  border-color: rgba(43, 95, 255, .25);
}
.action-tile:active { transform: translateY(-1px); }
.action-tile .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--r-xl);
  color: #fff;
}
.action-tile .ic svg { width: 25px; height: 25px; }
.action-tile .ic.blue   { background: linear-gradient(135deg, #4a80ff, #2b5fff); }
.action-tile .ic.orange { background: linear-gradient(135deg, #ffa04d, #ff7d00); }
.action-tile .ic.green  { background: linear-gradient(135deg, #3ed16b, #00b42a); }
.action-tile .ic.purple { background: linear-gradient(135deg, #a374ff, #7f56d9); }
.action-tile .lb { font-size: 14.5px; font-weight: 500; color: var(--text-1); }
.action-tile .ds { font-size: 12px; color: var(--text-3); margin-top: -7px; }

@media (max-width: 720px) {
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* 会议 / 列表项 */
.list-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--surface-2); }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 3px;
}
.list-item .li-sub { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-3);
}
.empty svg { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--text-4); }
.empty p { margin: 0; font-size: 13.5px; }

/* 公告 */
.ann-item {
  padding: 13px 16px;
  border-radius: var(--r);
  background: var(--surface-2);
  border-left: 3px solid var(--text-4);
  margin-bottom: 10px;
}
.ann-item:last-child { margin-bottom: 0; }
.ann-item.info   { border-left-color: var(--brand);   background: var(--brand-light2); }
.ann-item.warn   { border-left-color: var(--warning); background: #fff9ef; }
.ann-item.danger { border-left-color: var(--danger);  background: #fff2f0; }
.ann-item .t { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.ann-item .c { font-size: 12.8px; color: var(--text-2); line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.ann-item .d { font-size: 11.5px; color: var(--text-3); margin-top: 7px; }

/* =========================================================================
   会议室
   ========================================================================= */
.meet-body {
  height: 100vh;
  overflow: hidden;
  background: #131315;
  color: #fff;
}
.meet-layout {
  height: 100vh;
  display: grid;
  grid-template-rows: 52px 1fr 78px;
}

/* 顶栏 */
.meet-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #1f2023;
  border-bottom: 1px solid #2c2d31;
}
.meet-top .mt-title {
  font-size: 14.5px;
  font-weight: 500;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .09);
  font-size: 12.5px;
  color: #c2c7d0;
  white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; }
.chip.live { background: rgba(0, 180, 42, .18); color: #4ade80; }
.chip.warn { background: rgba(255, 125, 0, .18); color: #ffa04d; }
.chip.copy { cursor: pointer; transition: background .16s; }
.chip.copy:hover { background: rgba(255, 255, 255, .16); }
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.net-dot { width: 7px; height: 7px; border-radius: 50%; background: #00b42a; }
.net-dot.bad { background: #f53f3f; }
.net-dot.mid { background: #ff7d00; }

/* 主区 */
.meet-main { display: flex; overflow: hidden; min-height: 0; }

.stage-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #131315;
}
.stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  background: #0d0d0f;
}
.stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.stage-empty {
  text-align: center;
  padding: 30px;
  max-width: 460px;
}
.stage-empty .ic {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(43, 95, 255, .13);
  color: #6b93ff;
}
.stage-empty .ic svg { width: 40px; height: 40px; }
.stage-empty h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: #fff; }
.stage-empty p { margin: 0; font-size: 13.5px; color: #8a9099; line-height: 1.85; }

.stage-tag {
  position: absolute;
  left: 16px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 7px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(10px);
  font-size: 12.8px;
  color: #fff;
}

.stat-hud {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 10px 13px;
  border-radius: var(--r);
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(10px);
  font-size: 11.5px;
  color: #c2c7d0;
  line-height: 1.85;
  font-variant-numeric: tabular-nums;
  min-width: 152px;
}
.stat-hud .r { display: flex; justify-content: space-between; gap: 16px; }
.stat-hud .r b { color: #fff; font-weight: 500; }
.stat-hud .hd { color: #6b93ff; font-weight: 600; margin-bottom: 3px; font-size: 11px; letter-spacing: .4px; }

/* 底部头像条 */
.tiles {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  overflow-x: auto;
  background: #17181b;
  border-top: 1px solid #26272b;
}
.tiles:empty { display: none; }
.tile {
  flex-shrink: 0;
  width: 116px;
  padding: 12px 8px;
  border-radius: var(--r);
  background: #232427;
  border: 2px solid transparent;
  text-align: center;
  transition: border-color .18s, background .18s;
}
.tile.speaking { border-color: #00b42a; background: rgba(0, 180, 42, .1); }
.tile .avatar { margin: 0 auto 8px; }
.tile .nm {
  font-size: 12.5px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.tile .st { font-size: 11px; margin-top: 3px; color: #6b7280; }
.tile .st.on { color: #4ade80; }

/* 侧栏 */
.side {
  width: 316px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #1f2023;
  border-left: 1px solid #2c2d31;
}
.side.hide { display: none; }
.side-tabs {
  display: flex;
  height: 46px;
  border-bottom: 1px solid #2c2d31;
  flex-shrink: 0;
}
.side-tab {
  flex: 1;
  position: relative;
  border: none;
  background: none;
  color: #8a9099;
  font-size: 13.5px;
  cursor: pointer;
  transition: color .18s;
}
.side-tab:hover { color: #fff; }
.side-tab.active { color: #fff; font-weight: 500; }
.side-tab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 34px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brand);
}
.side-tab .dot {
  position: absolute;
  top: 11px;
  right: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}
.side-pane { flex: 1; overflow-y: auto; min-height: 0; }
.side-pane.hide { display: none; }

/* 成员行 */
.peer-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  transition: background .15s;
}
.peer-row:hover { background: rgba(255, 255, 255, .05); }
.peer-row .pi { flex: 1; min-width: 0; }
.peer-row .pn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.peer-row .ps {
  font-size: 11.5px;
  color: #8a9099;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.peer-acts { display: flex; gap: 2px; opacity: 0; transition: opacity .16s; }
.peer-row:hover .peer-acts { opacity: 1; }
.peer-acts .icon-btn { width: 28px; height: 28px; }

.side-foot {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 11px 14px;
  border-top: 1px solid #2c2d31;
}

/* 聊天 */
.chat-scroll { flex: 1; overflow-y: auto; padding: 14px; min-height: 0; }
.chat-msg { display: flex; gap: 9px; margin-bottom: 15px; }
.chat-bubble { flex: 1; min-width: 0; }
.chat-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #8a9099;
  margin-bottom: 4px;
}
.chat-meta .who { color: #c2c7d0; font-weight: 500; }
.chat-text {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 3px 10px 10px 10px;
  background: #2c2d31;
  color: #e8eaed;
  font-size: 13.2px;
  line-height: 1.68;
  word-break: break-word;
  white-space: pre-wrap;
  max-width: 100%;
}
.chat-msg.mine .chat-text { background: var(--brand); color: #fff; }
.chat-sys {
  text-align: center;
  font-size: 11.5px;
  color: #6b7280;
  margin: 11px 0;
  padding: 0 12px;
  line-height: 1.6;
}
.chat-input {
  flex-shrink: 0;
  padding: 11px 14px;
  border-top: 1px solid #2c2d31;
}
.chat-input .box {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-input textarea {
  flex: 1;
  height: 40px;
  max-height: 96px;
  padding: 9px 12px;
  border: 1px solid #35363b;
  border-radius: var(--r);
  background: #2c2d31;
  color: #fff;
  resize: none;
  outline: none;
  line-height: 1.5;
  font-size: 13.2px;
  transition: border-color .18s;
}
.chat-input textarea:focus { border-color: var(--brand); }
.chat-input textarea::placeholder { color: #6b7280; }

/* 控制栏 */
.meet-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  background: #1f2023;
  border-top: 1px solid #2c2d31;
  position: relative;
}
.bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 66px;
  height: 58px;
  padding: 0 10px;
  border: none;
  border-radius: var(--r);
  background: transparent;
  color: #c2c7d0;
  font-size: 11.5px;
  cursor: pointer;
  transition: background .16s, color .16s;
  position: relative;
}
.bar-btn:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.bar-btn svg { width: 21px; height: 21px; }
.bar-btn.on { color: #fff; }
.bar-btn.on svg { color: var(--brand); }
.bar-btn.live { color: #4ade80; }
.bar-btn.muted svg { color: #f53f3f; }
.bar-btn:disabled { opacity: .38; cursor: not-allowed; }
.bar-btn:disabled:hover { background: transparent; }
.bar-btn .dot {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}
.bar-sep { width: 1px; height: 30px; background: #35363b; margin: 0 6px; }
.bar-right { position: absolute; right: 16px; display: flex; align-items: center; gap: 10px; }
.btn-leave {
  height: 38px;
  padding: 0 22px;
  border: none;
  border-radius: var(--r);
  background: var(--danger);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .16s;
}
.btn-leave:hover { background: var(--danger-h); }

@media (max-width: 860px) {
  .side { position: fixed; right: 0; top: 52px; bottom: 78px; width: 300px; z-index: 60; box-shadow: -6px 0 24px rgba(0,0,0,.4); }
  .bar-btn { min-width: 56px; }
  .bar-btn .lb { display: none; }
  .bar-right { position: static; margin-left: auto; }
  .meet-top .mt-title { max-width: 120px; }
}

/* =========================================================================
   管理后台
   ========================================================================= */
.admin-layout { display: grid; grid-template-columns: 218px 1fr; min-height: calc(100vh - 56px); }
.admin-side {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 16px 12px;
}
.admin-side .grp { font-size: 11.5px; color: var(--text-3); padding: 12px 12px 6px; font-weight: 600; letter-spacing: .5px; }
.admin-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 2px;
  border: none;
  border-radius: var(--r);
  background: none;
  color: var(--text-2);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: .16s;
}
.admin-nav:hover { background: var(--surface-2); color: var(--text-1); }
.admin-nav.active { background: var(--brand-light); color: var(--brand); font-weight: 500; }
.admin-nav svg { width: 17px; height: 17px; }
.admin-main { padding: 24px 26px 56px; overflow-x: auto; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: #fff; border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-sm); }
.stat-card .lb { font-size: 12.5px; color: var(--text-3); margin-bottom: 7px; }
.stat-card .vl { font-size: 27px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card .vl.blue { color: var(--brand); }
.stat-card .vl.green { color: var(--success); }
.stat-card .vl.orange { color: var(--warning); }

.table-wrap { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.2px; }
table.tbl th {
  text-align: left;
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 500;
  font-size: 12.5px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
table.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl .acts { display: flex; gap: 5px; flex-wrap: wrap; }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.setting-row:last-child { border-bottom: none; }
.setting-row .si { flex: 1; min-width: 0; }
.setting-row .si b { display: block; font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.setting-row .si span { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: flex; gap: 6px; overflow-x: auto; padding: 10px; border-right: none; border-bottom: 1px solid var(--border); }
  .admin-side .grp { display: none; }
  .admin-nav { width: auto; white-space: nowrap; margin-bottom: 0; }
  .admin-main { padding: 18px 14px 48px; }
}

/* 工具类 */
.hide { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.mt-0 { margin-top: 0 } .mt-8 { margin-top: 8px } .mt-16 { margin-top: 16px } .mt-24 { margin-top: 24px }
.mb-0 { margin-bottom: 0 } .mb-8 { margin-bottom: 8px } .mb-16 { margin-bottom: 16px }
.t-2 { color: var(--text-2) } .t-3 { color: var(--text-3) }
.fs-12 { font-size: 12px } .fs-13 { font-size: 13px }
.center { text-align: center; }

/* =========================================================================
   移动端深度适配
   ≤ 768px：手机竖屏 / ≤ 380px：超小屏 / landscape：横屏
   ========================================================================= */
@media (max-width: 768px) {

  /* ---------- 全局 ---------- */
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 14px; }
  :root {
    --r-lg: 10px;
    --r-xl: 12px;
    --r-2xl: 14px;
  }
  /* 输入框 font-size ≥ 16px，防止 iOS Safari 聚焦时自动放大 */
  .input, input[type="text"], input[type="password"], input[type="number"],
  input[type="search"], textarea, select {
    font-size: 16px !important;
  }

  /* ---------- 登录 / 注册 ---------- */
  .auth-wrap { grid-template-columns: 1fr !important; min-height: 100vh; }
  .auth-brand { display: none; }
  .auth-panel {
    position: relative;
    padding: 0 20px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 60px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
    max-width: 100% !important;
    overflow: hidden;
  }
  /* 移动端顶部蓝色渐变背景 */
  .auth-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 220px;
    background: linear-gradient(160deg, var(--brand) 0%, #6b8aff 100%);
    z-index: 0;
  }
  .auth-panel::after {
    content: '';
    position: absolute;
    top: 180px; left: 0; right: 0; bottom: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 0;
  }
  .auth-panel > * { position: relative; z-index: 1; }
  /* 移动端 logo（HTML 中是 .m-logo） */
  .auth-form .m-logo {
    display: flex !important;
    margin-bottom: 24px;
  }
  .auth-form .m-logo .mark {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .3);
  }
  .auth-form .m-logo .mark svg { width: 22px; height: 22px; color: #fff; }
  .auth-form .m-logo .txt { font-size: 18px; font-weight: 600; color: #fff; }
  .auth-tabs { margin-bottom: 22px; }
  .auth-tabs button { font-size: 16px; padding: 8px 0; }
  .auth-form .input { height: 48px; }
  .auth-form .btn { height: 48px; font-size: 16px; }
  .auth-foot { flex-direction: column; gap: 10px; }
  .auth-foot .btn { width: 100%; }

  /* ---------- 顶部导航 ---------- */
  .app-nav {
    padding: 0 12px;
    height: 48px;
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(48px + env(safe-area-inset-top, 0px));
  }
  .app-nav .nav-brand .txt { font-size: 15px; }
  .app-nav .nav-brand .mark { width: 26px; height: 26px; }
  .app-nav .nav-brand .mark svg { width: 15px; height: 15px; }
  .app-nav .nav-links { gap: 0; }
  .app-nav .nav-links a { font-size: 13px; padding: 6px 8px; }
  .app-nav .nav-user .nm { display: none; }
  .dropdown-menu {
    position: fixed;
    right: 8px;
    left: 8px;
    top: calc(48px + env(safe-area-inset-top, 0px));
    width: auto;
  }

  /* ---------- 首页 ---------- */
  .home-hero {
    padding: 20px 16px 18px;
    border-radius: 0 0 var(--r-xl) var(--r-xl);
  }
  .home-hero h1 { font-size: 19px; }
  .home-hero .sub { font-size: 12.5px; }
  .home-hero .date { font-size: 11.5px; }
  .home-main { padding: 14px 12px 60px; }
  .actions {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .action-tile {
    padding: 18px 12px;
    border-radius: var(--r-xl);
    min-height: 96px;
  }
  .action-tile .ic {
    width: 38px; height: 38px;
    border-radius: 11px;
  }
  .action-tile .ic svg { width: 19px; height: 19px; }
  .action-tile .lb { font-size: 13.5px; margin-top: 10px; }
  .action-tile .ds { display: none; }
  .grid-2 { grid-template-columns: 1fr !important; gap: 14px !important; }
  .card { padding: 16px 14px; border-radius: var(--r-xl); }
  .card-h h3 { font-size: 15px; }

  /* ---------- 会议室（核心） ---------- */
  .meet-layout {
    grid-template-rows: calc(44px + env(safe-area-inset-top, 0px)) 1fr calc(62px + env(safe-area-inset-bottom, 0px));
  }
  .meet-top {
    padding: 0 10px;
    gap: 6px;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .meet-top .mt-title {
    font-size: 13px;
    max-width: 110px;
  }
  .meet-top .chip {
    height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }
  .meet-top .chip.timer,
  .meet-top #netText { display: none; }
  .stat-hud {
    right: 8px;
    top: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 10px;
    min-width: 0;
    line-height: 1.6;
  }
  .stat-hud .hd { font-size: 9px; }
  .stat-hud .r { gap: 8px; }
  .stage-tag {
    left: 8px;
    top: 8px;
    padding: 4px 10px 4px 6px;
    font-size: 11px;
    border-radius: 14px;
  }
  .stage-tag .avatar { width: 22px; height: 22px; font-size: 10px; }
  .stage-empty .ic { width: 64px; height: 64px; }
  .stage-empty .ic svg { width: 28px; height: 28px; }
  .stage-empty h3 { font-size: 15px; }
  .stage-empty p { font-size: 12px; }

  /* 底部头像条 */
  .tiles {
    padding: 8px 10px;
    gap: 8px;
  }
  .tile {
    width: 80px;
    padding: 8px 6px;
    border-radius: 8px;
  }
  .tile .avatar { width: 30px; height: 30px; font-size: 12px; margin-bottom: 5px; }
  .tile .nm { font-size: 11px; }
  .tile .st { font-size: 10px; }

  /* 侧栏 → 全屏覆盖式滑出 */
  .side {
    position: fixed !important;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100% !important;
    max-width: 340px;
    z-index: 100;
    box-shadow: -8px 0 32px rgba(0, 0, 0, .5);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.32, .72, 0, 1);
    border-left: 1px solid #2c2d31;
  }
  .side.show { transform: translateX(0); }
  .side.hide { transform: translateX(100%); display: flex !important; }
  .side-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s;
  }
  .side-backdrop.show { opacity: 1; pointer-events: auto; }
  .side-tabs { height: 42px; }
  .side-tab { font-size: 13px; }
  .peer-row { padding: 9px 12px; }
  .peer-acts { opacity: 1; }
  .peer-acts .icon-btn { width: 30px; height: 30px; }
  .chat-input { padding: 8px 10px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
  .chat-input textarea { height: 36px; font-size: 16px; }

  /* 控制栏 */
  .meet-bar {
    padding: 0 6px;
    gap: 2px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .bar-btn {
    min-width: 48px;
    height: 50px;
    padding: 0 6px;
    gap: 2px;
    font-size: 9.5px;
  }
  .bar-btn svg { width: 19px; height: 19px; }
  .bar-btn .lb { font-size: 9.5px; }
  .bar-sep { margin: 0 2px; }
  .bar-right { position: static; margin-left: auto; }
  .btn-leave {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 8px;
  }

  /* ---------- 个人中心 ---------- */
  .profile-wrap { padding: 16px 12px 40px; }
  .profile-card { padding: 18px 14px; }
  .profile-card .avatar-box { width: 64px; height: 64px; }

  /* ---------- 管理后台 ---------- */
  .admin-layout { grid-template-columns: 1fr !important; }
  .admin-side {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 8px 10px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: calc(48px + env(safe-area-inset-top, 0px));
    z-index: 10;
    background: var(--surface);
    -webkit-overflow-scrolling: touch;
  }
  .admin-side .grp { display: none; }
  .admin-nav {
    width: auto;
    white-space: nowrap;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .admin-main { padding: 14px 12px 48px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-card { padding: 14px 12px; }
  .stat-card .val { font-size: 22px; }
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl { min-width: 560px; }

  /* ---------- 弹窗 → 底部抽屉 ---------- */
  .modal-wrap { padding: 0; align-items: flex-end; }
  .modal {
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 85vh;
    margin: 0;
    animation: slideUp .28s cubic-bezier(.32, .72, 0, 1);
  }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .modal .modal-h { padding: 16px 16px 12px; }
  .modal .modal-h h3 { font-size: 16px; }
  .modal .modal-b { padding: 0 16px 16px; }
  .modal .modal-f {
    padding: 12px 16px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    flex-direction: column-reverse;
  }
  .modal .modal-f .btn { width: 100%; }

  /* Toast */
  .toast-zone {
    top: calc(env(safe-area-inset-top, 0px) + 56px);
    left: 12px;
    right: 12px;
    max-width: none;
  }
}

/* ---------- 超小屏（≤ 380px） ---------- */
@media (max-width: 380px) {
  .actions { grid-template-columns: 1fr !important; }
  .bar-btn { min-width: 42px; padding: 0 4px; }
  .bar-btn .lb { display: none; }
  .tile { width: 70px; }
  .meet-top .mt-title { max-width: 70px; }
  .meet-top .chip:not(.live):not(.warn):not(.copy) { display: none; }
}

/* ---------- 横屏适配 ---------- */
@media (max-width: 768px) and (orientation: landscape) {
  .meet-layout { grid-template-rows: 40px 1fr 54px; }
  .tiles { padding: 6px 10px; }
  .tile { width: 92px; padding: 6px 6px; }
  .tile .avatar { width: 28px; height: 28px; margin-bottom: 3px; }
  .side { max-width: 280px; }
  .auth-panel { padding-top: calc(env(safe-area-inset-top, 0px) + 32px); }
  .auth-panel::before { height: 160px; }
  .auth-panel::after { top: 130px; }
}
