:root {
  --red-950: #4a0b0e;
  --red-900: #721015;
  --red-800: #94171d;
  --red-700: #b52026;
  --red-100: #fff0ec;
  --gold-500: #dba242;
  --gold-300: #f0cf8b;
  --gold-100: #fff5dc;
  --ink: #2f2523;
  --muted: #756865;
  --line: rgba(120, 54, 41, 0.13);
  --paper: #fffaf4;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(104, 27, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 9%, rgba(240, 207, 139, 0.3), transparent 25rem),
    radial-gradient(circle at 89% 28%, rgba(181, 32, 38, 0.1), transparent 30rem),
    #fbf7f1;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 250, 244, 0.78);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo-wrap {
  display: grid;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(219, 162, 66, 0.45);
  border-radius: 17px;
  background: var(--red-900);
  box-shadow: 0 10px 28px rgba(148, 23, 29, 0.18);
  place-items: center;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 23px;
  letter-spacing: 0.12em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.android-only-label {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #655856;
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 650;
  backdrop-filter: blur(14px);
}

.android-only-label span {
  color: #63a648;
  font-size: 10px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.82fr);
  gap: 56px;
  align-items: center;
  width: min(1240px, calc(100% - 64px));
  min-height: 690px;
  margin: 0 auto;
  padding: 46px 0 82px;
}

.hero::before {
  position: absolute;
  top: -130px;
  right: -480px;
  width: 850px;
  height: 850px;
  border: 1px solid rgba(181, 32, 38, 0.06);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 650px;
}

.eyebrow,
.section-kicker {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--red-700);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.18em;
}

.eyebrow span {
  width: 34px;
  height: 2px;
  border-radius: 99px;
  background: var(--red-700);
}

h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(54px, 5.6vw, 84px);
  font-weight: 720;
  line-height: 1.13;
  letter-spacing: 0.025em;
}

h1 em {
  color: var(--red-700);
  font-style: normal;
}

.hero-description {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.download-actions {
  margin-top: 38px;
}

.download-button {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  width: min(430px, 100%);
  min-height: 78px;
  padding: 14px 18px 14px 20px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  color: white;
  background: linear-gradient(135deg, var(--red-700), var(--red-900));
  box-shadow: 0 18px 42px rgba(148, 23, 29, 0.26);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.download-button::after {
  position: absolute;
  top: -45px;
  right: 50px;
  width: 110px;
  height: 180px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  content: "";
  transform: rotate(28deg);
}

.download-button:hover {
  box-shadow: 0 22px 50px rgba(148, 23, 29, 0.34);
  transform: translateY(-3px);
}

.download-button:active {
  transform: translateY(0);
}

.download-button:focus-visible {
  outline: 4px solid rgba(219, 162, 66, 0.45);
  outline-offset: 4px;
}

.android-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
}

.android-mark b {
  position: absolute;
  top: 17px;
  left: 11px;
  width: 21px;
  height: 14px;
  border-radius: 7px 7px 4px 4px;
  background: #fff;
}

.android-mark b::before,
.android-mark b::after {
  position: absolute;
  top: 4px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--red-800);
  content: "";
}

.android-mark b::before { left: 5px; }
.android-mark b::after { right: 5px; }

.android-mark i {
  position: absolute;
  top: 12px;
  width: 8px;
  height: 2px;
  border-radius: 4px;
  background: #fff;
}

.android-mark i:first-child { left: 10px; transform: rotate(50deg); }
.android-mark i:nth-child(2) { right: 10px; transform: rotate(-50deg); }

.button-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.button-copy strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.button-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.button-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 20px;
  place-items: center;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 15px 4px 0;
  color: #8a7e7b;
  font-size: 12px;
}

.download-meta span::before {
  margin-right: 6px;
  color: var(--gold-500);
  content: "✓";
  font-weight: 800;
}

.download-status {
  min-height: 20px;
  margin: 10px 4px 0;
  color: #7f3032;
  font-size: 13px;
}

.download-status:empty {
  display: none;
}

.download-status.is-error {
  color: #9b2a2f;
}

.trust-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  max-width: 540px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.shield {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 34px;
  border-radius: 12px 12px 14px 14px;
  color: var(--red-800);
  background: var(--gold-100);
  font-weight: 900;
  place-items: center;
}

.trust-note p {
  margin: 0;
  color: #857673;
  font-size: 13px;
  line-height: 1.75;
}

.trust-note strong {
  display: block;
  margin-bottom: 2px;
  color: #574946;
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: 590px;
}

.hero-visual::before {
  position: absolute;
  top: 45px;
  right: -10px;
  width: 470px;
  height: 470px;
  border-radius: 44% 56% 55% 45% / 46% 43% 57% 54%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.75), transparent 22%),
    linear-gradient(145deg, #f8dfaa, #f3c66e 40%, #b9272c 118%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 36px 90px rgba(114, 16, 21, 0.16);
  content: "";
  transform: rotate(-5deg);
}

.halo {
  position: absolute;
  border: 1px solid rgba(181, 32, 38, 0.13);
  border-radius: 50%;
}

.halo-one { top: 12px; right: -38px; width: 540px; height: 540px; }
.halo-two { top: 78px; right: 28px; width: 410px; height: 410px; }

.fortune-stamp {
  position: absolute;
  top: 22px;
  right: 12px;
  display: grid;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #fff8dd;
  background: linear-gradient(145deg, #b82027, #781016);
  box-shadow: 0 18px 36px rgba(114, 16, 21, 0.24);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 42px;
  place-items: center;
  transform: rotate(8deg);
}

.phone {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 282px;
  height: 565px;
  padding: 10px;
  border: 2px solid #351f1e;
  border-radius: 42px;
  background: #1e1716;
  box-shadow: 0 38px 90px rgba(73, 16, 17, 0.31), inset 0 0 0 1px #7d6864;
  transform: translateX(-49%) rotate(2.7deg);
}

.phone-speaker {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 50%;
  width: 80px;
  height: 21px;
  border-radius: 0 0 15px 15px;
  background: #1e1716;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #fffaf5;
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  padding: 10px 17px 5px;
  color: #5b4642;
  font-size: 8px;
  font-weight: 750;
}

.topbar-icons {
  letter-spacing: 1px;
}

.app-heading {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 13px 17px 12px;
}

.mini-logo {
  width: 35px;
  height: 35px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--red-900);
}

.mini-logo img { width: 100%; height: 100%; object-fit: cover; }

.app-heading > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.app-heading strong { font-size: 13px; }
.app-heading small { color: #948783; font-size: 8px; }
.more { color: #8d7c78; font-size: 11px; letter-spacing: 2px; }

.family-card {
  margin: 0 14px 12px;
  padding: 14px;
  border-radius: 19px;
  color: white;
  background:
    radial-gradient(circle at 90% 20%, rgba(240, 207, 139, 0.35), transparent 35%),
    linear-gradient(145deg, #a31920, #651015);
  box-shadow: 0 12px 25px rgba(114, 16, 21, 0.19);
}

.family-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.family-card-top > div { display: flex; flex-direction: column; gap: 4px; }
.family-card-top small { color: rgba(255,255,255,.65); font-size: 8px; }
.family-card-top strong { font-size: 11px; }
.family-card-top > span {
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #ffe3a2;
  background: rgba(255,255,255,.09);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 18px;
  place-items: center;
}

.family-members {
  display: flex;
  margin-top: 17px;
}

.family-members span {
  display: grid;
  width: 27px;
  height: 27px;
  margin-left: -5px;
  border: 2px solid #83151a;
  border-radius: 50%;
  color: #7e151a;
  background: #ffeecb;
  font-size: 9px;
  font-weight: 750;
  place-items: center;
}

.family-members span:first-child { margin-left: 0; }
.family-members span:last-child { color: #fff; background: rgba(255,255,255,.16); }

.chat-list {
  padding: 2px 15px;
}

.chat-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 12px 1px;
  border-bottom: 1px solid rgba(92, 68, 63, 0.07);
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: white;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
  place-items: center;
}

.avatar-red { background: linear-gradient(145deg, #c23235, #88141a); }
.avatar-gold { color: #76521b; background: linear-gradient(145deg, #ffe3a3, #d9a243); }
.avatar-green { background: linear-gradient(145deg, #8eb177, #527847); }

.chat-row > div { min-width: 0; }
.chat-row strong { display: block; margin-bottom: 5px; font-size: 10px; }
.chat-row p {
  overflow: hidden;
  margin: 0;
  color: #a0908c;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-row time { align-self: start; color: #b0a4a1; font-size: 7px; }

.phone-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-around;
  padding: 10px 12px 13px;
  border-top: 1px solid rgba(92, 68, 63, 0.08);
  background: rgba(255, 250, 245, 0.93);
}

.phone-nav span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  color: #a89894;
  font-size: 7px;
}

.phone-nav b { font-size: 12px; }
.phone-nav .active { color: var(--red-700); }

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(83, 37, 30, 0.14);
  backdrop-filter: blur(14px);
}

.floating-card > span {
  display: grid;
  width: 33px;
  height: 33px;
  border-radius: 11px;
  color: var(--red-700);
  background: var(--red-100);
  font-weight: 900;
  place-items: center;
}

.floating-card div { display: flex; flex-direction: column; gap: 3px; }
.floating-card strong { font-size: 11px; }
.floating-card small { color: #9b8d89; font-size: 8px; }
.floating-message { top: 136px; left: -12px; }
.floating-safe { right: -24px; bottom: 52px; }
.floating-safe > span { color: #577f49; background: #edf5e7; }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 20px 55px rgba(93, 54, 44, 0.06);
  backdrop-filter: blur(16px);
}

.feature-strip article {
  display: flex;
  gap: 18px;
  padding: 27px 30px;
}

.feature-strip article + article { border-left: 1px solid var(--line); }

.feature-number {
  padding-top: 2px;
  color: var(--gold-500);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.feature-strip strong { display: block; margin-bottom: 7px; font-size: 16px; }
.feature-strip p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.install-guide {
  display: grid;
  grid-template-columns: 0.78fr 1.42fr;
  gap: 70px;
  width: min(1240px, calc(100% - 64px));
  margin: 100px auto 0;
  padding: 60px 64px;
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 12% 0, rgba(240, 207, 139, 0.2), transparent 38%),
    linear-gradient(135deg, #7d1016, #a91b21 62%, #721015);
  box-shadow: var(--shadow);
}

.section-kicker { margin-bottom: 15px; color: #f2c973; }
.install-guide h2 { margin: 0; font-family: "STKaiti", "KaiTi", serif; font-size: 38px; letter-spacing: .05em; }
.install-guide ol { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.install-guide li { display: flex; gap: 16px; align-items: flex-start; }
.install-guide li > span {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #ffe3a2;
  background: rgba(255,255,255,.08);
  font-family: Georgia, serif;
  font-weight: 700;
  place-items: center;
}
.install-guide strong { display: block; margin-bottom: 6px; font-size: 15px; }
.install-guide li p { margin: 0; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.65; }

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 32px 46px;
  color: var(--muted);
  text-align: center;
}

.footer-brand { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.footer-brand span {
  display: grid;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  color: #ffe5a5;
  background: var(--red-800);
  font-family: "STKaiti", "KaiTi", serif;
  place-items: center;
}
.footer-brand strong { font-family: "STKaiti", "KaiTi", serif; font-size: 18px; letter-spacing: .12em; }
footer p { margin: 16px 0 9px; font-size: 13px; letter-spacing: .16em; }
footer small { color: #a69995; font-size: 11px; }

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr 390px;
    gap: 20px;
  }
  .hero-visual { transform: scale(.9); transform-origin: center right; }
  .floating-message { left: 4px; }
  .floating-safe { right: -8px; }
  .install-guide { gap: 40px; padding: 50px; }
}

@media (max-width: 820px) {
  .site-header,
  .hero,
  .feature-strip,
  .install-guide { width: min(100% - 36px, 620px); }

  .site-header { padding: 20px 0; }
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 38px;
    text-align: center;
  }
  .hero-copy { max-width: none; }
  .eyebrow { justify-content: center; }
  .hero-description { margin-right: auto; margin-left: auto; }
  .download-button { margin-right: auto; margin-left: auto; }
  .download-meta { justify-content: center; }
  .trust-note { margin-right: auto; margin-left: auto; text-align: left; }
  .hero-visual { min-height: 620px; transform: none; }
  .hero-visual::before { right: 50%; transform: translateX(50%) rotate(-5deg); }
  .halo-one { right: 50%; transform: translateX(50%); }
  .halo-two { right: 50%; transform: translateX(50%); }
  .fortune-stamp { right: calc(50% - 235px); }
  .floating-message { left: calc(50% - 248px); }
  .floating-safe { right: calc(50% - 250px); }

  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip article + article { border-top: 1px solid var(--line); border-left: 0; }

  .install-guide { grid-template-columns: 1fr; margin-top: 72px; text-align: center; }
  .install-guide li { text-align: left; }
  .section-kicker { justify-content: center; }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .feature-strip,
  .install-guide { width: calc(100% - 28px); }

  .brand-copy small { display: none; }
  .brand-logo-wrap { width: 47px; height: 47px; border-radius: 14px; }
  .brand-copy strong { font-size: 20px; }
  .android-only-label { padding: 8px 11px; font-size: 11px; }

  .hero { min-height: 0; padding: 32px 0 54px; }
  .eyebrow { margin-bottom: 18px; font-size: 12px; }
  h1 { font-size: clamp(43px, 13vw, 62px); line-height: 1.16; }
  .hero-description { margin-top: 22px; font-size: 16px; line-height: 1.8; }
  .download-actions { margin-top: 30px; }
  .download-button { min-height: 74px; padding-right: 14px; padding-left: 16px; border-radius: 18px; }
  .android-mark { width: 40px; height: 40px; }
  .button-copy strong { font-size: 16px; }
  .button-copy small { font-size: 10px; }
  .button-arrow { width: 34px; height: 34px; }
  .download-meta { gap: 7px 13px; }

  .hero-visual { min-height: 535px; margin-top: 5px; transform: scale(.87); transform-origin: top center; }
  .hero-visual::before { top: 45px; width: 420px; height: 420px; }
  .halo-one { width: 480px; height: 480px; }
  .halo-two { width: 370px; height: 370px; }
  .phone { top: 12px; }
  .fortune-stamp { top: 30px; right: calc(50% - 207px); }
  .floating-message { top: 130px; left: calc(50% - 210px); }
  .floating-safe { right: calc(50% - 216px); bottom: 30px; }

  .feature-strip article { padding: 23px; }
  .install-guide { margin-top: 35px; padding: 38px 24px; border-radius: 24px; }
  .install-guide h2 { font-size: 31px; }
  footer { padding-top: 62px; }
}

@media (max-width: 390px) {
  .brand-copy strong { letter-spacing: .06em; }
  .android-only-label { padding: 8px; }
  .android-only-label span { display: none; }
  .hero-visual { margin-right: -18px; margin-left: -18px; transform: scale(.78); transform-origin: top center; }
  .feature-strip { margin-top: -72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Brand delivery links use native downloads, including when JavaScript is off. */
.download-button { text-decoration: none; }
.desktop-downloads { margin: 40px 0 72px; padding: 32px; border: 1px solid rgba(159,23,29,.12); border-radius: 24px; background: rgba(255,255,255,.65); }
.desktop-downloads h2 { margin: 8px 0 12px; font-size: 28px; color: var(--text,#382e29); }
.desktop-downloads > p:not(.section-kicker), .desktop-downloads small { color: #786d63; line-height: 1.7; }
.desktop-links { display: flex; gap: 16px; margin: 22px 0 16px; }
.desktop-links a { display: flex; align-items: center; gap: 28px; padding: 18px 22px; border: 1px solid rgba(159,23,29,.2); border-radius: 14px; background: #fff9f2; color: #9f171d; text-decoration: none; font-weight: 650; }
.desktop-links a:hover, .desktop-links a:focus-visible { background: #fbe6df; }
@media (max-width: 560px) { .desktop-downloads { padding: 22px; } .desktop-links { flex-direction: column; } .desktop-links a { justify-content: space-between; } }

.fallback-download { display: inline-block; margin: 12px 16px; color: #9f171d; font-size: 14px; text-underline-offset: 3px; }
