/* 全局基础样式与移动端优化 */
html {
  -webkit-text-size-adjust: 100%;
}

* , *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
}
.message {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh; /* 回退 */
  min-height: 100dvh; /* 动态视口单位，适配移动端地址栏 */
  padding-bottom: 120px;
  will-change: opacity;
  -webkit-transition: opacity 0.1s ease-in;
  transition: opacity 0.1s ease-in;
  background-color: rgba(0, 0, 0, 0.99);
}
.message>header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: space-between;
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}
.message-header-left{
  display: flex;
  align-items: center;
}
.message-header-center{
  color: #fff;
  flex: 1;
  text-align: center;
}
.message-header-right{
  width: 64px;
  height: 64px;
}

/* 头像/图标在小屏自适应尺寸 */
.message-header-left img{
  width: clamp(40px, 14vw, 55px);
  height: clamp(40px, 14vw, 55px);
  display: block;
}

/* 内容图片自适应容器宽度 */
.message-content img{
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}
.message-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background-color: #2f2f2f;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  z-index: 1000;
}

.cta-group{
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-cell{
  position: relative;
  flex: 1;
}

.cta-btn{
  display: block;
  text-align: center;
  padding: 14px 12px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cta-btn.cta-play{
  background: #1E75FF;
}

.cta-btn.cta-download{
  background: #00D2CC;
}

.cta-badge{
  position: absolute;
  top: -36px;
  left: 80px;
  background: #E4564F;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cta-badge::after{
  content: "";
  position: absolute;
  left: 16px;
  bottom: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #E4564F;
}
