/* ===================================================================
   App 分发下载页 —— 深色绯红主题
   断点：900px（≥900 用 PC 图，<900 用 WAP 图）
   =================================================================== */
:root {
  --c-bg: #0b0708;
  --c-bg-2: #140c0e;
  --c-text: #ffffff;
  --c-sub: rgba(255, 255, 255, 0.66);
  --c-dim: rgba(255, 255, 255, 0.42);
  --c-line: rgba(255, 255, 255, 0.1);
  --c-red: #ff2d55;
  --c-red-2: #ff6b3d;
  --g-red: linear-gradient(135deg, #ff2d55, #ff7a45);
  --r-lg: 20px;
  --r-pill: 999px;
  --maxw: 1920px;
  --nav-h: 64px;
}

* {
  box-sizing: border-box;
}

/* hidden 属性优先于任何 display 规则（.wxtip 是 flex，会把 hidden 顶掉） */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue',
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-family: inherit;
  white-space: nowrap;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn--primary {
  background: var(--g-red);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(255, 45, 85, 0.75);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(255, 45, 85, 0.9);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--c-line);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}
.btn--lg {
  height: 58px;
  padding: 0 34px;
  font-size: 17px;
}
.btn--sm {
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(11, 7, 8, 0);
  backdrop-filter: blur(0px);
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: rgba(11, 7, 8, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--c-line);
}
.nav__inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
}
.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--c-sub);
}
.nav__links a:hover {
  color: #fff;
}
.nav__cta {
  height: 40px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  background: var(--g-red);
  font-size: 14px;
  font-weight: 700;
}

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 7, 8, 0.94) 0%, rgba(11, 7, 8, 0.72) 42%, rgba(11, 7, 8, 0.12) 72%),
    linear-gradient(0deg, var(--c-bg) 0%, rgba(11, 7, 8, 0) 34%);
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px -16px rgba(255, 45, 85, 0.6);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 45, 85, 0.14);
  border: 1px solid rgba(255, 45, 85, 0.32);
  font-size: 13px;
  color: #ffb3c1;
}
.hero__eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.22);
}
.hero__title {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 86px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  font-weight: 900;
  background: linear-gradient(180deg, #fff 30%, #ffc2ce 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 60px rgba(255, 45, 85, 0.25);
}
.hero__slogan {
  margin: 18px 0 0;
  font-size: clamp(16px, 1.9vw, 22px);
  color: var(--c-sub);
  letter-spacing: 0.06em;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
}
.hero__tags li {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--c-line);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 0;
}
.hero__hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--c-dim);
}

/* ---------------- PC：首屏内容靠右 + 放大（避免周围空旷） ---------------- */
@media (min-width: 900px) {
  .hero__inner {
    /* 内容块放大到约 2 倍（原 560 → 大屏 1000），靠右对齐，左半边留给人物 */
    max-width: clamp(640px, 52vw, 1040px);
    margin-left: auto;
    margin-right: 0;
    text-align: right;
  }
  .hero__tags,
  .hero__actions {
    justify-content: flex-end;
  }
  /* 遮罩：右侧大面积压暗，文字才压得住；左侧人物保持通透 */
  .hero__mask {
    background:
      linear-gradient(270deg, rgba(11, 7, 8, 0.96) 0%, rgba(11, 7, 8, 0.88) 38%, rgba(11, 7, 8, 0.4) 66%, rgba(11, 7, 8, 0) 88%),
      linear-gradient(0deg, var(--c-bg) 0%, rgba(11, 7, 8, 0) 32%);
  }
}

/* ---------------- 配图区块（图内含文案，不再重复排字） ---------------- */
.block {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 24px 0;
}
.block picture {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-bg-2);
  box-shadow: 0 44px 100px -56px rgba(255, 45, 85, 0.65);
}
.block img {
  width: 100%;
  height: auto;
}

/* ---------------- 下载区 ---------------- */
.download {
  position: relative;
  margin-top: 40px;
  padding: 110px 24px 120px;
  overflow: hidden;
  text-align: center;
}
.download__bg {
  position: absolute;
  inset: 0;
}
.download__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.download__mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(255, 45, 85, 0.2), transparent 70%),
    linear-gradient(180deg, var(--c-bg) 0%, rgba(11, 7, 8, 0.72) 30%, rgba(11, 7, 8, 0.86) 70%, var(--c-bg) 100%);
}
.download__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.download__title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 900;
}
.download__desc {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--c-sub);
}
.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 34px 0 0;
}
.download__meta {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--c-dim);
}
.download__hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--c-dim);
}

/* ---------------- 页脚 ---------------- */
.footer {
  padding: 40px 24px calc(40px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid var(--c-line);
}

/* ---------------- 移动端常驻下载条 ---------------- */
.mobilebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(14, 9, 10, 0.9);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--c-line);
}
.mobilebar__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobilebar__text b {
  font-size: 15px;
}
.mobilebar__text span {
  font-size: 11px;
  color: var(--c-dim);
}

/* ---------------- 微信提示 ---------------- */
.wxtip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  background: rgba(255, 45, 85, 0.96);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}
.wxtip span {
  flex: 1;
}
.wxtip button {
  flex: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

/* ---------------- 入场动画 ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ===================================================================
   移动端（< 900）
   =================================================================== */
@media (max-width: 899px) {
  :root {
    --nav-h: 56px;
  }
  .nav__links {
    display: none;
  }
  .nav__inner {
    padding: 0 16px;
    gap: 16px;
  }
  .nav__cta {
    margin-left: auto;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }

  .hero {
    /* 拉高首屏，让配图露出更多；内容贴底，减少对画面的遮挡 */
    min-height: 86vh;
    min-height: 86svh;
    padding: calc(var(--nav-h) + 20px) 18px 40px;
    align-items: flex-end;
  }
  .hero__bg img {
    object-position: center top;
  }
  /* 上半部几乎不压暗，只在文字区做一层渐隐 */
  .hero__mask {
    background: linear-gradient(
      180deg,
      rgba(11, 7, 8, 0.18) 0%,
      rgba(11, 7, 8, 0) 34%,
      rgba(11, 7, 8, 0.5) 66%,
      rgba(11, 7, 8, 0.92) 88%,
      var(--c-bg) 100%
    );
  }
  .hero__logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 14px;
  }
  .hero__title {
    font-size: 40px;
  }
  .hero__slogan {
    font-size: 15px;
    margin-top: 12px;
  }
  .hero__tags {
    gap: 8px;
    margin-top: 18px;
  }
  .hero__tags li {
    padding: 6px 12px;
    font-size: 12px;
  }
  .hero__actions {
    margin-top: 22px;
    gap: 10px;
  }
  .hero__actions .btn {
    flex: 1;
    min-width: 46%;
    height: 48px;
    font-size: 15px;
    padding: 0 14px;
  }
  .hero__hint {
    font-size: 12px;
    margin-top: 12px;
  }


  .block {
    padding: 24px 14px 0;
  }
  .block picture {
    border-radius: 14px;
  }

  .download {
    padding: 64px 18px 88px;
  }
  .download__title {
    font-size: 26px;
  }
  .download__desc {
    font-size: 13px;
  }
  .download__actions {
    margin-top: 24px;
    gap: 10px;
  }
  .download__actions .btn {
    width: 100%;
  }

  .mobilebar {
    display: flex;
  }
  .footer {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

/* 大屏：首屏内容放大（宽高约 2 倍观感）+ 右侧留边 */
@media (min-width: 1280px) {
  .hero {
    padding-left: 0;
    padding-right: 0;
  }
  .hero__inner {
    max-width: 1000px;
    padding: 0 24px;
    margin-right: 10%;
  }
  .hero__logo {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    margin-bottom: 26px;
  }
  .hero__eyebrow {
    font-size: 15px;
    padding: 9px 18px;
    margin-bottom: 22px;
  }
  .hero__title {
    font-size: clamp(56px, 6.2vw, 96px);
  }
  .hero__slogan {
    margin-top: 20px;
    font-size: 24px;
  }
  .hero__tags {
    gap: 12px;
    margin-top: 30px;
  }
  .hero__tags li {
    padding: 9px 18px;
    font-size: 15px;
  }
  .hero__actions {
    gap: 16px;
    margin-top: 38px;
  }
  .hero__actions .btn {
    height: 60px;
    padding: 0 34px;
    font-size: 17px;
  }
  .hero__hint {
    margin-top: 20px;
    font-size: 14px;
  }
}

/* 超宽屏：继续放大，避免右侧空旷 */
@media (min-width: 1600px) {
  .hero__inner {
    max-width: 1120px;
  }
  .hero__title {
    font-size: clamp(96px, 6.6vw, 132px);
  }
  .hero__slogan {
    margin-top: 24px;
    font-size: 28px;
  }
  .hero__tags {
    margin-top: 32px;
    gap: 14px;
  }
  .hero__tags li {
    padding: 10px 20px;
    font-size: 16px;
  }
  .hero__actions {
    margin-top: 40px;
  }
  .hero__actions .btn {
    height: 64px;
    padding: 0 40px;
    font-size: 18px;
  }
  .hero__hint {
    margin-top: 22px;
    font-size: 15px;
  }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn {
    transition: none;
  }
}
