#app {
  padding: 20px;
}

/* Ant Design Style Overrides */
body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, 'Noto Sans', sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 24px;
  color: rgba(0, 0, 0, 0.85);
}

#app {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  padding: 24px;
}

.item {
  margin-bottom: 24px;
}

.item:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
}

select,
input,
textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.3s;
}

select:focus,
input:focus,
textarea:focus {
  border-color: #40a9ff;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.button-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button-container button {
  flex: 1;
  min-width: 100px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.button-container button:hover {
  border-color: #40a9ff;
  color: #40a9ff;
}

.button-container button:first-child {
  border-color: #1890ff;
  background: #1890ff;
  color: #fff;
}

.button-container button:first-child:hover {
  border-color: #40a9ff;
  background: #40a9ff;
  color: #fff;
}

#exitChatBtn {
  background-color: #ff4d4f !important;
  border-color: #ff4d4f !important;
  color: #fff !important;
}

#exitChatBtn:hover {
  background-color: #ff7875 !important;
  border-color: #ff7875 !important;
  color: #fff !important;
}

.render-container {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  justify-content: center;
}

.render-container video,
.render-container div {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fafafa;
  /* 设置为9:16比例，宽度为360px，高度自动计算 */
  width: 360px;
  height: 640px;
  object-fit: cover;
}
