/* ==========================================================================
   h5/styles/theme-festive.css — UI v5.0 临摹主题层（最后加载，覆盖前面各表）
   配方：像素级临摹「完美亲家」参考图（docs/preview/ui-v5-preview.html，用户验收）
   —— 整页珊瑚红渐变（base.css 已挂 --grad-page）+ 纯白 8px 圆角卡
   + 亮黄粗黑体大标题 + 奶油胶囊 + 大红渐变 CTA 条。
   纪律：全站禁衬线、禁水印、禁金线描边、禁参考图以外装饰；
        认证徽章 / 脱敏块 / 风险横幅 / 子女授权卡等信任语义区零改动。
   全文件零硬编码 hex（rgba 白色透明度除外）。
   ========================================================================== */

/* ---------- 顶栏：参考图式红底白字（sticky 保持滚动可读） ---------- */
.app-header {
  background: var(--color-brand-400);
  border-bottom: 0;
  box-shadow: none;
  color: var(--color-fg-inverse);
}
.app-header__bell { color: rgba(255, 255, 255, 0.92); }
.app-header__bell:active { color: var(--color-fg-inverse); }
/* 顶栏身份切换器：白胶囊浮于红底 */
.app-header .mode-switch { background: rgba(255, 255, 255, 0.94); }
.app-header .mode-switch__seg { color: var(--color-fg-muted); }
.app-header .mode-switch__seg.is-active { background: var(--color-surface); color: var(--color-fg-strong); }
.app-header .mode-switch__seg[aria-selected="true"] { color: var(--color-accent); }

/* ---------- 广场 hero v5.1：头图区自持珊瑚红渐变（正文区回归暖白底） ---------- */
.pl-hero--v2 {
  padding: var(--space-6) var(--layout-page-gutter) var(--space-8);
  /* 2026-11-19 换质感：品牌红多层渐变（右上冷光、左下暖金光晕）+ 右上同心金环、左下柔光，
     文字一寸未动；只用既有品牌色相，不引入新色系 */
  background:
    radial-gradient(120% 90% at 88% -18%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(80% 90% at -14% 112%, rgba(253, 242, 206, 0.18) 0%, rgba(253, 242, 206, 0) 60%),
    var(--grad-page);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  color: var(--color-fg-inverse);
}
/* 同心金环：呼应「牵线」的双环意象，纯装饰、不接收点击 */
.pl-hero--v2::before {
  content: '';
  position: absolute; right: -46px; top: -58px;
  width: 168px; height: 168px; border-radius: 50%;
  border: 1px solid rgba(253, 242, 206, 0.30);
  box-shadow: 0 0 0 22px rgba(253, 242, 206, 0.08), 0 0 0 46px rgba(253, 242, 206, 0.05);
  pointer-events: none;
}
/* 左下柔光：把纯色块压出纵深，不改变任何文字对比 */
.pl-hero--v2::after {
  content: '';
  position: absolute; left: -70px; bottom: -92px;
  width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 242, 206, 0.14) 0%, rgba(253, 242, 206, 0) 68%);
  pointer-events: none;
}
.pl-hero--v2 .pl-hero__eyebrow { color: rgba(255, 255, 255, 0.72); }
.pl-hero--v2 .pl-hero__title {
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--color-gold-bright);
}
.pl-hero--v2 .pl-hero__sub {
  color: var(--color-fg-inverse);
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.06em;
}
/* v5 奶油胶囊入口（替代 v3 金线描边）：#FDF2CE 底 / #C2472E 字 */
.pl-hero__entry {
  margin-top: var(--space-4);
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: 34px; padding: 0 var(--space-4);
  border: 0; border-radius: var(--radius-full);
  background: var(--color-gold-soft); color: var(--color-gold-text);
  font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold);
  cursor: pointer;
}

/* ---------- 卡片标题性别色编码（参考图式「女 · 00年」25px/700） ---------- */
.card__gender {
  font-size: var(--font-size-title-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}
.card__gender--f { color: var(--color-female-500); }
.card__gender--m { color: var(--color-male-500); }
.card__gender-dot {
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 var(--space-1);
  border-radius: var(--radius-full);
  background: currentColor;
  vertical-align: middle;
  opacity: 0.85;
}
.card__year { color: var(--color-fg-strong); font-weight: var(--font-weight-bold); }

/* ---------- 信息行：label 暖灰棕 / value 深暖棕，17px 行高 2（参考图） ---------- */
.pl-row, .dt-row { font-size: var(--font-size-lead); line-height: var(--line-height-loose); }
.pl-row__k, .dt-row__k { font-size: inherit; }
.pl-row__v, .dt-row dd { color: var(--color-fg-body); }
.pl-row__hi {
  color: var(--color-female-500);
  font-weight: var(--font-weight-semibold);
  font-style: normal;
}

/* ---------- 底部渐变 CTA 条：sticky 悬于 TabBar 之上（规避 iOS fixed 错位），白底衬托红渐变按钮 ---------- */
.pl-ctabar {
  position: sticky;
  bottom: calc(var(--layout-tabbar-height) + var(--layout-safe-bottom));
  z-index: var(--z-sticky);
  padding: var(--space-2) var(--layout-page-gutter);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.pl-ctabar__btn {
  background: var(--grad-cta);
  border-radius: var(--radius-full);
  min-height: 52px;
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  box-shadow: none;
}

/* ---------- 身份页 v5.1：头图区自持红渐变 + 亮黄大标题（禁衬线禁水印） ---------- */
.id-hero {
  background: var(--grad-page);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  color: var(--color-fg-inverse);
}
.id-hero h1 { color: var(--color-gold-bright); font-weight: var(--font-weight-bold); }
.id-hero p { color: rgba(255, 255, 255, 0.95); }
.id-logo { background: var(--color-surface); }
/* 身份卡：白卡 8px；选中图标亮起品牌渐变（身份卡本身不加性别色） */
.id-card__icon { background: var(--color-brand-100); }
.id-card.is-picked .id-card__icon {
  background: var(--grad-brand);
  color: var(--color-on-accent);
}
/* 服务范围胶囊（.id-city--fixed 信任语义）：奶油底参考图式 */
.id-city--fixed {
  background: var(--color-gold-soft);
  border: 0; box-shadow: none;
  color: var(--color-gold-text);
}
.id-city--fixed .id-city__value { color: var(--color-gold-text); font-weight: var(--font-weight-semibold); }
