/* ========================================
   PAGE: 创作页 - 提示词输入
   ======================================== */
.page-compose {
  background: var(--color-primary);
}

.compose-header {
  display: flex;
  align-items: center;
  padding: var(--space-4);
  padding-top: calc(var(--space-4) + env(safe-area-inset-top, 20px));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.compose-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-text-secondary);
}

.compose-title {
  flex: 1;
  text-align: center;
}

.compose-title span:first-child {
  font-size: 17px;
  font-weight: 600;
  display: block;
}

.compose-from {
  font-size: 12px;
  color: var(--color-text-muted);
}

.compose-cost {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-fading);
  width: 40px;
  text-align: right;
}

/* 角色信息卡片 */
.compose-character {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  margin: var(--space-4);
  border-radius: var(--radius-md);
}

.character-preview {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.character-info {
  flex: 1;
}

.character-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.character-traits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.trait {
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

/* 提示词输入区域 */
.compose-input-area {
  padding: 0 var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.compose-mention {
  margin-bottom: var(--space-2);
}

.mention-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  background: rgba(233, 69, 96, 0.15);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 500;
}

.compose-textarea {
  width: 100%;
  min-height: 120px;
  background: var(--color-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  resize: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.compose-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.compose-textarea::placeholder {
  color: var(--color-text-muted);
}

.compose-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  padding-left: var(--space-1);
}

/* 快捷提示词 */
.compose-suggestions {
  padding: var(--space-4);
}

.suggestion-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.suggestion-tag {
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-tag:hover {
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
}

/* 底部确认栏 */
.compose-footer {
  padding: var(--space-4);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 20px));
  border-top: 1px solid rgba(255,255,255,0.05);
}

.compose-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 12px;
  color: var(--color-fading);
  margin-bottom: var(--space-3);
}
