/* ============================================================
   outer.css — 外层「可爱层」专属样式
   目标：像一本手账，软、圆、暖。任何人打开都看不出破绽。
   ============================================================ */

/* ---------------- 首页 · 在一起 ---------------- */
.hero {
  background:
    radial-gradient(90% 120% at 12% 0%, var(--accent-soft) 0%, transparent 62%),
    linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--shadow-2);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--butter) 0%, transparent 70%);
  opacity: .5;
}
.hero-label {
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--text-soft);
}
.hero-days {
  font-size: 62px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--primary-deep);
  margin: var(--sp-2) 0 0;
  font-variant-numeric: tabular-nums;
}
.hero-days small { font-size: 17px; font-weight: 600; margin-left: 4px; color: var(--text-soft); }
.hero-since { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

.hero-paws {
  position: absolute;
  left: 14px; bottom: 12px;
  display: flex; gap: 5px;
  color: var(--accent);
  opacity: .3;
}
.hero-paws svg { width: 20px; height: 20px; fill: currentColor; transform: rotate(-14deg); }
.hero-paws svg:nth-child(2) { transform: rotate(12deg) translateY(-3px); }

/* ---------------- 倒计时 ---------------- */
.countdown {
  margin-top: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  text-align: center;
}
.countdown-label { font-size: 12px; color: var(--text-soft); letter-spacing: .1em; }
.countdown-nums {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.cd-unit { min-width: 58px; }
.cd-unit b {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.cd-unit span { font-size: 10px; color: var(--text-faint); letter-spacing: .12em; }
.cd-sep { color: var(--text-faint); font-size: 20px; padding-top: 4px; }

/* ---------------- 心情 ---------------- */
.mood-row { display: flex; gap: var(--sp-2); }
.mood {
  flex: 1;
  min-height: 74px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: var(--text-soft);
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.mood .emo { font-size: 22px; }
.mood:hover { transform: translateY(-3px); }
.mood.is-on {
  background: var(--accent-soft);
  color: var(--primary-deep);
  font-weight: 600;
  transform: translateY(-3px);
}

/* ---------------- 日子列表 ---------------- */
.memo-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.memo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.memo-date {
  flex: 0 0 46px;
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.3;
}
.memo-date b { display: block; font-size: 17px; color: var(--primary-deep); }
.memo-body { flex: 1; min-width: 0; }
.memo-title { font-size: 14px; font-weight: 600; }
.memo-sub { font-size: 11px; color: var(--text-faint); }
.memo-badge {
  font-size: 10px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--primary-deep);
  letter-spacing: .06em;
}

/* ---------------- 日历 ---------------- */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.cal-month { font-size: 17px; font-weight: 700; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-wd {
  text-align: center;
  font-size: 10px;
  color: var(--text-faint);
  padding-bottom: 4px;
  letter-spacing: .06em;
}
.cal-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text);
  position: relative;
  transition: background-color .18s var(--ease);
}
.cal-cell.is-blank { visibility: hidden; }
.cal-cell:hover { background: var(--surface-2); }
.cal-cell.is-today {
  background: var(--accent-soft);
  font-weight: 700;
  color: var(--primary-deep);
}
.cal-cell .mark { font-size: 8px; color: var(--accent); line-height: 1; }
.cal-cell.is-event .mark::before { content: "♥"; }
.cal-cell.is-meet { box-shadow: inset 0 0 0 1.5px var(--primary); }

/* ---------------- 日记 ---------------- */
.note-card {
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  gap: var(--sp-4);
}
.note-emo { font-size: 26px; line-height: 1; }
.note-body { flex: 1; min-width: 0; }
.note-text { font-size: 14px; }
.note-meta { font-size: 11px; color: var(--text-faint); margin-top: 4px; display: flex; gap: 8px; }
.note-sticker { font-size: 15px; }

/* 删除按钮：要点两下 */
.note-del {
  flex: 0 0 auto;
  align-self: flex-start;
  min-width: 46px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: .06em;
  transition: all .18s var(--ease);
}
.note-del:hover { color: var(--accent); border-color: var(--accent); }
.note-del.is-armed {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  animation: breath 1s var(--ease) infinite;
}
.note-card.is-arming { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-1); }
.note-card.is-gone {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}

/* ---------------- 设置 ---------------- */
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
.set-row:last-child { border-bottom: none; }
.set-label { font-size: 14px; }
.set-hint { font-size: 11px; color: var(--text-faint); }
.set-input {
  min-height: 38px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  max-width: 190px;
}
.set-swatches { display: flex; gap: var(--sp-2); }
.swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease);
}
.swatch:hover { transform: scale(1.1); }
.swatch.is-on { border-color: var(--text); transform: scale(1.06); }

.about-quote {
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  line-height: 1.9;
}
