/* Strive 官网。颜色、字体沿用 App 设计系统（lib/core/design_system）。 */
@font-face { font-family: "MiSans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/MiSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "MiSans"; font-weight: 500; font-display: swap; src: url("/assets/fonts/MiSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "MiSans"; font-weight: 600; font-display: swap; src: url("/assets/fonts/MiSans-Demibold.woff2") format("woff2"); }
@font-face { font-family: "MiSans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/MiSans-Semibold.woff2") format("woff2"); }

:root {
  --ink: #091026;
  --slate: #515766;
  --muted: #838A9B;
  --tide: #3FD8F2;
  --foam: #78E9FC;
  --mist: #E6FBFF;
  --haze: #F8F8FA;
  --line: #EAEEF5;
  --paper: #FFFFFF;
  --link: #0E8AA3;
  --wrap: 1160px;
  --shadow-phone: 0 2px 4px rgba(9,16,38,.08), 0 18px 36px -12px rgba(9,16,38,.28), 0 48px 90px -36px rgba(9,16,38,.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "MiSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
section[id], .doc h2 { scroll-margin-top: 84px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* 顶栏：在首屏天空色上半透明，滚动后仍可读 */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(9,16,38,.06); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 2px 6px rgba(9,16,38,.12); }
.nav { display: flex; gap: 32px; }
.nav a { color: var(--slate); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* 首屏：App 图标同款的天空渐变 + 层叠波浪 */
.hero { position: relative; overflow: hidden; padding: 88px 0 170px; margin-top: -65px; padding-top: 153px;
  background: linear-gradient(172deg, #9BEFFD 0%, #5FE0F6 38%, #3FD8F2 70%, #30C9EA 100%); }
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 420px at 18% 12%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(640px 520px at 86% 30%, rgba(255,255,255,.35), transparent 70%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.18; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.lead { margin: 28px 0 0; max-width: 27em; font-size: 19px; line-height: 1.75; color: rgba(9,16,38,.72); }
.status { display: inline-flex; align-items: center; gap: 12px; margin: 36px 0 0; padding: 8px 20px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.82); box-shadow: 0 8px 24px -12px rgba(9,16,38,.35); font-size: 16px; font-weight: 600; }
.status img { border-radius: 8px; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 600px; }
.phone { position: relative; margin: 0; width: 290px; aspect-ratio: 390 / 844; border-radius: 46px; padding: 9px;
  background: linear-gradient(150deg, #39415a 0%, #10162b 45%, #050914 100%); box-shadow: var(--shadow-phone); }
.phone::before { content: ""; position: absolute; inset: 1px; border-radius: 45px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); pointer-events: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; background: var(--haze); }
.phone-hero { width: 300px; transform: rotate(3deg); z-index: 1; }

.art { position: absolute; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(9,16,38,.18)); }
.art-run { width: 210px; left: -84px; top: 150px; z-index: 2; transform: rotate(-8deg); }

/* 坚持日历：首屏唯一的动画，按天点亮 */
.streak { position: absolute; right: -8px; bottom: 26px; z-index: 3; width: 256px; padding: 18px 18px 20px; border-radius: 22px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 48px -20px rgba(9,16,38,.4); }
.streak-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; color: var(--slate); }
.streak-count { display: inline-flex; align-items: center; gap: 4px; }
.streak-count b { font-size: 24px; line-height: 1; font-weight: 700; color: var(--ink); margin: 0 2px 0 2px; font-variant-numeric: tabular-nums; }
.streak-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.streak-grid li { aspect-ratio: 1; border-radius: 7px; background: #EEF1F6; }
.streak-grid li.on { background: linear-gradient(160deg, var(--foam), var(--tide)); }
.streak-grid li.today { background: var(--ink); }
.streak-grid li.rest { background: var(--mist); box-shadow: inset 0 0 0 1.5px var(--foam); }
@media (prefers-reduced-motion: no-preference) {
  .streak-grid li.on, .streak-grid li.today { animation: fill .4s cubic-bezier(.2,.8,.2,1.2) both; animation-delay: calc(var(--i) * 45ms + 300ms); }
  @keyframes fill { from { background: #EEF1F6; transform: scale(.6); } }
}

.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; }
.waves .w1 { fill: rgba(255,255,255,.45); }
.waves .w2 { fill: var(--paper); }

/* 区块标题 */
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.section-head p { margin: 14px 0 0; font-size: 18px; color: var(--slate); }

/* 功能：每个功能一块色板，手机从底部探出 */
.features { padding: 64px 0 40px; }
.panel { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 28px;
  padding: 64px 64px 0; border-radius: 36px; overflow: hidden; background: var(--tint); }
.panel:nth-of-type(even) .panel-copy { order: 2; }
.panel-copy { align-self: center; padding-bottom: 64px; }
.panel h3 { margin: 0; font-size: 34px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.panel p { margin: 16px 0 0; max-width: 26em; font-size: 17px; color: var(--slate); }
.panel ul { margin: 26px 0 0; padding: 0; list-style: none; max-width: 26em; }
.panel li { position: relative; padding-left: 26px; margin-top: 12px; font-size: 16px; }
.panel li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: inset 0 0 0 4px var(--accent-soft); }
.panel-media { position: relative; display: flex; justify-content: center; align-self: end; height: 460px; }
.panel-media .phone { width: 270px; position: absolute; top: 0; }
.panel-habit  { --tint: linear-gradient(160deg, #E9FCFF 0%, #D2F6FD 100%); --accent: #3FD8F2; --accent-soft: #B8F2FB; }
.panel-run    { --tint: linear-gradient(160deg, #EAFBF3 0%, #D3F5E5 100%); --accent: #2CD790; --accent-soft: #BDF0D8; }
.panel-focus  { --tint: linear-gradient(160deg, #FFF4F4 0%, #FFE3E3 100%); --accent: #FF7A7A; --accent-soft: #FFD0D0; }
.panel-group  { --tint: linear-gradient(160deg, #F4F2FF 0%, #E6E0FF 100%); --accent: #8640FE; --accent-soft: #D9C8FF; }
.panel-square { --tint: linear-gradient(160deg, #FFF8EE 0%, #FEEBD3 100%); --accent: #FFA30F; --accent-soft: #FFE0B0; }
.art-coin { width: 120px; right: 8%; top: 40px; z-index: 2; transform: rotate(12deg); }
.art-sofa { width: 200px; left: -6px; bottom: 18px; z-index: 2; }

/* 服务说明 */
.service { padding: 96px 0; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.facts > div { display: grid; grid-template-columns: 6em 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.facts > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--slate); }

/* 结尾横幅 */
.cta { padding: 0 0 96px; }
.cta-card { position: relative; display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: center; padding: 64px 64px 64px 72px; border-radius: 36px; overflow: hidden; color: var(--paper);
  background: radial-gradient(600px 380px at 85% 20%, rgba(63,216,242,.35), transparent 70%), linear-gradient(150deg, #13203F 0%, #091026 70%); }
.cta h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.cta p { margin: 16px 0 0; max-width: 32em; color: rgba(255,255,255,.72); font-size: 17px; }
.cta-list { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.cta-list dt { font-size: 14px; color: rgba(255,255,255,.55); }
.cta-list dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; }
.cta-list a { color: var(--foam); }
.art-thumb { position: static; width: 280px; justify-self: end; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }

/* 页脚 */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }

/* 协议页 */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin: 0; font-size: 34px; line-height: 1.3; font-weight: 700; }
.doc .meta { margin: 12px 0 40px; color: var(--muted); font-size: 14px; }
.doc h2 { margin: 48px 0 12px; font-size: 22px; line-height: 1.4; font-weight: 700; }
.doc h3 { margin: 28px 0 8px; font-size: 17px; line-height: 1.5; font-weight: 600; }
.doc p { margin: 0 0 12px; color: var(--slate); }
.doc p.item { padding-left: 1.5em; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .toc { margin: 0 0 8px; padding-left: 1.4em; color: var(--slate); }
.doc .toc li { margin: 4px 0; }
.doc .back { display: inline-block; margin-bottom: 24px; font-size: 15px; }

/* 打开 App 页 */
.open-app { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.open-app img { margin: 0 auto 20px; border-radius: 22px; box-shadow: 0 10px 24px -10px rgba(9,16,38,.35); }
.open-app h1 { margin: 0 0 8px; font-size: 26px; }
.open-app p { margin: 0; color: var(--slate); }

@media (max-width: 960px) {
  .hero { padding-bottom: 140px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { min-height: 560px; }
  .art-run { left: calc(50% - 270px); }
  .streak { right: calc(50% - 250px); }
  .panel { grid-template-columns: 1fr; padding: 48px 40px 0; gap: 32px; }
  .panel:nth-of-type(even) .panel-copy { order: 0; }
  .panel-copy { padding-bottom: 0; }
  .panel-media { height: 420px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-last-child(2) { border-bottom: 0; }
  .cta-card { grid-template-columns: 1fr; padding: 48px 40px; }
  .art-thumb { width: 200px; justify-self: start; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .nav { gap: 18px; }
  .nav a[href="#features"] { display: none; }
  .hero { padding-top: 120px; }
  .lead { font-size: 17px; }
  .hero-visual { min-height: 500px; }
  .phone-hero { width: 250px; }
  .art-run { width: 140px; left: -6px; top: 200px; }
  .streak { width: 220px; right: 0; bottom: 8px; padding: 14px; }
  .panel { padding: 36px 24px 0; border-radius: 28px; }
  .panel h3 { font-size: 28px; }
  .panel-media { height: 380px; }
  .panel-media .phone { width: 236px; }
  .art-coin { width: 84px; right: 0; }
  .art-sofa { width: 140px; }
  .cta-card { padding: 40px 24px; border-radius: 28px; }
}
