/* 引导页：一屏一页，点按钮横向翻页；视觉刻意贴近真实微信界面 */
[hidden] { display: none !important; }

body.welcome-open { overflow: hidden; background: var(--bg); }
body.welcome-open #toast { z-index: 80; }

.deck-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

/* 顶栏 */
.deck-top {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.brand-mini img {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  object-fit: contain;
}
.deck-skip {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 14px;
  padding: 4px 0;
  cursor: pointer;
}
.deck-skip:hover { color: var(--ink-2); }

/* 视口 + 轨道 */
.deck-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.deck-track {
  display: flex;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.4s cubic-bezier(0.3, 0.1, 0.2, 1);
  will-change: transform;
}
/* 每屏必须正好是轨道宽度的 100%，否则 translateX 的百分比位移会算错 */
.deck-screen {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 66px 24px 196px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.deck-screen > .stage,
.deck-screen > .copy {
  width: 100%;
  max-width: 380px;
}
.deck-screen .stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}
/* 付费屏：标题在上、选项紧随其后 */
.deck-screen .stage.tight {
  justify-content: flex-start;
  gap: 12px;
}
.deck-screen .stage.center { justify-content: center; }
.deck-screen.front { padding-bottom: 196px; }

/* 文案 */
.deck-screen .copy { flex-shrink: 0; padding-top: 24px; }
.deck-screen .copy.lead { padding: 0 0 18px; }
.deck-screen .eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--ink-3);
}
.deck-screen .title {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.deck-screen h1.title { font-size: 26px; }
.deck-screen .desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* 底部操作 */
.deck-foot {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.deck-dots { display: flex; gap: 6px; }
.deck-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d5d5cf;
}
.deck-dots i.on { background: var(--seal); }
.deck-cta {
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  padding: 13px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.deck-cta:hover { background: var(--brand-ink); }
.deck-note {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--ink-3);
  cursor: default;
}
.deck-note.link {
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 第 1 屏：一张早报头版，不再叠两段文案 */
.paper {
  width: 100%;
  box-sizing: border-box;
  padding: 22px 20px 26px;
  border: 1px solid var(--ink);
  background: var(--paper);
  text-align: center;
}
.rule-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--seal);
}
.mast-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.15;
}
.mast-role {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--ink-2);
}
.mast-stamp {
  display: block;
  width: 120px;
  height: 120px;
  margin: 16px auto 0;
  object-fit: contain;
}
.mast-lead {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.mast-sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* 微信截图容器 */
.wx-shot {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--wx-bg);
  box-shadow: var(--shadow);
}
.wx-nav {
  padding: 10px 14px;
  background: var(--wx-bg);
  border-bottom: 1px solid #dedede;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: #1a1a1a;
}
.wx-nav .back {
  float: left;
  margin-top: -1px;
  color: #5a5a5a;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}

/* 会话列表 */
.wx-list { background: #fff; }
.wx-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.wx-row:last-child { border-bottom: 0; }
.wx-row.active { background: #f7f7f7; }
.wx-ava, .ph-ava {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  flex: 0 0 auto;
  object-fit: cover;
}
.ph-ava { background: #e4e4e4; }
.wx-main { flex: 1; min-width: 0; }
.wx-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wx-name { font-size: 15px; color: #1a1a1a; }
.wx-time { font-size: 11px; color: #b2b2b2; flex: 0 0 auto; }
.wx-msg {
  margin-top: 2px;
  font-size: 13px;
  color: #9c9c9c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-badge {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fa5151;
}
.wx-row.ghost .ph-lines { flex: 1; }
.ph-l {
  display: block;
  height: 8px;
  border-radius: 2px;
  background: #ededed;
  margin-bottom: 8px;
}
.ph-l:last-child { margin-bottom: 0; background: #f4f4f4; }
.ph-l.w45 { width: 45%; }
.ph-l.w60 { width: 60%; }
.ph-l.w70 { width: 70%; }
.ph-l.w85 { width: 85%; }

/* 聊天气泡（微信真实配色） */
.wx-chat {
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wx-stamp {
  align-self: center;
  font-size: 11px;
  color: #b2b2b2;
}
.msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
}
.msg img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  flex: 0 0 auto;
  object-fit: cover;
}
.msg .self-ava {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  flex: 0 0 auto;
  background: #d6d6d6;
  overflow: hidden;
}
.msg .self-ava::before,
.msg .self-ava::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #f2f2f2;
}
.msg .self-ava::before {
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.msg .self-ava::after {
  bottom: -7px;
  width: 20px;
  height: 16px;
  border-radius: 50%;
}
.msg.out { flex-direction: row-reverse; align-self: flex-end; }
.bubble {
  position: relative;
  max-width: 220px;
  padding: 8px 11px;
  border-radius: 5px;
  background: #fff;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1a1a1a;
}
.bubble::before {
  content: "";
  position: absolute;
  top: 11px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: inherit;
  transform: rotate(45deg);
}
.msg.out .bubble { background: var(--wx-green); }
.msg.out .bubble::before { left: auto; right: -4px; }
.b-line { display: block; }
.b-line + .b-line { margin-top: 2px; }
.b-head {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.hl { font-style: normal; font-weight: 600; }
.memo {
  align-self: center;
  margin: 0;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 11.5px;
  color: #8a8a8a;
}

/* 聊天里的提醒卡片（仿微信小程序/公众号卡片消息） */
.alert-card {
  max-width: 220px;
  padding: 11px 12px;
  border-radius: 5px;
  background: #fff;
}
.alert-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #9c9c9c;
}
.dot-live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--up);
}
.alert-name {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}
.up {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--up);
}
.alert-note {
  margin-top: 4px;
  padding-top: 7px;
  border-top: 1px solid #f0f0f0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #8a8a8a;
}

/* 第 6 屏：套餐 */
.plan-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.plan-row.hot { border-color: var(--seal); }
.plan-row .p-name { font-size: 15px; font-weight: 500; flex: 0 0 auto; }
.plan-row .tag {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #f6e8e2;
  color: var(--seal);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}
.plan-row .p-price {
  width: 58px;
  text-align: right;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.plan-row .p-note {
  flex: 1;
  text-align: right;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-root .agree {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
}
/* 覆盖全局 input 的 width:100% / padding，否则复选框会被撑成一个大方块 */
.deck-root .agree input[type="checkbox"] {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  min-width: 0;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--brand);
}

@media (max-height: 700px) {
  .deck-screen { padding: 58px 22px 182px; }
  .deck-screen .copy { padding-top: 18px; }
  .deck-screen h1.title { font-size: 24px; }
  .deck-screen .title { font-size: 20px; }
}
@media (max-height: 580px) {
  .deck-screen { padding: 54px 22px 168px; }
  .deck-screen .desc { display: none; }
  .mast-name { font-size: 34px; }
  .mast-stamp { width: 88px; height: 88px; }
  .mast-lead { font-size: 18px; }
}
