/* 按钮 / Chip / 卡片 / 问答 / 图片位 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--btn-h); padding-inline: var(--sp-6);
  border-radius: var(--r-chip);
  font-size: var(--fs-body); font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 0; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: var(--text-invert); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost {
  background: var(--bg-card); color: var(--brand-ink);
  box-shadow: inset 0 0 0 1.5px var(--brand);  /* 描边款，不用 border（避免撑高 2px） */
}
.btn--ghost:hover { background: var(--brand-surface); }
/* 深色区次按钮：白底深字 */
.on-dark .btn--ghost { color: var(--text); }

/* Chip / 标签 */
.chip {
  display: inline-flex; align-items: center;
  min-height: 36px; padding-inline: 22px;
  border-radius: var(--r-chip);
  background: var(--bg-card); color: var(--text-muted);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-caption); font-weight: 600;
  border: 0; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--brand); color: var(--text-invert); box-shadow: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.tag-pill {
  display: inline-block; padding: 3px 12px;
  border-radius: var(--r-chip);
  background: var(--brand-surface); color: var(--brand-ink);
  font-size: var(--fs-caption); font-weight: 600;
}

/* 卡片 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--sp-6);
}
.card--soft { background: var(--surface-soft); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }

/* 功能卡图标块 */
.icon-tile {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--brand-surface);
  margin-bottom: var(--sp-4);
}
.icon-tile svg { width: 32px; height: 32px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 媒体卡（封面） */
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  overflow: hidden;
}
.work-card__img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.work-card__body { padding: var(--sp-4) 20px 20px; }
.work-card__tags { margin-bottom: var(--sp-2); font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.work-card__sub { font-size: var(--fs-caption); color: var(--text-muted); }
.work-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: #2B2024; color: #fff;  /* 不透明胶囊：压图文字必须坐在实底上（护栏/可读性双要求） */
  border-radius: var(--r-chip); padding: 3px 12px;
  font-size: var(--fs-caption); font-weight: 600;
}
.work-card { position: relative; }

/* 问答（details 手风琴） */
.qa {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
}
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-title-sm); font-weight: 700; color: var(--text);
  cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; font-family: var(--font-round); font-weight: 700;
  font-size: 22px; color: var(--brand); flex: 0 0 auto;
}
.qa[open] summary::after { content: "–"; }
.qa__a { padding: 0 var(--sp-5) var(--sp-4); color: var(--text-muted); font-size: var(--fs-sm); }

/* 数据/事实格 */
.fact-list { display: grid; gap: var(--sp-2); }
.fact-list dt { font-size: var(--fs-caption); color: var(--text-muted); }
.fact-list dd { font-size: var(--fs-title); font-weight: 700; color: var(--text); }

/* 步骤 */
.step { display: flex; gap: var(--sp-4); align-items: flex-start; }
.step__no {
  font-family: var(--font-round); font-weight: 800;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: var(--brand); color: #fff; font-size: 18px;
}
