/* ==========================================================================
   components.css · 可复用的原子组件
   按钮 / 胶囊 / 标签 / 图标块 / 卡片 / 问答 / 图片位 / 星级 / 键值行 / 说明条
   ========================================================================== */

/* ---------- 排版工具类 ---------- */
.t-display { font-size: var(--fs-display); }
.t-h1      { font-size: var(--fs-h1); }
.t-h2      { font-size: var(--fs-h2); }
.t-h2s     { font-size: var(--fs-h2-sm); }
.t-h3      { font-size: var(--fs-h3); }
.t-lead    { font-size: var(--fs-lead); line-height: 1.75; color: var(--text-body); }
.t-body    { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-body); }
.t-muted   { color: var(--text-muted); }
.t-sm      { font-size: var(--fs-sm); }
.t-xs      { font-size: var(--fs-xs); }

/* 正文里的「了解更多」类内链 */
.link-more {
  color: var(--brand-ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-center { text-align: center; }

/* ---------- 小标题（英文全大写，或中文短语） ---------- */
.eyebrow {
  font-family: var(--font-num);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-ink-2);
}
.eyebrow--deep { color: var(--accent); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 15px 28px;
  border-radius: var(--r-pill);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn:hover { text-decoration: none; }

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

/* 浅底上的次级动作走描边，不用浅灰实心（那看着像禁用态）。
   用 inset 阴影而非 border：1px 实边框会把按钮撑高 2px，和同行实心按钮对不齐。 */
.btn--ghost {
  background: var(--card);
  color: var(--text);
  box-shadow: inset 0 0 0 1px #DFD4C6;
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text-muted); }

/* 深底上的两个变体 */
.btn--light {
  background: #fff;
  color: var(--brand-ink);
}
.btn--light:hover { background: #F7EAE9; }

/* 深底背景只比按钮亮一点，靠描边把边界交代清楚，否则看着像禁用态 */
.btn--deep {
  background: var(--deep-btn);
  color: var(--text-invert-body);
  box-shadow: inset 0 0 0 1px #3D332B;
}
.btn--deep:hover { background: #33281F; }

.btn--lg { padding: 17px 32px; font-size: var(--fs-lead); }
.btn--sm { padding: 11px 22px; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

/* ---------- 胶囊 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.4;
}
.pill--deep { background: var(--deep-chip); color: var(--text-invert-tag); }
.pill--lg { padding: 10px 18px; font-size: var(--fs-xs); }

.dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--brand-mark);
}

/* ---------- 图标块 ---------- */
.icon-tile {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-xs);
  background: var(--brand);
}
.icon-tile > svg { width: 22px; height: 22px; }
.icon-tile--lg { width: 56px; height: 56px; border-radius: var(--r-sm); }
.icon-tile--surface { background: var(--brand-surface); }

/* ---------- 卡片 ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-7);
  border-radius: var(--r-md);
  background: var(--card);
}
.card__title { font-size: var(--fs-card); }
.card__desc {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.85;
}

.card--lg { border-radius: var(--r-lg); }
.card--xs { border-radius: var(--r-sm); }

.card--deep { background: var(--deep-card); }
.card--deep .card__title { color: var(--text-invert); }
.card--deep .card__desc  { color: var(--text-invert-mute); }

/* 横向卡：图标在左，文字在右 */
.card--row {
  flex-direction: row;
  align-items: center;
  gap: var(--sp-5);
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
}

/* ---------- 问答 ---------- */
.qa {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  border-radius: var(--r-sm);
  background: var(--card);
}
.qa__q {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.qa__a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}

/* ---------- 图片位 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: #EBE4D8;
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* 手机竖屏比例（App 截图） */
.media--phone { aspect-ratio: 9 / 16; }

/* ---------- 星级 ---------- */
/* 用文字星号而不是几何方块：方块看不出是"分"，星号一眼就懂，且零额外资源 */
.stars {
  color: var(--brand-mark);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 2px;
}

/* ---------- 键值行 ---------- */
.info-row {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  padding-block: var(--sp-5);
}
.info-row + .info-row { border-top: 1px solid var(--line-soft); }
.info-row__k {
  flex: 0 0 240px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
}
.info-row__v {
  color: var(--text);
  font-size: var(--fs-body);
  font-weight: 500;
}

/* ---------- 说明条 ---------- */
.notice {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--text-body);
  font-size: var(--fs-sm);
  line-height: 1.85;
}
.notice > svg { flex: 0 0 auto; }

/* ---------- 二维码底板 ---------- */
.qr-plate {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  padding: 20px;
  border-radius: var(--r-sm);
  background: #fff;
}
.qr-plate > img,
.qr-plate > svg { width: 100%; height: 100%; }

/* ---------- 组件级断点 ---------- */
@media (max-width: 640px) {
  .btn { padding: 13px 22px; }
  .btn--lg { padding: 15px 24px; font-size: var(--fs-body); }
  .card { padding: var(--sp-5); gap: var(--sp-3); }
  .card--row { gap: var(--sp-4); align-items: flex-start; }
  .qa { padding: var(--sp-5); }
  .qa__q { font-size: 15.5px; }
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-1);
    padding-block: var(--sp-4);
  }
  .info-row__k { flex: none; }
  .qr-plate { width: 160px; height: 160px; }
}
