* {
  box-sizing: border-box;
}

html {
  background: #e7ecf8;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.poster {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 816px;
  margin: 0 auto;
}

.poster-image {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.84) contrast(0.97) brightness(1.025);
}

/* 只修复旧标志所在的小范围，保留海报其余图案。 */
.brand-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: saturate(0.84) contrast(0.97) brightness(1.025);
  -webkit-mask-image: radial-gradient(ellipse 11% 4.2% at 38.7% 6.3%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 11% 4.2% at 38.7% 6.3%, #000 72%, transparent 100%);
  pointer-events: none;
}

.brand-logo {
  position: absolute;
  top: 3.45%;
  left: 50%;
  width: 52%;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 5px rgba(37, 62, 139, 0.18));
}

/* 底图不含文字，文字与半透明聊天底色随海报等比缩放。 */
.live-chat {
  position: absolute;
  top: 55.6%;
  left: 8.82%;
  display: grid;
  gap: 0.4cqw;
  margin: 0;
  color: #fff;
  font-size: 1.9cqw;
  font-weight: 500;
  line-height: 1.55;
  white-space: nowrap;
}

.live-chat-row {
  display: flex;
  align-items: center;
  width: 33.7cqw;
  min-height: 3.9cqw;
  margin: 0;
  padding: 0.55cqw 0.85cqw;
  border-radius: 1.1cqw;
  background: rgba(28, 31, 44, 0.8);
}

.live-chat-answer {
  align-items: flex-start;
  background: rgba(35, 38, 68, 0.88);
}

.chat-speaker {
  flex: 0 0 5.7cqw;
  margin-top: 0.2cqw;
  color: #d8dfec;
  font-size: 1.6cqw;
}

.live-chat-answer .chat-speaker {
  color: #d6c5ff;
}

/* 全部文案使用矢量文字，直接排在原背景上，无需遮盖贴片。 */
.poster-lettering {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.poster-lettering text {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.headline {
  fill: #2c3fac;
  stroke: #fff;
  stroke-width: 8px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  font-weight: 800;
  text-anchor: middle;
}

.sign-copy {
  fill: #373869;
  font-weight: 600;
  opacity: 0.9;
}

.bubble-copy {
  fill: #fff;
  font-weight: 600;
}

.phone-copy {
  fill: #161616;
  font-weight: 500;
}

.product-title {
  font-weight: 600;
}

.product-detail {
  fill: #666;
}

.product-price {
  fill: #c44357;
  font-weight: 600;
}

.feature-copy {
  fill: #272c53;
  font-weight: 600;
}

.slogan {
  fill: #303989;
  font-weight: 700;
}

.demo-trigger {
  position: absolute;
  top: 29.35%;
  width: 28.3%;
  height: 2.85%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.demo-trigger-chat { left: 13.45%; }
.demo-trigger-products { left: 57.7%; }

.demo-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.demo-trigger:focus-visible {
  outline: 3px solid #253fa9;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .demo-trigger {
    height: 44px;
    margin-top: calc(3.37cqw - 22px);
  }
}

.download-button {
  /* 铺满海报底部浅灰底框，整个区域都可以点击。 */
  position: absolute;
  top: 90.5%;
  left: 11.4%;
  width: 77.2%;
  height: 6%;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  gap: 0.35cqw;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 2.6cqw;
  background: linear-gradient(105deg, #6750d9, #3768cf);
  box-shadow: none;
  color: #fff;
  font-size: clamp(18px, 4.5cqw, 36px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.download-platform {
  font-size: clamp(9px, 2cqw, 15px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #eef1ff;
}

.download-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.download-button:active {
  filter: brightness(0.94);
}

/* 非模态示例面板，只使用阴影，不遮暗海报背景。 */
.demo-dialog {
  position: fixed;
  z-index: 20;
  top: 50%;
  left: 50%;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: 0;
  padding: 24px;
  transform: translate(-50%, -50%);
  overflow: auto;
  border: 1px solid #e3e7f0;
  border-radius: 18px;
  background: #fff;
  color: #28314b;
  box-shadow: 0 18px 70px rgba(25, 38, 82, 0.3);
}

.demo-dialog::backdrop { background: transparent; }

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-header h2 { margin: 0; font-size: 20px; }

.demo-close {
  min-width: 48px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  color: #465881;
  background: #f0f3f9;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.demo-close:focus-visible { outline: 2px solid #3768cf; outline-offset: 3px; }
.demo-kicker { margin: 8px 0 24px; color: #65708a; font-size: 13px; }
.demo-question, .demo-answer { padding: 16px; border-radius: 12px; }
.demo-question { margin-bottom: 12px; background: #f4f6fa; }
.demo-answer { background: #edf2fc; }
.demo-question > span, .demo-answer > span { color: #526084; font-size: 12px; font-weight: 600; }
.demo-question p, .demo-answer p { margin: 8px 0 0; font-size: 16px; line-height: 1.75; }
.demo-footnote { margin: 20px 0 0; color: #768097; font-size: 12px; line-height: 1.6; }
.demo-products { padding: 0; margin: 0; list-style: none; }
.demo-products li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #edf0f6; }
.demo-products li:first-child { padding-top: 0; }
.demo-products li:last-child { border-bottom: 0; padding-bottom: 0; }
.demo-products strong { display: block; font-size: 16px; font-weight: 600; }
.demo-products span { display: block; margin-top: 6px; color: #65708a; font-size: 12px; }
.demo-products b { color: #bc4053; font-size: 20px; white-space: nowrap; }

.download-notice {
  position: fixed;
  z-index: 30;
  z-index: 10;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  max-width: 440px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff;
  color: #25324a;
  box-shadow: 0 8px 32px rgba(19, 34, 68, 0.2);
}

.download-notice[hidden] {
  display: none;
}

.download-notice p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
}

.notice-close {
  display: block;
  margin-left: auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: #eef3ff;
  color: #2456c6;
  font: inherit;
  cursor: pointer;
}
