/* =========================================================
   qqautoaccount.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-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.setting-card-head strong {
  font-size: 1rem;
  word-break: break-all;
  color: var(--text);
}

/* ---------- 表单字段 ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.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 select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  outline: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* 卡片里的折叠区（生图设置） */
.card-sub {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.card-sub > summary {
  cursor: pointer;
  list-style: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}
.card-sub > summary::-webkit-details-marker { display: none; }
.card-sub > summary::before {
  content: "▸ ";
  color: var(--muted);
}
.card-sub[open] > summary::before { content: "▾ "; }
.card-sub .sub-state {
  margin-left: 6px;
  font-weight: 400;
  font-size: .78rem;
  color: var(--muted);
}
.card-sub .sub-tip {
  display: block;
  margin-top: 8px;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--muted);
  word-break: break-all;
}
.card-sub .sub-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.card-sub .sub-preview {
  width: 100%;
  margin-top: 10px;
  border-radius: 10px;
}

.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;
}

/* ---------- 空状态 ---------- */
.empty-hint {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: .9rem;
  grid-column: 1 / -1;
}
.empty-hint .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
  opacity: .6;
}
.empty-hint a { color: var(--accent); font-weight: 600; }

/* ---------- 响应式 ---------- */
@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%; }
}