* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: #eef3f9;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden; /* 关键：禁止整页滚动，改为中间容器滚动 */
}

.page {
  max-width: 750px;   /* 移动端设计稿常用 */
  margin: 0 auto;
}

/* 顶部/底部固定 + 中间滚动布局 */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #eef3f9;
  padding-top: env(safe-area-inset-top);
}

.main-scroll {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--top-h, 0px);
  bottom: var(--bottom-h, 0px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.footer-fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #eef3f9;
  padding-bottom: env(safe-area-inset-bottom);
}

.block {
  width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

/* 顶部大图（1@3x.png）原图底部有倒影/留白，页面上需要裁掉 */
.hero {
  width: 100%;
  aspect-ratio: 375 / 375; /* 如果还想更高/更低，改这里即可 */
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.section {
  margin-top: 16px;
}

.section-tight {
  margin-top: 0;
}

/* 三个入口按钮：一行三等分（对应你截图图1的效果） */
.tab-row {
  display: flex;
  gap: 16px;
  padding: 0 16px;
}

.tab-img {
  flex: 1;
  width: 0; /* 让三张图等分占位 */
  height: auto;
  display: block;
}

/* 推荐海报区（image6~image11）：两列网格 */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 18px;
  padding: 0 16px;
  padding-bottom: 20px;
}

.poster-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poster-thumb {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(26, 45, 80, 0.10);
}

.poster-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.poster-title {
  font-size: 20px;
  color: #1f2d3d;
  line-height: 1.2;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 底部下载区 */
.footer {
  position: relative;
  padding: 12px 0 16px;
}

.footer-fixed-inner {
  padding: 4px 0 6px; /* 固定底部时更紧凑一点 */
}

/* 固定底部时：不需要 footer 自带的上下留白，否则会出现“底部一条空白” */
.footer-fixed .footer {
  padding: 0;
}

.footer-fixed .footer-fixed-inner {
  padding: 0;
}

/* 让底部装饰图在固定底部内更贴合 */
.footer-fixed .footer-bg {
  height: 100%;
  top: 0;
}

.footer-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  pointer-events: none;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.footer-bg img {
  width: 120%;
  max-width: 900px;
  opacity: 0.22;
  transform: translateY(-18px);
  display: block;
}

.footer-card {
  position: relative;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 10px 26px rgba(26, 45, 80, 0.10);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 12px 4px;
}

.footer-app {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.footer-app-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}

.footer-app-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-app-text h3 {
  margin: 0;
  font-size: 13px;
  color: #111;
  line-height: 1.1;
}

.footer-app-text p {
  margin: 1px 0 0;
  font-size: 10px;
  color: #333;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.footer-download img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 6px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.footer-bottom::before,
.footer-bottom::after {
  content: '';
  flex: 1;
}

.footer-divider {
  width: 1px;
  height: 20px;
  background: #2f86ff;
  opacity: 0.6;
  border-radius: 1px;
  flex-shrink: 0;
}

.footer-web {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 clamp(20px, 5vw, 50px);
  line-height: 0;
}

.footer-web img {
  height: 28px;
  width: auto;
  display: block;
  margin: 0;
}

/* ===== 温馨提示 ===== */
.tip-box {
  background: #eef5ff;
  padding: 8px 16px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.tip-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.tip-content {
  font-size: 12px;
  color: #2b3a55;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.tip-content strong {
  font-weight: 600;
}

/* ===== App 信息 ===== */
.app-bar {
  background: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
}

.app-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.app-info h3 {
  margin: 0;
  font-size: 16px;
  color: #111;
  line-height: 1.2;
}

.app-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #666;
  line-height: 1.2;
}

.app-actions {
  display: flex;
  gap: 8px;
}

.btn-web {
  padding: 6px 14px;
  border-radius: 16px;
  border: 1.5px solid #6ecbff;
  background: #fff;
  color: #4aaeff;
  font-size: 12px;
}

.btn-download {
  padding: 6px 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, #5bbcff, #4f9dff);
  color: #fff;
  font-size: 12px;
  border: none;
}

/* 蓝色边框卡片（用于 image12 / image13 这类带边框效果） */
.blue-frame {
  border: 4px solid #2f86ff;
  border-radius: 22px;
  overflow: hidden; /* 让图片跟随圆角裁切 */
  background: #fff;
  margin: 0 16px; /* 关键：左右边距，避免贴边，效果更接近截图 */
}

.blue-frame img {
  width: 100%;
  display: block;
  /* 消除顶部偶发 1px 白线（图片边缘像素/缩放取整导致） */
  transform: translateY(-1px) scale(1.01);
  transform-origin: center;
}


