/* MiniForge · 设置页 */

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

.set-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 26px;
}
.set-head h1 { font-size: 24px; }
.set-head p { margin-top: 8px; font-size: 13px; color: var(--ink-2); max-width: 520px; line-height: 1.7; }
.set-head-actions { display: flex; gap: 8px; flex-shrink: 0; }

.set-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 60px;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.card.span-2 { grid-column: span 2; }
.card h3 { font-size: 15px; }
.card-head { display: flex; align-items: center; justify-content: space-between; }
.card-desc { margin-top: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }

.card .field input, .card .field select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  outline: none;
  background: #fff;
  color: var(--ink);
}
.card .field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 82, 51, .1); }
.card .field .hint { display: block; margin-top: 5px; font-size: 11px; color: var(--ink-3); font-style: normal; }

/* 主题 */
.theme-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-top: 14px;
}
.tf { display: flex; align-items: center; gap: 10px; }
.tf span { font-size: 12.5px; color: var(--ink-2); width: 66px; flex-shrink: 0; }
.tf input[type=color] {
  width: 44px; height: 30px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.tf input[type=number] {
  width: 72px; height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  outline: none;
}

/* tabBar 行 */
.tab-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.tab-row { display: flex; align-items: center; gap: 8px; }
.tab-row input, .tab-row select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12.5px;
  outline: none;
  background: #fff;
}
.tab-row input:focus, .tab-row select:focus { border-color: var(--brand); }
.tr-icon { width: 52px; text-align: center; font-size: 15px !important; }
.tr-title { width: 130px; flex-shrink: 0; }
.tr-path { flex: 1; min-width: 0; }
.tr-del {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-3);
  font-size: 12px;
  flex-shrink: 0;
}
.tr-del:hover { color: #d92d20; border-color: #f0c9c4; background: #fff8f7; }

.empty-line {
  margin-top: 14px;
  padding: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  background: #fbfcfd;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

/* 页面表格 */
.page-table { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pt-head, .pt-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr .5fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  font-size: 12.5px;
}
.pt-head { background: #fbfcfd; color: var(--ink-3); font-size: 11.5px; font-weight: 500; }
.pt-row { border-top: 1px solid var(--line-2); }
.pt-row code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  color: var(--ink-2);
  background: #f7f8fa;
  padding: 2px 7px;
  border-radius: 5px;
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-name { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.home-tag {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  color: var(--brand-ink);
  background: var(--brand-soft);
  padding: 1px 6px;
  border-radius: 5px;
}
.pt-ops { display: flex; gap: 12px; }
.pt-ops a { color: var(--ink-2); }
.pt-ops a:hover { color: var(--brand-ink); }
.pt-ops a.danger:hover { color: #d92d20; }

@media (max-width: 900px) {
  .set-grid { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: span 1; }
  .set-head { flex-direction: column; }
  .pt-head, .pt-row { grid-template-columns: 1fr 1fr; }
}
