/* 美图羞羞 · 极简 DFA 单屏落地页（PC 16:9 / H5 9:16 单屏转化） */
*, *::before, *::after { box-sizing: border-box; }
html, body.mtxx-body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #0d0810;
  color: #fff;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font-family: inherit; }

.mtxx-dfa {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

/* 全屏背景海报 */
.dfa-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.dfa-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 12%;
  transform: scale(1.01);
  filter: saturate(1.1) contrast(1.04) brightness(1.04);
}
.dfa-bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 8, 16, 0.56) 0%, rgba(13, 8, 16, 0.14) 26%, rgba(13, 8, 16, 0.52) 56%, rgba(13, 8, 16, 0.94) 76%, #0d0810 100%);
}
.dfa-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(236, 30, 88, 0.34), transparent 44%),
    radial-gradient(circle at 86% 74%, rgba(243, 200, 140, 0.18), transparent 42%);
}

/* 主视口容器 */
.dfa-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 顶部极简栏 */
.dfa-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dfa-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dfa-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(226, 24, 68, 0.45);
}
.dfa-brand-name strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.dfa-brand-name span {
  display: block;
  font-size: 11px;
  color: rgba(255, 224, 232, 0.8);
  white-space: nowrap;
}
.dfa-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dfa-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  white-space: nowrap;
}
.dfa-pill--accent {
  background: linear-gradient(135deg, #f42857, #c8123b);
  border-color: rgba(255, 160, 185, 0.45);
  box-shadow: 0 4px 16px rgba(226, 24, 68, 0.4);
}

/* 舞台布局（默认 H5 纵向单屏） */
.dfa-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.dfa-visual-space {
  display: none;
}
.dfa-panel {
  width: 100%;
  text-align: center;
  padding-bottom: 4px;
}
.dfa-kicker {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(226, 24, 68, 0.85), rgba(188, 36, 128, 0.82));
  border: 1px solid rgba(255, 190, 208, 0.4);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  box-shadow: 0 6px 20px rgba(226, 24, 68, 0.35);
}
.dfa-title {
  margin: 0 0 8px;
  font-size: clamp(32px, 8.8vw, 44px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}
.dfa-title span {
  background: linear-gradient(90deg, #ff7aa0 0%, #ffe2b3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dfa-sub {
  margin: 0 auto 16px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 236, 242, 0.86);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-block;
  max-width: 100%;
}

/* H5 双大按钮（高点击率 DFA 风格） */
.dfa-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.dfa-btn {
  border: 0;
  border-radius: 16px;
  padding: 13px 10px;
  cursor: pointer;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: transform 0.14s ease, filter 0.14s ease;
}
.dfa-btn:active { transform: scale(0.98); }
.dfa-btn--pink {
  background: linear-gradient(180deg, #ff4b78 0%, #dc1442 100%);
  box-shadow: 0 10px 26px rgba(226, 24, 68, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.dfa-btn--gold {
  background: linear-gradient(180deg, #ffe2b0 0%, #e5aa56 100%);
  color: #2b1708;
  box-shadow: 0 10px 26px rgba(229, 170, 86, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.dfa-btn-main {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.3px;
}
.dfa-btn-sub {
  font-size: 11px;
  opacity: 0.88;
  font-weight: 600;
}

/* 安装教程条 */
.dfa-guide-bar {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 10px;
}
.dfa-guide-bar:hover { background: rgba(255, 255, 255, 0.16); }
.dfa-arrow { font-size: 16px; opacity: 0.8; }

/* 底部两行说明 */
.dfa-notice {
  margin: 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.dfa-only-pc { display: none; }
.dfa-only-mobile { display: grid; }

/* Toast / Android 报毒弹层 / 浮动广告（完全兼容 landing.js） */
.hg-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  background: rgba(20, 14, 24, 0.95);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 999;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.android-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: #f5f5f7;
  overflow-y: auto;
  color: #222;
}
.android-modal-header {
  position: sticky;
  top: 0;
  height: 52px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #eee;
}
.android-modal-back { background: transparent; border: 0; padding: 6px; cursor: pointer; }
.android-modal-back img { width: 22px; height: 22px; display: block; }
.android-modal-title { font-size: 15px; font-weight: 700; color: #222; }
.android-modal-list, .android-modal-detail { max-width: 560px; margin: 12px auto; padding: 0 12px 32px; display: flex; flex-direction: column; gap: 8px; }
.android-modal-cell img, .android-modal-pic img { width: 100%; display: block; border-radius: 10px; }
.ad-float { position: fixed; right: 16px; bottom: 20px; width: 132px; z-index: 80; }
.ad-slide { display: none; }
.ad-slide.active { display: block; }
.ad-slide img { width: 100%; border-radius: 12px; display: block; }
.ad-close { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.72); color: #fff; cursor: pointer; }

/* PC 宽屏（≥860px）：对标 DFA-01 16:9 单屏海报（左侧扫码转化区 + 右侧完整明亮人像） */
@media (min-width: 860px) {
  .dfa-bg-img {
    object-position: 72% 18%;
  }
  .dfa-bg-veil {
    background:
      linear-gradient(90deg, rgba(13, 8, 16, 0.94) 0%, rgba(13, 8, 16, 0.84) 36%, rgba(13, 8, 16, 0.34) 58%, rgba(13, 8, 16, 0.08) 100%),
      linear-gradient(180deg, rgba(13, 8, 16, 0.38) 0%, transparent 20%, rgba(13, 8, 16, 0.45) 100%);
  }
  .dfa-viewport {
    padding: 24px 44px 28px;
  }
  .dfa-stage {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }
  .dfa-visual-space {
    display: flex;
    flex: 1.1;
    height: 100%;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 18px;
  }
  .dfa-float-tag {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(16, 10, 20, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 600;
    color: #ffe2b3;
  }
  .dfa-panel {
    flex: 0 0 460px;
    text-align: left;
  }
  .dfa-title {
    font-size: 52px;
    margin-bottom: 12px;
  }
  .dfa-sub {
    margin: 0 0 22px;
    font-size: 14px;
  }
  .dfa-only-mobile { display: none; }
  .dfa-only-pc { display: flex; }

  .dfa-qr-card {
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 245, 248, 0.96), rgba(255, 236, 214, 0.94));
    color: #22141a;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
    margin-bottom: 14px;
  }
  .dfa-qr-box {
    width: 128px;
    height: 128px;
    flex: 0 0 128px;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }
  .dfa-qr-box img, .dfa-qr-box canvas { width: 112px !important; height: 112px !important; }
  .dfa-qr-copy { flex: 1; min-width: 0; }
  .dfa-qr-copy strong { display: block; font-size: 22px; font-weight: 900; margin-bottom: 4px; color: #1b0f14; }
  .dfa-qr-copy span { display: block; font-size: 13px; color: #67525b; margin-bottom: 12px; }
  .dfa-pc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
  .dfa-mini-btn {
    border: 1px solid #d9c3cb;
    background: #fff;
    color: #24161c;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }
  .dfa-mini-btn--pink {
    background: linear-gradient(135deg, #f42857, #c8123b);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(226, 24, 68, 0.35);
  }
  .dfa-guide-bar {
    padding: 13px 20px;
    font-size: 14px;
    background: linear-gradient(90deg, rgba(226, 24, 68, 0.88), rgba(244, 72, 114, 0.88));
    border-color: rgba(255, 190, 208, 0.4);
  }
  .dfa-notice {
    font-size: 12px;
    padding: 11px 14px;
  }
}
