/* =========================================================
   qqbot.css — 多群模型配置页专属样式
   ========================================================= */

/* ---------- 基础布局与 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(22px, 3vw, 34px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -60% -10% auto;
  height: 170%;
  background: radial-gradient(42% 52% at 50% 45%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -.04em;
  margin-bottom: 16px;
}

.hero .lead {
  max-width: 62ch;
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  color: var(--muted);
}

/* ---------- 主体面板 ---------- */
.panel-section { padding: clamp(20px, 3vw, 34px) 0 clamp(48px, 6vw, 76px); }

.panel {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.panel-head h2 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: -.02em;
}

/* ---------- 网格与卡片 ---------- */
.setting-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.setting-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-alt);
  transition: border-color .2s, box-shadow .2s;
}
.setting-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* 卡片顶部的群号和删除按钮 */
.setting-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.setting-card .card-header strong {
  font-size: 1.05rem;
  color: var(--text);
}

/* ---------- 表单字段 ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
.field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* 初始提示词：多行文本框要和 input 长得一致 */
.field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 96px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field small {
  display: block;
  margin-top: 2px;
}

.field-hint {
  font-size: .8rem;
  line-height: 1.6;
  color: var(--muted);
}
.field-hint code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

/* ---------- 小尺寸按钮 ---------- */
.btn-sm {
  padding: 6px 14px;
  font-size: .82rem;
  border-radius: 999px;
}

/* 列表为空时的提示 */
#groupList > p {
  grid-column: 1 / -1; /* 撑满整行 */
  padding: 20px;
  text-align: center;
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: 12px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 560px) {
  .setting-grid { grid-template-columns: 1fr; }
  .panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .panel-head .btn {
    width: 100%;
  }
}