/* ============================================================
   components.css — 按钮 / 胶囊 / 卡片 / 图标块 / 列表 / 问答 / 图位
   组件级响应式覆盖紧跟该组件定义，写在同一个文件里
   ============================================================ */

/* --- 眉标 -------------------------------------------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-ink);
}

.eyebrow--dark {
  color: var(--brand-ink-on-dark);
}

/* --- 标题 -------------------------------------------------- */
.h1 {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--text);
}

.h2 {
  font-size: var(--fs-4xl);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

.h3 {
  font-size: var(--fs-2xl);
  font-weight: 900;
  line-height: 1.42;
  color: var(--text);
}

.h4 {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--text-muted);
}

.h1--invert,
.h2--invert {
  color: var(--text-invert);
}

/* --- 按钮 -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 30px;
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

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

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

.btn__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

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

/* 深底上的次按钮：描边款，不用浅灰实心（会被误读成禁用） */
.btn--ghost {
  color: var(--text-invert-body);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn--ghost:hover {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.btn--light {
  background: #fff;
  color: var(--text);
}

.btn--light:hover {
  background: #fff5ef;
}

.btn--outline-light {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

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

.btn--sm {
  padding: 11px 20px;
  border-radius: var(--r-chip);
  font-size: 14px;
  gap: 7px;
}

/* --- 胶囊标签 ---------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--brand-surface);
  color: var(--brand-ink);
}

.pill--sm {
  padding: 3px 9px;
  font-size: 10.5px;
  border-radius: 6px;
}

.pill--dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-mark);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* --- 卡片 -------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 28px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.card__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* --- 图标块 ------------------------------------------------ */
.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-surface);
  color: var(--brand-mark);
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

/* --- 带勾要点 ---------------------------------------------- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

.checklist__mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--brand-mark);
}

/* --- 图位 -------------------------------------------------- */
.media {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface-3);
  box-shadow: var(--shadow-shot);
}

.media img {
  width: 100%;
  display: block;
}

.media--shot {
  aspect-ratio: 378 / 672;
  box-shadow: var(--shadow-shot), inset 0 0 0 1px var(--line);
}

.media--shot img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* --- 问答（details 手风琴） --------------------------------- */
.qa-list {
  display: flex;
  flex-direction: column;
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa:first-child {
  border-top: 1px solid var(--line);
}

.qa__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.qa__summary::-webkit-details-marker {
  display: none;
}

.qa__summary:hover {
  color: var(--brand-ink);
}

.qa__mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--brand-mark);
  transition: transform 0.2s ease;
}

.qa[open] .qa__mark {
  transform: rotate(45deg);
}

.qa__body {
  padding: 0 34px 20px 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-muted);
}

/* --- 版本时间线 -------------------------------------------- */
.release {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-left: 20px;
  border-left: 3px solid var(--line-soft);
}

.release--latest {
  border-left-color: var(--brand-mark);
}

.release__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.release__ver {
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
}

.release--old .release__ver {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}

.release__date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.release__badge {
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--brand-ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
}

.release__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-soft);
}

.release--old .release__list {
  color: var(--text-muted);
}

/* --- 参数表 ------------------------------------------------ */
.spec {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-xs);
}

.spec__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-dark);
}

.spec__row:last-child {
  border-bottom: 0;
}

.spec__k {
  color: var(--text-invert-soft);
  flex: 0 0 auto;
}

.spec__v {
  font-weight: 700;
  color: var(--text-invert-body);
  text-align: right;
}

.spec__v--mark {
  color: var(--brand-ink-on-dark);
}

.spec__v--mono {
  font-weight: 400;
  color: var(--text-invert-soft);
  word-break: break-all;
}

@media (max-width: 560px) {
  .btn {
    padding: 14px 22px;
    font-size: 14.5px;
  }

  .card {
    padding: 22px 20px 24px;
  }

  .qa__summary {
    font-size: 15.5px;
    padding: 16px 0;
  }

  .spec {
    font-size: 12px;
  }
}
