/* 组件层：按钮 / 徽标 / 卡片 / 图标块 / 标签 / 问答 / 图位 */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--r-pill);
  background: var(--brand-fill);
  color: #fff;
  font-size: var(--fs-body);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { background: var(--brand-fill-deep); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--lg { padding: 16px 36px; font-size: 18px; border-radius: 32px; }
.btn--sm { padding: 10px 20px; font-size: var(--fs-sm); box-shadow: none; }
.btn--xs { padding: 8px 16px; font-size: var(--fs-xs); box-shadow: none; }

/* 次级动作：描边款。用 inset 阴影而不是 border —— border 会把按钮撑高 2px，和实心按钮对不齐 */
.btn--ghost {
  background: var(--surface);
  color: var(--text-body);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { background: var(--brand-surface); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand); }

.btn--light { background: #fff; color: var(--brand-ink); box-shadow: none; }
.btn--light:hover { background: var(--brand-surface); color: var(--brand-ink); }

.btn--block { width: 100%; }

.link-arrow { font-weight: 600; font-size: var(--fs-sm); color: var(--brand-ink); }

/* ---------- 徽标 / 胶囊 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--brand-ink);
  box-shadow: 0 4px 12px -6px rgba(61, 127, 242, 0.35);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-body);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
a.pill:hover { background: var(--brand-surface); color: var(--brand-ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--brand); }
.pill--solid { background: var(--brand-fill); color: #fff; box-shadow: none; font-weight: 600; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface-alt);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 28px;
}
.card--plain { background: var(--surface); }
.card--flat { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); }

/* 功能卡：图标 + 标题 + 描述 */
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-height: 213px;
}
.feature__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-surface);
  color: var(--brand);
  flex: none;
}
.feature__title { font-size: 20px; font-weight: 600; color: var(--text); }
.feature__desc { font-size: var(--fs-body); color: var(--text-body); }

/* 小特性卡 */
.mini {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  min-height: 134px;
}
.mini__icon { width: 30px; height: 30px; color: var(--brand); }
.mini__title { font-size: var(--fs-body); font-weight: 600; color: var(--text); }
.mini__desc { font-size: var(--fs-2xs); color: var(--text-muted); line-height: 1.6; }

/* 数据卡 */
.stat { padding: 22px 24px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-size: var(--fs-h4); font-weight: 700; color: var(--brand-ink); line-height: 1.2; }
.stat__label { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-2xs);
  font-weight: 500;
  white-space: nowrap;
  flex: none;
}
.tag--new { background: var(--brand-surface); color: var(--brand-ink); }
.tag--opt { background: var(--ok-bg); color: var(--ok-ink); }
.tag--fix { background: var(--fix-bg); color: var(--fix-ink); }

/* ---------- 图位 ---------- */
.media {
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--brand-surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-shot);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--desktop { aspect-ratio: 3 / 2; }
.media--wide { aspect-ratio: 574 / 360; }
.media--phone { aspect-ratio: 220 / 462; border-radius: var(--r-lg); }

.caption {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-body);
  text-align: center;
}

/* ---------- 问答（原生 details） ---------- */
.qa-list {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.qa { display: block; scroll-margin-block-start: 96px; } /* 锚点：q-install / q-anime4k / q-source / q-ios / q-bangumi */
.qa + .qa { border-top: 1px solid var(--line); }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 18px 26px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  list-style: none;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { color: var(--brand-ink); }
.qa[open] .qa__q { font-weight: 600; color: var(--text); padding-bottom: 10px; }
.qa__sign { flex: none; width: 16px; height: 16px; color: var(--text-muted); transition: transform 0.2s var(--ease); }
.qa[open] .qa__sign { transform: rotate(180deg); color: var(--brand-ink); }
.qa__a {
  padding: 0 26px 20px;
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: var(--text-body);
}

/* ---------- 搜索框（静态站无后端，做成纯展示控件） ---------- */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  padding: 13px 20px;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: inset 0 0 0 1px #dbe8fa;
}
.search__icon { color: var(--text-muted); flex: none; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font: inherit;
  font-size: var(--fs-body);
  color: var(--text);
  background: none;
}
.search input::placeholder { color: var(--text-muted); }

/* ---------- 要点列表（打勾） ---------- */
.points { display: flex; flex-direction: column; gap: 10px; }
.points li { display: flex; align-items: flex-start; gap: 9px; font-size: var(--fs-sm); color: var(--text-body); }
.points svg { flex: none; margin-top: 3px; color: var(--brand); }

@media (max-width: 620px) {
  .feature { min-height: 0; padding: 22px; }
  .btn--lg { padding: 14px 26px; font-size: var(--fs-body); }
  .qa__q { padding: 16px 18px; }
  .qa__a { padding: 0 18px 18px; }
  .stat { padding: 18px 12px; }
  .stat__num { font-size: 22px; }
}
