/* PartnerBoost App 下载介绍页 — 页面私有样式（顶栏/底栏走 newTheme） */
:root {
  --ma-blue: #1a6dff;
  --ma-blue-deep: #0b3d99;
  --ma-ink: #0b1f3a;
  --ma-muted: #5a6b85;
  --ma-line: #d7e3f4;
  --ma-bg: #f7fafc;
  --ma-white: #ffffff;
  --ma-container: 1120px;
}

/* 对齐 global-events：覆盖 common-class body overflow/100vw */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.ma-page {
  width: 100%;
  overflow-x: hidden;
  font-family: Manrope, Roboto, "Noto Sans SC", "PingFang SC", sans-serif;
  color: var(--ma-ink);
  background: var(--ma-bg);
  -webkit-font-smoothing: antialiased;
}

/* 去掉 newTheme footer 默认上边距，避免与内容之间露出白缝 */
.blog-container1 > .footer {
  margin-top: 0;
}

/* 仅限制 .ma-page 内图片，勿作用到顶栏 logo */
.ma-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ma-page a {
  text-decoration: none;
}

/* 覆盖全局 a { white-space: nowrap }，防止按钮中文换行撑破布局 */
.ma-page a.ma-btn {
  white-space: normal;
  text-align: center;
}

.ma-container {
  width: min(var(--ma-container), calc(100% - 40px));
  margin: 0 auto;
}

/* Hero 在顶栏下方正常排布，不把背景上拉进 menu（保持站点统一顶栏观感） */
.ma-hero {
  position: relative;
  width: 100%;
  padding: 48px 0 72px;
  overflow: hidden;
}

.ma-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 85% 20%, rgba(26, 109, 255, 0.18) 0%, transparent 70%),
    radial-gradient(700px 420px at 10% 80%, rgba(11, 61, 153, 0.08) 0%, transparent 65%),
    linear-gradient(180deg, #f3f8ff 0%, #eef4fb 45%, #f7fafc 100%);
  pointer-events: none;
}

.ma-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 109, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 109, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.ma-hero-main {
  position: relative;
  /* 不抬高层级，避免盖住顶栏 Resources 下拉（同 global-events） */
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.ma-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ma-blue);
  line-height: 1.4;
  margin: 0 0 18px;
}

.ma-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ma-blue);
  box-shadow: 0 0 0 5px rgba(26, 109, 255, 0.18);
  flex-shrink: 0;
}

.ma-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ma-ink);
  max-width: 14ch;
}

.ma-hero-lead {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ma-muted);
  max-width: 40ch;
  font-weight: 500;
}

.ma-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.ma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.ma-btn:hover {
  transform: translateY(-1px);
}

/* 覆盖 newTheme `a { color: inherit }`，保证按钮文字/图标可见 */
.ma-page a.ma-btn-ios {
  background: var(--ma-ink);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.18);
}

.ma-page a.ma-btn-ios:hover {
  background: #061426;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.ma-page a.ma-btn-android {
  background: var(--ma-blue);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 10px 28px rgba(26, 109, 255, 0.28);
}

.ma-page a.ma-btn-android:hover {
  background: var(--ma-blue-deep);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.ma-page a.ma-btn.is-disabled,
.ma-page a.ma-btn[aria-disabled="true"] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.ma-page a.ma-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

.ma-page a.ma-btn span {
  color: inherit;
  -webkit-text-fill-color: inherit;
}

/* 新设计图自带背景/装饰，容器只负责居中展示，不加圆角/阴影/光晕 */
.ma-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ma-hero-visual img {
  width: min(100%, 560px);
  height: auto;
  animation: ma-float-in 0.9s ease both;
}

@keyframes ma-float-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ma-hero-copy {
  animation: ma-float-in 0.75s ease both;
}

/* 卖点条：上叠 Hero 底部，白底圆角浮层（参考原设计） */
.ma-pillars {
  padding: 0 0 8px;
  margin-top: -28px;
  position: relative;
  z-index: 1;
}

.ma-pillars-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 20px 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(11, 61, 153, 0.08);
}

.ma-pillar {
  padding: 8px 16px;
  text-align: center;
}

.ma-pillar strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ma-ink);
  margin-bottom: 6px;
  line-height: 1.35;
}

.ma-pillar span {
  font-size: 14px;
  color: var(--ma-muted);
  line-height: 1.45;
}

/* Features */
.ma-section {
  padding: 88px 0;
}

.ma-section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.ma-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.ma-section-head p {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ma-muted);
  font-weight: 500;
}

.ma-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.ma-feature:last-child {
  margin-bottom: 0;
}

.ma-feature.is-reverse .ma-feature-copy {
  order: 2;
}

.ma-feature.is-reverse .ma-feature-media {
  order: 1;
}

.ma-feature-kicker {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ma-blue);
  line-height: 1.4;
}

.ma-feature h3 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.ma-feature-desc {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ma-muted);
  font-weight: 500;
}

.ma-feature-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ma-feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ma-ink);
  font-weight: 600;
}

.ma-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ma-blue);
  box-shadow: 0 0 0 4px rgba(26, 109, 255, 0.14);
}

.ma-feature-media {
  display: flex;
  justify-content: center;
}

.ma-feature-media img {
  width: min(100%, 560px);
  height: auto;
}

.ma-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.ma-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Download band */
.ma-download {
  padding: 0 0 64px;
}

.ma-download-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 56px 48px;
  background:
    radial-gradient(600px 280px at 90% 10%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(135deg, #0b3d99 0%, #1a6dff 55%, #3b8cff 100%);
  color: var(--ma-white);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 28px;
  align-items: center;
}

.ma-download-band h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 16ch;
}

.ma-download-band p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 40ch;
  font-weight: 500;
}

.ma-download-band .ma-cta-row {
  margin-top: 0;
}

.ma-download-band a.ma-btn-ios {
  background: var(--ma-white);
  color: var(--ma-ink) !important;
  -webkit-text-fill-color: var(--ma-ink);
}

.ma-download-band a.ma-btn-ios:hover {
  background: #eef3ff;
  color: var(--ma-ink) !important;
  -webkit-text-fill-color: var(--ma-ink);
}

.ma-download-band a.ma-btn-android {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: none;
}

.ma-download-band a.ma-btn-android:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

/* ---------- 平板（≤1200） ---------- */
@media (max-width: 1200px) {
  .ma-container {
    width: calc(100% - 48px);
  }

  .ma-hero {
    padding: 40px 0 56px;
  }

  .ma-hero-main {
    gap: 36px;
  }

  .ma-hero h1 {
    font-size: clamp(32px, 4.2vw, 48px);
    max-width: none;
  }

  .ma-hero-visual img,
  .ma-feature-media img {
    width: min(100%, 480px);
  }

  .ma-section {
    padding: 72px 0;
  }

  .ma-feature {
    gap: 40px;
  }
}

/* ---------- 窄平板 / 大屏手机：单列 ---------- */
@media (max-width: 960px) {
  .ma-hero-main,
  .ma-feature,
  .ma-download-band {
    grid-template-columns: 1fr;
  }

  .ma-feature.is-reverse .ma-feature-copy,
  .ma-feature.is-reverse .ma-feature-media {
    order: initial;
  }

  .ma-hero {
    padding: 28px 0 40px;
  }

  /* 移动端优先文案与下载 CTA，图片放后，保证首屏转化可见 */
  .ma-hero-visual {
    order: 2;
    margin-top: 8px;
  }

  .ma-hero-copy {
    order: 1;
  }

  .ma-hero-visual img,
  .ma-feature-media img {
    width: min(100%, 420px);
  }

  .ma-pillars {
    margin-top: -12px;
  }

  .ma-pillars-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 8px;
  }

  .ma-section {
    padding: 56px 0;
  }

  .ma-section-head {
    margin-bottom: 36px;
    text-align: left;
  }

  .ma-section-head h2 {
    font-size: clamp(26px, 6vw, 34px);
  }

  .ma-section-head p {
    font-size: 16px;
  }

  .ma-feature {
    gap: 24px;
    margin-bottom: 48px;
  }

  .ma-feature h3 {
    font-size: clamp(22px, 5vw, 28px);
  }

  .ma-download {
    padding: 0 0 48px;
  }

  .ma-download-band {
    padding: 36px 28px;
    gap: 24px;
    border-radius: 22px;
  }

  .ma-download-band h2 {
    max-width: none;
  }
}

/* ≤800：newTheme 切换为 fixed 顶栏，内容下留间距避免被挡住 */
@media (max-width: 800px) {
  .ma-hero {
    padding-top: 96px;
  }
}

/* ---------- 手机（≤768） ---------- */
@media (max-width: 768px) {
  .ma-container {
    width: calc(100% - 40px);
  }

  .menu-c-head {
    width: 100%;
  }

  .ma-hero {
    padding-top: 96px;
    padding-bottom: 36px;
  }

  .ma-eyebrow {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .ma-hero h1 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .ma-hero-lead {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.55;
    max-width: none;
  }

  .ma-cta-row {
    margin-top: 22px;
    gap: 12px;
  }

  .ma-btn {
    min-height: 48px;
    width: 100%;
    padding: 0 18px;
    font-size: 15px;
    border-radius: 12px;
  }

  .ma-hero-visual img,
  .ma-feature-media img {
    width: 100%;
  }

  .ma-pillar {
    padding: 14px 12px;
  }

  .ma-pillar strong {
    font-size: 15px;
  }

  .ma-pillar span {
    font-size: 13px;
  }

  .ma-section {
    padding: 48px 0;
  }

  .ma-section-head h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .ma-feature-kicker {
    font-size: 14px;
  }

  .ma-feature-desc {
    font-size: 15px;
    line-height: 1.55;
  }

  .ma-feature-list li {
    font-size: 15px;
  }

  .ma-download-band {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .ma-download-band h2 {
    font-size: 24px;
  }

  .ma-download-band p {
    font-size: 15px;
  }
}

/* ---------- 小屏手机 ---------- */
@media (max-width: 480px) {
  .ma-container {
    width: calc(100% - 32px);
  }

  .ma-hero h1 {
    font-size: 28px;
    line-height: 1.18;
  }

  .ma-hero-lead {
    font-size: 15px;
  }

  .ma-hero-visual img,
  .ma-feature-media img {
    width: 100%;
  }

  .ma-pillars-inner {
    gap: 4px;
    border-radius: 16px;
  }

  .ma-pillar {
    padding: 12px 8px;
  }

  .ma-pillar strong {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .ma-pillar span {
    font-size: 12px;
  }

  .ma-section-head h2 {
    font-size: 24px;
  }

  .ma-section-head p {
    font-size: 15px;
  }

  .ma-feature h3 {
    font-size: 22px;
  }

  .ma-download-band h2 {
    font-size: 22px;
  }
}
