/* 首页：从上到下 顶栏 → 在一起 → 阿深此刻 → 她的手机 → 今天 → 正在听，底栏浮在最下面 */
.home {
  position: relative;
  z-index: 1;
  padding: calc(56px + env(safe-area-inset-top)) var(--page-x) calc(104px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

/* 顶栏 */
.home-top { height: 48px; padding: 0 4px; display: flex; align-items: center; justify-content: space-between; }
.home-top h1 { font-family: var(--f-title); font-weight: 600; font-size: var(--fs-h1); line-height: 28px; letter-spacing: 2px; }
.presence { margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.presence-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-online); box-shadow: 0 0 0 3px rgba(124, 202, 214, 0.38); }
.presence[data-on="false"] .presence-dot { background: var(--c-offline); box-shadow: 0 0 0 3px rgba(154, 163, 196, 0.30); }
.links { display: flex; gap: var(--gap-s); }
.links a { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; color: var(--c-ink-3); }

/* 在一起 + 豆豆 */
.hero { position: relative; height: 174px; margin-top: 20px; padding-left: 4px; }
.hero-label { letter-spacing: 4px; }
.hero-days { margin-top: 6px; height: 84px; display: flex; align-items: flex-end; gap: 6px; }
.hero-days .num { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-hero); line-height: 84px; letter-spacing: -4px; }
.hero-days .unit { font-family: var(--f-title); font-size: 18px; line-height: 24px; padding-bottom: 4px; }
.hero-since { margin-top: 8px; font-family: var(--f-mono); }
.spark {
  margin-top: 14px; height: 30px; padding: 0 12px 0 10px; border-radius: 15px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-cap); line-height: 16px; color: var(--c-ink-3); white-space: nowrap;
}
.spark .icon { width: 14px; height: 14px; stroke: var(--c-rose); stroke-width: 1.8; }
.spark .mono { font-weight: 500; }
.whale-slot { position: absolute; right: 2px; top: -12px; width: 180px; height: 144px; }
.whale-slot svg { display: block; transition: transform 0.6s ease; }
.whale-slot:active svg { transform: scale(0.94); }

/* 阿深此刻 */
.now {
  margin-top: 14px; height: 124px; border-radius: var(--r-card); padding: 16px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.now-head { display: flex; justify-content: space-between; align-items: center; }
.now-thought { font-family: var(--f-title); font-size: var(--fs-lead); line-height: 24px; }
.now-drives { display: flex; align-items: center; gap: var(--gap-s); }
.drive {
  flex: none; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--glass-chip);
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-cap); line-height: 16px; white-space: nowrap;
}
.drive i { width: 6px; height: 6px; border-radius: 50%; }
.drive .mono { color: var(--c-ink-2); }
.now-drives .icon { margin-left: auto; width: 16px; height: 16px; color: var(--c-ink-2); stroke-width: 1.8; }

/* 她的手机 */
.phone { margin-top: var(--gap-m); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-s); }
.phone-tile {
  height: 64px; border-radius: var(--r-tile); padding: 10px 12px;
  display: flex; flex-direction: column; justify-content: space-between; min-width: 0;
}
.phone-tile .cap { font-size: 11px; }
.phone-tile b { font-weight: 500; font-size: 15px; line-height: 20px; }

/* 今天 */
.today {
  margin-top: var(--gap-m); min-height: 156px; border-radius: var(--r-card); padding: 14px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.today-head { height: 22px; display: flex; justify-content: space-between; align-items: center; }
.today-head h2 { font-family: var(--f-title); font-weight: 600; font-size: var(--fs-h2); line-height: 22px; }
.today-head h2 .cap { margin-left: 8px; font-family: var(--f-body); font-weight: 400; }
.today-head a { display: flex; align-items: center; gap: 2px; }
.today-head a .icon { width: 12px; height: 12px; stroke-width: 2; }
.row { height: 22px; display: flex; align-items: center; gap: 10px; }
.row .t { width: 44px; font-family: var(--f-mono); font-size: var(--fs-small); line-height: 22px; color: var(--c-ink-2); flex: none; }
.row .bar { width: 3px; height: 14px; border-radius: 2px; flex: none; }
.row .v { font-size: var(--fs-body); line-height: 22px; flex: 1; min-width: 0; }
.row.empty .v { color: var(--c-ink-2); }
.today-board { margin-top: auto; height: 36px; border-top: 1px solid rgba(255, 255, 255, 0.75); align-items: flex-end; }
.today-board .t { font-family: var(--f-body); font-size: var(--fs-cap); }
.today-board .bar { margin-bottom: 4px; background: var(--c-haze); }

/* 正在听 */
.music {
  margin-top: var(--gap-m); height: 48px; border-radius: 24px; padding: 0 4px 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.music > .icon { width: 18px; height: 18px; color: var(--c-whale); stroke-width: 1.7; }
.music a { flex: 1; min-width: 0; font-size: var(--fs-small); line-height: 20px; }
.music a span { color: var(--c-ink-2); }
.music button { width: 40px; height: 40px; border-radius: 20px; background: var(--c-whale); display: flex; align-items: center; justify-content: center; flex: none; }
.music button svg { width: 14px; height: 14px; fill: #FFFFFF; }
.music[data-empty="true"] button { background: var(--c-haze); }
