/* 念念首页：暖杏开场与一张连续的记录纸。仅覆盖正式手机版。 */
body.mobile #s-home,
body.mobile #s-home .scroll {
  background-color: #fffaf4;
  background-image:
    radial-gradient(ellipse 90% 34% at 100% -8%, rgba(255, 226, 190, .18), transparent 76%),
    repeating-linear-gradient(93deg, rgba(105, 61, 31, .01) 0 1px, transparent 1px 5px);
}
body.mobile #s-home .scroll {
  padding: 0 17px calc(126px + env(safe-area-inset-bottom));
}
body.mobile #s-home .home-intro {
  position: relative;
  flex: none;
  isolation: isolate;
  overflow: hidden;
  margin: 0 -17px;
  padding: 18px 21px 27px;
  background: transparent;
}
body.mobile #s-home .home-intro::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 10px 12px 0;
  border: 1px solid rgba(192, 134, 93, .15);
  border-radius: 25px 25px 8px 8px;
  background:
    radial-gradient(ellipse 61% 88% at 96% 12%, rgba(255, 252, 232, .74), transparent 78%),
    radial-gradient(ellipse 74% 66% at -15% 98%, rgba(239, 166, 106, .09), transparent 82%),
    linear-gradient(128deg, #fff4e5 0%, #ffe9d0 51%, #f9dabd 100%);
  box-shadow: 0 7px 19px rgba(158, 91, 45, .075), inset 0 1px 0 rgba(255,255,255,.75);
  pointer-events: none;
}
body.mobile #s-home .home-intro::after {
  content: '';
  position: absolute;
  inset: 17px 19px 7px;
  z-index: -1;
  opacity: .28;
  border: 1px solid rgba(255,255,245,.53);
  border-radius: 19px 19px 5px 5px;
  background: repeating-linear-gradient(103deg, rgba(255,255,255,.08) 0 1px, transparent 1px 7px);
  pointer-events: none;
}
body.mobile #s-home .brand-row {
  position: relative;
  z-index: 2;
  gap: 8px;
  padding: 0 4px;
}
body.mobile #s-home .brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 3px rgba(178, 111, 57, .16));
}
body.mobile #s-home .brand-mark svg { width: 31px; height: 31px; }
body.mobile #s-home .brand-name {
  color: #50382b;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 1.3px;
}
body.mobile #s-home .home-embossed-star {
  position: absolute;
  z-index: 0;
  top: 56px;
  right: 37px;
  width: 99px;
  height: 99px;
  transform: rotate(12deg);
  opacity: .43;
  fill: #fff8e9;
  stroke: #e4aa7b;
  stroke-width: .75;
  filter: drop-shadow(0 6px 10px rgba(197, 117, 62, .16));
  pointer-events: none;
  animation: nn-home-glow 5.5s ease-in-out infinite;
}
@keyframes nn-home-glow {
  0%, 100% { opacity: .32; filter: drop-shadow(0 4px 8px rgba(197, 117, 62, .1)); }
  50% { opacity: .46; filter: drop-shadow(0 5px 12px rgba(232, 157, 90, .2)); }
}
body.mobile #s-home .home-embossed-face {
  fill: none;
  stroke: #b77a4e;
  stroke-width: 1.35;
  stroke-linecap: round;
}
body.mobile #s-home .date-pill {
  position: relative;
  z-index: 1;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  margin: 14px 0 0 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #4b362b;
}
body.mobile #s-home .home-day {
  color: #4e3427;
  font: 500 clamp(35px, 9.8vw, 39px)/.97 Georgia, 'Times New Roman', serif;
  letter-spacing: -1.5px;
  font-variant-numeric: lining-nums;
}
body.mobile #s-home .home-date-meta {
  display: flex;
  min-height: 37px;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding-left: 12px;
  border-left: 1px solid rgba(151, 94, 53, .3);
  color: #76543d;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}
body.mobile #s-home #home-week { color: #946b4d; font-size: 10.5px; font-weight: 600; }
body.mobile #s-home .home-lead {
  position: relative;
  z-index: 1;
  margin: 6px 0 13px 6px;
  color: #674730;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
body.mobile #s-home .home-capture {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  overflow: visible;
  margin: 0 1px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.mobile #s-home .home-capture::before { display: none; }
body.mobile #s-home .quick-input {
  display: flex;
  order: 2;
  box-sizing: border-box;
  flex: none;
  min-width: 0;
  width: 100%;
  height: 39px;
  min-height: 39px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}
body.mobile #s-home .quick-input .q-icon {
  display: inline-flex;
  width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: #9f6744;
  font-size: 16px;
}
body.mobile #s-home .quick-input .q-placeholder { color: #76543e; font-size: 12px; font-weight: 650; }
body.mobile #s-home .quick-input .q-arrow { display: block; margin-left: auto; color: #a27657; font-size: 14px; }
body.mobile #s-home .voice-hero {
  position: relative;
  order: 1;
  box-sizing: border-box;
  flex: none;
  width: 100%;
  height: 60px;
  min-height: 60px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(193, 134, 91, .2);
  border-radius: 15px;
  background: linear-gradient(120deg, #fffefb, #fff9f1);
  box-shadow: 0 7px 17px rgba(145, 84, 44, .095), inset 0 1px 0 rgba(255,255,255,.9);
  cursor: pointer;
}
body.mobile #s-home .voice-hero::after {
  content: '→';
  position: absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-50%);
  color: #a16b4c;
  font-size: 17px;
  font-weight: 400;
  pointer-events: none;
}
body.mobile #s-home .voice-hero .v-deco { display: none; }
body.mobile #s-home .voice-hero .v-actions {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
body.mobile #s-home .voice-hero .v-mic {
  width: 41px;
  height: 41px;
  border: 1px solid rgba(164, 79, 35, .13);
  background: linear-gradient(140deg, #eba06d, #dc7d49);
  box-shadow: 0 0 0 4px rgba(222, 139, 84, .09), 0 3px 7px rgba(169, 82, 39, .16), inset 0 1px 0 rgba(255,255,255,.28);
  animation: nn-home-mic 3.6s ease-in-out infinite;
}
@keyframes nn-home-mic {
  0%, 100% { box-shadow: 0 0 0 4px rgba(222, 139, 84, .09), 0 3px 7px rgba(169, 82, 39, .16); }
  50% { box-shadow: 0 0 0 7px rgba(222, 139, 84, .16), 0 3px 9px rgba(169, 82, 39, .18); }
}
body.mobile #s-home .voice-hero .v-mic svg { width: 18px; height: 18px; }
body.mobile #s-home .voice-hero .v-action-txt { display: flex; align-items: center; margin: 0; }
body.mobile #s-home .voice-hero .v-main { color: #64442f; font-size: 14px; font-weight: 750; letter-spacing: .2px; }
body.mobile #s-home .quick-input:active,
body.mobile #s-home .voice-hero:active { filter: brightness(.95); }

/* 纸页与顶部自然叠合；两种记录视图始终共享同一外形。 */
body.mobile #s-home .home-journal {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  flex: 1 0 auto;
  min-height: 430px;
  width: auto;
  margin: -13px -17px 0;
  padding: 20px 20px 20px;
  border: 1px solid rgba(215, 182, 149, .43);
  border-bottom: 0;
  border-radius: 25px 25px 0 0;
  background-color: #fffaf4;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(174, 130, 91, .034) 31px 32px),
    repeating-linear-gradient(93deg, rgba(139, 93, 55, .009) 0 1px, transparent 1px 5px);
  box-shadow: 0 -7px 28px rgba(141, 75, 34, .075), inset 0 1px 0 rgba(255,255,255,.9);
}
body.mobile #s-home .home-journal::before {
  content: '';
  position: absolute;
  right: 30px;
  top: -9px;
  width: 54px;
  height: 16px;
  transform: rotate(8deg);
  border-radius: 2px;
  background: repeating-linear-gradient(105deg, rgba(255,255,255,.2) 0 4px, transparent 4px 9px), rgba(235, 174, 126, .43);
  box-shadow: 0 1px 3px rgba(149, 92, 53, .09);
  pointer-events: none;
}
body.mobile #s-home .seg-row {
  align-items: stretch;
  gap: 5px;
  margin: 0 0 4px;
  border-bottom: 1px solid #eaddcf;
}
body.mobile #s-home .seg-row .seg {
  display: flex;
  min-height: 43px;
  align-items: stretch;
  gap: 25px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.mobile #s-home .seg-item {
  box-sizing: border-box;
  min-height: 43px;
  padding: 9px 2px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #826650;
  font-size: 13px;
  font-weight: 700;
  transition: color .18s ease, border-color .18s ease;
}
body.mobile #s-home .seg-item.active {
  border-bottom-color: #d97946;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #a74f29;
}
body.mobile #s-home .seg-row .sec-count {
  flex: none;
  align-self: center;
  margin-left: auto;
  padding: 0;
  color: #a28a77;
  font-size: 10px;
  font-weight: 600;
}
body.mobile #s-home .seg-row .hdr-ico {
  width: 36px;
  height: 39px;
  flex: none;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #996e50;
}
body.mobile #s-home #home-tl-date {
  min-height: 47px;
  align-items: center;
  gap: 4px;
  margin: 4px 0 1px;
  padding: 0 0 3px;
  border: 0;
}
body.mobile #s-home #home-tl-date .tl-nav {
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #faf1e7;
  color: #a57453;
  font-size: 18px;
}
body.mobile #s-home #home-tl-date .tl-date {
  min-width: 36px;
  padding: 0 3px;
  color: #70503b;
  font-size: 12px;
  font-weight: 700;
}
body.mobile #s-home #home-tl-date .tl-date-hint { display: none; }
body.mobile #s-home #home-tl,
body.mobile #s-home #home-cl { box-sizing: border-box; flex: none; width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; }
body.mobile #s-home #tl2,
body.mobile #s-home #todo-paper {
  box-sizing: border-box;
  width: 100%;
  min-height: 120px;
  padding: 7px 0 8px;
  border: 1px solid #eadac9;
  border-radius: 15px;
  background: rgba(255, 250, 243, .57);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 3px 11px rgba(135,80,43,.035);
}
body.mobile #s-home #tl2 { overflow: hidden; }
body.mobile #s-home #tl2::before { left: 54px; top: 19px; bottom: 22px; width: 1px; background: #ecd9c6; }
body.mobile #s-home #tl2:has(.empty-illu)::before { display: none; }
body.mobile #s-home #tl2 .tl2-item {
  display: block;
  min-height: 58px;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
  touch-action: pan-y;
}
body.mobile #s-home #tl2 .tl2-main {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: stretch;
  gap: 0;
  padding: 0 9px;
  border: 0;
  background: #fffaf3;
  box-shadow: none;
  transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
body.mobile #s-home #tl2 .tl2-item.swiped .tl2-main { transform: translateX(-168px); }
body.mobile #s-home #tl2 .tl2-time {
  width: 37px;
  flex: none;
  align-self: flex-start;
  padding-top: 17px;
  color: #a87c5e;
  font: 600 10px/1.3 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
body.mobile #s-home #tl2 .tl2-dot {
  position: absolute;
  left: 51px;
  top: 18px;
  display: block;
  width: 7px;
  height: 7px;
  margin: 0;
  border: 2px solid #fffaf3;
  background: #dc9869 !important;
  box-shadow: 0 0 0 1px rgba(218, 152, 105, .25);
}
body.mobile #s-home #tl2 .tl2-card {
  flex: 1;
  min-width: 0;
  margin: 0 0 0 17px;
  padding: 12px 31px 12px 0;
  border: 0;
  border-bottom: 1px solid #eadfd3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.mobile #s-home #tl2 .tl2-item:last-child .tl2-card { border-bottom: 0; }
body.mobile #s-home #tl2 .tl2-title { display: block; white-space: normal; }
body.mobile #s-home #tl2 .tl2-txt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #48382e;
  font: 500 13.5px/1.55 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  letter-spacing: .05px;
  white-space: normal;
}
body.mobile #s-home #tl2 .tl2-foot { display: flex; gap: 7px; margin-top: 5px; }
body.mobile #s-home #tl2 .tl2-amt { margin: 0; padding: 0; border: 0; background: none; color: #b36b43; font-size: 11.5px; font-weight: 650; }
body.mobile #s-home #tl2 .tl-done { color: #768b70; font-size: 10.5px; }
body.mobile #s-home #tl2 .tl-thumb { width: 68px; height: 68px; margin: 8px 0 0; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 2px 7px rgba(115,69,36,.16); object-fit: cover; }
body.mobile #s-home #tl2 .tl-reveal {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 9px;
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a3785b;
  font-size: 17px;
  line-height: 1;
}
body.mobile #s-home #tl2 .tl-acts { top: 0; right: 0; z-index: 1; width: 168px; height: 100%; gap: 0; transform: none; opacity: 1; visibility: hidden; }
body.mobile #s-home #tl2 .tl2-item.swiped .tl-acts { visibility: visible; }
body.mobile #s-home #tl2 .tl-acts button { width: 56px; height: 100%; border: 0; border-radius: 0; }
body.mobile #s-home #tl2 .tl2-item:active .tl2-card { transform: none; }
body.mobile #s-home #todo-paper .todo-row { min-height: 58px; gap: 12px; margin: 0 10px; padding: 11px 2px; border-bottom: 1px solid #eadfd3; }
body.mobile #s-home #todo-paper .todo-row:last-child { border-bottom: 0; }
body.mobile #s-home #todo-paper .todo-box { width: 19px; height: 19px; border: 1.5px solid #cfa989; border-radius: 6px; background: #fffdf9; }
body.mobile #s-home #todo-paper .todo-row.done .todo-box { background: #d88452; border-color: #d88452; }
body.mobile #s-home #todo-paper .todo-txt { color: #48382e; font-size: 13.5px; font-weight: 500; line-height: 1.55; }
body.mobile #s-home #todo-paper .entry-meta { color: #a57859; font-size: 10.5px; }
body.mobile #s-home #todo-paper .entry-mark { display: none; }
body.mobile #s-home #tl2-add,
body.mobile #s-home #cl-add {
  width: 100%;
  min-height: 46px;
  margin-top: 8px !important;
  padding: 8px;
  border: 1px solid #ead8c7;
  border-radius: 12px;
  background: linear-gradient(120deg, #fff9f1, #fffdf8);
  color: #a96642;
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 2px 7px rgba(135, 80, 43, .035), inset 0 1px 0 rgba(255,255,255,.8);
}
body.mobile #s-home #tl2-add:active,
body.mobile #s-home #cl-add:active { background: #f8ecdc; }
body.mobile #s-home #tl2 .empty-illu { padding: 24px 7px 25px; }
body.mobile #s-home #tl2 .empty-illu {
  min-height: 104px;
  padding: 19px 12px 13px;
  background: radial-gradient(ellipse 43% 61% at 50% 25%, rgba(255, 225, 189, .32), transparent 83%);
}
body.mobile #s-home #tl2 .empty-illu::before {
  content: '✦';
  display: block;
  color: #cf9162;
  font-size: 20px;
  line-height: 1.2;
  filter: drop-shadow(0 2px 5px rgba(207, 145, 98, .18));
}
body.mobile #s-home #tl2 .empty-illu img { display: none; }
body.mobile #s-home #tl2 .empty-illu div {
  margin-top: 9px;
  color: #765b49;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}
body.mobile #s-home #tl2 .home-yesterday-preview {
  display: flex;
  box-sizing: border-box;
  width: calc(100% - 22px);
  min-height: 64px;
  align-items: center;
  gap: 11px;
  margin: 0 11px 6px;
  padding: 8px;
  border: 1px solid #ecd9c5;
  border-radius: 11px;
  background: linear-gradient(105deg, #fff9ee, #fffdf8);
  box-shadow: 0 2px 7px rgba(140, 81, 42, .035);
  text-align: left;
  cursor: pointer;
}
body.mobile #s-home #tl2 .home-yesterday-preview:active { background: #f9ecdc; }
body.mobile #s-home #tl2 .home-yesterday-visual {
  display: flex;
  width: 46px;
  height: 46px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f7ddbd;
  color: #c48254;
  font-size: 22px;
  object-fit: cover;
}
body.mobile #s-home #tl2 .home-yesterday-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
body.mobile #s-home #tl2 .home-yesterday-copy small { color: #ad7451; font-size: 10px; font-weight: 700; }
body.mobile #s-home #tl2 .home-yesterday-copy strong {
  overflow: hidden;
  color: #5b4131;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.mobile #s-home #tl2 .home-yesterday-arrow { flex: none; padding: 0 4px; color: #aa7655; font-size: 23px; font-weight: 300; }
body.mobile #s-home #todo-paper .todo-empty { min-height: 144px; }
@media (max-width: 370px) {
  body.mobile #s-home .scroll { padding-left: 14px; padding-right: 14px; }
  body.mobile #s-home .home-intro { margin-left: -14px; margin-right: -14px; padding-left: 16px; padding-right: 16px; }
  body.mobile #s-home .home-journal { margin-left: -14px; margin-right: -14px; padding-left: 16px; padding-right: 16px; }
  body.mobile #s-home .seg-row .seg { gap: 22px; }
  body.mobile #s-home .seg-row .sec-count { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  body.mobile #s-home .home-embossed-star,
  body.mobile #s-home .voice-hero .v-mic,
  body.mobile #s-home .seg-item,
  body.mobile #s-home #tl2 .tl2-main { transition: none; }
}
