:root {
  color-scheme: light;
  --bg: #fff8ed;
  --paper: #fffdf8;
  --ink: #503a31;
  --muted: #9d8474;
  --orange: #ff9f22;
  --green: #68c89e;
  --pink: #ff8ba8;
  --border: #f4dfc4;
  --shadow: 0 24px 70px rgba(113, 76, 38, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 11% 28%, rgba(255,255,255,0.95), transparent 13rem),
    radial-gradient(circle at 90% 20%, rgba(255,231,196,0.72), transparent 16rem),
    linear-gradient(180deg, #fffaf1 0%, #fff6e8 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px min(6vw, 80px);
  background: rgba(255, 251, 244, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(242, 218, 188, 0.72);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 900;
}

.brand img { width: 44px; height: 44px; object-fit: contain; }

nav {
  display: flex;
  gap: clamp(18px, 4vw, 48px);
  color: #5f4638;
  font-weight: 700;
}

nav a:first-child { color: var(--orange); }

main {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(520px, 1.35fr);
  gap: 40px;
  align-items: center;
  padding: 72px 0 42px;
  min-height: 620px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #fff;
  filter: blur(2px);
  opacity: 0.78;
}

.hero::before { width: 130px; height: 64px; left: -44px; top: 220px; }
.hero::after { width: 154px; height: 70px; left: 520px; top: 310px; }

h1 {
  margin: 0;
  font-size: clamp(60px, 8vw, 110px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
}

h2 { margin: 0 0 6px; font-size: 23px; line-height: 1.25; }

.tagline {
  margin: 22px 0 18px;
  color: var(--ink);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 800;
}

.tagline::before,
.tagline::after {
  content: "♥";
  display: inline-block;
  margin: 0 12px;
  color: var(--orange);
  font-size: 0.78em;
}

.intro {
  max-width: 520px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.primary,
.secondary,
.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
}

.primary,
.android {
  color: #fff;
  background: linear-gradient(180deg, #ffbd3f 0%, #ff9418 100%);
  box-shadow: 0 14px 30px rgba(236, 129, 18, 0.28);
}

.secondary,
.muted {
  color: #a4651f;
  background: rgba(255, 253, 248, 0.86);
  border: 1.5px solid var(--border);
  box-shadow: 0 10px 28px rgba(98, 69, 42, 0.08);
}

.tip {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-art {
  position: relative;
  min-height: 600px;
}

.mascot {
  position: absolute;
  left: 2%;
  top: 16%;
  width: 44%;
  min-width: 280px;
  filter: drop-shadow(0 24px 42px rgba(148, 105, 48, 0.18));
}

.phone {
  position: absolute;
  top: 0;
  height: 590px;
  object-fit: contain;
  border-radius: 40px;
  filter: drop-shadow(0 28px 44px rgba(91, 68, 45, 0.18));
}

.phone-home { right: 28%; }
.phone-diary { right: 0; transform: translateY(8px); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 24px;
}

.feature-grid article,
.story > div,
.download-strip,
.legal {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-grid article {
  min-height: 134px;
  padding: 24px 24px 20px;
  border-radius: 24px;
}

.feature-grid p,
.story p,
.download-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff4d8, #ffb53a);
  box-shadow: inset 0 1px 0 #fff, 0 12px 24px rgba(245, 155, 44, 0.22);
}

.feature-icon.chart { background: linear-gradient(145deg, #e5fff2, #71c99d); }
.feature-icon.diary { background: linear-gradient(145deg, #ffe5e9, #ff8ba8); }
.feature-icon.gift { background: linear-gradient(145deg, #fff2dc, #ffca6b); }

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.story > div {
  min-height: 320px;
  padding: 28px;
  border-radius: 24px;
}

.mini-card {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
}

.mini-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.diary-card {
  min-height: 250px;
  padding: 30px;
  background:
    radial-gradient(circle at 85% 72%, #ffe2c4 0 80px, transparent 82px),
    linear-gradient(135deg, #fffdf9, #fff2e3);
}

.diary-card strong {
  display: block;
  margin: 20px 0;
  font-size: 26px;
}

.diary-card span {
  display: inline-flex;
  padding: 8px 18px;
  border-radius: 999px;
  color: #de6e85;
  background: #fff0f4;
  font-weight: 800;
}

.download-strip {
  display: grid;
  grid-template-columns: 96px minmax(240px, 1fr) 92px auto auto;
  align-items: center;
  gap: 26px;
  margin: 26px 0 26px;
  padding: 24px 28px;
  border-radius: 24px;
}

.download-strip > img:not(.qr) {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.qr {
  width: 86px;
  height: 86px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

.store { min-height: 52px; padding-inline: 24px; font-size: 17px; }

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 42px;
  padding: 20px;
  border-radius: 20px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px) {
  nav { display: none; }
  main { width: min(100% - 28px, 720px); }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 44px;
  }
  .hero-art { min-height: 480px; }
  .mascot { left: 3%; top: 8%; width: 45%; min-width: 230px; }
  .phone { height: 455px; }
  .phone-home { right: 22%; }
  .feature-grid, .story { grid-template-columns: 1fr 1fr; }
  .download-strip { grid-template-columns: 78px 1fr; }
  .qr, .store { justify-self: start; }
}

@media (max-width: 620px) {
  .site-header { padding: 14px 18px; }
  .brand span { font-size: 21px; }
  .hero-art { min-height: 360px; }
  .mascot { width: 58%; min-width: 210px; }
  .phone { height: 340px; }
  .phone-home { right: 24%; }
  .phone-diary { right: -10%; }
  .feature-grid, .story { grid-template-columns: 1fr; }
  .download-strip { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .qr, .store { justify-self: center; }
  .actions { flex-direction: column; }
}
