/* 每日拉伸官网：照原版 dailystretch.app 的结构，主题色换成 App 里的粉色。 */
@font-face { font-family: "Sora"; src: url(fonts/sora-400.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sora"; src: url(fonts/sora-600.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url(fonts/sora-700.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --ink: #1E1A1C;
  --muted: #7A6E73;
  --hero: #FCE8EF;      /* 原版的浅蓝 #e6f2fa → 浅粉 */
  --band: #F9DCE6;      /* 下载区 */
  --mark: #F4A3BB;      /* 关键词下面的色块（原版 #7ac8fd） */
  --pink: #D2708C;      /* App 主题色 */
  --card: #F7F3F5;
  --line: #EEDFE5;
  --font: "Sora", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171214; --ink: #F6EEF1; --muted: #B8A6AE; --hero: #2A1C22; --band: #33212A;
    --mark: #9C4B65; --pink: #EC8FAA; --card: #221A1E; --line: #3A2A31;
  }
  .store { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.6; letter-spacing: .3px; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right));
}
.muted { color: var(--muted); }

/* 关键词色块：只垫在字的下半截，和原版一样 */
.mark { font-weight: inherit; background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); padding: 0 .08em; }

/* 顶部 */
.hero { background: var(--hero); overflow: hidden; padding-top: env(safe-area-inset-top); }
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 16px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-right { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav-link { text-decoration: none; color: var(--muted); }
.nav-link:hover { color: var(--ink); }
.lang { font: 600 13px var(--font); color: var(--ink); background: transparent; border: 1.5px solid currentColor; border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.lang:focus-visible, .store:focus-visible, .pill:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.hero-body { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 24px; min-height: 560px; }
.hero-text h1 { font-size: 52px; font-weight: 700; line-height: 1.15; }
.tagline { font-size: 22px; font-weight: 600; line-height: 1.5; margin: 16px 0 0; max-width: 18em; }
.stores { margin-top: 44px; display: flex; gap: 10px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; border-radius: 12px; padding: 9px 18px 9px 14px; text-decoration: none; cursor: default; }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: 11px; opacity: .8; }
.store b { font-size: 18px; font-weight: 600; }

.hero-art { position: relative; height: 600px; }
.blob { position: absolute; left: 6%; right: -10%; bottom: -120px; height: 380px; border-radius: 50%; background: var(--band); }
.phone { position: absolute; width: 250px; border-radius: 40px; background: #0E0E10; padding: 9px; box-shadow: 0 30px 60px -20px rgba(120, 40, 70, .35); }
.phone img { border-radius: 32px; width: 100%; }
.phone.back { left: 14%; top: 30px; transform: rotate(-6deg); }
.phone.front { left: 46%; top: 110px; transform: rotate(4deg); }

/* 动画展示 */
.show { padding-block: 96px; text-align: center; background:
  radial-gradient(60% 70% at 50% 40%, var(--hero), transparent 70%); }
.clips { display: flex; justify-content: center; align-items: center; gap: 24px; margin-bottom: 40px; }
.clip { margin: 0; width: 280px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #FEFEFE; }
.clip.side { width: 210px; }
.show h2 { font-size: 32px; font-weight: 600; }
.sub { color: var(--muted); max-width: 34em; margin: 14px auto 0; }

/* 四个卖点：左边一张高卡，右边上两张、下一张宽卡，和原版布局一致 */
.features { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; padding-block: 24px 110px; }
.feature { background: var(--card); border-radius: 28px; padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.feature h3 { font-size: 22px; font-weight: 600; line-height: 1.45; }
.feature.tall { grid-row: span 2; }
.feature.wide { grid-column: span 2; }
.shot { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.shot img { width: 100%; }
.crop-sheet { flex: 1; min-height: 0; }
.crop-sheet img { height: 100%; object-fit: cover; object-position: top; }
.crop-trends, .crop-remind { background: #FEFEFE; padding: 4%; }
.crop-remind { width: min(100%, 560px); align-self: center; }
.scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scenes img { border-radius: 14px; border: 2px solid var(--mark); aspect-ratio: 756 / 594; object-fit: cover; }

/* 下载 */
.download { background: var(--band); text-align: center; padding-block: 100px 90px; }
.download img { margin: 0 auto; border-radius: 26px; box-shadow: 0 16px 40px -18px rgba(120, 40, 70, .4); }
.download h2 { font-size: 46px; font-weight: 700; margin-top: 36px; }
.download .store { margin-top: 32px; }

/* 页脚 */
.footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-block: 56px calc(56px + env(safe-area-inset-bottom)); }
.footer p { margin: 0; }
.footer-name { font-size: 28px; font-weight: 700; margin-bottom: 8px !important; }
.footer a { text-decoration-color: var(--mark); text-underline-offset: 3px; }
.footer-right { display: grid; gap: 10px; justify-items: end; }
.pill { display: inline-block; text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 14px; }

/* 平板 */
@media (max-width: 960px) {
  .hero-body { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: 20px; }
  .tagline { margin-inline: auto; }
  .stores { justify-content: center; margin-top: 28px; }
  .hero-art { height: 520px; max-width: 560px; width: 100%; margin: 0 auto; }
  .phone { width: 220px; }
  .phone.back { left: 10%; }
  .phone.front { left: 44%; top: 90px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature.tall { grid-row: span 1; }
  .feature.wide { grid-column: span 2; }
  .crop-sheet { flex: none; aspect-ratio: .9; }
}
/* 手机 */
@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .nav { padding-block: 18px; }
  .nav-link { display: none; }
  .hero-text h1 { font-size: 36px; }
  .tagline { font-size: 17px; }
  .hero-art { height: 420px; }
  .phone { width: 170px; border-radius: 30px; padding: 7px; }
  .phone img { border-radius: 24px; }
  .phone.back { left: 6%; top: 20px; }
  .phone.front { left: 44%; top: 70px; }
  .blob { bottom: -90px; height: 260px; }
  .show { padding-block: 64px; }
  .clips { gap: 10px; }
  .clip { width: 46%; border-radius: 16px; }
  .clip.side { width: 27%; }
  .show h2 { font-size: 22px; }
  .features { grid-template-columns: 1fr; padding-block: 8px 72px; }
  .feature.wide { grid-column: span 1; }
  .feature { padding: 20px 20px 24px; border-radius: 22px; }
  .feature h3 { font-size: 19px; }
  .download { padding-block: 72px 64px; }
  .download h2 { font-size: 30px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer-right { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) { .clip video { animation: none; } }
