/* ===========================================================
   components.css — 可复用零件
   组件级断点紧跟在组件定义之后，放在同一个文件里
   =========================================================== */

/* ---------- Eyebrow 小标 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow--invert {
  background: transparent;
  padding: 0;
  color: var(--text-invert-mute);
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: var(--r-pill);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--sm {
  padding: 12px 24px;
  font-size: var(--fs-sm);
}

.btn--primary {
  background: var(--brand);
  color: var(--text-invert);
}

.btn--primary:hover {
  background: var(--brand-hover);
}

/* 次级动作用描边，不用浅灰实心（浅灰实心读起来像禁用态）。
   用 inset box-shadow 而不是 border，避免比同行的实心按钮高 2px */
.btn--ghost {
  background: var(--paper);
  color: var(--brand-ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn--ghost:hover {
  background: var(--brand-surface);
}

.btn--light {
  background: var(--paper);
  color: var(--brand-ink);
}

.btn--light:hover {
  background: var(--brand-surface);
}

.btn--outline-light {
  color: var(--text-invert);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.btn[aria-disabled="true"],
.btn[data-copied] {
  cursor: default;
  transform: none;
}

@media (max-width: 480px) {
  .btn {
    padding: 16px 28px;
  }

  .btn--sm {
    padding: 11px 20px;
  }
}

/* ---------- Pill 标签 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.pill--mint {
  background: var(--mint-soft);
  color: var(--mint-ink);
}

/* ---------- Icon tile ---------- */
.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  flex: none;
}

.icon-tile--brand {
  background: var(--brand-surface);
  color: var(--brand-mark);
}

.icon-tile--rose {
  background: var(--rose-soft);
  color: var(--rose-mark);
}

.icon-tile--mint {
  background: var(--mint-soft);
  color: var(--mint-mark);
}

/* ---------- Card ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 200px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.card--icon {
  min-height: 232px;
  gap: 14px;
  padding: 30px 28px 28px;
}

.card--sm {
  min-height: 172px;
  padding: 26px 28px;
}

.card--tinted {
  min-height: 196px;
  background: var(--brand-surface-2);
  border-color: transparent;
}

.card__num {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.2;
  color: var(--brand-mark);
}

.card__num--rose {
  color: var(--rose-ink);
}

.card__num--mint {
  color: var(--mint-ink);
}

.card__title {
  font-size: var(--fs-h5);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.card__text {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--text);
}

@media (max-width: 720px) {
  .card,
  .card--icon,
  .card--sm,
  .card--tinted {
    min-height: 0;
    padding: 24px;
  }
}

/* ---------- 箭头文字链接 ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  color: var(--brand-ink);
  font-size: var(--fs-body);
  font-weight: 500;
}

.link-arrow::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(3px) rotate(45deg);
}

/* ---------- 引言 ---------- */
.quote {
  border-left: 2px solid var(--brand-mark);
  padding: 4px 0 4px var(--sp-5);
  font-size: 20px;
  line-height: 1.65;
  color: var(--brand-ink);
}

@media (max-width: 720px) {
  .quote {
    font-size: 18px;
  }
}

/* ---------- 手机壳 ---------- */
.phone {
  display: block;
  width: 300px;
  padding: 9px;
  border-radius: 46px;
  background: #241e35;
  box-shadow: 0 26px 52px -6px rgba(74, 59, 107, 0.28);
}

.phone--lg {
  width: 340px;
  border-radius: 50px;
}

.phone__screen {
  width: 100%;
  aspect-ratio: 322 / 704;
  border-radius: 37px;
  object-fit: cover;
  object-position: top center;
}

.phone--lg .phone__screen {
  border-radius: 41px;
}

@media (max-width: 900px) {
  .phone {
    width: 260px;
    border-radius: 40px;
  }

  .phone--lg {
    width: 288px;
    border-radius: 42px;
  }

  .phone__screen {
    border-radius: 31px;
  }

  .phone--lg .phone__screen {
    border-radius: 33px;
  }
}

/* ---------- 三步要点列表 ---------- */
.beat-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.beat-list__key {
  color: var(--brand-ink);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 1px;
}

.beat-list__val {
  margin-top: 4px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text);
}

@media (max-width: 900px) {
  .beat-list {
    text-align: left;
    max-width: var(--w-measure-sm);
    margin-inline: auto;
    width: 100%;
  }
}

/* ---------- 明细表 ---------- */
.spec-table {
  table-layout: fixed;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
}

.spec-table th,
.spec-table td {
  padding: 22px 36px;
  text-align: left;
  vertical-align: middle;
}

.spec-table thead th {
  padding-block: 18px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.spec-table thead th:first-child {
  width: 190px;
}

.spec-table thead th:nth-child(2) {
  width: 230px;
}

.spec-table tbody th {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--ink);
}

.spec-table tbody td {
  font-size: var(--fs-sm);
  color: var(--text);
}

.spec-table tbody td:first-of-type {
  color: var(--brand-ink);
}

.spec-table tbody tr + tr th,
.spec-table tbody tr + tr td {
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .spec-table {
    table-layout: auto;
  }

  .spec-table th,
  .spec-table td {
    padding: 14px 14px;
  }

  .spec-table thead th {
    padding-block: 12px;
    letter-spacing: 1px;
  }

  .spec-table thead th:first-child,
  .spec-table thead th:nth-child(2) {
    width: auto;
  }

  .spec-table tbody th,
  .spec-table tbody td {
    font-size: var(--fs-xs);
  }
}

/* ---------- 问答 ---------- */
.qa-list {
  border-top: 1px solid var(--line);
  max-width: var(--w-prose);
}

.qa {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}

.qa__q {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.qa__a {
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--text);
}

@media (max-width: 720px) {
  .qa {
    padding-block: 20px;
  }

  .qa__q {
    font-size: 16px;
  }
}

/* ---------- 步骤数字 ---------- */
.step__num {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-mark);
}

.step__num--rose {
  color: var(--rose-ink);
}

.step__num--mint {
  color: var(--mint-ink);
}
