/* ========== 全局 ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "HarmonyOS Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #070a0e;
  color: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

body.room-page {
  overflow: hidden;
}

/* ========== Aurora 商务极光背景 ========== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #070a0e;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

/* 主光：左上区域大团蓝，最显眼 */
.aurora-blob-1 {
  width: 80vw;
  height: 80vw;
  top: -20%;
  left: -15%;
  background: radial-gradient(circle at 30% 30%,
    rgba(45, 140, 255, 0.85) 0%,
    rgba(45, 140, 255, 0.45) 40%,
    rgba(45, 140, 255, 0) 70%);
  animation: aurora-drift-1 12s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

/* 辅光：右下区域浅蓝 */
.aurora-blob-2 {
  width: 70vw;
  height: 70vw;
  bottom: -25%;
  right: -20%;
  background: radial-gradient(circle at 70% 70%,
    rgba(100, 180, 255, 0.70) 0%,
    rgba(80, 160, 255, 0.35) 40%,
    rgba(80, 160, 255, 0) 70%);
  animation: aurora-drift-2 15s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

/* 点睛：中心深蓝氤氲，做呼吸 */
.aurora-blob-3 {
  width: 55vw;
  height: 55vw;
  top: 25%;
  left: 35%;
  background: radial-gradient(circle at 50% 50%,
    rgba(20, 90, 200, 0.65) 0%,
    rgba(20, 90, 200, 0.30) 45%,
    rgba(20, 90, 200, 0) 70%);
  animation: aurora-drift-3 18s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate,
             aurora-breathe 4s ease-in-out infinite;
}

@keyframes aurora-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40vw, 30vh) scale(1.5); }
}
@keyframes aurora-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-35vw, -25vh) scale(1.4); }
}
@keyframes aurora-drift-3 {
  0%   { transform: translate(-5vw, 0) scale(1); }
  100% { transform: translate(25vw, -28vh) scale(1.6); }
}
@keyframes aurora-breathe {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none; }
}

/* ========== 首页 ========== */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px;
  overflow-y: auto;
}

.home-card {
  background: #20242C;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 12px 32px rgba(0,0,0,0.4),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.04);
}



.room-lang-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: #20242C;
}

.room-lang-label {
  font-size: 13px;
  color: #999;
}

.room-lang-bar select {
  background: transparent;
  color: #2D8CFF;
  border: none;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  padding: 4px 20px 4px 12px;
  text-align: center;
  text-align-last: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232D8CFF' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.room-info {
  font-size: 14px;
  color: #ccc;
}

.version {
  font-size: 10px;
  color: #555;
  position: absolute;
  right: 16px;
  top: 18px;
}

.brand {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 22px;
  color: #E5E7EB;
  font-family: inherit;
}

@media (max-width: 480px) {
  .brand { font-size: 18px; letter-spacing: 0.3px; }
}

.footer-links {
  margin-top: 20px;
  text-align: center;
}

.footer-links a {
  color: #666;
  font-size: 12px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #2D8CFF;
}

.logo { margin-bottom: 16px; }

.logo img {
  border-radius: 16px;
  border: 2px solid #333;
  box-shadow: 0 0 15px rgba(45, 140, 255, 0.2), 0 0 30px rgba(45, 140, 255, 0.1);
}

.home-card h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  color: #888;
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* 通话模式 */
.mode-select {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: #888;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn.active {
  background: rgba(255,255,255,0.08);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.25);
}

/* 语言选择 */
.lang-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.lang-item { text-align: center; }

.lang-item label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.lang-item select {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-width: 120px;
  text-align: center;
  text-align-last: center;
}

.lang-arrow {
  font-size: 20px;
  color: #2D8CFF;
  margin-top: 18px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.3s;
}

.lang-arrow:active { transform: rotate(180deg); }

/* Turnstile 验证框居中 */
.cf-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

/* 按钮 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: linear-gradient(180deg, #4EA1FF 0%, #2D8CFF 50%, #0E71EB 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 32px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.3),
    0 2px 12px rgba(45, 140, 255,0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #66B3FF 0%, #4EA1FF 50%, #2D8CFF 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 4px 16px rgba(45, 140, 255,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.btn-primary:active {
  background: #0B5CFF;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 1px 4px rgba(45, 140, 255,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.btn-primary:disabled { background: #333; cursor: not-allowed; }

/* 创建房间结果 */
.created-box {
  margin-top: 20px;
  padding: 20px;
  background: #222;
  border-radius: 12px;
  text-align: center;
}

.created-box p { font-size: 13px; color: #888; }

.room-code {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #2D8CFF;
  margin: 12px 0;
  font-variant-numeric: tabular-nums;
}

.room-tip { margin-bottom: 12px !important; }

.created-actions { display: flex; gap: 10px; }

.btn-share {
  flex: 1;
  background: #2a2a2a;
  color: #2D8CFF;
  border: 1px solid #2D8CFF;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-share:hover { background: #0E2A4F; }

.btn-enter {
  flex: 1;
  background: #2D8CFF;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-enter:hover { background: #0B5CFF; }

@keyframes pulse-btn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.tip {
  color: #2D8CFF !important;
  font-size: 12px !important;
  margin-top: 6px !important;
}

/* 分割线 */
.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #555;
  font-size: 13px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #333;
}

.divider span { padding: 0 12px; }

/* 加入房间 */
.join-section { text-align: center; }
.join-label { font-size: 14px; color: #888; margin-bottom: 12px; }

.join-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.join-row input {
  width: 100%;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  padding: 14px 16px;
  font-size: 22px;
  text-align: center;
  letter-spacing: 8px;
  font-variant-numeric: tabular-nums;
}

.join-row input::placeholder {
  font-size: 14px;
  letter-spacing: 0;
  color: #555;
}

.btn-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: 100%;
  background: linear-gradient(180deg, #4EA1FF 0%, #2D8CFF 50%, #0E71EB 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.3),
    0 2px 12px rgba(45, 140, 255,0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-join:hover {
  background: linear-gradient(180deg, #66B3FF 0%, #4EA1FF 50%, #2D8CFF 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 4px 16px rgba(45, 140, 255,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.btn-join:active {
  background: #0B5CFF;
  transform: translateY(0);
}

/* ========== 通话房间 ========== */

/*
 * 标准做法：flexbox + dvh + env(safe-area-inset-*)
 * 参考: https://www.w3tutorials.net/blog/ios-mobile-safari-the-bottom-bar-covers-my-footer/
 */
.room {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #000;
  overflow: hidden;
}

/* 顶部状态栏 */
.top-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: #111;
  border-bottom: 1px solid #222;
  position: relative;
}

.status { font-size: 13px; color: #aaa; }

.status .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2D8CFF;
  margin-right: 6px;
  vertical-align: middle;
}

.timer {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #ccc;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* 视频 */
.videos { position: relative; }
.video-remote { width: 100%; height: 100%; object-fit: cover; background: #111; }
.video-local {
  position: absolute;
  top: 16px; right: 16px;
  width: 120px; height: 160px;
  border-radius: 12px;
  object-fit: cover;
  background: #222;
  border: 2px solid #333;
  z-index: 10;
}

/* 等待覆盖层 */
.waiting-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 14, 19, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 50;
}

.waiting-card {
  background: #20242C;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 36px 28px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 12px 32px rgba(0,0,0,0.4),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.waiting-card h2 {
  font-size: 22px;
  font-weight: 600;
  color: #E5E7EB;
  letter-spacing: 0.2px;
  margin-bottom: 16px;
}

.waiting-card p {
  color: #9CA3AF;
  font-size: 14px;
  margin-bottom: 8px;
}

.waiting-room-code {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 10px;
  color: #5FB0FF;
  margin: 4px 0 12px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(45, 140, 255, 0.35);
}

.waiting-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 16px 0 20px;
}

.waiting-dots span {
  width: 6px;
  height: 6px;
  background: #5FB0FF;
  border-radius: 50%;
  animation: dot-pulse 1.4s infinite ease-in-out;
  opacity: 0.5;
}

.waiting-dots span:nth-child(2) { animation-delay: 0.2s; }
.waiting-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.3; }
  40% { transform: scale(1); opacity: 0.8; }
}

/* 复制链接 + 分享链接 = 主页同款实心渐变蓝 */
.btn-copy-room {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: 100%;
  background: linear-gradient(180deg, #4EA1FF 0%, #2D8CFF 50%, #0E71EB 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.3),
    0 2px 12px rgba(45, 140, 255,0.35),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn-copy-room:hover {
  background: linear-gradient(180deg, #66B3FF 0%, #4EA1FF 50%, #2D8CFF 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 4px 16px rgba(45, 140, 255,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.btn-copy-room:active {
  background: #0B5CFF;
  transform: translateY(0);
}

/* 返回首页 = Ghost 次级按钮（退让感） */
.btn-copy-room.btn-ghost {
  background: transparent;
  color: #9CA3AF;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
  margin-top: 4px;
  margin-bottom: 0;
}
.btn-copy-room.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  color: #E5E7EB;
  border-color: rgba(255,255,255,0.2);
  box-shadow: none;
  transform: none;
}
.btn-copy-room.btn-ghost:active {
  background: rgba(255,255,255,0.06);
}

/* 说话光晕 */
.voice-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 140, 255,0.25) 0%, rgba(45, 140, 255,0.04) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.15s, transform 0.2s;
  pointer-events: none;
  z-index: 0;
}

/* 对话记录（flex:1 填满中间） */
.transcript {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  word-break: break-word;
  line-height: 1.5;
}

.msg.them {
  align-self: flex-start;
  background: rgba(45, 140, 255, 0.15);
  border: 1px solid rgba(45, 140, 255, 0.3);
}

.msg.me {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.msg.pending { opacity: 0.5; border-style: dashed; }
.msg-translation { font-size: 16px; color: #fff; }
.msg-original { font-size: 12px; color: #999; margin-top: 4px; }

/* 底部控制栏 */
.controls {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: #111;
  border-top: 1px solid #222;
}

/* 音量条 */
.volume-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
}

.vol-label { font-size: 12px; color: #666; white-space: nowrap; }
.vol-val { font-size: 12px; color: #666; min-width: 36px; text-align: right; }

.volume-bar input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 3px;
  background: #333;
  border-radius: 2px;
  outline: none;
}

.volume-bar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #2D8CFF;
  border-radius: 50%;
  cursor: pointer;
}

/* 按钮行 */
.ctrl-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* ========== PTT 按钮 ========== */
.ptt-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin: 8px auto 10px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 30% 30%, #66B3FF 0%, #2D8CFF 55%, #0B5CFF 100%);
  color: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 24px rgba(45, 140, 255, 0.35), inset 0 -4px 12px rgba(0,0,0,0.2);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s, background 0.2s;
  overflow: visible;
}

.ptt-btn:disabled {
  cursor: not-allowed;
}

.ptt-btn .ptt-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  position: relative;
}

.ptt-btn .ptt-icon {
  width: 28px;
  height: 28px;
  color: #fff;
  transition: transform 0.15s;
}

.ptt-btn .ptt-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
}

.ptt-btn .ptt-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

/* 按下时脉冲 + 放大 */
.ptt-btn.pressed {
  transform: scale(0.96);
  background: radial-gradient(circle at 30% 30%, #ff6b6b 0%, #e53e3e 55%, #c92020 100%);
  box-shadow: 0 4px 20px rgba(229, 62, 62, 0.55), inset 0 -3px 10px rgba(0,0,0,0.3);
}
.ptt-btn.pressed .ptt-icon { transform: scale(1.15); }
.ptt-btn.pressed .ptt-pulse {
  opacity: 1;
  border: 3px solid rgba(229, 62, 62, 0.5);
  animation: ptt-pulse 1.4s ease-out infinite;
}

/* 被对方锁：灰 */
.ptt-btn.locked {
  background: #2a2a2a;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  opacity: 0.7;
}
.ptt-btn.locked .ptt-icon,
.ptt-btn.locked .ptt-label { color: #888; }
.ptt-btn.locked .ptt-pulse {
  opacity: 1;
  border: 2px solid rgba(255, 165, 0, 0.4);
  animation: ptt-pulse-peer 1.8s ease-out infinite;
}

/* 翻译中：禁用 + 呼吸动画 */
.ptt-btn.translating {
  background: radial-gradient(circle at 30% 30%, #6a8fff 0%, #4a6fdc 55%, #334fa8 100%);
  box-shadow: 0 4px 14px rgba(74, 111, 220, 0.4);
  opacity: 0.9;
  animation: ptt-breathe 1.2s ease-in-out infinite;
}

@keyframes ptt-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes ptt-pulse-peer {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes ptt-breathe {
  0%, 100% { opacity: 0.9; }
  50%      { opacity: 0.65; }
}

@media (max-width: 480px) {
  .ptt-btn { width: 104px; height: 104px; }
  .ptt-btn .ptt-icon { width: 24px; height: 24px; }
  .ptt-btn .ptt-label { font-size: 12px; }
}

/* 底部控制按钮：和 PTT 同款视觉语言（径向渐变 + 内高光 + 柔光晕） */
.ctrl-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.15s,
              filter 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ctrl-btn svg { width: 22px; height: 22px; color: #fff; position: relative; z-index: 1; }

/* 灰态（默认）：跟 PTT 空闲态同款深度 */
.ctrl-btn.mute,
.ctrl-btn.mic,
.ctrl-btn.cam {
  background: radial-gradient(circle at 30% 30%, #4A4E58 0%, #2D3038 55%, #1E2126 100%);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.ctrl-btn.mute:hover,
.ctrl-btn.mic:hover,
.ctrl-btn.cam:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.12);
  filter: brightness(1.1);
}

/* 红态（关闭状态 / 挂断）：跟 PTT 按下态同款红色深度 */
.ctrl-btn.mute.off,
.ctrl-btn.mic.off,
.ctrl-btn.cam.off,
.ctrl-btn.hangup {
  background: radial-gradient(circle at 30% 30%, #FF6B6B 0%, #E53E3E 55%, #C92020 100%);
  box-shadow:
    0 4px 14px rgba(229, 62, 62, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.ctrl-btn.mute.off:hover,
.ctrl-btn.mic.off:hover,
.ctrl-btn.cam.off:hover,
.ctrl-btn.hangup:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px rgba(229, 62, 62, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.2);
  filter: brightness(1.1);
}

.ctrl-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

/* ========== 响应式 ========== */
@media (max-width: 480px) {
  .home-card { padding: 28px 20px; }
  .home-card h1 { font-size: 20px; }
  .lang-item select { min-width: 100px; font-size: 14px; padding: 8px 12px; }
  .btn-primary { padding: 14px 32px; font-size: 16px; }
  .video-local { width: 90px; height: 120px; top: 70px; }
}

.brand-alt {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}
.brand-alt a {
  color: #5FB0FF;
  text-decoration: none;
  transition: color 0.15s;
}
.brand-alt a:hover {
  color: #66B3FF;
}

/* brand 改成 <a> 后的样式：保持原文字色 + 去下划线 + hover 微变 */
a.brand {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
a.brand:hover {
  opacity: 0.8;
}
