/* 按钮 / 徽标 / 卡片 / 图片位 / 提示条 / 问答 / 表格 / 列表
   原则：圆角 + 柔和填充，不用 1px 描边框 */

/* ---------- 按钮：胶囊形 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--r-btn);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .2s ease, background .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, #FFB6D2, #FF8FBB);
  color: var(--brand-ink);
  box-shadow: var(--sh-pink);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #FFC7DD, #FF9EC6);
  color: var(--brand-ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(255, 143, 187, .32);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: var(--fill-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, .15); color: var(--text); transform: translateY(-2px); }
.btn--outline { background: var(--fill); color: var(--brand-2); }
.btn--outline:hover { background: rgba(255, 159, 196, .18); color: var(--brand-2); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 38px; font-size: var(--fs-body); }
.btn--disabled {
  display: flex;
  width: 100%;
  background: var(--fill);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}
.btn--disabled:hover { background: var(--fill); color: var(--text-muted); transform: none; }

/* ---------- 徽标 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--fill-2);
  color: var(--text-body);
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.pill--ok { background: var(--ok-surface); color: var(--ok); }
.pill--off { background: var(--fill); color: var(--text-muted); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: var(--sp-5);
}
.card--hi { background: var(--card-hi); }
.card--line { box-shadow: var(--sh-sm); }
.card__title { margin-bottom: var(--sp-2); }

/* ---------- 图片位 ---------- */
.media {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--card);
}
.media img { width: 100%; height: auto; }
/* 竖构图立绘：限高显示，避免在图文分栏里被拉成一整屏 */
.media--fit { width: fit-content; max-width: 100%; justify-self: center; align-self: center; }
.media--fit img { height: clamp(340px, 40vw, 520px); width: auto; max-width: 100%; object-fit: contain; }
.media__caption {
  padding: 12px 16px;
  background: var(--card);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}
.media--shadow { box-shadow: 10px 12px 0 rgba(255, 159, 196, .16); }

/* ---------- 提示条 ---------- */
.notice {
  padding: var(--sp-4);
  border-radius: var(--r-card);
  background: var(--fill);
}
.notice--warn { background: var(--warn-surface); }
.notice--warn h3, .notice--warn h4 { color: var(--butter); }
.notice--warn p, .notice--warn li { color: var(--warn-text); }

/* ---------- 问答：每条一张软卡 ---------- */
.qa {
  background: var(--fill);
  border-radius: var(--r-sm);
  padding: 0 var(--sp-4);
  margin-bottom: var(--sp-2);
  transition: background .2s ease;
}
.qa:hover { background: var(--fill-2); }
.qa:last-child { margin-bottom: 0; }
.qa > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 16px 0;
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-size: var(--fs-body);
  font-weight: 700;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 159, 196, .18);
  color: var(--brand-2);
  font-family: var(--font-pixel);
  font-size: 16px;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.qa[open] > summary::after { content: "\2212"; background: rgba(255, 159, 196, .28); }
.qa__body { padding: 0 0 18px; color: var(--text-body); }
.qa__body p + p { margin-top: var(--sp-2); }

/* ---------- 表格：斑马纹，无格线 ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: top; }
.table tbody tr:nth-child(odd) { background: var(--fill); }
.table th { width: 180px; color: var(--text-muted); font-weight: 500; }
.table td { color: var(--text-body); }
.table tbody tr > :first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.table tbody tr > :last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
@media (max-width: 560px) {
  .table th, .table td { display: block; padding: 8px 14px; }
  .table th { width: auto; padding-top: 14px; padding-bottom: 2px; }
  .table td { padding-top: 0; }
  .table tbody tr:nth-child(odd) { background: var(--fill); }
}

/* ---------- 圆点清单 ---------- */
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: var(--text-body); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: .64em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- 步骤 ---------- */
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.steps li { display: flex; gap: var(--sp-3); }
.steps__num {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #FFB6D2, #FF8FBB);
  color: var(--brand-ink);
  border-radius: 50%;
  font-family: var(--font-pixel);
  font-size: 15px;
  font-weight: 700;
}

.breadcrumb { font-size: var(--fs-xs); color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-2); }
.breadcrumb span { margin-inline: 8px; }

code {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 159, 196, .14);
  color: var(--brand-2);
  font-family: var(--font-pixel);
  font-size: .92em;
}
