/**
 * 黄果漫剧 · 官方下载落地页
 * 文案区：浅底深字，避开暖色背景对比冲突
 */

:root {
  --ink: #17120b;
  --ink-soft: #4a3c2c;
  --ink-dim: #6a5a48;
  --brand: #b86a08;
  --paper: #fffaf0;
  --card: rgba(255, 252, 246, 0.96);
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --display: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background: #1a1006;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  overflow-x: clip;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  overflow: clip;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("dwimg/result_47EwND.webp") center / cover no-repeat;
  transform: scale(1.06);
  filter: saturate(1.05);
  animation: bg-drift 20s ease-in-out infinite alternate;
}

.hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(90, 42, 8, 0.55) 0%,
    rgba(160, 90, 20, 0.42) 50%,
    rgba(200, 130, 30, 0.38) 100%
  );
}

@keyframes bg-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(0, -1%, 0); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding:
    calc(28px + env(safe-area-inset-top, 0px))
    18px
    calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  min-height: 100svh;
  min-height: 100dvh;
}

.intro,
.stage {
  grid-area: 1 / 1;
}

/* 浅色卡片 + 深色字 */
.intro {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  justify-self: center;
  align-self: start;
  text-align: center;
  padding: 22px 18px 18px;
  border-radius: 22px;
  color: var(--ink);
  background: var(--card);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 48px rgba(40, 18, 0, 0.22);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.intro__logo {
  display: inline-flex;
  margin-bottom: 12px;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.intro__logo img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(40, 18, 0, 0.16);
}

.intro__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: #17120b;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.intro__sub {
  margin: 0 0 10px;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #a35d06;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.intro__desc {
  margin: 0 0 18px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #3f3428;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.36s forwards;
}

.dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.46s forwards;
}

.dl__btns {
  display: grid;
  gap: 10px;
  width: min(280px, 100%);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px 0 48px;
  border-radius: 999px;
  border: 2px solid #17120b;
  background-color: #17120b;
  background-repeat: no-repeat;
  background-position: 18px center;
  background-size: 20px;
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: #fffef8;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #a35d06;
  border-color: #a35d06;
  color: #fffef8;
  transform: translateY(-1px);
}

.btn--android {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7.5 8.5l1.2-2.1M16.5 8.5l-1.2-2.1' stroke='%23fffef8' stroke-width='1.8' stroke-linecap='round'/%3E%3Crect x='5' y='9' width='14' height='10' rx='3' stroke='%23fffef8' stroke-width='1.8'/%3E%3Cpath d='M9 19v2M15 19v2M5 13H3.5M20.5 13H19' stroke='%23fffef8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.btn--android:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7.5 8.5l1.2-2.1M16.5 8.5l-1.2-2.1' stroke='%23fffef8' stroke-width='1.8' stroke-linecap='round'/%3E%3Crect x='5' y='9' width='14' height='10' rx='3' stroke='%23fffef8' stroke-width='1.8'/%3E%3Cpath d='M9 19v2M15 19v2M5 13H3.5M20.5 13H19' stroke='%23fffef8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.btn--apple,
.btn--pc,
.btn--tg {
  background-color: #fffef8;
  color: #17120b;
}

.btn--apple {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2317120b'%3E%3Cpath d='M16.7 12.6c0-2.1 1.7-3.1 1.8-3.2-1-1.4-2.5-1.6-3-1.7-1.3-.1-2.5.8-3.1.8-.7 0-1.7-.7-2.8-.7-1.4 0-2.8.9-3.5 2.2-1.5 2.6-.4 6.4 1.1 8.5.7 1 1.6 2.2 2.7 2.1 1.1 0 1.5-.7 2.8-.7s1.6.7 2.8.7c1.2 0 1.9-1 2.6-2 .8-1.1 1.1-2.2 1.1-2.3-.1 0-2.1-.8-2.1-3.7zM14.6 6.4c.6-.7 1-1.7.9-2.7-0.9.1-1.9.6-2.5 1.3-.6.6-1.1 1.6-1 2.5 1 .1 1.9-.4 2.6-1.1z'/%3E%3C/svg%3E");
}

.btn--apple:hover {
  background-color: #17120b;
  color: #fffef8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fffef8'%3E%3Cpath d='M16.7 12.6c0-2.1 1.7-3.1 1.8-3.2-1-1.4-2.5-1.6-3-1.7-1.3-.1-2.5.8-3.1.8-.7 0-1.7-.7-2.8-.7-1.4 0-2.8.9-3.5 2.2-1.5 2.6-.4 6.4 1.1 8.5.7 1 1.6 2.2 2.7 2.1 1.1 0 1.5-.7 2.8-.7s1.6.7 2.8.7c1.2 0 1.9-1 2.6-2 .8-1.1 1.1-2.2 1.1-2.3-.1 0-2.1-.8-2.1-3.7zM14.6 6.4c.6-.7 1-1.7.9-2.7-0.9.1-1.9.6-2.5 1.3-.6.6-1.1 1.6-1 2.5 1 .1 1.9-.4 2.6-1.1z'/%3E%3C/svg%3E");
}

.btn--pc {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='4' width='18' height='12' rx='2' stroke='%2317120b' stroke-width='1.8'/%3E%3Cpath d='M8 20h8M12 16v4' stroke='%2317120b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.btn--pc:hover {
  background-color: #17120b;
  color: #fffef8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='4' width='18' height='12' rx='2' stroke='%23fffef8' stroke-width='1.8'/%3E%3Cpath d='M8 20h8M12 16v4' stroke='%23fffef8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.btn--tg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2317120b'%3E%3Cpath d='M21.5 3.3L2.9 10.5c-1.3.5-1.3 1.2-.2 1.5l4.8 1.5 1.8 5.6c.2.7.1.9.8.9.5 0 .7-.2 1-.5l2.3-2.2 4.8 3.5c.9.5 1.5.2 1.7-.8L22.8 4.6c.3-1.2-.4-1.7-1.3-1.3zM9.5 14.1l-.3 3.4 1.2-2.2 8.1-7.3-9 6.1z'/%3E%3C/svg%3E");
}

.btn--tg:hover {
  background-color: #17120b;
  color: #fffef8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fffef8'%3E%3Cpath d='M21.5 3.3L2.9 10.5c-1.3.5-1.3 1.2-.2 1.5l4.8 1.5 1.8 5.6c.2.7.1.9.8.9.5 0 .7-.2 1-.5l2.3-2.2 4.8 3.5c.9.5 1.5.2 1.7-.8L22.8 4.6c.3-1.2-.4-1.7-1.3-1.3zM9.5 14.1l-.3 3.4 1.2-2.2 8.1-7.3-9 6.1z'/%3E%3C/svg%3E");
}

.intro__tip,
.intro__note {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #5c4c3a;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.56s forwards;
}

.intro__note {
  margin-top: 8px;
  animation-delay: 0.62s;
}

/* 手机舞台 */
.stage {
  position: relative;
  z-index: 0;
  justify-self: center;
  align-self: end;
  width: min(300px, 78vw);
  margin-bottom: max(-4vh, -24px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.phone {
  position: relative;
}

.float {
  position: absolute;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #ff8a1a, #f5c518);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  animation: float-y 4.5s ease-in-out infinite;
}

.float--a {
  top: 12%;
  left: -8%;
}

.float--b {
  top: 38%;
  right: -10%;
  background: linear-gradient(135deg, #5ed6c8, #3aa8c4);
  animation-delay: 0.6s;
}

.float--c {
  bottom: 18%;
  left: -6%;
  background: linear-gradient(135deg, #ff6b4a, #ff9a2e);
  animation-delay: 1.1s;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.phone__frame {
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2c2c30, #0c0c0f);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transform: rotate(-3deg);
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050506;
}

.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 9 / 17.2;
  background: #111;
}

.phone__screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone__badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 12px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
  color: #fff;
  opacity: 0.55;
}

.phone__badge img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.phone__badge strong {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Features ========== */
.features {
  background: var(--paper);
  color: var(--ink);
  padding: 64px 22px 56px;
}

.features__inner {
  width: min(960px, 100%);
  margin: 0 auto;
}

.features__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: #17120b;
}

.features__lead {
  margin: 0 0 32px;
  text-align: center;
  color: #5c4c3a;
  font-size: 0.95rem;
}

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

.features__list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: #a35d06;
}

.features__list p {
  margin: 0;
  line-height: 1.65;
  color: #3f3428;
  font-size: 0.92rem;
}

.foot {
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: #140e08;
  color: rgba(255, 248, 235, 0.5);
  font-size: 0.78rem;
}

/* ========== Desktop ========== */
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px 40px;
    align-items: center;
    padding: 56px 40px;
  }

  .intro,
  .stage {
    grid-area: auto;
  }

  .intro {
    justify-self: start;
    align-self: center;
    max-width: 520px;
    text-align: left;
    padding: 36px 32px 30px;
  }

  .intro__logo {
    display: block;
  }

  .intro__logo img {
    width: 92px;
    height: 92px;
    border-radius: 24px;
  }

  .intro__title {
    font-size: 2.75rem;
  }

  .intro__sub {
    font-size: 1.25rem;
  }

  .intro__desc {
    font-size: 1.02rem;
    max-width: 28rem;
  }

  .dl__btns {
    width: auto;
    min-width: 220px;
  }

  .intro__tip,
  .intro__note {
    text-align: left;
  }

  .stage {
    justify-self: end;
    align-self: center;
    width: min(380px, 36vw);
    margin: 0;
  }

  .phone__frame {
    transform: rotate(-5deg);
    padding: 12px;
    border-radius: 42px;
  }

  .phone__screen {
    border-radius: 32px;
  }

  .phone__badge {
    opacity: 1;
  }

  .float--a { left: -12%; }
  .float--b { right: -14%; }
  .float--c { left: -10%; }

  .features__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

@media (max-width: 899px) {
  .float {
    font-size: 0.7rem;
    padding: 6px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg,
  .intro,
  .intro__logo,
  .intro__title,
  .intro__sub,
  .intro__desc,
  .dl,
  .intro__tip,
  .intro__note,
  .stage,
  .float {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .phone__frame {
    transform: rotate(-3deg);
  }
}
