/* ============================================================
   首页外观：主视觉模板 + 主色
   由 theme.js 根据后台设置给 <html> 打标记：
     data-hero="blue" | "poster"
     class="themed" + --pri / --pri2 / --soft / --soft2 / --ink / --pagebg
   ============================================================ */

/* ---------- 主色（只在非经典蓝时生效） ---------- */
html.themed,
html.themed body { background: var(--pagebg) !important; }

html.themed .brand-mark {
  background: var(--pri) !important;
  box-shadow: 0 4px 9px rgba(20, 40, 80, .12) !important;
}

html.themed .follow-button {
  color: var(--pri2) !important;
  border-color: var(--soft2) !important;
  background: var(--soft) !important;
}

html.themed .card-heading h2 strong { color: var(--pri) !important; }

html.themed .card-gift {
  background: var(--soft) !important;
  color: var(--ink) !important;
}

html.themed .claim-steps li:first-child { color: var(--pri2) !important; }
html.themed .claim-steps li:first-child span { background: var(--pri) !important; }

html.themed .wechat-entry {
  background: var(--soft) !important;
  border-color: var(--soft2) !important;
  color: var(--ink) !important;
}
html.themed .wechat-entry-icon { background: #fff !important; color: var(--pri) !important; }
html.themed .entry-label { color: var(--pri2) !important; }

html.themed .community-link { color: var(--pri2) !important; border-color: var(--soft2) !important; }
html.themed .community-icon { color: var(--pri) !important; }

/* 渠道标签 */
html.themed .ch-tabs { border-color: var(--soft2) !important; }
html.themed #chA:checked ~ .ch-tabs label[for="chA"],
html.themed #chB:checked ~ .ch-tabs label[for="chB"] {
  background: var(--pri) !important;
  box-shadow: 0 6px 14px rgba(20, 40, 80, .16) !important;
}
html.themed .ch-count-txt { color: var(--pri) !important; }

/* 站点自己的二维码弹窗 */
html.themed .wechat-dialog h2 span:last-child { color: var(--pri2) !important; }
html.themed .wechat-dismiss { background: var(--pri) !important; }
html.themed .wechat-symbol { color: var(--pri2) !important; background: var(--soft) !important; }

/* ---------- 主视觉模板：图片海报 ---------- */
html[data-hero="poster"] .hero-panel {
  background-image: var(--hero-img);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
  align-self: start !important;
  border-radius: 24px !important;
  overflow: hidden;
}

/* 海报上已经自带标题和 5 元券，旧的文字/票券全部让位 */
html[data-hero="poster"] .hero-panel > * { display: none !important; }

@media (max-width: 760px) {
  html[data-hero="poster"] .hero-panel { border-radius: 20px !important; }
  html[data-hero="poster"] .form-column { margin-top: 12px !important; }
}

/* ---------- 左侧海报卡铺满整列：底部与右侧列齐平（仅电脑端，手机保持 1:1） 2026-12-06 ---------- */
@media (min-width: 761px) {
  html[data-hero="poster"] .hero-panel {
    height: auto !important;
    min-height: 617px !important;
    aspect-ratio: auto !important;
    align-self: stretch !important;
    background-size: 100% 100% !important;
    background-position: center top !important;
  }
}
