/* ========================================
   Tassaem Meeting - 苹果生态风格样式
   ======================================== */

/* ============ 重置与基础 ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0c1220;
  --bg-secondary: #162033;
  --bg-tertiary: #1e2a42;
  --glass-bg: rgba(28, 38, 62, 0.72);
  --glass-bg-light: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --text-primary: #ffffff;
  --text-secondary: rgba(235, 235, 245, 0.7);
  --text-tertiary: rgba(235, 235, 245, 0.4);
  --accent-blue: #0a84ff;
  --accent-blue-hover: #409cff;
  --accent-green: #30d158;
  --accent-red: #ff453a;
  --accent-orange: #ff9f0a;
  --accent-purple: #bf5af2;
  --accent-cyan: #64d2ff;
  --accent-pink: #ff375f;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --shadow-glass: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-btn: 0 6px 20px rgba(10, 132, 255, 0.4);
  --shadow-glow-blue: 0 0 30px rgba(10, 132, 255, 0.3);
  --shadow-glow-cyan: 0 0 30px rgba(100, 210, 255, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
               'Helvetica Neue', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ============ 背景动效 ============ */
.bg-gradient {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #0f1a2e 0%, #1a2d4d 25%, #162540 50%, #1a2240 75%, #0f1830 100%);
  z-index: -2;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.65;
  animation: blobFloat 22s ease-in-out infinite;
}

.blob-1 {
  width: 650px; height: 650px;
  background: radial-gradient(circle, #0a84ff, #64d2ff 40%, #5e5ce6 70%, transparent 80%);
  top: -180px; left: -150px;
  animation-delay: 0s;
}

.blob-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #bf5af2, #ff375f 40%, #ff6b9d 70%, transparent 80%);
  bottom: -180px; right: -150px;
  animation-delay: -8s;
}

.blob-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #30d158, #64d2ff 40%, #0a84ff 70%, transparent 80%);
  top: 40%; left: 45%;
  animation-delay: -15s;
}

/* 额外的光影层 - 增加科技感 */
.bg-gradient::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(10, 132, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(191, 90, 242, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(100, 210, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.15); }
  50% { transform: translate(-40px, 50px) scale(0.9); }
  75% { transform: translate(30px, -20px) scale(1.05); }
}

/* ============ 语言切换 ============ */
.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 4px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--glass-border);
  z-index: 100;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.lang-btn.active {
  background: var(--glass-bg-light);
  color: var(--text-primary);
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* ============ 主页容器 ============ */
.index-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ 品牌区 ============ */
.brand-section {
  text-align: center;
  margin-bottom: 60px;
}

.brand-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 132, 255, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: logoFloat 4s ease-in-out infinite;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.brand-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============ 功能卡片 ============ */
.action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin-bottom: 48px;
}

.action-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-spring);
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0;
  transition: var(--transition);
}

.action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glass);
}

.action-card:hover::before {
  opacity: 1;
}

.action-card:active {
  transform: translateY(-1px) scale(0.98);
}

.action-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.action-icon svg {
  width: 28px;
  height: 28px;
}

.create-icon {
  background: linear-gradient(135deg, #0a84ff, #5e5ce6);
  color: white;
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.4);
}

.join-icon {
  background: linear-gradient(135deg, #30d158, #0a84ff);
  color: white;
  box-shadow: 0 4px 16px rgba(48, 209, 88, 0.4);
}

.action-card:hover .action-icon {
  transform: scale(1.1);
}

.action-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.action-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============ 底部信息 ============ */
.footer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ============ 弹窗 ============ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-glass);
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-spring);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--glass-bg-light);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: -0.3px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #30d158, #34c759);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(48, 209, 88, 0.4);
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

@keyframes successPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ============ 表单 ============ */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding-left: 4px;
}

.form-input {
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--accent-blue);
  background: rgba(10, 132, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

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

.form-input[type="datetime-local"] {
  color-scheme: dark;
}

.form-error {
  color: var(--accent-red);
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}

/* ============ 按钮 ============ */
.btn-primary, .btn-secondary {
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #0a84ff, #5e5ce6);
  color: white;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.45);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--glass-bg-light);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ 会议信息列表 ============ */
.meeting-info-list {
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--glass-bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.info-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.info-value {
  font-size: 15px;
  font-weight: 500;
}

.info-highlight {
  color: var(--accent-blue);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
  flex: 1;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-glass);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  border-color: rgba(48, 209, 88, 0.4);
}

.toast-error {
  border-color: rgba(255, 69, 58, 0.4);
}

/* ============ 入场动画 ============ */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   会议室页面样式
   ======================================== */
.page-room {
  overflow: hidden;
  height: 100vh;
}

.room-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
}

/* 顶部栏 */
.room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(22, 32, 51, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 10;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.room-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.room-logo-mini {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.room-logo-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-title {
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff, #64d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.room-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.room-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-id-badge {
  background: rgba(10, 132, 255, 0.15);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition-spring);
  border: 1px solid rgba(10, 132, 255, 0.3);
  color: #64d2ff;
}

.room-id-badge:hover {
  background: rgba(10, 132, 255, 0.25);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.3);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green), 0 0 20px rgba(48, 209, 88, 0.4);
}

.status-dot.connecting {
  background: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange), 0 0 20px rgba(255, 159, 10, 0.4);
  animation: pulse 1s ease-in-out infinite;
}

.status-dot.disconnected {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red), 0 0 20px rgba(255, 69, 58, 0.4);
}

/* 视频区域 */
.video-area {
  flex: 1;
  display: grid;
  gap: 14px;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.video-area.layout-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.video-area.layout-2 { grid-template-columns: 1fr 1fr; }
.video-area.layout-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.video-area.layout-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.video-area.layout-more { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-auto-rows: 1fr; }

.video-tile {
  position: relative;
  background: linear-gradient(135deg, #162033, #1e2a42);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-spring);
  min-height: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-tile:hover {
  border-color: rgba(100, 210, 255, 0.4);
  box-shadow: 0 12px 40px rgba(10, 132, 255, 0.25);
  transform: translateY(-2px);
}

.video-tile.speaking {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.4), 0 0 30px rgba(10, 132, 255, 0.3);
  animation: speakingGlow 1.5s ease-in-out infinite;
}

@keyframes speakingGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.4), 0 0 30px rgba(10, 132, 255, 0.3); }
  50% { box-shadow: 0 0 0 3px rgba(100, 210, 255, 0.5), 0 0 40px rgba(100, 210, 255, 0.4); }
}

.video-tile.screen-main {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2540 0%, #253050 50%, #1a2540 100%);
  background-size: 200% 200%;
  animation: shimmer 4s ease-in-out infinite;
  gap: 14px;
}

.placeholder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a84ff, #64d2ff, #5e5ce6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(10, 132, 255, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 12px 32px rgba(100, 210, 255, 0.5); }
}

.placeholder-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 连接状态提示 */
.connection-status {
  margin-top: 8px;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.connection-status.warning {
  color: var(--accent-orange);
  background: rgba(255, 159, 10, 0.15);
}

.connection-status.error {
  color: var(--accent-red);
  background: rgba(255, 69, 58, 0.15);
}

.video-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.participant-name {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.host-badge {
  background: linear-gradient(135deg, var(--accent-orange), #ff6b00);
  color: white;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 159, 10, 0.4);
}

.participant-controls {
  display: flex;
  gap: 6px;
}

.tile-indicator {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.tile-indicator.mic-off {
  background: rgba(255, 69, 58, 0.85);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 69, 58, 0.4);
}

.tile-indicator svg {
  width: 14px;
  height: 14px;
}

/* 空状态 */
.empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-tertiary);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  opacity: 0.3;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-state-text {
  font-size: 16px;
}

/* 控制栏 */
.control-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 24px;
  background: rgba(22, 32, 51, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.control-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-spring);
  position: relative;
  backdrop-filter: blur(10px);
}

.control-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.control-btn:hover {
  transform: scale(1.12) translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(100, 210, 255, 0.4);
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.3);
}

.control-btn:hover::before {
  opacity: 1;
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.control-btn.active {
  background: linear-gradient(135deg, var(--accent-blue), #409cff);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.5), 0 0 30px rgba(10, 132, 255, 0.2);
  animation: btnActivePulse 2s ease-in-out infinite;
}

@keyframes btnActivePulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(10, 132, 255, 0.5), 0 0 30px rgba(10, 132, 255, 0.2); }
  50% { box-shadow: 0 6px 24px rgba(10, 132, 255, 0.6), 0 0 40px rgba(100, 210, 255, 0.3); }
}

.control-btn.danger {
  background: linear-gradient(135deg, var(--accent-red), #ff6b61);
  border-color: transparent;
  color: white;
  width: 58px;
  height: 58px;
  box-shadow: 0 6px 20px rgba(255, 69, 58, 0.4);
}

.control-btn.danger:hover {
  background: linear-gradient(135deg, #ff6b61, #ff8a80);
  box-shadow: 0 8px 28px rgba(255, 69, 58, 0.5);
  transform: scale(1.12) translateY(-2px);
}

.control-btn.share-active {
  background: linear-gradient(135deg, var(--accent-green), #34c759);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 20px rgba(48, 209, 88, 0.4);
}

.control-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(30, 42, 66, 0.95);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.control-btn:hover .control-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 侧边面板（聊天/参与者）- 半屏显示，不遮挡视频 */
.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(50vw, 420px);
  height: 100vh;
  background: rgba(22, 32, 51, 0.92);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 50;
  transform: translateX(100%);
  transition: var(--transition-spring);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
}

.side-panel.open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-title {
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #64d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.panel-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.panel-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.panel-close svg {
  width: 18px;
  height: 18px;
}

/* 参与者列表 */
.participants-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.participant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.participant-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(100, 210, 255, 0.2);
  transform: translateX(4px);
}

.participant-item.focused {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.2), rgba(100, 210, 255, 0.1));
  border-color: rgba(10, 132, 255, 0.4);
}

.participant-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a84ff, #64d2ff, #5e5ce6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

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

.participant-item-name {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.participant-status {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 3px;
}

.focus-badge {
  color: #ffd60a;
  margin-left: 4px;
  font-size: 14px;
}

.focus-hint {
  font-size: 10px;
  color: var(--accent-cyan);
  margin-left: 6px;
  opacity: 0.8;
}

/* 聊天 */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-message {
  max-width: 82%;
  animation: msgIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-message.own {
  align-self: flex-end;
}

.chat-sender {
  font-size: 11px;
  color: var(--accent-cyan);
  margin-bottom: 5px;
  padding: 0 10px;
  font-weight: 600;
}

.chat-bubble {
  padding: 11px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  backdrop-filter: blur(10px);
}

.chat-message:not(.own) .chat-bubble {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-message.own .chat-bubble {
  background: linear-gradient(135deg, var(--accent-blue), #409cff);
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
  flex: 1;
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.chat-input:focus {
  border-color: var(--accent-blue);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent-blue);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.1);
}

.chat-send-btn svg {
  width: 18px;
  height: 18px;
}

/* 离开确认弹窗 */
.leave-modal .modal-card {
  max-width: 360px;
  text-align: center;
}

.leave-modal .modal-title {
  margin-bottom: 12px;
}

.leave-modal-text {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}

.leave-modal .modal-actions {
  flex-direction: column;
}

/* ============ 响应式 ============ */
@media (max-width: 640px) {
  .brand-title { font-size: 28px; }
  .brand-logo { width: 80px; height: 80px; }
  .action-cards { grid-template-columns: 1fr; }
  .action-card { padding: 24px 20px; }
  .modal-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .control-bar { gap: 8px; padding: 12px; }
  .control-btn { width: 46px; height: 46px; }
  .control-btn.danger { width: 50px; height: 50px; }
  .control-btn svg { width: 20px; height: 20px; }
  .side-panel { width: min(55vw, 360px); }
  .video-area { padding: 8px; gap: 8px; }
  .room-header { padding: 10px 14px; }
  .room-title { font-size: 14px; }
  .lang-switcher { top: 12px; right: 12px; }
  .meeting-timer { padding: 4px 10px; font-size: 12px; gap: 4px; }
  .meeting-timer .timer-icon { width: 12px; height: 12px; }
  .room-id-badge { padding: 6px 10px; font-size: 11px; }

  /* 手机端视频区域可滚动 - 单列上下排列 */
  .video-area {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 8px;
  }

  /* 手机端一人：占满整个区域 */
  .video-area.layout-1 .video-tile {
    flex: 1;
    min-height: 0;
  }

  /* 手机端两人：上下排列，平分高度 */
  .video-area.layout-2 .video-tile {
    flex: 1;
    min-height: 0;
  }

  /* 手机端三人及以上：上下排列，每个窗口高度为可视区域的 1/2.5，显示两个半提示可滚动 */
  .video-area.layout-3 .video-tile,
  .video-area.layout-4 .video-tile,
  .video-area.layout-more .video-tile {
    flex: 0 0 calc((100vh - 140px) / 2.5);
    height: calc((100vh - 140px) / 2.5);
    min-height: calc((100vh - 140px) / 2.5);
  }

  /* 手机端焦点模式：大视频在上，小窗横向排列在底部可滑动 */
  .video-area.layout-focus {
    flex-direction: column;
    align-content: stretch;
    justify-content: flex-start;
    align-items: stretch;
  }
  .video-area.layout-focus .video-tile.focused {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 50vh;
    min-height: 280px;
    flex: 0 0 50vh;
    order: 0;
  }
  .video-area.layout-focus .video-tile.thumbnail {
    width: 110px;
    height: 80px;
    min-width: 110px;
    min-height: 80px;
    max-width: 110px;
    max-height: 80px;
    flex: 0 0 auto;
  }
  /* 小窗容器横向滚动 */
  .video-area.layout-focus {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .video-area.layout-focus .video-tile.thumbnail {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  /* 更小屏幕优化小窗尺寸 */
  .video-area.layout-focus .video-tile.thumbnail {
    width: 95px;
    height: 70px;
    min-width: 95px;
    min-height: 70px;
    max-width: 95px;
    max-height: 70px;
  }
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============ 安全上下文警告 ============ */
.security-warning {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 1000;
  max-width: 500px;
  width: 90%;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.security-warning.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.security-warning-content {
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.95), rgba(255, 69, 58, 0.9));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 8px 32px rgba(255, 159, 10, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.security-warning-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.security-warning-text {
  flex: 1;
  color: white;
  font-size: 13px;
  line-height: 1.5;
}

.security-warning-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 600;
}

/* ============ 性能优化：硬件加速 ============ */
.video-tile,
.control-btn,
.action-card {
  will-change: transform;
  transform: translateZ(0);
}

.video-element {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ============ 加载骨架屏动画 ============ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* 视频占位符渐变优化 */
.video-placeholder {
  background: linear-gradient(135deg, #1a2540, #253050, #1a2540);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* ============ 焦点视频布局 ============ */
.video-area.layout-focus {
  position: relative;
  padding: 16px;
  gap: 12px;
}

.video-area.layout-focus .video-tile.focused {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  z-index: 1;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-area.layout-focus .video-tile.thumbnail {
  position: relative;
  width: 180px;
  height: 120px;
  min-width: 180px;
  min-height: 120px;
  max-width: 180px;
  max-height: 120px;
  z-index: 2;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.video-area.layout-focus .video-tile.thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(10, 132, 255, 0.4);
}

.video-area.layout-focus .video-tile.thumbnail .placeholder-avatar {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.video-area.layout-focus .video-tile.thumbnail .placeholder-text {
  font-size: 11px;
}

.video-area.layout-focus .video-tile.thumbnail .participant-name {
  font-size: 11px;
  padding: 4px 8px;
}

/* 缩略图容器 - 右下角排列 */
.video-area.layout-focus {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: flex-end;
  align-items: flex-end;
}

.video-area.layout-focus .video-tile.focused {
  order: -1;
}

/* 视频框放大按钮 */
.tile-focus-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
  z-index: 5;
}

.tile-focus-btn svg {
  width: 16px;
  height: 16px;
}

.video-tile:hover .tile-focus-btn {
  opacity: 1;
}

.tile-focus-btn:hover {
  background: rgba(10, 132, 255, 0.8);
  transform: scale(1.1);
}

/* 焦点状态下隐藏放大按钮，显示取消提示 */
.video-tile.focused .tile-focus-btn {
  opacity: 1;
  background: rgba(255, 69, 58, 0.8);
}

/* ============ 公屏飘字 ============ */
.public-chat-container {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  max-width: 80%;
}

.public-chat-item {
  background: rgba(20, 25, 45, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 10px 20px;
  color: white;
  font-size: 14px;
  max-width: 100%;
  word-break: break-all;
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: publicChatGlow 2s ease-in-out infinite;
}

.public-chat-item.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.public-chat-item.own {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.85), rgba(100, 210, 255, 0.85));
  border-color: rgba(255, 255, 255, 0.3);
}

.public-chat-name {
  font-weight: 600;
  color: #64d2ff;
  margin-right: 4px;
}

.public-chat-item.own .public-chat-name {
  color: white;
}

.public-chat-msg {
  color: rgba(255, 255, 255, 0.95);
}

@keyframes publicChatGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 8px 32px rgba(10, 132, 255, 0.3); }
}

/* ============ 参与者列表焦点样式 ============ */
.participant-item {
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border-radius: 12px;
  margin-bottom: 4px;
}

.participant-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.participant-item.focused {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.2), rgba(100, 210, 255, 0.1));
  border: 1px solid rgba(10, 132, 255, 0.4);
}

.focus-badge {
  color: #ffd60a;
  margin-left: 6px;
  font-size: 14px;
}

.focus-hint {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-left: 8px;
  opacity: 0.7;
}

/* ============ 响应式：焦点布局 ============ */
@media (max-width: 640px) {
  .video-area.layout-focus .video-tile.thumbnail {
    width: 100px;
    height: 70px;
    min-width: 100px;
    min-height: 70px;
    max-width: 100px;
    max-height: 70px;
  }

  .public-chat-container {
    top: 70px;
    max-width: 90%;
  }

  .public-chat-item {
    font-size: 12px;
    padding: 8px 14px;
  }
}

/* ========================================
   新增：会议时长计时器（苹果风格）
   ======================================== */
.meeting-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: var(--transition-fast);
  cursor: default;
}

.meeting-timer:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.meeting-timer .timer-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-green);
  animation: timerPulse 2s ease-in-out infinite;
}

.meeting-timer.waiting .timer-icon {
  color: var(--accent-orange);
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.timer-text {
  letter-spacing: 0.5px;
}

/* ========================================
   新增：说话动态指示器（苹果风格光晕）
   ======================================== */
.video-tile.speaking {
  box-shadow: 0 0 0 2px rgba(48, 209, 88, 0.8), 0 0 24px rgba(48, 209, 88, 0.4);
  transition: box-shadow 0.15s ease;
}

.speaking-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.3), rgba(100, 210, 255, 0.2));
  pointer-events: none;
  z-index: 0;
  animation: speakingGlow 1.2s ease-in-out infinite;
}

@keyframes speakingGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

/* 参与者列表中的说话指示 */
.participant-item.speaking {
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.15), rgba(48, 209, 88, 0.05));
  border-color: rgba(48, 209, 88, 0.3);
}

.participant-item.speaking .participant-item-name::after {
  content: '●';
  color: var(--accent-green);
  margin-left: 6px;
  font-size: 10px;
  animation: speakingDot 1s ease-in-out infinite;
}

@keyframes speakingDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ========================================
   新增：时长滑动选择器（苹果风格）
   ======================================== */
.duration-slider-wrap {
  position: relative;
  padding: 8px 0 4px;
}

.duration-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.duration-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  border: 2px solid var(--accent-blue);
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.4), 0 0 0 4px rgba(10, 132, 255, 0.1);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.duration-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.5), 0 0 0 6px rgba(10, 132, 255, 0.15);
}

.duration-slider::-webkit-slider-thumb:active {
  transform: scale(1.05);
}

.duration-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  border: 2px solid var(--accent-blue);
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.4);
  cursor: pointer;
}

.duration-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 2px;
}

.duration-labels span {
  font-size: 11px;
  color: var(--text-tertiary);
  transition: color 0.2s, font-weight 0.2s;
  cursor: pointer;
}

.duration-labels span.active {
  color: var(--accent-blue);
  font-weight: 600;
}

.duration-selected {
  position: absolute;
  top: -18px;
  right: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(100, 210, 255, 0.1);
  padding: 2px 10px;
  border-radius: 10px;
  border: 1px solid rgba(100, 210, 255, 0.2);
}

/* ========================================
   新增：可加入会议列表（苹果风格）
   ======================================== */
.meeting-list-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meeting-list-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meeting-list-divider::before,
.meeting-list-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.meeting-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meeting-list::-webkit-scrollbar {
  width: 4px;
}

.meeting-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.meeting-list-loading,
.meeting-list-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.meeting-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.meeting-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-blue);
  opacity: 0;
  transition: opacity 0.2s;
}

.meeting-list-item.status-live::before {
  background: var(--accent-green);
  opacity: 1;
  animation: livePulse 2s ease-in-out infinite;
}

.meeting-list-item.status-upcoming::before {
  background: var(--accent-orange);
  opacity: 1;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.meeting-list-item:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(2px);
}

.meeting-list-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.meeting-item-main {
  flex: 1;
  min-width: 0;
}

.meeting-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.meeting-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}

.meeting-status-badge {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meeting-status-badge.status-live {
  background: rgba(48, 209, 88, 0.2);
  color: var(--accent-green);
}

.meeting-status-badge.status-upcoming {
  background: rgba(255, 159, 10, 0.2);
  color: var(--accent-orange);
}

.meeting-item-time {
  font-variant-numeric: tabular-nums;
}

.meeting-item-count {
  color: var(--text-secondary);
}

.meeting-lock {
  width: 12px;
  height: 12px;
  color: var(--text-tertiary);
}

.meeting-item-id {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
  margin-left: 10px;
  flex-shrink: 0;
}

.meeting-item-join {
  font-size: 11px;
  color: var(--accent-blue);
  font-weight: 600;
  margin-left: 8px;
  flex-shrink: 0;
}

/* ========================================
   性能优化：GPU 加速与渲染优化
   ======================================== */
.video-tile {
  contain: layout paint style;
  will-change: transform, opacity;
}

.side-panel {
  will-change: transform;
  contain: layout paint;
}

.video-element {
  /* 移除 contain: strict，否则会阻止视频内容渲染导致黑屏 */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.bg-blob {
  will-change: transform;
  transform: translateZ(0);
}

/* 减少不必要的重绘 */
.control-btn,
.action-card,
.modal-card {
  transform: translateZ(0);
}

/* 高对比度模式优化 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
