/* ============================================================
   组件层：按钮 / 圆角标 / 卡片 / 图标块 / 筛选片 / 问答 / 搜索框
   ============================================================ */

/* ---------- 眉标 ---------- */
.eyebrow {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: var(--sp-3);
}

/* 区块标题组 */
.section-head { max-width: 640px; }
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
}
.section-head h1,
.section-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}
.section-head .sub {
  margin-top: var(--sp-3);
  color: var(--text-body);
  font-size: var(--fs-body);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--r-pill);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex: 0 0 auto; }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand-strong-2));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(0, 179, 134, 0.45);
}
.btn--primary:hover { box-shadow: 0 12px 28px -8px rgba(0, 179, 134, 0.55); }

.btn--soft { background: var(--brand-surface); color: var(--text); font-weight: 500; }

/* 浅灰底上的描边款（用内阴影，不用 border —— 避免撑高 2px） */
.btn--ghost {
  background: #fff;
  color: var(--text);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px #c8d2cc;
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--brand-ink); }

.btn--white { background: #fff; color: var(--panel-deep); }

/* 行内文字链接（与按钮同排，无底无边） */
.link-inline {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-block: 2px;
  white-space: nowrap;
}
.link-inline:hover { border-bottom-color: var(--brand-ink); }

/* ---------- 圆角标（pill） ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--brand-surface);
  font-size: var(--fs-meta);
  color: var(--text-body);
}
.pill--brand { background: rgba(0, 179, 134, 0.1); color: var(--brand-ink); font-weight: 500; }

/* ---------- 图标块 ---------- */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-icon);
  background: var(--brand-mark);
  color: #fff;
  flex: 0 0 auto;
}
.icon-tile--lg { width: 54px; height: 54px; border-radius: 16px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--brand-surface);
  border-radius: var(--r-card);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.card h3 { font-size: 20px; font-weight: 700; }
.card p { font-size: var(--fs-small); color: var(--text-body); }

/* 白色卡（放在浅色底容器里） */
.card--white { background: #fff; }

/* ---------- 影片卡 ---------- */
.movie-card {
  background: var(--brand-surface);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}
.movie-card:hover { transform: translateY(-4px); }
/* 卡片是 <a>：去掉链接默认下划线与继承色，避免与 h3 标题色冲突 */
a.movie-card { text-decoration: none; color: inherit; }
a.movie-card .movie-card__title { color: var(--text); }
a.movie-card:hover .movie-card__title { color: var(--brand-ink); }
.movie-card:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 2px;
}
.movie-card__poster {
  aspect-ratio: 141 / 172;
  width: 100%;
  object-fit: cover;
}
.movie-card__info { padding: 14px 14px 18px; display: grid; gap: 2px; }
.movie-card__title { font-size: 17px; font-weight: 600; color: var(--text); }
.movie-card__meta { font-size: var(--fs-meta); color: var(--text-body); }

/* ---------- 筛选片 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 20px;
  border-radius: var(--r-pill);
  background: var(--brand-surface);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-body);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.chip:hover { color: var(--brand-ink); }
.chip[aria-pressed="true"] {
  background: var(--brand-strong);
  color: #fff;
}

/* ---------- 问答（details 手风琴） ---------- */
.qa {
  background: var(--brand-surface);
  border-radius: 20px;
  padding: 22px 26px;
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  color: var(--brand-mark);
  transition: transform 0.2s ease;
}
.qa[open] .qa__icon { transform: rotate(45deg); }
.qa__answer {
  margin-top: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--text-body);
  line-height: 1.8;
}

/* ---------- 搜索框 ---------- */
.search {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: min(560px, 100%);
  padding: 16px 22px;
  border-radius: var(--r-pill);
  background: var(--brand-surface);
  color: var(--text-body);
}
.search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
}
.search input::placeholder { color: var(--text-body); opacity: 0.75; }
.search input:focus { outline: none; }
.search svg { flex: 0 0 auto; }

/* ---------- 二维码 ---------- */
.qr-plate {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}
.qr-plate img, .qr-plate svg { width: 100%; height: 100%; }
