/* 页面容器 */
.friends-photo {
  height: 100vh;
  background: #f5f6f8;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 上传区域 */
.upload-section {
  flex: 1;
  padding: 40px 16px 120px;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

/* 提交区域 */
.submit-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 10;
}

/* 提交按钮 */
.submit-button {
  width: 100%;
  height: 60px;
  background: #000;
  border-radius: 16px;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.submit-text {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.submit-button.disabled {
  cursor: not-allowed;
  border: none;
  outline: none;
}

.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Prompt textarea 样式 */
.prompt-textarea {
  width: 100%;
  min-height: 200px;
  max-height: 400px;
  padding: 16px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #1f2937;
  resize: vertical;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.prompt-textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.prompt-textarea:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgb(0 0 0 / 5%);
}

.prompt-textarea:hover:not(:focus) {
  border-color: #d1d5db;
}

/* 自定义滚动条样式 */
.prompt-textarea::-webkit-scrollbar {
  width: 8px;
}

.prompt-textarea::-webkit-scrollbar-track {
  background: #f5f6f8;
  border-radius: 4px;
}

.prompt-textarea::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.prompt-textarea::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
