/* ============================================================
   components.css — 按钮 / 徽标 / 词条 / 卡片 / 图标块 / 问答 / 列表
   ============================================================ */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 30px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary {
  background: var(--brand);
  color: var(--text-invert);
}
.btn--primary:hover { background: var(--brand-deep); }
/* 次级动作：描边款（用 inset shadow，避免 border 撑高对不齐） */
.btn--ghost {
  background: var(--surface);
  color: var(--brand-ink);
  box-shadow: inset 0 0 0 1.5px var(--brand-mark);
}
.btn--ghost:hover { background: var(--brand-surface); }
/* 深底上的幽灵按钮 */
.btn--ghost-invert {
  background: transparent;
  color: var(--text-invert);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
.btn--ghost-invert:hover { background: rgba(255, 255, 255, 0.08); }
.btn--block { width: 100%; }

/* ---------- 圆角标 / 词条 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--brand-surface-2);
  color: var(--brand-ink);
  font-size: var(--fs-tiny);
  font-weight: 600;
  line-height: 1.4;
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-mark);
  flex: 0 0 auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: var(--fs-tiny);
  font-weight: 600;
  line-height: 1.4;
}
.chip--brand  { background: var(--brand-surface); color: var(--brand-ink); }
.chip--pink   { background: var(--pink-surface);  color: var(--pink-ink); }
.chip--blue   { background: var(--blue-surface);  color: var(--blue-ink); }
.chip--amber  { background: var(--amber-surface); color: var(--amber-ink); }
.chip--line   { background: var(--surface); color: var(--brand-ink);
                box-shadow: inset 0 0 0 1px var(--line); }

.tag-new {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--pink-ink);   /* 白字 ≥4.5:1，浅粉只有 2.5:1 */
  color: var(--text-invert);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.card--pad { padding: var(--sp-6); }

/* ---------- 图标块 ---------- */
.icon-tile {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-tile);
  flex: 0 0 auto;
}
.icon-tile svg { width: 30px; height: 30px; }
.icon-tile--win   { background: var(--blue); }
.icon-tile--and   { background: var(--green); }
.icon-tile--ios   { background: var(--apple-dark); }
.icon-tile--brand { background: var(--brand); }
.icon-tile--soft  { background: var(--brand-surface); }

/* ---------- 问答（details 手风琴） ---------- */
.qa {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.qa + .qa { margin-top: var(--sp-4); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 20px 26px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--brand-ink); }
.qa__chevron {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.qa[open] .qa__chevron { transform: rotate(180deg); color: var(--brand-ink); }
.qa__body {
  padding: 0 26px 22px;
  border-top: 1px solid #EFEAFB;
  padding-top: var(--sp-4);
  color: var(--text-body);
  font-size: var(--fs-small);
  line-height: 1.9;
}

/* ---------- 数据列表行（同步 / 追番表） ---------- */
.list-rows { display: flex; flex-direction: column; gap: var(--sp-3); }
.row-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--bg);
  font-size: var(--fs-tiny);
  color: var(--text-body);
  min-width: 0;
}
.row-item .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.row-item__label {
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--text-invert);
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
}

/* ---------- SVG 通用 ---------- */
.svg { display: block; }
