/* ===== 全局基础样式 ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f5f6fa;
  color: #2c3e50;
  line-height: 1.6;
  min-height: 100vh;
}

/* 页面容器 */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* 标题 */
h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #5865f2;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: #4752c4;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 结果显示区 */
.result {
  margin-top: 20px;
  padding: 16px;
  min-height: 48px;
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* 成功 / 失败状态色 */
.result.success {
  border-color: #2ecc71;
  color: #27ae60;
}

.result.error {
  border-color: #e74c3c;
  color: #c0392b;
}

/* 页面描述文字 */
.desc {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 28px;
  font-size: 14px;
}

/* 表单字段（标签 + 输入框/文本域） */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field textarea,
.field input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
}

/* token 输入行 */
.token-row {
  margin-bottom: 16px;
}

.token-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.token-row input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
}

/* 进度提示 */
.progress {
  margin-top: 12px;
  font-size: 13px;
  color: #7f8c8d;
}

/* 小按钮（如复制按钮） */
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  margin-top: 12px;
}

/* 用户列表 */
.user-list {
  margin: 8px 0;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-name {
  font-weight: 600;
  color: #2c3e50;
}

.user-id {
  font-family: "Cascadia Code", "Consolas", monospace;
  color: #95a5a6;
  font-size: 12px;
}

/* 阈值设置行（横向排列） */
.threshold-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.field-inline {
  flex: 1;
  margin-bottom: 0;
}

.field-inline input,
.field-inline select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-family: inherit;
}

/* 警告状态色（部分请求失败时使用） */
.result.warn {
  border-color: #f39c12;
  color: #d35400;
  background: #fef9e7;
}

/* 失败记录条目 */
.fail-item {
  padding: 4px 0;
  font-size: 12px;
  font-family: "Cascadia Code", "Consolas", monospace;
  border-bottom: 1px solid #f0f0f0;
}
