/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* 主容器 */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.phone-container {
  width: 100%;
  max-width: 600px;
  padding: 40px 20px;
  border-radius: 24px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  max-height: 100vh;
  overflow: hidden;
}

/* 标题和头像 */
.title-text {
  font-size: 32px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 32px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  letter-spacing: -0.5px;
}

.avatar-container {
  position: relative;
  width: min(240px, 50vw);
  padding-bottom: min(240px, 50vw);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 40px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
  background: #f7f9fc;
}

.avatar-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 状态和计时器 */
.status {
  font-size: 20px;
  color: #4e5969;
  margin-bottom: 24px;
  font-weight: 500;
}

.timer {
  font-size: 28px;
  color: #1d2129;
  margin: 16px 0;
  font-weight: 600;
  font-feature-settings: 'tnum';
}

/* 按钮样式 */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.call-button {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.call-button.active {
  background: #f53f3f;
}

.call-button:not(.active) {
  background: #00b42a;
}

.mute-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.mute-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* 图标样式 */
.call-icon-svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.end-call-icon-svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

.microphone-icon {
  width: 28px;
  height: 28px;
  fill: #4e5969;
  transition: fill 0.3s;
}

.microphone-icon.muted {
  fill: #f53f3f;
}

/* 错误消息 */
.error-message {
  color: #f53f3f;
  font-size: 14px;
  margin-top: 16px;
  padding: 12px;
  background-color: #fff1f0;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  font-weight: 500;
}

/* 登录按钮 */
.login-button {
  padding: 12px 32px;
  font-size: 16px;
  background-color: #00b42a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 24px 0;
  box-shadow: 0 6px 16px rgba(0, 180, 42, 0.2);
  font-weight: 500;
  transition: all 0.3s;
}

.login-button:hover {
  background-color: #009a29;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 180, 42, 0.25);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .phone-container {
    width: 100%;
    max-width: none;
    padding: 30px 16px;
    box-shadow: none;
    height: 100%;
  }
}

@media (max-width: 480px) {
  .title-text {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .avatar-container {
    width: min(200px, 45vw);
    padding-bottom: min(200px, 45vw);
    margin-bottom: 32px;
  }

  .call-button {
    width: 64px;
    height: 64px;
  }

  .mute-button {
    width: 48px;
    height: 48px;
  }

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

  .end-call-icon-svg {
    width: 24px;
    height: 24px;
  }

  .microphone-icon {
    width: 24px;
    height: 24px;
  }

  .status {
    font-size: 18px;
  }

  .timer {
    font-size: 24px;
  }
}
