/* ============ 基础 ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --card: #f4f4f6;
  --ink: #111111;
  --muted: #6b7280;
  --line: #e5e5ea;
  --accent: #8b5cf6;
  --accent-soft: #c4b5fd;
  --green: #34c759;
  --orange: #ff9f0a;
  --radius: 20px;
  --shadow: 0 24px 60px rgba(17, 17, 17, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.container-narrow {
  width: min(760px, calc(100% - 48px));
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.25);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 229, 234, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  flex: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
}

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 96px;
}

.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.avatars {
  display: flex;
}

.avatars img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.avatars img + img {
  margin-left: -10px;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-sub {
  margin-top: 22px;
  max-width: 480px;
  font-size: 17px;
  color: var(--muted);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* ============ 手机模型 ============ */
.phone {
  width: 280px;
  border-radius: 44px;
  background: var(--bg-soft);
  border: 9px solid #1c1c1e;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 18.8;
}

.island {
  width: 96px;
  height: 26px;
  background: #000;
  border-radius: 18px;
  margin: 12px auto 4px;
  position: relative;
  z-index: 2;
}

.phone-body {
  padding: 8px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: calc(100% - 42px);
}

.hero-phones {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-home {
  z-index: 2;
  transform: rotate(-6deg);
  position: absolute;
}

.phone-mission {
  z-index: 1;
  transform: rotate(8deg) translateX(46px) translateY(24px);
  opacity: 0.92;
}

/* --- 首页屏幕 --- */
.home-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.home-head b {
  flex: 1;
  font-size: 17px;
}

.streak {
  font-size: 13px;
  font-weight: 700;
}

.trophy {
  font-size: 14px;
}

.week {
  display: flex;
  justify-content: space-between;
}

.day {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #9ca3af;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.day.done {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.orb {
  width: 150px;
  height: 150px;
  margin: 6px auto;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #e9e2ff, #c4b5fd 45%, #8b5cf6 100%);
  filter: blur(2px);
  animation: breathe 3.4s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    filter: blur(2px);
  }
  50% {
    transform: scale(1.07);
    filter: blur(3px);
  }
}

.next-alarm {
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

.next-alarm small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.next-alarm .time {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.tomorrow {
  font-size: 11px;
  color: var(--muted);
}

.next-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.next-row div {
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.next-row small {
  letter-spacing: 0;
  color: #9ca3af;
}

.home-tabs {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  background: #fff;
  border-radius: 999px;
  padding: 8px 6px;
  font-size: 11px;
  color: var(--muted);
}

.home-tabs .on {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 10px;
}

/* --- 选择任务屏幕 --- */
.mission-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mission-top .x-btn {
  font-size: 18px;
  line-height: 1;
}

.mission-top strong {
  font-size: 15px;
  display: block;
}

.mission-top small {
  font-size: 9px;
  color: var(--muted);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.m-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-card span {
  font-size: 22px;
}

.m-card b {
  font-size: 12px;
}

.m-card small {
  font-size: 8.5px;
  color: var(--muted);
}

/* ============ 通用板块 ============ */
.section {
  padding: 96px 0;
}

.section-gray {
  background: var(--bg-soft);
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.section-gray .tag {
  background: #fff;
}

h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-align: center;
}

.sub {
  text-align: center;
  color: var(--muted);
  margin-top: 14px;
  font-size: 16px;
}

/* ============ 三步流程 ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}

.step {
  background: var(--bg-soft);
  border-radius: 28px;
  padding: 34px 26px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.step .phone {
  width: 210px;
  margin-bottom: 30px;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.12);
}

.step .phone-body {
  gap: 8px;
  padding: 6px 12px 12px;
}

.step h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  font-size: 14.5px;
}

/* --- 新建闹钟屏幕 --- */
.phone-create .label {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

.wheel {
  background: #fff;
  border-radius: 14px;
  text-align: center;
  padding: 10px 0;
  font-family: var(--font-mono);
}

.wheel b {
  font-size: 26px;
}

.create-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 11px;
}

.create-row span {
  color: #9ca3af;
}

.tag-pink {
  background: #fde8ef;
  color: #e5484d;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 10px;
}

.save {
  margin-top: auto;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px;
  font-size: 12px;
  font-weight: 600;
}

/* --- 俯卧撑屏幕 --- */
.phone-pushup .dark {
  background: #111;
  border-radius: 0 0 34px 34px;
  color: #fff;
  text-align: center;
  align-items: center;
  justify-content: flex-start;
}

.hero-emoji {
  font-size: 52px;
  margin-top: 8px;
}

.phone-pushup h4 {
  font-size: 20px;
}

.instr {
  font-size: 10px;
  color: #a3a3a3;
}

.record {
  font-size: 10px;
  color: #6b7280;
}

.bell {
  font-size: 18px;
  margin-top: 4px;
}

.start {
  margin-top: 10px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px 26px;
  font-size: 12px;
  font-weight: 600;
}

/* --- 闹钟关闭屏幕 --- */
.phone-off .phone-body {
  align-items: center;
  text-align: center;
  padding-top: 26px;
}

.off-logo {
  font-weight: 800;
  font-size: 14px;
}

.check {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  margin-top: 40px;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.check span {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.phone-off h4 {
  font-size: 18px;
  margin-top: 22px;
}

.off-sub {
  font-size: 11px;
  color: var(--muted);
}

/* ============ 功能 ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 64px;
  text-align: left;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.f-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.06);
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
}

.feature p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ============ FAQ ============ */
.accordion {
  margin-top: 48px;
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.chev {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ececf1;
  color: var(--ink);
  transition: transform 0.25s ease;
  font-size: 16px;
  font-weight: 700;
  flex: none;
}

.accordion details[open] .chev {
  transform: rotate(180deg);
}

.accordion p {
  color: var(--muted);
  padding: 0 4px 24px;
  font-size: 15px;
  max-width: 640px;
}

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-btns {
  display: flex;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 72px;
}

.f-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.f-col h4 {
  font-size: 13px;
  margin-bottom: 6px;
}

.f-col a {
  color: var(--muted);
  font-size: 14px;
}

.f-col a:hover {
  color: var(--ink);
}

.copyright {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ============ 滚动入场 ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .hero-copy {
    text-align: center;
  }

  .social-proof {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-phones {
    height: 520px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero {
    overflow: hidden;
  }

  .hero-copy,
  .hero-phones {
    min-width: 0;
  }

  .hero-phones {
    overflow: hidden;
  }

  .phone-home {
    transform: rotate(-5deg) scale(0.86);
  }

  .phone-mission {
    transform: rotate(7deg) translateX(24px) translateY(18px) scale(0.78);
  }

  .container {
    width: min(100% - 32px, 1120px);
  }

  .section {
    padding: 64px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .footer-links {
    gap: 40px;
  }
}

/* ============ 次级页面（帮助/删除账户/隐私/条款） ============ */
.page-wrap {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

.page-hero {
  padding: 72px 0 48px;
  text-align: center;
}

.page-hero .tag {
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 16px;
}

.page-hero .hero-btns {
  justify-content: center;
}

.page-content {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto 96px;
}

.card-block {
  background: var(--bg-soft);
  border-radius: 24px;
  padding: 36px 40px;
  margin-bottom: 20px;
}

.card-block h2 {
  text-align: left;
  font-size: 22px;
  margin-bottom: 14px;
}

.card-block p {
  color: var(--muted);
  font-size: 15px;
}

.card-block ul,
.legal ol {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.card-block li::marker {
  color: var(--accent);
}

.card-block .note {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
}

.card-block .note strong {
  color: var(--ink);
}

.step-list {
  list-style: none !important;
  padding-left: 0 !important;
  counter-reset: step;
}

.step-list li {
  position: relative;
  padding-left: 40px;
  counter-increment: step;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* 法律文档 */
.legal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 56px;
}

.legal h2 {
  text-align: left;
  font-size: 22px;
  margin: 34px 0 12px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.legal .updated {
  color: #9ca3af;
  font-size: 13px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .card-block,
  .legal {
    padding: 26px 22px;
  }
}
