/* ==========================================================
   app.css — 布局骨架与组件
   ========================================================== */

/* ---------- 画布 ---------- */
.app {
  position: relative;
  width: 100%;
  max-width: var(--app-w);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--cream-1);
}

@media (min-width: 560px) {
  .app {
    min-height: calc(100vh - 48px);
    border-radius: 32px;
    box-shadow: var(--sh-lg);
  }
  .topbar {
    border-radius: 32px 32px 0 0;
  }
}

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: calc(var(--tb-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 14px 0;
  background: rgba(252, 250, 246, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar.is-home {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.topbar.is-home .tb-title,
.topbar.is-home .tb-date,
.topbar.is-home .tb-back { display: none; }
.topbar.is-home .tb-mid { flex: 1; }

.tb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background .18s ease, transform .18s ease, opacity .2s ease;
}
.tb-btn:active { transform: scale(.92); background: var(--cream-2); }
.tb-back.is-hidden { opacity: 0; pointer-events: none; }

.tb-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.tb-title {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-date {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
  flex-shrink: 0;
}

/* ---------- 页面 ---------- */
.main {
  position: relative;
  padding: 0 16px calc(var(--tab-h) + 32px);
}
.page { display: none; }
.page.is-active {
  display: block;
  animation: fadeUp .34s cubic-bezier(.22, .8, .3, 1) both;
}

.page-end {
  padding: 26px 0 8px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: #C9BBB0;
}

/* ---------- 问候行 ---------- */
.hero {
  padding: 14px 2px 16px;
}
.hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.hero-greet {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1.35;
}
.wave {
  display: inline-block;
  font-size: 21px;
  animation: waveHand 2.2s ease-in-out infinite;
  transform-origin: 70% 75%;
}
@keyframes waveHand {
  0%, 55%, 100% { transform: rotate(0deg); }
  65% { transform: rotate(16deg); }
  75% { transform: rotate(-8deg); }
  85% { transform: rotate(12deg); }
}
.hero-date {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .03em;
}

.coin-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  margin-top: 2px;
  padding: 0 13px 0 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FEF7E8, #FDF0DC);
  border: 1px solid #F5E6C8;
  color: #A9803E;
  font-size: 13px;
  font-weight: 700;
}
.coin-ic { font-size: 14px; }
.coin-cap {
  font-size: 10.5px;
  font-weight: 600;
  color: #C2A468;
}

/* ---------- 双列 ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.grid-2 .card { margin-bottom: 0; padding: 15px 14px 13px; }
.col-plan .card-head, .col-note .card-head { margin-bottom: 8px; }

.ct-emoji { margin-right: 5px; font-size: 14px; }

.card-link {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .02em;
  transition: color .18s ease;
}
.card-link:active { color: var(--pink-deep); }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  margin-bottom: 12px;
  padding: 17px 17px 15px;
  border-radius: var(--r-lg);
  background: var(--cream-0);
  box-shadow: var(--sh-xs);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.card-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
}
.card-sub {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

.tag-soft {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--cream-2);
  color: var(--ink-3);
  font-size: 10.5px;
  letter-spacing: .02em;
}

/* ---------- 灵感速记（窄列） ---------- */
#quickNote {
  width: 100%;
  min-height: 84px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  background: var(--cream-1);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  transition: border-color .2s ease, background .2s ease;
}
#quickNote:focus { border-color: var(--pink); background: #FFFDFB; }
#quickNote::placeholder { color: #C8BCB0; }

.btn-record {
  width: 100%;
  height: 38px;
  margin-top: 9px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink) 0%, #F7D2B8 100%);
  color: #6B4249;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: 0 4px 14px rgba(233, 165, 175, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-record:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(233, 165, 175, .26); }

.note-mini {
  margin-top: 10px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- 任务列表（窄列） ---------- */
.task-list { display: flex; flex-direction: column; }

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #F8F3EB;
  transition: opacity .2s ease;
}
.task-item:last-child { border-bottom: none; }

.task-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.6px solid var(--line-strong);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s cubic-bezier(.3, 1.4, .5, 1);
}
.task-check svg { opacity: 0; transform: scale(.5); transition: all .2s ease; }
.task-item.is-done .task-check {
  border-color: var(--pink-mid);
  background: var(--pink-mid);
}
.task-item.is-done .task-check svg { opacity: 1; transform: scale(1); }
.task-item.is-done .task-text {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: #DDD2C6;
}

.task-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.task-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  transition: color .2s;
  word-break: break-all;
}

.task-meta { display: flex; align-items: center; gap: 5px; }

.pri {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: .05em;
}
.pri-high { background: var(--pink-soft); color: #C4707C; }
.pri-mid  { background: var(--yellow-soft); color: #A9803E; }
.pri-low  { background: #EFF3EE; color: #8A987F; }

.task-cat { font-size: 9.5px; color: var(--ink-3); }

.task-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
  color: var(--ink-3);
}
.tf-count { font-weight: 600; color: var(--ink-2); }

.btn-claim {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--cream-2);
  color: #B4A08C;
  font-size: 10.5px;
  font-weight: 700;
  transition: all .22s ease;
}
.btn-claim.is-ready {
  background: linear-gradient(135deg, var(--yellow), #F5D194);
  color: #8A6321;
  box-shadow: 0 3px 10px rgba(240, 205, 135, .4);
}
.btn-claim.is-ready:active { transform: scale(.96); }
.btn-claim.is-claimed {
  background: var(--cream-2);
  color: #C4B8AB;
  pointer-events: none;
}

/* ---------- 灵感速记 ---------- */
.note-input-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
#quickNote {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--cream-1);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  transition: border-color .2s ease, background .2s ease;
}
#quickNote:focus { border-color: var(--pink); background: #FFFDFB; }
#quickNote::placeholder { color: #C4B7AC; }

.btn-round {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), #F8D5BE);
  color: #7A4A52;
  box-shadow: 0 4px 12px rgba(233, 160, 172, .32);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-round:active { transform: scale(.92); box-shadow: 0 2px 6px rgba(233, 160, 172, .3); }

.note-hint {
  min-height: 0;
  overflow: hidden;
  font-size: 11px;
  color: var(--ink-3);
  transition: all .25s ease;
}
.note-hint.is-show { min-height: 20px; padding-top: 9px; }

/* ---------- 每日英语 ---------- */
.card-en {
  background: linear-gradient(135deg, #FBE3E6 0%, #F9E9DA 100%);
  box-shadow: 0 6px 20px rgba(238, 190, 190, .18);
}
.en-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.en-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #C08A93;
}
.card-en .icon-fav { color: #D8AEB2; }
.card-en .icon-fav.is-on { color: #B95F6E; }
.card-en .icon-fav.is-on svg { fill: #fff; }
.en-text {
  font-size: 16.5px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: .005em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(190, 130, 140, .25);
}
.en-cn { margin-top: 7px; font-size: 12px; line-height: 1.7; color: #8D7370; }
.en-from {
  display: inline-block;
  margin-top: 9px;
  font-size: 10px;
  letter-spacing: .1em;
  color: #C9A8A8;
  text-transform: uppercase;
}

.icon-fav {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C9B9AC;
  transition: all .2s ease;
}
.icon-fav.is-on { color: var(--pink-deep); }
.icon-fav.is-on svg { fill: var(--pink); }
.icon-fav:active { transform: scale(.9); }

/* ---------- 分段控件 ---------- */
.seg {
  position: relative;
  display: flex;
  padding: 3px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--cream-2);
}
.seg-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  height: 30px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: .04em;
  transition: color .24s ease;
}
.seg-btn.is-on { color: var(--ink); }
.seg-thumb {
  position: absolute;
  z-index: 1;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 9px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(150, 128, 108, .12);
  transition: transform .3s cubic-bezier(.3, .9, .4, 1);
}
.seg-thumb.is-right { transform: translateX(100%); }

/* ---------- 精选列表 ---------- */
.feed-list { display: flex; flex-direction: column; gap: 10px; }

.feed-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--cream-1);
  animation: fadeUp .4s both;
}

.fi-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--sh-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.fi-body { flex: 1; min-width: 0; }
.fi-title { font-size: 13.5px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.fi-desc { margin-top: 2px; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }
.fi-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}
.fi-tag {
  font-size: 9.5px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--pink-soft);
  color: #C4707C;
  letter-spacing: .04em;
}
.fi-src { font-size: 10px; color: #BEB2A6; letter-spacing: .02em; }

/* 今日一读卡片 */
.fi-card {
  display: block;
  padding: 14px 14px 12px;
  background: #fff;
  box-shadow: var(--sh-xs);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.fi-card:active {
  transform: scale(.985);
  box-shadow: 0 2px 8px rgba(120, 96, 78, .07);
}
.fi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.fi-len { font-size: 9.5px; color: #C0B4A8; }
.fi-card .fi-title { font-size: 14px; line-height: 1.5; }
.fi-card .fi-desc { margin-top: 5px; line-height: 1.7; }
.fi-go {
  margin-top: 9px;
  font-size: 10px;
  font-weight: 600;
  color: var(--pink-deep);
  letter-spacing: .02em;
  opacity: .85;
}
.fi-go span { display: inline-block; transition: transform .18s; }
.fi-card:active .fi-go span { transform: translateX(3px); }

.feed-more {
  width: 100%;
  height: 36px;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--cream-1);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
}
.feed-more:active { background: var(--pink-soft); color: var(--pink-deep); }
.feed-more span { margin-left: 3px; }

/* ---------- 内页头 ---------- */
.page-head { padding: 12px 2px 14px; }
.ph-title { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.ph-sub { margin-top: 5px; font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 13px;
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--sh-xs);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.chip.is-on {
  color: #B95F6E;
  box-shadow: inset 0 0 0 1.5px var(--pink-mid), var(--sh-xs);
  background: var(--pink-soft);
}

/* ---------- 施工占位 ---------- */
.wip {
  margin-top: 24px;
  padding: 40px 26px;
  text-align: center;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--sh-xs);
}
.wip-icon { font-size: 30px; margin-bottom: 14px; }
.wip h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.wip p { font-size: 12px; line-height: 1.9; color: var(--ink-3); }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-w);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: center;
  background: rgba(252, 248, 242, .92);
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  border-top: 1px solid var(--line);
}
@media (min-width: 560px) {
  .tabbar { bottom: 24px; border-radius: 0 0 32px 32px; }
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--tab-h);
  color: #BCB0A4;
  transition: color .22s ease, transform .18s ease;
}
.tab-ic {
  font-size: 20px;
  line-height: 1;
  filter: grayscale(.25);
  opacity: .75;
  transition: all .22s ease;
}
.tab span:not(.tab-ic):not(.plus-inner) { font-size: 10px; letter-spacing: .04em; }
.tab.is-active { color: var(--pink-deep); }
.tab.is-active .tab-ic {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-1px) scale(1.08);
}

/* 中间大按钮 */
.tab-plus {
  flex: 0 0 74px;
  height: var(--tab-h);
  position: relative;
  gap: 0;
}
.plus-inner {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #F7C7CD 0%, #F3B9BF 45%, #F6CFA6 100%);
  color: #7A4149;
  border: 3.5px solid #FCF8F2;
  box-shadow: 0 8px 20px rgba(226, 150, 160, .38), 0 2px 6px rgba(226, 150, 160, .22);
  transition: transform .22s cubic-bezier(.3, 1.4, .5, 1), box-shadow .22s ease;
}
.tab-plus:active .plus-inner {
  transform: translateX(-50%) scale(.93);
  box-shadow: 0 4px 12px rgba(226, 150, 160, .34);
}
.plus-label {
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  font-size: 9.5px;
  letter-spacing: .04em;
  color: #BF8C93;
}

/* ---------- 启动页 ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-1);
  overflow: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}
.splash.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.splash-glow.s1 {
  top: -18%;
  right: -22%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(244, 195, 202, .65), rgba(251, 234, 236, .3) 55%, transparent 72%);
  animation: floatA 14s ease-in-out infinite;
}
.splash-glow.s2 {
  bottom: -22%;
  left: -26%;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, rgba(248, 220, 168, .55), rgba(253, 242, 220, .28) 55%, transparent 72%);
  animation: floatB 17s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-18px, 22px) scale(1.07); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -16px) scale(1.06); }
}

.splash-inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 0 34px;
  display: flex;
  flex-direction: column;
  animation: fadeIn .7s ease both;
}

.splash-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 16px 36px rgba(206, 123, 137, .28), 0 0 0 6px rgba(255, 255, 255, .85);
  animation: fadeIn .8s ease both, floaty 3.4s ease-in-out .8s infinite;
}

.splash-brand {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: .16em;
  color: #B98E96;
  margin: -4px 0 24px;
  animation: fadeIn .9s ease both;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-avatar { animation: fadeIn .8s ease both; }
}

.splash-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.sd-num {
  font-family: "Songti SC", Georgia, serif;
  font-size: 54px;
  line-height: .88;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--ink);
}
.sd-line { width: 26px; height: 1px; background: var(--line-strong); }
.sd-meta {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.splash-body { flex: 1; }

.greet-row { display: flex; align-items: center; gap: 9px; }
.splash-greet {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--ink);
  max-width: 250px;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  border-bottom: 1px solid transparent;
}
.splash-greet.is-editing {
  border-bottom-color: var(--pink);
}

.greet-edit {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #C3B4A6;
  transition: all .2s ease;
}
.greet-edit:active { background: var(--cream-2); transform: scale(.9); }

.splash-quote {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: .02em;
  color: var(--ink-3);
  max-width: 280px;
}

.splash-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  margin-top: 52px;
  border-radius: 24px;
  background: linear-gradient(135deg, #F7C7CD 0%, #F5C3AE 60%, #F8DCA8 100%);
  color: #713F47;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: .06em;
  box-shadow: 0 10px 26px rgba(230, 160, 165, .34);
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s ease;
}
.splash-cta:active {
  transform: scale(.96);
  box-shadow: 0 5px 14px rgba(230, 160, 165, .3);
}

.splash-foot {
  margin-top: 34px;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: #C9BBB0;
}

/* ---------- 底部抽屉 ---------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(60, 48, 42, .28);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.sheet-mask.is-open { opacity: 1; visibility: visible; }

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 160;
  width: 100%;
  max-width: var(--app-w);
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 26px 26px 0 0;
  background: var(--cream-0);
  box-shadow: 0 -10px 40px rgba(90, 70, 58, .14);
  transform: translate(-50%, 100%);
  transition: transform .36s cubic-bezier(.2, .9, .3, 1);
}
.sheet.is-open { transform: translate(-50%, 0); }

.sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 2px;
  background: var(--line-strong);
}
.sheet-title {
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 12px;
}

.plus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 6px 0 16px;
}
.plus-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 6px 14px;
  border-radius: var(--r-md);
  background: var(--cream-1);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-2);
  transition: transform .18s ease, background .18s ease;
}
.plus-item:active { transform: scale(.96); background: var(--pink-soft); }
.plus-item .pi-emoji {
  font-size: 21px;
  line-height: 1;
}

.sheet-cancel {
  width: 100%;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--cream-2);
  color: var(--ink-2);
  font-size: 13.5px;
}

#sheetNoteText {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: var(--cream-1);
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
}
#sheetNoteText:focus { border-color: var(--pink); }

.sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 16px;
}
.tag-pick {
  padding: 5px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--cream-1);
  font-size: 11.5px;
  color: var(--ink-3);
  transition: all .18s ease;
}
.tag-pick.is-on {
  background: var(--pink-soft);
  border-color: var(--pink);
  color: #B4636F;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + 26px);
  z-index: 300;
  transform: translate(-50%, 14px);
  max-width: 78%;
  padding: 10px 18px;
  border-radius: 20px;
  background: rgba(59, 52, 48, .93);
  color: #FBF7F0;
  font-size: 12.5px;
  letter-spacing: .02em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease, transform .26s cubic-bezier(.2, .9, .3, 1);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 金币飞入 */
@keyframes popCoin {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.coin-chip.is-pop { animation: popCoin .5s ease; }

/* ==========================================================
   计划中心
   ========================================================== */
.plan-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.ptab {
  flex: 1;
  height: 36px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--sh-xs);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  transition: all .22s ease;
}
.ptab.is-on {
  background: var(--pink-soft);
  color: #B95F6E;
  box-shadow: inset 0 0 0 1.5px var(--pink-mid), var(--sh-xs);
}

.plan-pane { display: none; }
.plan-pane.is-on { display: block; animation: fadeUp .3s both; }

/* 添加卡 */
.add-card { padding: 13px; }
.inp {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  background: var(--cream-1);
  border: 1px solid var(--line);
  font-size: 13px;
  transition: all .2s ease;
}
.inp:focus { border-color: var(--pink); background: #fff; }
.inp::placeholder { color: #C8BCB0; }

.add-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.sel {
  height: 38px;
  padding: 0 10px;
  border-radius: 11px;
  background: var(--cream-1);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23B0A69C' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 26px;
  flex: 1;
}
.btn-add {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--pink) 0%, #F7D2B8 100%);
  color: #6B4249;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(233, 165, 175, .28);
  transition: transform .18s ease;
}
.btn-add:active { transform: scale(.96); }

.week-hint {
  flex: 1;
  font-size: 11px;
  color: var(--ink-3);
}

.mini-count { font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }

/* 领奖条 */
.claim-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--cream-1);
  font-size: 11.5px;
  color: var(--ink-3);
}
.claim-bar.is-ready { background: linear-gradient(135deg, #FEF8EC, #FDF1DC); }
.claim-bar.is-claimed { background: #F5F2EC; }
.claim-bar .cb-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 13px;
  border-radius: 15px;
  background: var(--cream-3);
  color: #B4A08C;
  font-size: 11.5px;
  font-weight: 700;
}
.claim-bar.is-ready .cb-btn {
  background: linear-gradient(135deg, var(--yellow), #F5D194);
  color: #8A6321;
  box-shadow: 0 3px 10px rgba(240, 205, 135, .4);
}
.claim-bar.is-claimed .cb-btn { color: #C4B8AB; pointer-events: none; }

/* 任务删除 */
.task-del {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D9CEC3;
  font-size: 14px;
  line-height: 1;
  opacity: .8;
  transition: all .18s ease;
}
.task-del:active { background: var(--pink-soft); color: var(--pink-deep); }

/* 复盘 */
.review-card { margin-top: 12px; }
.review-item { margin-bottom: 13px; }
.review-item:last-child { margin-bottom: 2px; }
.review-item label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.review-item textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 13px;
  background: var(--cream-1);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  transition: all .2s ease;
}
.review-item textarea:focus { border-color: var(--pink); background: #fff; }
.review-item textarea::placeholder { color: #C8BCB0; }

/* 今日善意 */
.review-kind {
  margin-top: 4px;
  padding: 13px 13px 5px;
  border-radius: 15px;
  background: linear-gradient(160deg, #FDF4E9 0%, #FDF0F2 100%);
}
.review-kind label { color: #A9714F; }
.review-kind textarea {
  background: rgba(255, 255, 255, .72);
  border-color: #F0DFD2;
  min-height: 58px;
}
.review-kind textarea:focus { background: #fff; border-color: #E9C9A8; }
.review-kind textarea::placeholder { color: #C9AE9B; }

/* 目标统计 */
.goal-stat {
  display: flex;
  align-items: center;
  padding: 16px 8px;
}
.gs-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.gs-item b {
  font-size: 19px;
  font-weight: 800;
  color: var(--pink-deep);
  letter-spacing: -.01em;
}
.gs-item span { font-size: 10.5px; color: var(--ink-3); }
.gs-divider { width: 1px; height: 26px; background: var(--line); }

/* 目标卡 */
.goal-card {
  margin-bottom: 12px;
  padding: 15px 16px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-xs);
  animation: fadeUp .3s both;
}
.goal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}
.goal-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-all;
}
.goal-title.is-done { color: var(--ink-3); text-decoration: line-through; text-decoration-color: #DDD2C6; }
.goal-del {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D9CEC3;
  font-size: 15px;
  line-height: 1;
}
.goal-pct {
  font-size: 11.5px;
  color: var(--pink-deep);
  font-weight: 700;
}
.goal-bar-wrap { margin-top: 10px; }
.goal-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  outline: none;
  background: linear-gradient(90deg, var(--pink-mid) 0%, var(--pink-mid) var(--p, 0%), #F2ECE3 var(--p, 0%), #F2ECE3 100%);
}
.goal-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--pink-mid);
  box-shadow: 0 2px 8px rgba(200, 150, 160, .3);
  cursor: grab;
}
.goal-range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.08); }
.goal-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--pink-mid);
  box-shadow: 0 2px 8px rgba(200, 150, 160, .3);
}
.goal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 10px;
  color: var(--ink-3);
}

.empty-tip {
  padding: 26px 0 18px;
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-3);
}
.empty-tip .et-emoji { display: block; font-size: 26px; margin-bottom: 8px; opacity: .8; }

/* ==========================================================
   知识区
   ========================================================== */
.k-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.ktab {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--sh-xs);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  white-space: nowrap;
  transition: all .22s ease;
}
.ktab.is-on {
  background: var(--pink-soft);
  color: #B95F6E;
  box-shadow: inset 0 0 0 1.5px var(--pink-mid), var(--sh-xs);
}

.k-pane { display: none; }
.k-pane.is-on { display: block; animation: fadeUp .3s both; }

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.sec-title { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.coin-mini {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FEF7E8, #FDF0DC);
  color: #B08A45;
  font-size: 11px;
  font-weight: 600;
}
.coin-mini b { color: #8A6321; }

/* ---------- 灵感随笔时间线 ---------- */
.tag-filter {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.tag-chip {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--sh-xs);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}
.tag-chip.is-on {
  background: var(--pink-soft);
  color: #B95F6E;
  box-shadow: inset 0 0 0 1.4px var(--pink-mid);
}

.timeline { position: relative; padding-left: 18px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 10px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--pink), var(--line) 70%, transparent);
  border-radius: 1px;
}
.tl-item { position: relative; margin-bottom: 12px; }
.tl-dot {
  position: absolute;
  left: -18px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink-mid);
  border: 2px solid var(--cream-1);
  box-shadow: 0 0 0 1.5px var(--pink);
}
.tl-card {
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-xs);
}
.tl-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.tl-tag {
  font-size: 9.5px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--pink-soft);
  color: #C4707C;
}
.tl-time { font-size: 10px; color: var(--ink-3); margin-left: auto; }
.tl-text { font-size: 13px; line-height: 1.75; color: var(--ink); word-break: break-word; white-space: pre-wrap; }
.tl-del {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D9CEC3;
  font-size: 14px;
  line-height: 1;
}

/* ---------- 英文 ---------- */
.en-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.en-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-xs);
  min-width: 0;
}
.ec-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ec-ic {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--cream-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.ec-label { font-size: 10.5px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.ec-btn {
  margin-left: auto;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), #F8D8C4);
  color: #7A4650;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
.ec-btn.is-done {
  background: var(--cream-2);
  color: #B9AC9F;
  pointer-events: none;
}
.ec-body { flex: 1; min-width: 0; }
.ec-quote {
  font-size: 12.5px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}
.ec-src { display: block; margin-top: 7px; font-size: 9.5px; color: var(--ink-3); letter-spacing: .06em; }
.ec-word-main {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}
.ec-ph { font-size: 10px; color: var(--ink-3); margin-left: 2px; }
.ec-cn { margin-top: 6px; font-size: 11.5px; color: var(--ink-2); }
.ec-eg {
  margin-top: 6px;
  padding-left: 8px;
  border-left: 2px solid var(--pink);
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--ink-3);
}
.ec-art-title { font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }
.ec-art-body { font-size: 11px; line-height: 1.72; color: var(--ink-2); }
.ec-prompt { font-size: 12.5px; line-height: 1.7; font-weight: 600; color: var(--ink); }
.ec-hint { margin-top: 7px; font-size: 10.5px; line-height: 1.6; color: var(--ink-3); }
.ec-textarea {
  width: 100%;
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--cream-1);
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
}
.ec-textarea:focus { border-color: var(--pink); background: #fff; }

.ec-fav {
  align-self: flex-start;
  margin-top: 9px;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--cream-1);
  color: #C0B2A6;
  font-size: 9.5px;
  font-weight: 600;
  transition: all .18s ease;
}
.ec-fav.is-on { background: var(--pink-soft); color: #C4707C; }

.fav-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #F8F3EB;
}
.fav-row:last-child { border-bottom: none; }
.fav-body { flex: 1; min-width: 0; }
.fav-text { font-size: 12px; line-height: 1.65; color: var(--ink); }
.fav-sub { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); }

/* ---------- 视觉灵感 ---------- */
.vis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.vis-card {
  padding: 13px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-xs);
  animation: fadeUp .35s both;
}
.vc-ic { font-size: 20px; }
.vc-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--pink-soft);
  color: #C4707C;
  font-size: 9px;
}
.vc-title { margin-top: 7px; font-size: 12.5px; font-weight: 700; line-height: 1.45; }
.vc-desc { margin-top: 3px; font-size: 10.5px; line-height: 1.6; color: var(--ink-3); }

.chip-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
}
.chip-sm {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 11px;
  border-radius: 14px;
  background: var(--cream-1);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}
.chip-sm.is-on { background: var(--pink-soft); color: #B95F6E; box-shadow: inset 0 0 0 1.4px var(--pink-mid); }

.pal-row {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #F8F3EB;
}
.pal-row:last-child { border-bottom: none; }
.pal-info { flex: 1; min-width: 0; }
.pal-name { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.swatches { display: flex; gap: 5px; }
.swatch {
  flex: 1;
  height: 30px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
  transition: transform .16s ease;
}
.swatch:active { transform: scale(.94); }
.pal-hint { font-size: 9.5px; color: var(--ink-3); margin-top: 5px; }

.vf-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #F8F3EB;
}
.vf-row:last-child { border-bottom: none; }
.vf-title { font-size: 12px; font-weight: 600; color: var(--ink); }
.vf-note { margin-top: 2px; font-size: 10.5px; line-height: 1.6; color: var(--ink-3); word-break: break-all; }

.btn-ghost {
  width: 100%;
  height: 40px;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  background: var(--cream-1);
}
.btn-ghost:active { background: var(--pink-soft); color: var(--pink-deep); }

.color-row {
  display: none;
  gap: 8px;
  margin: 12px 0 16px;
}
.color-row.is-show { display: flex; }
.color-row input[type="color"] {
  flex: 1;
  height: 42px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

#visTitleInput, #visNoteInput {
  width: 100%;
  margin-bottom: 10px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--cream-1);
  border: 1px solid var(--line);
  font-size: 13px;
}
#visNoteInput { line-height: 1.7; }
#visTitleInput:focus, #visNoteInput:focus { border-color: var(--pink); background: #fff; }

/* ---------- 阅读日记 ---------- */
.read-streak {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  background: linear-gradient(135deg, #FEF6EC 0%, #FDF0F1 100%);
}
.rs-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rs-fire { font-size: 22px; }
.rs-info b { font-size: 17px; font-weight: 800; color: var(--ink); }
.rs-info p { margin-top: 2px; font-size: 10.5px; color: #A9948A; line-height: 1.5; }

.k-sub-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.stab {
  flex: 1;
  height: 34px;
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--sh-xs);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}
.stab.is-on { background: var(--pink-soft); color: #B95F6E; box-shadow: inset 0 0 0 1.4px var(--pink-mid); }

.add-inline { display: flex; gap: 8px; }
.add-inline .inp { flex: 1; }
.inp-sm { flex: 1; height: 38px; padding: 0 11px; }

.book-card {
  margin-bottom: 12px;
  padding: 14px 15px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-xs);
}
.bk-top { display: flex; align-items: flex-start; gap: 11px; }
.bk-cover {
  flex-shrink: 0;
  width: 48px;
  height: 62px;
  border-radius: 9px;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.bk-info { flex: 1; min-width: 0; }
.bk-title { font-size: 14px; font-weight: 700; line-height: 1.4; }
.bk-author { margin-top: 2px; font-size: 11px; color: var(--ink-3); }
.bk-tags { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.bk-tag {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--yellow-soft);
  color: #A9803E;
}
.bk-prog { margin-top: 12px; }
.bk-prog-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.bk-prog-top b { font-size: 12px; color: var(--pink-deep); }
.bk-track { height: 7px; border-radius: 4px; background: #F2ECE3; overflow: hidden; }
.bk-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pink), var(--pink-mid));
  transition: width .35s cubic-bezier(.3, 1, .4, 1);
}
.bk-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.bk-range { flex: 1; }
.bk-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: var(--cream-1);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}
.bk-btn:active { background: var(--pink-soft); color: var(--pink-deep); }
.bk-note {
  width: 100%;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--cream-1);
  border: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.7;
}
.bk-note:focus { border-color: var(--pink); background: #fff; }

.reco-card {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-xs);
}
.reco-info { flex: 1; min-width: 0; }
.reco-blurb { margin-top: 6px; font-size: 11px; line-height: 1.65; color: var(--ink-3); }
.reco-add {
  margin-top: 9px;
  height: 30px;
  padding: 0 13px;
  border-radius: 15px;
  background: var(--cream-1);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
}
.reco-add.is-added { background: var(--pink-soft); color: #B95F6E; pointer-events: none; }

/* 推荐工具栏 */
.reco-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 10px 0 12px;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--sh-xs);
  color: var(--ink-3);
  min-width: 0;
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-size: 12.5px;
  color: var(--ink);
}
.search-box input::placeholder { color: #C4B7AB; }
.search-clear {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.search-clear.is-show { display: block; }

.btn-refresh {
  flex-shrink: 0;
  height: 40px;
  padding: 0 13px;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--sh-xs);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  transition: all .18s ease;
}
.btn-refresh:active { background: var(--pink-soft); color: #B95F6E; transform: scale(.97); }

.reco-count {
  margin: 0 2px 10px;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

.reco-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}
.reco-read {
  height: 30px;
  padding: 0 13px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--pink), #F8D8C4);
  color: #7A4650;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.reco-empty {
  padding: 34px 20px;
  text-align: center;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-xs);
}
.reco-empty .re-emoji { display: block; font-size: 28px; margin-bottom: 10px; }
.reco-empty h5 { font-size: 13.5px; margin-bottom: 6px; }
.reco-empty p { font-size: 11.5px; line-height: 1.7; color: var(--ink-3); margin-bottom: 14px; }
.reco-empty .btn-primary { height: 42px; font-size: 13px; max-width: 220px; margin: 0 auto; }

/* ==========================================================
   生活区
   ========================================================== */
.coin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  background: linear-gradient(135deg, #FEF8EC 0%, #FDF1F2 100%);
}
.cb-left b { font-size: 22px; font-weight: 800; color: #A9803E; }
.cb-left span { font-size: 11.5px; color: #B09268; margin-left: 3px; }
.cb-left p { margin-top: 3px; font-size: 10.5px; color: #AC9A88; }

.life-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 11px;
}
.lg-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 16px 14px 14px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-xs);
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}
.lg-item:active { transform: scale(.975); box-shadow: var(--sh-sm); }
.lg-emoji { font-size: 23px; line-height: 1; }
.lg-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.lg-desc { font-size: 10.5px; line-height: 1.5; color: var(--ink-3); }
.lg-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--pink-soft);
  color: #C4707C;
}
.lg-item { position: relative; }

.wide-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin-bottom: 11px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #FFFDF9 0%, #F8F1FA 100%);
  box-shadow: var(--sh-xs);
  text-align: left;
  transition: transform .18s ease;
}
.wide-card:active { transform: scale(.985); }
.wc-emoji { font-size: 24px; }
.wc-body { flex: 1; min-width: 0; }
.wc-body b { font-size: 14px; font-weight: 700; }
.wc-body p { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); }
.wc-arrow { color: #C9BAB0; font-size: 15px; }

/* 子页 */
.sub-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 12px;
  margin: 6px 0 12px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--sh-xs);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.sub-title { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.sub-body { padding-bottom: 8px; }

/* ---------- 健康 ---------- */
.dish-card {
  padding: 13px 14px;
  margin-bottom: 10px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-xs);
}
.dc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.dc-name { font-size: 13.5px; font-weight: 700; }
.dc-note { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); line-height: 1.6; }
.dc-meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.dc-pill {
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--cream-1);
  color: var(--ink-3);
}
.dc-pill.kcal { background: var(--yellow-soft); color: #A9803E; }
.dc-pill.price { background: #EFF3EE; color: #7C8B79; }
.dc-link {
  font-size: 10.5px;
  color: var(--pink-deep);
  text-decoration: none;
  font-weight: 600;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.form-row label {
  flex: 0 0 62px;
  font-size: 11.5px;
  color: var(--ink-2);
}
.form-row .inp { flex: 1; height: 38px; font-size: 12.5px; }

.bmi-box {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.bmi-item {
  flex: 1;
  padding: 14px 10px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-xs);
  text-align: center;
}
.bmi-item b { display: block; font-size: 20px; font-weight: 800; color: var(--pink-deep); }
.bmi-item span { font-size: 10px; color: var(--ink-3); }
.bmi-item small { display: block; margin-top: 3px; font-size: 9.5px; color: #B9A99E; }

.meal-day {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-xs);
}
.md-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.md-head b { font-size: 13.5px; font-weight: 700; }
.md-head span { font-size: 10.5px; color: var(--ink-3); }
.meal-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #F8F3EB;
}
.meal-line:last-of-type { border-bottom: none; }
.ml-tag {
  flex-shrink: 0;
  width: 34px;
  font-size: 9.5px;
  padding: 2px 0;
  text-align: center;
  border-radius: 4px;
  background: var(--pink-soft);
  color: #C4707C;
}
.ml-body { flex: 1; font-size: 11.5px; line-height: 1.6; color: var(--ink); }
.ml-kcal { flex-shrink: 0; font-size: 10px; color: var(--ink-3); }
.budget-warn {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #FDF0EF;
  color: #C4707C;
  font-size: 11px;
  line-height: 1.6;
}

.ex-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid #F8F3EB;
}
.ex-row:last-child { border-bottom: none; }
.ex-emoji { font-size: 18px; }
.ex-body { flex: 1; min-width: 0; }
.ex-name { font-size: 12.5px; font-weight: 600; }
.ex-meta { font-size: 10px; color: var(--ink-3); margin-top: 2px; }

.heatmap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.hm-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  background: #F6F1E8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #C0B4A8;
}
.hm-cell.lv1 { background: #FBE0E3; color: #B4747F; }
.hm-cell.lv2 { background: #F5C4CA; color: #8F5561; }
.hm-cell.lv3 { background: #EBA0AB; color: #fff; }
.hm-cell.lv4 { background: #D97F8E; color: #fff; }
.hm-cell.is-today { box-shadow: 0 0 0 2px var(--yellow-mid); }
.hm-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 6px; }
.hm-week span { text-align: center; font-size: 9px; color: var(--ink-3); }
.hm-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 9.5px;
  color: var(--ink-3);
}
.hm-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.video-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  margin-bottom: 10px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-xs);
  transition: box-shadow .2s, transform .2s;
}
.video-card.is-cur {
  box-shadow: 0 0 0 1.6px var(--pink-mid), var(--sh-sm);
}
.vc-thumb {
  position: relative;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  overflow: hidden;
}
.vc-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  background: rgba(61, 56, 51, .42);
  opacity: 0;
  transition: opacity .18s;
}
.vc-thumb:hover .vc-play,
.vc-thumb:active .vc-play { opacity: 1; }
.vc-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.vc-acts .bk-btn { height: 26px; padding: 0 11px; }
.mc-del {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 12px;
  background: var(--cream-2);
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.mc-del:active { background: #F3DCDC; color: #B45C58; }

/* 添加视频 */
.btn-sm-full {
  width: 100%;
  height: 38px;
  margin-top: 8px;
  font-size: 12.5px;
}
.add-hint {
  font-size: 9.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 8px 0 0;
}

/* 视频播放弹层 */
.vid-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.vid-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(35, 30, 26, .72);
  backdrop-filter: blur(6px);
}
.vid-modal-body {
  position: relative;
  width: 100%;
  max-width: 720px;
  border-radius: 18px;
  background: var(--cream-0);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  animation: popIn .26s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to { opacity: 1; transform: none; }
}
.vid-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.vid-modal-x {
  border: 0;
  background: var(--cream-2);
  color: var(--ink-2);
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 11px;
  cursor: pointer;
}
.vid-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.vid-frame iframe,
.vid-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vid-modal-foot {
  display: flex;
  gap: 8px;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
}
.vid-modal-foot .btn-ghost {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
}
@media (max-width: 559px) {
  .vid-modal { padding: 0; align-items: center; }
  .vid-modal-body { border-radius: 16px; margin: 0 10px; }
}

/* 计时器 */
.timer-box {
  margin: 14px 0;
  padding: 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #FEF7EC, #FDF0F1);
  text-align: center;
}
.timer-num {
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}
.timer-sub { font-size: 10.5px; color: #B29C8C; margin-top: 4px; }

/* ---------- 穿搭 ---------- */
.ward-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}
.wd-card {
  position: relative;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-xs);
  overflow: hidden;
}
.wd-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #C9BCB0;
  object-fit: cover;
}
.wd-info { padding: 7px 8px 8px; }
.wd-name { font-size: 10.5px; font-weight: 600; line-height: 1.4; }
.wd-sub { font-size: 9px; color: var(--ink-3); margin-top: 2px; }
.wd-del {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: #B0A296;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weather-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 13px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #FEF8F0, #F6F0FA);
  box-shadow: var(--sh-xs);
}
.wt-temp { font-size: 30px; font-weight: 800; color: var(--ink); }
.wt-info { flex: 1; }
.wt-city { font-size: 12px; font-weight: 700; }
.wt-desc { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.wt-refresh {
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink-3);
  box-shadow: var(--sh-xs);
}

.outfit-card {
  margin-bottom: 11px;
  padding: 15px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-xs);
}
.of-scene {
  display: inline-block;
  font-size: 9.5px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--pink-soft);
  color: #C4707C;
  margin-bottom: 9px;
}
.of-items { display: flex; flex-direction: column; gap: 7px; }
.of-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink);
}
.of-item i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink-mid);
  flex-shrink: 0;
}
.of-note {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

.analysis-block {
  margin-bottom: 12px;
  padding: 15px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-xs);
}
.ab-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.ab-item {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.ab-item .dot { color: var(--pink-mid); }

.color-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 5px;
  border-radius: 12px;
  background: var(--cream-1);
  font-size: 10px;
  color: var(--ink-2);
}
.cc-chip i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ---------- 闲话铺 ---------- */
.chat-layer {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  background: #F7F2EA;
}
.chat-layer.is-open { display: block; }
@media (min-width: 560px) {
  .chat-layer { left: 50%; transform: translateX(-50%); max-width: 480px; box-shadow: var(--sh-lg); }
}

.chat-welcome {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(165deg, #FDF6EC 0%, #F9F0F2 60%, #F6F3EE 100%);
}
.cw-glow { position: absolute; border-radius: 50%; filter: blur(46px); }
.cw-glow.g1 { top: -14%; right: -20%; width: 300px; height: 300px; background: rgba(244, 195, 202, .55); }
.cw-glow.g2 { bottom: -18%; left: -22%; width: 280px; height: 280px; background: rgba(248, 220, 168, .45); }
.cw-x {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1;
}
.cw-inner { position: relative; z-index: 2; padding: 0 32px; max-width: 400px; }
.cw-sign {
  font-size: 10px;
  letter-spacing: .38em;
  color: #C08A93;
  font-weight: 700;
}
.cw-inner h2 {
  margin-top: 14px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--ink);
}
.cw-text {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-2);
}
.cw-text b { color: #B95F6E; }
.cw-inner .splash-cta { margin-top: 34px; }
.cw-foot { margin-top: 26px; font-size: 10.5px; letter-spacing: .1em; color: #C2B2A6; }

.chat-room {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--cream-1);
}
.chat-room.is-on { display: flex; }

.chat-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 12px;
  background: rgba(252, 248, 242, .94);
  border-bottom: 1px solid var(--line);
}
.ch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  font-size: 16px;
}
.ch-info { flex: 1; min-width: 0; }
.ch-info b { display: block; font-size: 14px; font-weight: 700; }
.ch-info span { font-size: 9.5px; color: var(--ink-3); }

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg { display: flex; gap: 8px; max-width: 88%; animation: fadeUp .28s both; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.msg.me .msg-avatar { background: var(--pink-soft); }
.bubble {
  padding: 10px 13px;
  border-radius: 4px 15px 15px 15px;
  background: #fff;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  box-shadow: var(--sh-xs);
  word-break: break-word;
  white-space: pre-wrap;
}
.msg.me .bubble {
  border-radius: 15px 4px 15px 15px;
  background: linear-gradient(135deg, var(--pink) 0%, #F8D8C4 100%);
  color: #6B4249;
}
.bubble img { max-width: 180px; border-radius: 10px; display: block; }
.bubble .redpack {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
}
.bubble .rp-ic { font-size: 22px; }
.bubble .rp-txt b { display: block; font-size: 13px; color: #B95F6E; }
.bubble .rp-txt span { font-size: 10px; color: #B09A92; }

.typing { display: flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 4px 15px 15px 15px; width: fit-content; }
.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C9BBAF;
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.chat-input-row {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));
  background: rgba(252, 248, 242, .96);
  border-top: 1px solid var(--line);
}
.ci-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--cream-2);
}
.ci-btn:active { background: var(--pink-soft); }
#chatInput {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
}
#chatInput:focus { border-color: var(--pink); }
.ci-send {
  flex-shrink: 0;
  height: 36px;
  padding: 0 15px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink) 0%, #F8D2BA 100%);
  color: #6B4249;
  font-size: 12.5px;
  font-weight: 700;
}

.emoji-bar {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  background: var(--cream-2);
  border-top: 1px solid var(--line);
}
.emoji-bar.is-show { display: flex; }
.emoji-bar button {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 心愿 ---------- */
.sheet-sub {
  margin: -6px 0 12px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.wish-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #F8F3EB;
}
.wish-row:last-child { border-bottom: none; }
.wish-body { flex: 1; min-width: 0; }
.wish-title { font-size: 13px; font-weight: 600; }
.wish-cost { font-size: 10.5px; color: #B08A45; margin-top: 2px; }
.wish-row.is-redeemed .wish-title { color: var(--ink-3); text-decoration: line-through; }
.wish-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--yellow), #F5D194);
  color: #8A6321;
  font-size: 11px;
  font-weight: 700;
}
.wish-btn:disabled { background: var(--cream-2); color: #C0B4A8; }

.story-meta { font-size: 10.5px; color: var(--ink-3); margin: -4px 0 10px; }

/* 短篇阅读器 */
.sheet-tall {
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
}
.sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.sheet-head .sheet-title { margin-bottom: 2px; }
.story-len {
  flex-shrink: 0;
  font-size: 9.5px;
  color: var(--ink-3);
  background: var(--cream-2);
  padding: 2px 7px;
  border-radius: 6px;
}
.story-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 12px;
  flex-shrink: 0;
}
.story-cats::-webkit-scrollbar { display: none; }
.story-cats .chip { flex-shrink: 0; padding: 0 12px; height: 26px; font-size: 11px; }
.story-cats .chip.on {
  background: var(--pink-soft);
  color: #B95F6E;
  box-shadow: inset 0 0 0 1.4px var(--pink-mid);
}
.story-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 14px;
}
.story-body {
  font-size: 13.5px;
  line-height: 2.05;
  color: var(--ink);
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--cream-1);
}
.story-body p { margin: 0 0 14px; }
.story-body p:last-child { margin-bottom: 0; }
.story-body p:first-child::first-letter {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--pink-deep);
}
.story-acts {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.story-acts .btn-primary,
.story-acts .btn-ghost {
  width: auto;
  min-width: 0;
  margin-top: 0;
  height: 42px;
}
.story-acts .btn-primary { flex: 1; }
.story-acts .btn-ghost { flex-shrink: 0; padding: 0 18px; }

/* ---------- 文章阅读弹层 ---------- */
.nd-fav {
  flex-shrink: 0;
  margin: -2px 0 0;
  height: 26px;
  padding: 0 11px;
}
.nd-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
}
.nd-len { font-size: 10px; color: var(--ink-3); }
.nd-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 14px;
}
.nd-body {
  font-size: 13.5px;
  line-height: 2.05;
  color: var(--ink);
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--cream-1);
}
.nd-body p { margin: 0 0 14px; }
.nd-body p:last-child { margin-bottom: 0; }
.nd-insight {
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  background: linear-gradient(160deg, #FDF6E7 0%, #FBF0F3 100%);
  font-size: 11.5px;
  line-height: 1.85;
  color: #8B6A4E;
}
.nd-insight span { margin-right: 5px; }

/* 卡片可点提示 */
.news-card.is-open { cursor: pointer; transition: box-shadow .2s, transform .2s; }
.news-card.is-open:active { transform: scale(.994); box-shadow: var(--sh-xs); }
.nc-more {
  margin-top: 9px;
  font-size: 10px;
  color: var(--pink-deep);
  font-weight: 600;
  letter-spacing: .02em;
  opacity: .8;
}
.nc-more b { font-weight: 600; color: var(--ink-3); }

/* ---------- 移动端适配 ---------- */
/* iOS Safari：输入框字号小于 16px 会在聚焦时强制放大页面 */
@media (max-width: 559px) {
  input,
  textarea,
  select,
  #chatInput,
  #quickNote,
  #sheetNoteText,
  #visTitleInput,
  #visNoteInput,
  .inp,
  .ec-textarea,
  .bk-note,
  .review-item textarea {
    font-size: 16px !important;
  }
  #chatInput { height: 40px; font-size: 16px !important; }
  .ci-send { height: 38px; }
  .inp, #quickNote { line-height: 1.45; }
}

/* ---------- 行业特讯 ---------- */
.news-card {
  margin-bottom: 11px;
  padding: 15px 15px 13px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-xs);
  animation: fadeUp .35s both;
}
.nc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.nc-cat {
  font-size: 9.5px;
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: .04em;
  font-weight: 600;
}
.nc-cat.c1 { background: var(--pink-soft); color: #C4707C; }
.nc-cat.c2 { background: #EEF1FB; color: #6B7BC4; }
.nc-cat.c3 { background: var(--yellow-soft); color: #A9803E; }
.nc-cat.c4 { background: #EFF3EE; color: #7C8B79; }
.nc-cat.c5 { background: #FBF0E8; color: #B4794E; }
.nc-cat.c6 { background: #F2F0F8; color: #8378AE; }
.nc-cat.c7 { background: #FBEAEA; color: #BE6A63; }
.nc-cat.c8 { background: #EDF2F1; color: #6E8B85; }
.nc-cat.c9 { background: #F3F0E9; color: #8C7A5A; }

.nc-fav {
  flex-shrink: 0;
  height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  background: var(--cream-1);
  color: #B9AC9F;
  font-size: 10px;
  font-weight: 600;
  transition: all .18s ease;
}
.nc-fav.is-on { background: var(--yellow-soft); color: #A9803E; }

.nc-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.nc-desc {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.nc-insight {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--cream-1);
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-2);
}
.nc-insight span { flex-shrink: 0; }

/* ---------- 小屏适配 ---------- */
@media (max-height: 680px) {
  .splash-date { margin-bottom: 32px; }
  .sd-num { font-size: 44px; }
  .splash-greet { font-size: 26px; }
  .splash-quote { margin-top: 12px; font-size: 12.5px; line-height: 1.8; }
  .splash-cta { margin-top: 32px; height: 44px; }
  .splash-foot { margin-top: 22px; }
}

@media (max-width: 360px) {
  .main { padding-left: 13px; padding-right: 13px; }
  .hero { margin-left: -13px; margin-right: -13px; padding-left: 18px; padding-right: 18px; }
  .hero-greet { font-size: 21px; }
  .card { padding: 15px 14px 13px; }
  .plus-grid { gap: 8px; }
  .life-grid { gap: 9px; }
  .lg-item { padding: 14px 12px 12px; }
  .ward-grid { grid-template-columns: repeat(2, 1fr); }
}
