/* apikey.html API-KEY 配置页样式（公共样式见 css/common.css） */
body { padding: 28px 16px; }

.wrap { max-width: 620px; margin: 0 auto; }

.key-card { padding: 32px; }

.current-status {
  padding: 12px 16px;
  border-radius: 10px;
  background: #f0f5ff;
  border: 1px solid #d6e4ff;
  color: #374151;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
  word-break: break-all;
}
.current-status .no-key { color: #d46b08; }
.current-status .has-key { color: #389e0d; }

.form-item { margin-bottom: 20px; }

.hint {
  font-size: 12px;
  color: #8a919f;
  margin-top: 6px;
}

.tip {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.tip-ok { background: #f6ffed; border: 1px solid #b7eb8f; color: #237804; }

.skip-line { text-align: center; margin-top: 18px; }

@media (max-width: 480px) {
  .key-card { padding: 22px 18px; }
}

/* ---------- 更换 API-KEY 确认弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.modal-mask[hidden] { display: none; }
.modal {
  width: 100%;
  max-width: 460px;
  padding: 22px 22px 18px;
  background: var(--color-card, #fff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-lg, 0 20px 44px -22px rgba(16, 24, 40, 0.28));
}
.modal h3 { margin: 0 0 10px; font-size: var(--text-lg, 18px); color: #0f172a; }
.modal-desc { margin: 0 0 18px; font-size: var(--text-sm, 13px); line-height: 1.9; color: #475569; }
.modal-desc code {
  padding: 2px 6px; border-radius: 6px; background: #f1f5f9;
  font-family: var(--font-mono, monospace); color: #0f172a; word-break: break-all;
}
.modal-desc strong { color: var(--color-destructive, #dc2626); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .modal-actions .btn { flex: 1 1 auto; }
}
