/* =========================================================
 * 《算了么》设计系统 · 参考图风格
 * 浅黄绿底 · 奶油卡 · 大色块 · 深色圆体字 · 圆润可爱
 * ========================================================= */
:root {
  /* 背景 / 表面 */
  --bg-top: #E9F4D9;
  --bg-mid: #F0F6E5;
  --bg: #F7F9F2;
  --cream: #FDF9EF;
  --cream-2: #FBF3E0;
  --white: #FFFFFF;

  /* 文字 */
  --text: #2B2B2B;
  --text-2: #6B6E5E;
  --text-3: #9AA08C;

  /* 品牌绿 */
  --green: #7CC242;
  /* 按钮专用绿：比品牌绿柔和，保护视力（上浅下深做过渡） */
  --btn-green: #88CF94;
  --btn-green-lt: #A6DBB0;
  --btn-ink: #27522F;
  --green-d: #5FA32C;
  --green-tint: #DCEFC4;
  --green-ink: #2F5606;

  /* 黄 */
  --yellow: #FBD24E;
  --yellow-d: #E8BC2E;
  --yellow-tint: #FBEEC2;
  --yellow-ink: #6B5209;

  /* 蓝 */
  --blue: #BFE3F0;
  --blue-tint: #CDE8F5;
  --blue-ink: #2C6480;

  /* 橙 */
  --orange: #F5A623;
  --orange-tint: #FBD9A8;
  --orange-ink: #8A5A10;

  /* 粉（警示/错误，柔和） */
  --danger: #F28482;
  --danger-tint: #FCE0DF;
  --danger-ink: #B23A36;

  --line: #2E2E2E;
  --locked-bg: #ECEAE0;
  --locked-text: #B0AC9C;

  --radius: 22px;
  --radius-sm: 16px;
  --radius-xs: 13px;
  --shadow: 0 4px 14px rgba(120, 120, 90, .13);
  --shadow-sm: 0 2px 8px rgba(120, 120, 90, .12);
  --inset: inset 0 -3px 0 rgba(0, 0, 0, .06);

  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --t: 200ms;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 品牌艺术字（站酷快乐体 · 仅「算了么」三字子集，离线可用） */
@font-face {
  font-family: "SuoLeMe Wordmark";
  src: url("../assets/font-zcool.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: "Yuanti SC", "YouYuan", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

body { display: flex; justify-content: center; align-items: center; }

#phone {
  width: 100%; max-width: 480px; height: 100%; max-height: 900px;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 120px, var(--bg) 300px);
}
@media (min-width: 520px) and (min-height: 700px) {
  #phone { border-radius: 34px; box-shadow: 0 26px 60px rgba(120, 120, 90, .22); }
}

#screen {
  position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 22px 16px 104px;
}
/* 小程序 / 全面屏：顶部再让出状态栏高度，避免内容贴边 */
@supports (padding-top: env(safe-area-inset-top)) {
  #screen { padding-top: calc(22px + env(safe-area-inset-top)); }
  #tabbar { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

.hidden { display: none !important; }
:focus-visible { outline: 3px solid rgba(124, 194, 66, .5); outline-offset: 2px; border-radius: 12px; }

/* ---------- 通用 ---------- */
.card {
  background: var(--cream); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap { gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 800; }
.ui-icon { display: block; }
.pet-art { display: block; object-fit: contain; }

/* ---------- 按钮 ---------- */
.btn {
  border: none; outline: none; font-family: inherit;
  font-size: 17px; font-weight: 800; color: var(--btn-ink);
  background: linear-gradient(180deg, var(--btn-green-lt), var(--btn-green));
  padding: 15px 22px; border-radius: 999px; cursor: pointer; min-height: 56px;
  box-shadow: var(--shadow), inset 0 -3px 0 rgba(0, 0, 0, .12), inset 0 3px 0 rgba(255, 255, 255, .35);
  transition: transform var(--t) var(--ease-bounce), filter var(--t) var(--ease-soft);
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(3px) scale(.985); box-shadow: inset 0 -1px 0 rgba(0,0,0,.12); }
.btn.block { display: block; width: 100%; }
.btn.lg { font-size: 19px; padding: 18px 22px; min-height: 62px; }

.btn.ghost {
  background: var(--cream-2); color: var(--text);
  box-shadow: var(--shadow-sm), inset 0 -3px 0 rgba(0, 0, 0, .06);
}
.btn.cta {
  background: linear-gradient(180deg, #FFDD6B, var(--yellow)); color: var(--yellow-ink);
  box-shadow: var(--shadow), inset 0 -3px 0 rgba(0, 0, 0, .1), inset 0 3px 0 rgba(255, 255, 255, .45);
}
.btn.warn {
  background: linear-gradient(180deg, #FBC894, var(--orange)); color: var(--orange-ink);
}
.btn:disabled, .btn.disabled {
  background: var(--locked-bg) !important; color: var(--locked-text) !important;
  box-shadow: var(--inset) !important; pointer-events: none; filter: none;
}

/* ---------- 顶栏 ---------- */
.topbar { display: flex; align-items: center; gap: 12px; padding: 6px 2px 18px; }
.logo-tile {
  width: 56px; height: 56px; flex: 0 0 auto; border-radius: 18px;
  background: var(--green-tint); border: 2px solid #CBE8AC;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.logo { width: 44px; height: 44px; display: block; object-fit: contain; }
.brand {
  font-family: "SuoLeMe Wordmark", "Yuanti SC", "YouYuan", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 31px; font-weight: 400; letter-spacing: 2px; line-height: 1.12;
  color: #3E7A1E;
  background: linear-gradient(178deg, #86CC4E 0%, #5FA82A 48%, #3C7A17 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .95)) drop-shadow(0 3px 4px rgba(78, 154, 34, .3));
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand { -webkit-text-fill-color: #3E7A1E; }
}

/* 图形 + 文字一体的品牌标题 */
.brand-lockup { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.brand-logo {
  width: 52px; height: 52px; flex: 0 0 auto; display: block; object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(120, 120, 90, .22));
}
@media (max-width: 380px) {
  .brand-logo { width: 44px; height: 44px; }
  .brand { font-size: 26px; }
}
.points-pill {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  background: var(--cream); border: 2px solid #E8E0C8;
  border-radius: 999px; padding: 7px 16px 7px 11px;
  font-weight: 800; color: var(--orange-ink); box-shadow: var(--shadow-sm);
}
.points-pill .num { font-size: 20px; min-width: 18px; text-align: right; }

/* 顶部统计胶囊（积分 | 宠物Lv） */
/* 顶部统计（积分 / 宠物等级）—— 彩色小看板 */
.stat-capsule { margin-left: auto; display: flex; align-items: stretch; gap: 8px; }
.stat-capsule .sc {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 7px; border-radius: 16px;
  border: 2px solid transparent; box-shadow: var(--shadow-sm);
}
.stat-capsule .sc .sc-ico {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 10px;
  background: none;
  display: flex; align-items: center; justify-content: center;
}
.stat-capsule .sc .k { font-size: 11px; font-weight: 800; opacity: .82; line-height: 1.1; }
.stat-capsule .sc .v { font-size: 22px; font-weight: 900; line-height: 1.05; letter-spacing: -.3px; }
.stat-capsule .sc-coin { background: linear-gradient(160deg, #FDEBCF, #F8D49B); border-color: #EFC089; }
.stat-capsule .sc-coin .k { color: #9A6E28; }
.stat-capsule .sc-coin .v { color: #C1710E; }
.stat-capsule .sc-pet { background: linear-gradient(160deg, #E6F6E9, #CDEDBF); border-color: #A9D98C; }
.stat-capsule .sc-pet .k { color: #4E7A34; }
.stat-capsule .sc-pet .v { color: #3E7A1E; }
@media (max-width: 380px) {
  .stat-capsule { gap: 6px; }
  .stat-capsule .sc { padding: 5px 10px 5px 6px; gap: 5px; }
  .stat-capsule .sc .sc-ico { width: 26px; height: 26px; border-radius: 8px; }
  .stat-capsule .sc .v { font-size: 19px; }
}

/* ---------- 首页 ---------- */
/* 首页问候语：小一点、淡一点、清爽一点，但加个底色让它跳出来 */
.hello {
  display: flex; align-items: center; gap: 9px;
  margin: 0 2px 14px; padding: 10px 13px;
  background: linear-gradient(135deg, #EAF7DA 0%, #F4FBEC 62%, #FFF8E4 100%);
  border: 1.5px solid #D5EAB8; border-radius: 16px;
  box-shadow: 0 3px 10px rgba(126, 160, 92, .12);
}
.hello .hi {
  flex: 1; min-width: 0;
  font-size: 14.5px; font-weight: 800; color: #5E7A3A; line-height: 1.5;
  letter-spacing: .2px;
}
.hello .hi .nick { color: #2F6B12; font-weight: 900; }
.hello .hi .wish { color: #7B8F63; font-weight: 700; }
.hello .greet-emoji {
  flex: 0 0 auto; display: flex; filter: drop-shadow(0 1px 2px rgba(140, 110, 40, .18));
  animation: greetWiggle 3s var(--ease-soft) infinite;
}
@keyframes greetWiggle {
  0%, 72%, 100% { transform: translateY(0) rotate(0); }
  80% { transform: translateY(-3px) rotate(-9deg); }
  90% { transform: translateY(0) rotate(7deg); }
}

.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-card {
  position: relative; border-radius: var(--radius); cursor: pointer; user-select: none;
  box-shadow: var(--shadow); display: flex; overflow: hidden;
  transition: transform var(--t) var(--ease-bounce), box-shadow var(--t) var(--ease-soft);
}
.home-card:active { transform: translateY(3px) scale(.985); }

/* 权重分级：开始算 > 每日任务 > (我的宠物 = 宠物商城) > 设置题目 */
.home-card.hero {
  grid-column: span 2; min-height: 158px; padding: 20px;
  align-items: center; justify-content: space-between;
}
.home-card.wide { grid-column: span 2; min-height: 142px; padding: 20px; align-items: center; gap: 16px; }
.home-card.half { min-height: 100px; padding: 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
.home-card.strip { grid-column: span 2; min-height: 66px; padding: 12px 18px; align-items: center; gap: 12px; }

.hc-title { font-size: 20px; font-weight: 900; color: var(--text); }
.home-card.hero .hc-title { font-size: 26px; }
.home-card.half .hc-title { font-size: 17px; }
.home-card.strip .hc-title { font-size: 16px; }
.hc-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.4; }
.hc-art { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.hc-icon {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: none;
}
.home-card.half .hc-icon { width: 48px; height: 48px; border-radius: 15px; }
.home-card.strip .hc-icon { width: 42px; height: 42px; border-radius: 13px; }
/* 每日任务：醒目打卡 */
.home-card.wide .hc-icon { width: 62px; height: 62px; border-radius: 19px; }
.home-card.wide .hc-title { font-size: 22px; }
.home-card.wide .hc-sub { font-size: 14px; margin-top: 5px; }
.hc-cta {
  flex: 0 0 auto; font-weight: 900; font-size: 15px; padding: 12px 20px; border-radius: 999px;
  background: linear-gradient(180deg, #8FD14F, var(--green)); color: #fff;
  box-shadow: var(--shadow-sm), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.hc-cta.done { background: rgba(255, 255, 255, .78); color: var(--green-d); }

/* 打卡提示：小红点 + 绿色高亮描边 */
.hc-icon { position: relative; }
.hc-icon .dot {
  position: absolute; top: -4px; right: -4px; width: 15px; height: 15px; border-radius: 50%;
  background: #F2564B; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
  animation: dotPulse 1.6s var(--ease-soft) infinite;
}
@keyframes dotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }

.home-card.wide.urgent {
  box-shadow: 0 0 0 3px rgba(124, 194, 66, .7), 0 8px 20px rgba(124, 194, 66, .26);
  animation: ringPulse 2.4s var(--ease-soft) infinite;
}
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(124, 194, 66, .7), 0 8px 20px rgba(124, 194, 66, .24); }
  50% { box-shadow: 0 0 0 7px rgba(124, 194, 66, .18), 0 8px 20px rgba(124, 194, 66, .24); }
}

/* 大色块 */
.g-green  { background: linear-gradient(160deg, #E4F3C9, #D2E9AD); }
.g-yellow { background: linear-gradient(160deg, #FCEFC6, #F8E3A2); }
.g-blue   { background: linear-gradient(160deg, #D6EBF6, #BEDFF0); }
.g-orange { background: linear-gradient(160deg, #FCE0B8, #F8CE97); }
.g-cream  { background: linear-gradient(160deg, #FBF6E8, #F3ECD6); }
.home-card .hc-sub { color: #6E6A52; }

.home-card.locked { filter: grayscale(.35); opacity: .92; }
.lock-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255, 255, 255, .85); color: var(--text-2);
  font-size: 12px; padding: 4px 11px; border-radius: 999px; font-weight: 800;
}
.home-card .progress-mini {
  position: absolute; left: 18px; right: 18px; bottom: 12px;
  height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .7); overflow: hidden;
}
.home-card .progress-mini > i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(180deg, #8FD14F, var(--green)); }
.home-card.has-bar { padding-bottom: 30px; }

.section-title {
  font-size: 17px; font-weight: 900; color: var(--text);
  margin: 22px 4px 12px;
}

/* ---------- 页面头 ---------- */
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.back-btn {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 15px; border: none;
  background: var(--cream); box-shadow: var(--shadow-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text);
  transition: transform var(--t) var(--ease-bounce);
}
.back-btn:active { transform: translateY(2px) scale(.98); }
.page-title { font-size: 26px; font-weight: 900; color: var(--text); }
.page-head .points-pill { margin-left: auto; }

/* ---------- 设置页 ---------- */
.field { margin-bottom: 18px; }
.field-label {
  font-size: 16px; font-weight: 900; margin: 0 2px 10px;
  display: flex; align-items: center; gap: 8px; color: var(--text);
}
.field-label .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

.tabs { display: flex; background: #EDEBDC; border-radius: var(--radius-sm); padding: 5px; margin-bottom: 14px; }
.tabs button {
  flex: 1; border: none; background: transparent; font-family: inherit;
  font-size: 15px; font-weight: 800; color: var(--text-2);
  padding: 11px 0; border-radius: 12px; cursor: pointer; min-height: 44px;
}
.tabs button.active { background: var(--cream); color: var(--green-d); box-shadow: var(--shadow-sm); }

.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: none; background: var(--cream); border-radius: var(--radius-xs);
  padding: 12px 16px; font-size: 15px; font-weight: 700; color: var(--text-2);
  cursor: pointer; user-select: none; min-height: 48px; display: flex; align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease-bounce), background var(--t);
}
.chip:active { transform: translateY(2px) scale(.98); }
.chip.on { background: linear-gradient(180deg, var(--btn-green-lt), var(--btn-green)); color: #fff; font-weight: 800; }
.chip.on::before { content: "✓ "; font-weight: 900; }
.grade-chip { width: 56px; justify-content: center; padding: 12px 0; }
.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg .chip { min-width: 72px; justify-content: center; }
.kp-group-title { font-size: 13px; font-weight: 800; color: var(--text-3); margin: 14px 2px 8px; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; border-bottom: 2px solid #F1EDDE;
}
.switch-row:last-child { border-bottom: none; }
.switch-row .sr-label { font-size: 16px; font-weight: 800; color: var(--text); }
.switch-row .sr-desc { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.switch {
  width: 58px; height: 34px; border-radius: 999px; background: #E3E0D0;
  position: relative; flex: 0 0 auto; cursor: pointer;
  transition: background var(--t) var(--ease-soft);
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 28px; height: 28px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgba(120, 120, 90, .3);
  transition: left var(--t) var(--ease-bounce);
}
.switch.on { background: var(--btn-green); }
.switch.on::after { left: 27px; }

/* ---------- 答题页 ---------- */
/* 背景装饰 */
.quiz-screen > * { position: relative; z-index: 1; }
.quiz-screen > .q-bg {
  position: absolute; left: -16px; right: -16px; top: -16px; height: 560px;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.quiz-screen::before {
  content: ""; position: absolute; left: -16px; right: -16px; top: -16px; height: 320px;
  background: linear-gradient(180deg, #E7F4D8 0%, #F1F8E7 55%, rgba(247, 249, 242, 0) 100%);
  z-index: 0;
}
.q-bg i { position: absolute; display: block; border-radius: 50%; }
.q-bg i:nth-child(1) { width: 170px; height: 170px; background: #D5EFC0; top: -60px; left: -60px; opacity: .8; }
.q-bg i:nth-child(2) { width: 120px; height: 120px; background: #CDE8F5; top: 30px; right: -44px; opacity: .8; }
.q-bg i:nth-child(3) { width: 88px; height: 88px; background: #FBEEC2; top: 210px; left: -30px; opacity: .75; }
.q-bg i:nth-child(4) { width: 150px; height: 150px; background: #FBD9A8; top: 300px; right: -60px; opacity: .6; }
.q-bg i:nth-child(5) { width: 70px; height: 70px; background: #E5DCF6; top: 420px; left: -24px; opacity: .6; }

.quiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.quiz-progress { flex: 1; height: 14px; border-radius: 999px; background: #E7E4D5; overflow: hidden; }
.quiz-progress > i { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(180deg, #8FD14F, var(--green)); transition: width .3s var(--ease-soft); }
.quiz-count { font-size: 15px; font-weight: 900; color: var(--text-2); }
.streak-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--orange-tint); color: var(--orange-ink); font-weight: 800;
  border-radius: 999px; padding: 6px 14px; font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.timer-bar { height: 12px; border-radius: 999px; background: #E7E4D5; overflow: hidden; margin-bottom: 10px; }
.timer-bar > i { display: block; height: 100%; width: 100%; border-radius: 999px;
  background: linear-gradient(180deg, #F7A9A7, var(--danger)); transition: width 1s linear; }
.timer-text { text-align: center; font-weight: 900; color: var(--danger-ink); margin-bottom: 8px; font-size: 15px; }

.question-card {
  background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 18px; text-align: center; margin: 6px 0 16px; position: relative;
  min-height: 156px; display: flex; align-items: center; justify-content: center;
}
.question-text { font-size: 48px; font-weight: 900; letter-spacing: 2px; color: #4A3B2A; }
.question-text .qmark { color: var(--green); }
.q-feedback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; border-radius: var(--radius);
  font-size: 38px; font-weight: 900; gap: 6px;
}
.q-feedback.good { background: rgba(124, 194, 66, .18); color: var(--green-d); }
.q-feedback.bad { background: var(--danger-tint); color: var(--danger-ink); }
.q-feedback .ans { font-size: 22px; }

/* 答对效果：打勾弹跳 + 星星迸发 + 「+1」上浮 */
.fx-check {
  font-size: 68px; font-weight: 900; line-height: 1; color: var(--green-d);
  animation: fxPop .44s var(--ease-bounce);
}
@keyframes fxPop {
  0% { transform: scale(0) rotate(-18deg); opacity: 0; }
  60% { transform: scale(1.18) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.fx-plus {
  margin-top: 2px; font-size: 24px; font-weight: 900; color: var(--green-d);
  animation: fxFloat .85s var(--ease-soft) forwards;
}
@keyframes fxFloat {
  0% { transform: translateY(8px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-30px); opacity: 0; }
}
.fx-praise { margin-top: 6px; font-size: 17px; font-weight: 900; color: var(--green-d);
  animation: fxPop .5s var(--ease-bounce) both; }
.fx-spark {
  position: absolute; left: 50%; top: 50%; margin: -13px 0 0 -13px;
  font-size: 24px; color: #FFC93C; line-height: 1;
  text-shadow: 0 0 6px rgba(255, 201, 60, .6);
  animation: fxSpark .72s var(--ease-soft) forwards;
}
.fx-spark:nth-of-type(3n) { color: #8FD14F; text-shadow: 0 0 6px rgba(143, 209, 79, .6); }
.fx-spark:nth-of-type(4n) { color: #FF9F43; text-shadow: 0 0 6px rgba(255, 159, 67, .6); }
@keyframes fxSpark {
  0% { transform: rotate(var(--a)) translateY(-10px) scale(.4); opacity: 0; }
  18% { opacity: 1; }
  70% { opacity: .95; }
  100% { transform: rotate(var(--a)) translateY(-92px) scale(1); opacity: 0; }
}

.answer-display {
  background: var(--cream); border-radius: 999px; box-shadow: var(--shadow);
  text-align: center; font-size: 34px; font-weight: 900; padding: 14px 22px;
  min-height: 72px; margin-bottom: 16px; letter-spacing: 2px; color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.answer-display .caret { width: 3px; height: 30px; background: var(--green); border-radius: 2px;
  animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.keypad-panel {
  background: var(--blue-tint); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow);
}
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; justify-items: center; }
.key {
  border: none; background: var(--cream-2); color: #4A3B2A;
  font-family: inherit; font-size: 26px; font-weight: 900;
  width: 100%; max-width: 84px; aspect-ratio: 1 / 1;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm), inset 0 -3px 0 rgba(0, 0, 0, .07);
  transition: transform var(--t) var(--ease-bounce);
}
.key:active { transform: translateY(3px) scale(.96); }
.key.blank { visibility: hidden; }
.key.fn { font-size: 18px; color: var(--blue-ink); }
.key.ok {
  background: linear-gradient(180deg, #8FD14F, var(--green)); color: #fff;
  font-size: 20px; aspect-ratio: auto; border-radius: 999px; grid-column: span 1;
}

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-btn {
  border: none; background: var(--cream); color: #4A3B2A;
  font-family: inherit; font-size: 28px; font-weight: 900; padding: 26px 6px;
  border-radius: var(--radius-sm); cursor: pointer; min-height: 88px;
  box-shadow: var(--shadow), inset 0 -3px 0 rgba(0, 0, 0, .06);
  transition: transform var(--t) var(--ease-bounce);
}
.choice-btn:active { transform: translateY(3px) scale(.98); }
.choice-btn.right { background: linear-gradient(180deg, var(--btn-green-lt), var(--btn-green)); color: #fff; }
.choice-btn.wrong { background: linear-gradient(180deg, #F6A9A7, var(--danger)); color: #fff; }

/* ---------- 结算页 ---------- */
.result-hero { text-align: center; padding: 20px 0 6px; }
.result-emoji { display: flex; justify-content: center; }
.result-title { font-size: 26px; font-weight: 900; margin-top: 12px; color: var(--text); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.stat-box { background: var(--cream); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.stat-box .v { font-size: 30px; font-weight: 900; color: var(--green-d); }
.stat-box .k { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.reward-line {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--yellow-tint); border-radius: var(--radius-sm); padding: 14px;
  margin-bottom: 10px; font-weight: 800; color: var(--yellow-ink); font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.points-big { color: var(--orange-ink) !important; }

/* ---------- 宠物 ---------- */
.pet-stage {
  background: linear-gradient(180deg, #FBF7EA, #F3ECD6);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 16px 22px; text-align: center; position: relative; overflow: hidden;
}
.pet-avatar { display: flex; justify-content: center; animation: floaty 3s var(--ease-soft) infinite; }
.pet-avatar.stage-egg { animation: wobble 2.4s var(--ease-soft) infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wobble { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.pet-lv {
  position: absolute; top: 14px; right: 14px;
  background: var(--yellow-tint); color: var(--yellow-ink);
  border-radius: 14px; padding: 6px 12px; font-weight: 900; font-size: 14px; text-align: left;
  box-shadow: var(--shadow-sm);
}
.pet-lv small { display: block; font-size: 11px; font-weight: 700; opacity: .8; }
.pet-name { font-size: 20px; font-weight: 900; margin-top: 10px; color: var(--text); }

/* 宠物动作：吃 / 玩 */
.pet-note { min-height: 17px; font-size: 13px; color: var(--text-2); margin-top: 8px; }
@keyframes petEat {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  20% { transform: translateY(3px) scale(1.08, .92); }
  45% { transform: translateY(0) scale(.95, 1.05); }
  70% { transform: translateY(3px) scale(1.06, .94); }
}
.pet-avatar.acting-eat { animation: petEat .55s ease-in-out 2; }
@keyframes petPlay {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-20px) rotate(-7deg); }
  55% { transform: translateY(0) rotate(7deg); }
  75% { transform: translateY(-9px) rotate(-3deg); }
}
.pet-avatar.acting-play { animation: petPlay .58s ease-in-out 2; }

@keyframes fxDropIn {
  0% { transform: translate(-50%, -44px) scale(.8); opacity: 0; }
  30% { transform: translate(-50%, 0) scale(1.05); opacity: 1; }
  72% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -8px) scale(.95); opacity: 0; }
}
@keyframes fxBounce {
  0% { transform: translate(-50%, 12px) scale(.6); opacity: 0; }
  30% { transform: translate(-50%, -24px) scale(1.12); opacity: 1; }
  55% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  76% { transform: translate(-50%, -16px) scale(1.06); opacity: 1; }
  100% { transform: translate(-50%, 0) scale(.92); opacity: 0; }
}
.pet-stage-tag {
  display: inline-block; background: var(--green); color: #fff;
  font-size: 13px; font-weight: 900; padding: 5px 15px; border-radius: 999px; margin-top: 8px;
}

.stat-bars { margin: 18px 0; display: flex; flex-direction: column; gap: 14px; }
.stat-bar .sb-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; margin-bottom: 6px; color: var(--text-2); }
.stat-bar .sb-track { height: 16px; border-radius: 999px; background: #EDEBDD; overflow: hidden; }
.stat-bar .sb-track > i { display: block; height: 100%; border-radius: 999px; background: var(--green); transition: width .4s var(--ease-soft); }
.sb-food > i { background: linear-gradient(180deg, #FBC894, var(--orange)); }
.sb-mood > i { background: linear-gradient(180deg, #A8DB6E, var(--green)); }

.pet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pet-actions.two { grid-template-columns: 1fr 1fr; }
.pet-btn {
  border: none; font-family: inherit; font-size: 16px; font-weight: 900;
  padding: 18px 6px; border-radius: 20px; cursor: pointer; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: var(--shadow), inset 0 -4px 0 rgba(0, 0, 0, .1), inset 0 4px 0 rgba(255, 255, 255, .3);
  transition: transform var(--t) var(--ease-bounce);
}
.pet-btn:active { transform: translateY(3px) scale(.97); }
.pet-btn.b-blue   { background: linear-gradient(180deg, #9FD8F0, #79C4E6); color: #1E5A75; }
.pet-btn.b-yellow { background: linear-gradient(180deg, #FFDD6B, #F7C93C); color: #6B5209; }
.pet-btn.b-orange { background: linear-gradient(180deg, #FBC38A, #F0A24E); color: #7A4A0C; }
.pet-btn .sub { font-size: 12px; font-weight: 700; opacity: .8; }

.pet-collection { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pet-cell {
  background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 12px 14px; text-align: center; cursor: pointer; position: relative;
  transition: transform var(--t) var(--ease-bounce);
}
.pet-cell:active { transform: translateY(3px) scale(.98); }
.pet-cell .pc-emoji { display: flex; justify-content: center; align-items: flex-end; min-height: 110px; }
.pet-cell .pc-emoji img, .pet-cell .pc-emoji svg { max-width: 100%; height: auto; object-fit: contain; }
.pet-cell .pc-name { font-weight: 900; margin-top: 8px; color: var(--text); }
.pet-cell .pc-state { font-size: 13px; margin-top: 4px; color: var(--text-3); }
.pet-cell.locked { background: #F3F1E6; }
.pet-cell.locked .pc-name { color: var(--text-2); }
.pet-cell .pc-ribbon {
  position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 900;
  background: var(--green); color: #fff; padding: 4px 11px; border-radius: 999px;
}
.pet-cell .pc-free {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 900;
  background: var(--yellow); color: var(--yellow-ink); padding: 4px 9px; border-radius: 999px;
}
.pet-art.line { opacity: .92; }
.pet-cell .pc-num {
  position: absolute; top: -6px; left: -6px; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 999px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}

/* ---------- 列表 / 商城 ---------- */
.list-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 14px;
}
.li-emoji {
  width: 56px; height: 56px; flex: 0 0 auto; border-radius: 17px;
  display: flex; align-items: center; justify-content: center; background: var(--cream-2);
}
.li-main { flex: 1; min-width: 0; }
.li-title { font-weight: 900; font-size: 16px; color: var(--text); }
.li-sub { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.price-tag { font-weight: 900; color: var(--orange-ink); }
.buy-btn {
  border: none; font-family: inherit; font-weight: 900; font-size: 15px;
  background: linear-gradient(180deg, #8FD14F, var(--green)); color: #fff;
  padding: 12px 18px; border-radius: 999px; cursor: pointer; min-height: 46px;
  box-shadow: var(--shadow-sm), inset 0 -3px 0 rgba(0, 0, 0, .1);
  transition: transform var(--t) var(--ease-bounce);
}
.buy-btn:active { transform: translateY(2px) scale(.98); }

/* 商城分类 Tab */
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.cat-tabs .cat {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 800;
  background: transparent; color: var(--text-2); cursor: pointer;
}
.cat-tabs .cat.on { background: linear-gradient(180deg, #9AD7A4, var(--btn-green)); color: #fff; }

/* 商品网格 */
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shop-card {
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.shop-card .sc-name { font-weight: 900; color: var(--text); font-size: 15px; }
.shop-card .sc-art { display: flex; justify-content: center; align-items: center; padding: 10px 0; min-height: 104px; }
.shop-card { padding: 16px 14px; }
.shop-card .sc-name { font-size: 16px; }
.shop-card .sc-price { font-size: 16px; }
.shop-card .sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-card .sc-price { font-weight: 900; color: var(--text); font-size: 15px; }
.shop-card.locked { filter: grayscale(.3); }
.shop-card .sc-lock {
  position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 900;
  background: rgba(255, 255, 255, .85); color: var(--text-2); padding: 3px 9px; border-radius: 999px;
}

.empty { text-align: center; padding: 54px 20px; color: var(--text-2); }
.empty .e-emoji { display: flex; justify-content: center; }
.inventory-bar { display: flex; gap: 14px; margin-bottom: 16px; }
.inv-pill {
  flex: 1; background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; text-align: center; font-size: 13px; font-weight: 700; color: var(--text-2);
}
.inv-pill .v { font-size: 20px; font-weight: 900; color: var(--green-d); }

/* ---------- 底部导航 ---------- */
#tabbar {
  position: absolute; left: 12px; right: 12px; bottom: 12px; height: 68px;
  background: var(--cream); border-radius: 24px; box-shadow: 0 8px 22px rgba(120, 120, 90, .18);
  display: flex; align-items: stretch; padding: 8px; z-index: 60;
}
#tabbar.hidden { display: none; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--text-3); font-size: 11px; font-weight: 800; cursor: pointer;
  border-radius: 18px; transition: background var(--t) var(--ease-soft), color var(--t);
}
.tab.active { color: var(--green-d); background: var(--green-tint); }
.tab:active { transform: scale(.96); }

/* ---------- Toast / 弹窗 ---------- */
#toast-layer {
  position: fixed; left: 0; right: 0; top: 44px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--cream); color: var(--text); padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 800; box-shadow: 0 8px 22px rgba(120, 120, 90, .2);
  animation: toastIn var(--t) var(--ease-bounce);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } }

#modal-layer {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(58, 60, 45, .32);
}
#modal-layer.show { display: flex; }
.modal {
  position: relative;                 /* 右上角 X 要相对弹窗定位 */
  background: var(--cream); border-radius: 26px; padding: 26px; width: 100%; max-width: 340px;
  text-align: center; box-shadow: 0 20px 50px rgba(120, 120, 90, .28);
  animation: modalIn var(--t) var(--ease-bounce);
}
@keyframes modalIn { from { transform: scale(.88); opacity: 0; } }
.modal .m-emoji { display: flex; justify-content: center; margin-bottom: 6px; }
.modal .m-title { font-size: 21px; font-weight: 900; margin: 8px 0; color: var(--text); }
.modal .m-text { font-size: 15px; color: var(--text-2); margin-bottom: 22px; line-height: 1.65; }
.modal .m-input {
  width: 100%; font-family: inherit; font-size: 24px; font-weight: 900; color: var(--text);
  text-align: center; padding: 14px; margin-bottom: 20px;
  border: 2px solid #E4DEC8; border-radius: var(--radius-sm); background: #fff; outline: none;
}
.modal .m-input:focus { border-color: var(--green); }
.modal .m-actions { display: flex; gap: 12px; }
.modal .m-actions .btn { flex: 1; }

/* 连击动画 */
.streak-pop { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.streak-pop .sp-inner {
  background: linear-gradient(180deg, #FFDD6B, var(--yellow)); color: var(--yellow-ink);
  display: flex; flex-direction: column; align-items: center;
  font-size: 30px; font-weight: 900; padding: 22px 38px; border-radius: 26px;
  box-shadow: 0 14px 32px rgba(251, 210, 78, .5);
  animation: spIn 1s var(--ease-bounce) forwards;
}
.streak-pop .sp-inner small { font-size: 15px; margin-top: 4px; font-weight: 800; }
@keyframes spIn {
  0% { transform: scale(.5); opacity: 0; }
  25% { transform: scale(1.06); opacity: 1; }
  70% { transform: scale(1); opacity: 1; }
  100% { transform: scale(.95); opacity: 0; }
}

.pet-anim { text-align: center; padding: 20px; display: flex; justify-content: center; }

/* ---------- 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============ 答题页：本场得分 ============ */
.quiz-stats { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.qs-score {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(160deg, #FFF3D8, #FBE1A6); color: #8A5A10;
  border: 2px solid #EFD08E; border-radius: 999px; padding: 6px 16px;
  font-size: 15px; font-weight: 800; box-shadow: var(--shadow-sm);
}
.qs-score b { font-size: 22px; font-weight: 900; color: #C1710E; letter-spacing: -.3px; }

/* ============ 宠物场景 ============ */
.pet-scene { margin-bottom: 4px; }
.scene-bg {
  position: relative; border-radius: var(--radius); box-shadow: var(--shadow);
  min-height: 210px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #F1F8E6, #E4F2D4); overflow: hidden;
}
.scene-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: linear-gradient(180deg, rgba(124,194,66,0), rgba(124,194,66,.28));
}
.scene-bg.nest-paper   { background: linear-gradient(180deg, #FCF8EE, #EFE5CF); }
.scene-bg.nest-grass   { background: linear-gradient(180deg, #EDF8DE, #CFEBB4); }
.scene-bg.nest-wood    { background: linear-gradient(180deg, #F7E8D3, #E2C49B); }
.scene-bg.nest-villa   { background: linear-gradient(180deg, #E7F2FC, #C4DCF4); }
.scene-bg.nest-mansion { background: linear-gradient(180deg, #F4EBFC, #D8C3F0); }
.scene-nest { position: absolute; right: 6px; left: auto; bottom: 2px; opacity: .97; }
.scene-envelope { text-align: center; animation: floaty 2.6s var(--ease-soft) infinite; cursor: pointer; }

.scene-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pet-lv-mini {
  background: var(--yellow-tint); color: var(--yellow-ink); font-weight: 900; font-size: 13px;
  padding: 4px 10px; border-radius: 999px;
}
.acc-chip {
  width: 28px; height: 28px; border-radius: 9px; background: var(--purple-tint);
  display: flex; align-items: center; justify-content: center;
}
.zzz {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
  font-size: 15px; font-weight: 900; color: #7FA0C0; letter-spacing: 2px;
  animation: zzzFloat 2.4s var(--ease-soft) infinite;
}
@keyframes zzzFloat { 0% { opacity: 0; transform: translate(-50%, 8px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -22px); } }
/* 睡觉/打瞌睡：暗一点、轻轻歪头 */
.pet-avatar.sleep, .hs-pet.sleep { filter: brightness(.86) saturate(.85); animation: sway 4s ease-in-out infinite; }
.pet-avatar.nap,   .hs-pet.nap   { filter: brightness(.94); animation: nod 2.6s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes nod { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============ 「我的」场景区 ============ */
.home-scene {
  position: relative; border-radius: var(--radius); box-shadow: var(--shadow);
  min-height: 190px; margin-bottom: 16px; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #F1F8E6, #E4F2D4);
}
.home-scene.nest-paper   { background: linear-gradient(180deg, #FCF8EE, #EFE5CF); }
.home-scene.nest-grass   { background: linear-gradient(180deg, #EDF8DE, #CFEBB4); }
.home-scene.nest-wood    { background: linear-gradient(180deg, #F7E8D3, #E2C49B); }
.home-scene.nest-villa   { background: linear-gradient(180deg, #E7F2FC, #C4DCF4); }
.home-scene.nest-mansion { background: linear-gradient(180deg, #F4EBFC, #D8C3F0); }
.home-scene .hs-nest { position: absolute; right: 8px; left: auto; bottom: 30px; }
.home-scene .hs-envelope { display: flex; align-items: flex-end; justify-content: center; animation: floaty 2.6s var(--ease-soft) infinite; }
.home-scene .hs-label {
  /* 窝搬到右边后，说明文字留在左半边，避免压到窝 */
  position: absolute; left: 4px; right: 48%; bottom: 10px; text-align: center;
  font-size: 13px; font-weight: 900; color: #4A6B2E;
  padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .72);
}

/* ============ 弹窗内选择列表 ============ */
.pk-list { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; text-align: left; }
.pk-list .list-item { margin-bottom: 0 !important; padding: 12px; }
.pk-have { font-size: 13px; font-weight: 900; color: var(--green-d); }
.pk-buy { font-size: 13px; font-weight: 900; color: var(--orange-ink); }

/* ============ 商城补充色 ============ */
.g-purple { background: linear-gradient(160deg, #F3EDFC, #E5DCF6); }

/* ============ 花园（分级背景差异明显） ============ */
.scene-bg.garden-lawn,    .home-scene.garden-lawn    { background: linear-gradient(180deg, #F1F8E6, #E4F2D4); }
.scene-bg.garden-flower,  .home-scene.garden-flower  { background: linear-gradient(180deg, #FDF2F7, #F2D8E6); }
.scene-bg.garden-garden,  .home-scene.garden-garden  { background: linear-gradient(180deg, #EDF8DE, #B9E39A); }
.scene-bg.garden-orchard, .home-scene.garden-orchard { background: linear-gradient(180deg, #FDF6E0, #F1D998); }
.scene-bg.garden-dream,   .home-scene.garden-dream   { background: linear-gradient(180deg, #F4EDFC, #D3BAF1); }
.scene-garden { position: absolute; right: 14px; bottom: 10px; opacity: .95; }

/* ============ 臭臭 / 提示 / 衣橱 ============ */
.poop {
  position: absolute; border: none; background: transparent; cursor: pointer; padding: 2px;
  animation: poopIn .32s var(--ease-bounce);
}
@keyframes poopIn { from { transform: scale(0) translateY(6px); } }
.poop:active { transform: scale(.9); }
.scene-hint {
  margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--text-2);
  background: var(--cream); border-radius: 12px; padding: 9px 12px; box-shadow: var(--shadow-sm);
}
.scene-hint.warn { background: #FFF3DE; color: #A8741C; }
.wardrobe-btn {
  font-size: 12px; font-weight: 900; color: #6E58A8; background: var(--purple-tint);
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
}

/* 答题：删除键图标居中放大 */
.key.fn { display: flex; align-items: center; justify-content: center; }
.key.fn .ui-icon { display: block; }

/* ============ 宠物场景装饰（天空/云/太阳/草地） ============ */
.scene-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scene-decor svg { width: 100%; height: 100%; display: block; }
/* 只抬层级，不要动 position —— 场景/场景卡都是 flex 容器，flex item 设 z-index 本来就生效。
   （以前这里写了 position:relative，会把窝/摆件/动效层/状态胶囊/说明文字自己的 absolute 覆盖掉） */
.scene-bg > *:not(.scene-decor), .home-scene > *:not(.scene-decor) { z-index: 1; }
/* 上面这条会把窝也变成 relative（同特异性、更靠后），必须再声明回 absolute：
   窝是绝对定位在左下角，姓名牌才会挂在窝上方 */
.home-scene > .hs-nest, .scene-bg > .scene-nest { position: absolute; z-index: 1; }
.scene-bg { padding-bottom: 42px; align-items: flex-end; }
.scene-bg .pet-avatar, .scene-bg .scene-envelope { margin-bottom: 6px; }
.scene-nest { z-index: 2 !important; }
.scene-garden { z-index: 2 !important; }
.home-scene { padding-bottom: 40px; align-items: flex-end; }
.home-scene .hs-nest { bottom: 34px; }
.home-scene .hs-pet { margin-bottom: 8px; }

/* 宠物切换条（我的） */
.pet-switch { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.ps-chip {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--cream); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-sm);
  border: 2px solid transparent; cursor: pointer;
}
.ps-chip.on { border-color: var(--green); background: var(--green-tint); }
.ps-chip .ps-name { font-size: 12px; font-weight: 800; color: var(--text-2); }
.ps-chip.on .ps-name { color: var(--green-d); }

/* 素材图标（用户提供的 PNG） */
.img-icon { display: block; object-fit: contain; }

/* 「我的」场景放大 */
.home-scene { min-height: 232px; padding-bottom: 46px; }
.home-scene .hs-nest { bottom: 42px; }
.home-scene .hs-label { font-size: 14px; bottom: 12px; }
.pet-scene .scene-bg { min-height: 236px; }

/* ============ 宠物"活起来"：呼吸 / 随机小动作 / 粒子 ============ */
.pet-avatar img.pet-art, .hs-pet img.pet-art { animation: breathe 2.8s var(--ease-soft) infinite; transform-origin: 50% 92%; }
@keyframes breathe {
  0%, 100% { transform: scale(1, 1) translateY(0); }
  50% { transform: scale(1.035, .965) translateY(1px); }
}
/* 随机小动作 */
.pet-avatar.idleHop, .hs-pet.idleHop { animation: idleHop .85s var(--ease-bounce); }
@keyframes idleHop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(4px) scale(1.06, .94); }
  45% { transform: translateY(-18px) scale(.96, 1.05); }
  75% { transform: translateY(0) scale(1.04, .96); }
}
.pet-avatar.idleWiggle, .hs-pet.idleWiggle { animation: idleWiggle .9s var(--ease-soft); }
@keyframes idleWiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-7deg); }
  45% { transform: rotate(6deg); }
  70% { transform: rotate(-3deg); }
}
.pet-avatar.idleSquash, .hs-pet.idleSquash { animation: idleSquash .8s var(--ease-bounce); }
@keyframes idleSquash {
  0%, 100% { transform: scale(1, 1); }
  30% { transform: scale(1.14, .84); }
  60% { transform: scale(.92, 1.1); }
}
.pet-avatar.idleFlip, .hs-pet.idleFlip { animation: idleFlip .95s var(--ease-soft); }
@keyframes idleFlip {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-12px) rotateY(180deg); }
}
/* 粒子（爱心/星星） */
.pet-particle {
  position: absolute; left: 50%; bottom: 42%; pointer-events: none; z-index: 3;
  animation: particleUp 1.4s var(--ease-soft) forwards;
}
@keyframes particleUp {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(.5); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -54px) scale(1.1); }
}

/* ============ 宠物场景再放大 + 属性条压缩 ============ */
.pet-scene .scene-bg { min-height: 330px; padding-bottom: 58px; }
.home-scene { min-height: 310px; padding-bottom: 54px; }
.home-scene .hs-nest { bottom: 48px; }
.scene-nest { bottom: 6px; }
.scene-garden { bottom: 16px; }

.stat-bars { margin: 12px 0; gap: 9px; }
.stat-bar .sb-head { font-size: 12px; margin-bottom: 4px; }
.stat-bar .sb-track { height: 10px; }

/* 点击宠物：跳一下（无旋转） */
@keyframes tapJump {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(4px) scale(1.09, .91); }
  50% { transform: translateY(-24px) scale(.95, 1.07); }
  78% { transform: translateY(0) scale(1.05, .95); }
}
.pet-avatar.tapJump, .hs-pet.tapJump { animation: tapJump .75s var(--ease-bounce); cursor: pointer; }
/* 待机：只保留位移/缩放 */
.pet-avatar.idleWiggle, .hs-pet.idleWiggle { animation: none; }
.pet-avatar.idleFlip, .hs-pet.idleFlip { animation: none; }

/* ============ 宠物页整屏布局：场景尽量大，属性条/按钮贴底 ============ */
#screen.no-tab { padding-bottom: 16px; }
.pet-fill { height: 100%; display: flex; flex-direction: column; gap: 6px; }
.pet-fill .page-head { flex: 0 0 auto; margin-bottom: 2px; }
.pet-fill .pet-scene { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
/* 场景铺满全宽（左右不留白）；图像 cover + 底部对齐，多出的部分从"顶部天空"裁掉 */
.pet-fill .scene-bg {
  flex: 1 1 auto; min-height: 0; width: 100%; align-self: stretch; overflow: hidden;
}
.pet-fill .pet-scene { justify-content: center; }
.pet-fill .scene-hint { flex: 0 0 auto; margin-top: 8px; }
.pet-fill .scene-meta { flex: 0 0 auto; margin-top: 6px; }
.pet-fill .scene-meta.top { margin: 0; }
.pet-fill .stat-bars { flex: 0 0 auto; margin: 0; gap: 8px; }
.pet-fill .pet-actions { flex: 0 0 auto; }
.pet-fill .pet-avatar img.pet-art { max-height: 100%; max-width: 100%; }
.pet-fill .scene-bg { padding-bottom: 40px; }

/* 场景装饰：太阳在左，云在右（固定尺寸，不拉伸） */
.scene-decor .sd-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-decor .sd-sun { position: absolute; left: 7%; top: 5%; width: 76px; height: 76px; }
.scene-decor .sd-cloud { position: absolute; width: 104px; height: 52px; }
.scene-decor .sd-cloud.c1 { right: 8%; top: 9%; }
.scene-decor .sd-cloud.c2 { right: 26%; top: 25%; width: 82px; height: 41px; opacity: .9; }

/* 宠物名（可点击改名） */
.pet-name-tag {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  background: var(--cream); border: 2px solid #E8E0C8; border-radius: 999px;
  padding: 4px 12px; font-size: 14px; font-weight: 900; color: var(--text);
  box-shadow: var(--shadow-sm);
}
/* 窝上的姓名牌（z-index 高，保证不被宠物盖住） */
.nest-plate {
  position: absolute; left: 50%; transform: translateX(-50%); top: -22px; z-index: 6;
  white-space: nowrap; font-size: 12px; font-weight: 900; color: #7A4A12;
  background: linear-gradient(180deg, #FBE6B4, #F2CF89);
  border: 2px solid #C9924A; border-radius: 8px; padding: 2px 9px;
  box-shadow: 0 2px 4px rgba(120, 90, 40, .25);
}
.nest-plate::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #C9924A;
}
.scene-nest, .hs-nest { position: absolute; }

/* 窝/姓名牌要压在宠物之上：靠 DOM 顺序（宠物先、窝后）+ 同为 z-index:1 实现 */

/* ============ 宠物页：进度条一行三格（省高度）+ 按钮更薄 ============ */
.pet-fill .stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pet-fill .st {
  background: var(--cream); border-radius: 12px; padding: 7px 9px 7px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; min-height: 52px;   /* 三格等高：内容上下分布，不留空档 */
}
.pet-fill .st-top { display: flex; align-items: center; gap: 4px; margin-bottom: 5px; }
.pet-fill .st-top b { font-size: 13.5px; font-weight: 900; color: var(--text); margin-left: auto; }
/* 名称和百分比并排在同一行（省掉原来单独一行的标签） */
.pet-fill .st-name { font-size: 11.5px; font-weight: 800; color: var(--text-3); }
.pet-fill .st-track { height: 7px; border-radius: 999px; background: #E8EAF1; overflow: hidden; margin-top: auto; }
.pet-fill .st-track > i { display: block; height: 100%; border-radius: 999px; }
.pet-fill .st-lab { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800; color: var(--text-3); margin-top: 4px; text-align: center; }

/* 明信片入口：占状态条的第三格（和饱食/心情一样高） */
.pet-fill .st-pc {
  display: flex; flex-direction: column; font-family: inherit; cursor: pointer;
  border: 2px solid #F1E3C8; background: linear-gradient(180deg, #FFFDF6, #FBF3E2);
  transition: transform var(--t) var(--ease-bounce);
}
.pet-fill .st-pc:active { transform: translateY(2px) scale(.97); }
.pet-fill .st-pc .st-lab { margin-top: auto; color: #8A7A4E; }
.pet-fill .st-pc .st-top b { font-size: 12.5px; color: var(--orange-ink); }
.pet-fill .st-pc .st-top b small { font-size: 10px; font-weight: 800; color: var(--text-3); }
.pet-fill .st-pc-thumb, .pet-fill .st-pc-ic {
  flex: 0 0 auto; width: 26px; height: 20px; border-radius: 5px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pet-fill .st-pc-thumb { border: 1.5px solid #E7D8B6; background: #F1EAD8; }
.pet-fill .st-pc-thumb .postcard { width: 100%; height: 100%; aspect-ratio: auto; border: none; border-radius: 0; box-shadow: none; }
.pet-fill .st-pc-ic { background: #FDF0D6; width: 20px; }
.pet-fill .stats-hint { display: none; }
.pet-fill .stat-bars { margin: 0 !important; gap: 0 !important; }

/* 按钮更薄（省高度给场景） */
.pet-fill .pet-btn { padding: 9px 6px; font-size: 15px; border-radius: 16px; gap: 3px; }
.pet-fill .pet-btn .sub { font-size: 11px; }
.pet-fill .pet-actions { gap: 10px; }
.pet-fill .scene-meta { margin-top: 6px; }
.pet-fill { gap: 8px; }

/* 场景背景图：有图盖住内置绘制；缺图自动移除露出内置场景
   （.home-scene = 首页/我的 的场景卡，.scene-bg = 宠物详情整屏场景） */
.scene-bg .scene-photo,
.home-scene .scene-photo {
  position: absolute !important; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom; z-index: 1 !important; pointer-events: none;
}
/* 场景卡固定比例，避免被原图（1080×1800）撑高 */
.home-scene { aspect-ratio: 4 / 5; min-height: 0; }

/* ============ 商城 · 家园（场景图卡片） ============ */
.scene-card {
  background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.scene-card.locked { opacity: .96; }
.scn-thumb {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #EAF6FF, #DDF0C8);
  border: 2px solid #E4DEC8;
}
.scn-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.scn-thumb .scn-icon { position: relative; z-index: 0; }
.scn-thumb.on { border-color: var(--green); }
.scn-badge {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  background: var(--green); color: #fff; font-size: 11px; font-weight: 900;
  padding: 3px 9px; border-radius: 999px;
}
.scn-body { padding: 0 2px; }
.scn-name { font-weight: 900; font-size: 15px; color: var(--text); }
.scn-bonus { font-size: 11px; color: var(--text-3); margin-top: 3px; line-height: 1.4; }
.scn-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; }
.scn-price { font-weight: 900; color: var(--text); font-size: 14px; }
.scene-card .buy-btn { padding: 8px 14px; min-height: 38px; font-size: 13px; }

/* 场景里的装饰摆件 */
.scene-deco-item {
  position: absolute; z-index: 2; transform: translateX(-50%);
  filter: drop-shadow(0 3px 3px rgba(80, 100, 60, .18));
}

/* 品牌整图 logo */
.brand-wide { height: 46px; width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(120,120,90,.2)); }
@media (max-width: 380px) { .brand-wide { height: 40px; } }
/* 顶栏胶囊略紧凑，给 logo 让位 */
.stat-capsule .sc .sc-ico { width: 26px; height: 26px; border-radius: 9px; }
.stat-capsule .sc .v { font-size: 19px; }
/* 商城：未领养宠物时的锁 */
.cat-lock { opacity: .55; display: inline-flex; align-items: center; gap: 3px; }
.shop-card.locked .sc-art, .scene-card.locked .scn-thumb { filter: grayscale(.5); opacity: .6; }
.sc-lock { position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.85); box-shadow: 0 1px 3px rgba(110,105,85,.2); }
.shop-card, .scene-card { position: relative; }

/* ============ 首页 · 新布局 ============ */
.g-red { background: linear-gradient(160deg, #FCE3DC, #F8C9BC); }

/* 主区：开始算（大） + 我的宠物（小） */
.home-main { display: grid; grid-template-columns: 1.62fr 1fr; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.home-main .home-card { grid-column: auto; min-height: 178px; }
.home-main .home-card.hero {
  padding: 18px 16px; align-items: center; justify-content: space-between; gap: 8px;
}
.home-main .home-card.hero .hc-txt { min-width: 0; }
.home-main .home-card.hero .hc-title { font-size: 28px; }
.home-main .home-card.hero .hc-sub { font-size: 12.5px; max-width: 8.5em; }
.home-main .home-card.hero .hc-art { flex: 0 0 auto; }

.home-main .home-card.pet-mini {
  flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 12px 8px; text-align: center;
}
.home-main .home-card.pet-mini .hc-title { font-size: 17px; }
.home-main .home-card.pet-mini .hc-sub { font-size: 11.5px; margin-top: 2px; }

/* 下方三张卡：每日任务 / 错题集 / 宠物商城 */
.home-list { display: flex; flex-direction: column; gap: 14px; }
.home-list .home-card { grid-column: auto; }

/* 首页顶栏：logo + 三项统计。放不下时自动折行，绝不裁切 */
.home-topbar { gap: 8px 10px; flex-wrap: wrap; }
.brand-wide { height: 42px; }
.stat-capsule { gap: 5px; }
.stat-capsule .sc { padding: 4px 8px 4px 5px; gap: 3px; border-radius: 999px; }
.stat-capsule .sc .sc-ico { width: 22px; height: 22px; border-radius: 8px; }
.stat-capsule .sc .v { font-size: 15px; }
@media (max-width: 380px) {
  .brand-wide { height: 36px; }
  .stat-capsule .sc { padding: 3px 7px 3px 4px; }
  .home-main .home-card.hero .hc-title { font-size: 25px; }
}
/* ============ 首页 · 学习数据看板 ============ */
.home-card.dash {
  flex-direction: column; align-items: stretch; gap: 11px;
  padding: 15px 14px 14px; cursor: default; min-height: 0;
}
.home-card.dash:active { transform: none; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash-head .hc-title { display: flex; align-items: center; gap: 6px; font-size: 17px; }
.dash-days { font-size: 11.5px; font-weight: 800; color: #6E6A52; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dash-grid .dg { background: rgba(255, 255, 255, .66); border-radius: 13px; padding: 9px 3px 8px; text-align: center; }
.dg-v { font-size: 21px; font-weight: 900; color: var(--text); line-height: 1.1; }
.dg-v small { font-size: 11px; margin-left: 1px; font-weight: 900; }
.dg-k { font-size: 11px; font-weight: 800; color: var(--text-3); margin-top: 3px; }
.dash-level .dl-top { display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 800; color: #6E6A52; margin-bottom: 5px; }
.dl-track { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .8); overflow: hidden; }
.dl-track > i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #8FD14F, #5FA32C); transition: width .3s var(--ease-soft); }
@media (max-width: 360px) {
  .dg-v { font-size: 19px; }
  .dg-k { font-size: 10px; }
}

/* ============ 喂食 / 玩耍 动效（道具图 + 增量标签 + 消耗提示） ============ */
/* 注意：必须声明在 .scene-bg > *:not(.scene-decor) 之后，否则会被它改成 relative */
.scene-bg > .pet-fx2 { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }

.pet-fx2 .fx2-item {
  position: absolute; left: 50%; top: 52%;
  filter: drop-shadow(0 5px 7px rgba(90, 70, 30, .3));
  animation: fx2Eat 1.25s var(--ease-bounce) forwards;
}
.pet-fx2.fx2-play .fx2-item { animation: fx2Play 1.25s var(--ease-bounce) forwards; }

/* 吃：从宠物头顶落下来，最后缩小被「吃掉」 */
@keyframes fx2Eat {
  0%   { transform: translate(-50%, -320%) scale(.5) rotate(-14deg); opacity: 0; }
  18%  { transform: translate(-50%, -170%) scale(1.14) rotate(5deg); opacity: 1; }
  46%  { transform: translate(-50%, -62%) scale(1) rotate(0); opacity: 1; }
  78%  { transform: translate(-50%, 14%) scale(.36); opacity: .95; }
  100% { transform: translate(-50%, 32%) scale(.04); opacity: 0; }
}
/* 玩：抛起来弹两下，再落到宠物身上 */
@keyframes fx2Play {
  0%   { transform: translate(-50%, 30%) scale(.5) rotate(0); opacity: 0; }
  18%  { transform: translate(-50%, -150%) scale(1.16) rotate(-18deg); opacity: 1; }
  38%  { transform: translate(-50%, -40%) scale(1) rotate(12deg); opacity: 1; }
  56%  { transform: translate(-50%, -158%) scale(1.06) rotate(-12deg); opacity: 1; }
  74%  { transform: translate(-50%, -52%) scale(1) rotate(8deg); opacity: 1; }
  100% { transform: translate(-50%, 26%) scale(.45) rotate(0); opacity: 0; }
}

.pet-fx2 .fx2-chips {
  position: absolute; left: 0; right: 0; top: 7%;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.pet-fx2 .fx2-chip {
  font-weight: 900; white-space: nowrap; border-radius: 999px;
  box-shadow: var(--shadow-sm), inset 0 -2px 0 rgba(0, 0, 0, .13);
  animation: fx2Chip 1.55s var(--ease-soft) forwards;
}
/* 消耗提示（第一行）：白底，突出「用了什么、还剩几个」 */
/* 有横幅时，增量标签往下让位，别撞在一起 */
.pet-fx2.has-banner .fx2-chips { top: 15%; }
.pet-fx2 .fx2-chip.use {
  font-size: 12.5px; color: #6E6A52; background: rgba(255, 255, 255, .95);
  padding: 4px 13px; inset: auto;
}
/* 增量提示 */
.pet-fx2 .fx2-chip.g1,
.pet-fx2 .fx2-chip.g2 {
  font-size: 15px; color: #fff; padding: 4px 14px;
  background: linear-gradient(180deg, #8FD14F, var(--green));
}
.pet-fx2 .fx2-chip.g2 {
  background: linear-gradient(180deg, #FFDB77, #F0B429); color: #7A4A12;
  animation-delay: .16s;
}
@keyframes fx2Chip {
  0%   { transform: translateY(16px) scale(.7); opacity: 0; }
  16%  { transform: translateY(0) scale(1.07); opacity: 1; }
  70%  { transform: translateY(-7px) scale(1); opacity: 1; }
  100% { transform: translateY(-34px) scale(.93); opacity: 0; }
}



/* 进度条：被加的那一项脉冲 + 浮出 +N */
.pet-fill .st { position: relative; }
.pet-fill .st.bump { animation: stBump .62s var(--ease-bounce); }
@keyframes stBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.055); box-shadow: 0 0 0 3px rgba(143, 209, 79, .5), var(--shadow-sm); }
  100% { transform: scale(1); }
}
.pet-fill .st-plus {
  position: absolute; right: 6px; top: -12px; z-index: 3;
  font-size: 13px; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, #8FD14F, var(--green));
  padding: 2px 9px; border-radius: 999px; box-shadow: var(--shadow-sm);
  animation: stPlus 1.1s var(--ease-soft) forwards;
}
@keyframes stPlus {
  0% { opacity: 0; transform: translateY(8px) scale(.8); }
  22% { opacity: 1; transform: translateY(0) scale(1.06); }
  70% { opacity: 1; transform: translateY(-6px) scale(1); }
  100% { opacity: 0; transform: translateY(-16px) scale(.95); }
}

/* ============ 宠物状态胶囊（浮在场景右上角） ============ */
/* 注意：必须写在 .scene-bg > *:not(.scene-decor) 之后，否则会被它改成 relative */
.scene-bg > .scene-state {
  position: absolute; top: 12px; right: 12px; z-index: 8;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px 6px 9px; border-radius: 999px;
  font-size: 13px; font-weight: 900; white-space: nowrap; color: #3E7A1E;
  border: 2px solid rgba(255, 255, 255, .88);
  box-shadow: 0 3px 10px rgba(90, 100, 70, .22);
  pointer-events: none;
  animation: stateFloat 3.2s var(--ease-soft) infinite;
}
@keyframes stateFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
/* 色调 */
.scene-state.tone-green  { background: linear-gradient(180deg, #E7F6CB, #CFEBA4); color: #3E7A1E; }
.scene-state.tone-orange { background: linear-gradient(180deg, #FDE7C2, #F8CE97); color: #8A5A10; }
.scene-state.tone-purple { background: linear-gradient(180deg, #ECE3FA, #DCCDF3); color: #5B4A85; }
.scene-state.tone-sky    { background: linear-gradient(180deg, #DCEFFA, #BEE0F2); color: #2C6480; }
.scene-state.tone-night  { background: linear-gradient(180deg, #DDE2F5, #C6CDEC); color: #4A5285; }
.scene-state.tone-pink   { background: linear-gradient(180deg, #FDE0EB, #F9C6DA); color: #A03B63; }
/* 饿了 / 无聊：加一圈呼吸光晕，提醒该喂了 */
.scene-state.urgent {
  animation: stateFloat 3.2s var(--ease-soft) infinite, statePulse 1.7s ease-in-out infinite;
}
@keyframes statePulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(90, 100, 70, .22), 0 0 0 0 rgba(232, 150, 60, .55); }
  65% { box-shadow: 0 3px 10px rgba(90, 100, 70, .22), 0 0 0 10px rgba(232, 150, 60, 0); }
}

/* ============ 宠物详情 · 等级进度（还差多少分升级） ============ */
.lv-progress { display: flex; flex-direction: column; gap: 5px; }
.lvp-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 12px; font-weight: 800; color: #6E6A52;
}
.lvp-lv { font-size: 13px; font-weight: 900; color: #3E7A1E; }
.lvp-tip b { color: #C1710E; font-size: 13.5px; }
.lvp-track {
  height: 9px; border-radius: 999px; background: #EDEBDD; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(120, 110, 80, .14);
}
.lvp-track > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #8FD14F, #FFD86B);
  transition: width .35s var(--ease-soft);
}

/* ============ 窝变大后：宠物站到前面、姓名牌更醒目 ============ */
/* 宠物必须压在窝上面（DOM 里窝在后面，靠 z-index 反过来） */
.scene-bg > .pet-avatar { z-index: 3; }
.scene-bg > .scene-nest { z-index: 1; }
.home-scene > .hs-pet { z-index: 3; }
.home-scene > .hs-nest { z-index: 1; }
/* 宠物往左站，给右边的大窝让位 */
.pet-fill .pet-avatar { margin-right: 32%; }
.home-scene .hs-pet { margin-right: 30%; }
/* 窝大了，姓名牌也跟着大一点 */
.nest-plate { font-size: 14px; padding: 3px 12px; top: -26px; }

/* ============ 高档位特效：光芒 / 闪光 / 彩纸 / 横幅 / 光环 ============ */
.pet-fx2 .fx2-item { width: var(--item, 88px); height: var(--item, 88px); }
.pet-fx2 .fx2-item svg { width: 100%; height: 100%; }

/* 旋转光芒（只在豪华档以上出现） */
.pet-fx2 .fx2-rays {
  position: absolute; left: 50%; top: 52%; width: 560px; height: 560px;
  margin: -280px 0 0 -280px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg,
    rgba(255, 247, 214, .8) 0deg 4.5deg, rgba(255, 247, 214, 0) 4.5deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, #000 26%, rgba(0, 0, 0, .35) 46%, transparent 68%);
  mask-image: radial-gradient(circle, #000 0%, #000 26%, rgba(0, 0, 0, .35) 46%, transparent 68%);
  animation: raysIn .45s ease-out both, raysSpin 7s linear infinite;
}
@keyframes raysIn { from { opacity: 0; transform: scale(.5) rotate(-18deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes raysSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* 中心闪光 */
.pet-fx2 .fx2-flash {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 52%, rgba(255, 255, 255, .95), rgba(255, 246, 210, .5) 34%, rgba(255, 255, 255, 0) 64%);
  animation: flashOut .6s ease-out forwards;
}
@keyframes flashOut { from { opacity: 1; } to { opacity: 0; } }

/* 扩散光环 */
.pet-fx2 .fx2-ring {
  position: absolute; left: 50%; top: 52%; width: 70px; height: 70px;
  margin: -35px 0 0 -35px; border-radius: 50%; pointer-events: none;
  border: 4px solid rgba(255, 214, 108, .92);
  animation: ringOut 1.2s ease-out .12s forwards;
}
@keyframes ringOut { from { transform: scale(.35); opacity: .95; } to { transform: scale(5.6); opacity: 0; } }

/* 爆炸彩纸 */
.pet-fx2 .fx2-confetti { position: absolute; left: 0; top: 0; pointer-events: none; }
.pet-fx2 .fx2-conf {
  position: absolute; left: 50%; top: 52%; width: 11px; height: 11px; border-radius: 3px;
  box-shadow: 0 1px 3px rgba(120, 100, 40, .28);
  animation: confFly 1.5s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes confFly {
  0% { transform: translate(-50%, -50%) scale(.3) rotate(0); opacity: 0; }
  14% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.05) rotate(var(--rot)); opacity: 0; }
}

/* 顶部横幅 */
.pet-fx2 .fx2-banner {
  position: absolute; left: 50%; top: 3.5%; transform: translateX(-50%);
  padding: 7px 18px; border-radius: 999px; white-space: nowrap;
  font-size: 16px; font-weight: 900; color: #7A4A12;
  background: linear-gradient(180deg, #FFF0BE, #FFCB5C);
  border: 2.5px solid rgba(255, 255, 255, .95);
  box-shadow: 0 6px 18px rgba(180, 130, 40, .38);
  animation: bannerPop 1.9s var(--ease-bounce) forwards;
}
@keyframes bannerPop {
  0% { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(.6); }
  16% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.12); }
  30% { transform: translateX(-50%) scale(1); }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(.94); }
}

/* 高档位：宠物跳得更欢 */
.pet-avatar.tier-3900.acting-eat { animation: petEat .5s ease-in-out 5; }
.pet-avatar.tier-3900.acting-play { animation: petPlay .55s ease-in-out 5; }

/* ============ 首页：三张并排卡（每日任务 / 错题集 / 宠物商城） ============ */
.home-col3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.home-card.mini {
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 14px 6px 12px; min-height: 136px; text-align: center;
}
.home-card.mini .hc-icon { width: 46px; height: 46px; border-radius: 15px; }
.home-card.mini .hc-title { font-size: 15px; }
.home-card.mini .hc-sub {
  font-size: 11px; margin-top: 1px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.home-card.mini.urgent {
  box-shadow: 0 0 0 3px rgba(124, 194, 66, .7), 0 8px 20px rgba(124, 194, 66, .26);
  animation: ringPulse 2.4s var(--ease-soft) infinite;
}
/* 主区（开始算 + 我的宠物）作为最重的一块 */
.home-main .home-card { min-height: 196px; }
.home-main .home-card.hero .hc-title { font-size: 30px; }
@media (max-width: 360px) {
  .home-col3 { gap: 8px; }
  .home-card.mini { min-height: 124px; padding: 12px 4px 10px; }
  .home-card.mini .hc-title { font-size: 14px; }
  .home-card.mini .hc-sub { font-size: 10px; }
  .home-main .home-card { min-height: 178px; }
  .home-main .home-card.hero .hc-title { font-size: 26px; }
}

/* ============ 宠物说话气泡 ============
   色板：边框 #5FA552 / 底 #DDF5C7 / 点缀 #FFD479 / 文字 #3F7D34 */
.pet-avatar, .hs-pet { position: relative; }
.pet-say {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%);
  z-index: 9; pointer-events: none;
  width: max-content; max-width: 216px;
  background: #DDF5C7;
  border: 2px solid #5FA552;
  border-radius: 16px;
  padding: 8px 15px; font-size: 13.5px; font-weight: 800; color: #3F7D34;
  line-height: 1.5; text-align: center;
  box-shadow: 0 6px 16px rgba(63, 125, 52, .22);
  animation: sayPop .34s var(--ease-bounce) both, sayOut .5s ease-in var(--hold, 3.25s) forwards;
}
/* 点缀：右上角一颗奶油橙小圆点 */
.pet-say::before {
  content: ""; position: absolute; top: -5px; right: 11px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #FFD479; border: 2px solid #5FA552;
}
/* 小尖角（带边框，指向上方的宠物） */
.pet-say::after {
  content: ""; position: absolute; left: 50%; bottom: -8px;
  width: 13px; height: 13px; margin-left: -7px;
  background: #DDF5C7;
  border-right: 2px solid #5FA552; border-bottom: 2px solid #5FA552;
  border-bottom-right-radius: 3px;
  transform: rotate(45deg);
}
.pet-say span { display: block; }
@keyframes sayPop {
  from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.84); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes sayOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.96); }
}
/* 喂食 / 玩耍的感谢：同一套配色，加一圈奶油橙光晕做区分 */
.pet-say.warm {
  box-shadow: 0 0 0 3px rgba(255, 212, 121, .7), 0 6px 16px rgba(63, 125, 52, .22);
}
/* 小知识：底部标签用点缀色 */
.pet-say .pet-say-tag {
  display: block; font-style: normal; width: max-content;
  font-size: 10.5px; font-weight: 900; letter-spacing: .5px;
  background: #FFD479; color: #4A3A12;
  padding: 2px 9px; border-radius: 999px; margin: 0 auto 5px;
  border: 1.5px solid #5FA552;
}

/* 首页三张卡：图标再放大一档，卡片跟着长高 */
.home-card.mini { min-height: 176px; gap: 9px; }
.home-card.mini .hc-icon { min-width: 66px; min-height: 66px; }
.home-card.mini .hc-title { font-size: 16px; }
.home-card.mini .hc-sub { font-size: 11.5px; }
.home-card.mini.is-done { box-shadow: 0 6px 16px rgba(120, 140, 90, .18); }
/* 我的页各行走：图标也再大一点 */
.li-emoji { min-width: 48px; min-height: 48px; }
.list-item { padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 360px) {
  .home-card.mini { min-height: 158px; }
  .home-card.mini .hc-icon { min-width: 58px; min-height: 58px; }
}

/* ============ 桌面端键盘答题提示（触屏设备不显示） ============ */
.kb-hint { display: none; }
.choice-btn .kb-num { display: none; }
@media (hover: hover) and (pointer: fine) {
  .kb-hint {
    display: block; text-align: center; font-size: 12px; font-weight: 800;
    color: #9AA08C; margin-top: 12px; letter-spacing: .3px;
  }
  .choice-btn { position: relative; padding-left: 48px; }
  .choice-btn .kb-num {
    display: flex; align-items: center; justify-content: center;
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 9px;
    background: #F0EEE2; color: #8A8A72; font-size: 13px; font-weight: 900;
    transition: background var(--t), color var(--t);
  }
  .choice-btn.picked {
    box-shadow: 0 0 0 3px rgba(124, 194, 66, .55), var(--shadow-sm);
    transform: translateY(-2px);
  }
  .choice-btn.picked .kb-num { background: var(--green); color: #fff; }
}

/* ============ 宠物页 · 场景左上角的积分胶囊 ============ */
/* 注意：必须写在 .scene-bg > *:not(.scene-decor) 之后才不会被改掉定位 */
.scene-bg > .scene-points {
  position: absolute; top: 12px; left: 12px; z-index: 8;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px 6px 9px; border-radius: 999px;
  font-size: 14px; font-weight: 900; color: #B26A0C; white-space: nowrap;
  background: linear-gradient(180deg, #FFF7E6, #FBE3B4);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 3px 10px rgba(150, 110, 40, .24);
  pointer-events: none;
}

/* ============ 购买成功提示（更醒目，带图标与余额） ============ */
.toast { display: flex; align-items: center; gap: 10px; }
.toast .toast-ico { flex: 0 0 auto; display: flex; animation: toastPop .5s var(--ease-bounce); }
.toast .toast-msg { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.toast .toast-msg i { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--text-3); margin-top: 3px; }
@keyframes toastPop { from { transform: scale(.5) rotate(-12deg); } }
.toast.buy {
  background: linear-gradient(180deg, #F4FCE7, #DDF3C4);
  border: 2px solid #BEE39A; color: #2F6B12;
  padding: 12px 24px 12px 16px; border-radius: 22px; font-size: 16px;
  box-shadow: 0 12px 28px rgba(108, 150, 66, .32);
}
.toast.buy .toast-msg i { color: #5E7A3A; }

/* ============ 我的：设置行里的开关（复用 .switch，只补布局） ============ */
.list-item .switch { margin-left: 10px; }
.switch[role="switch"] { cursor: pointer; }

/* ============ 补回被误删的样式（关键：首页「开始算」专属图定位） ============ */
.home-main .home-card.hero .hc-art {
  position: relative; width: 118px; height: 118px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.home-main .home-card.hero .hc-art > img.hero-custom {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(90, 120, 60, .18));
}
/* 底部导航：图标放大后导航条要跟着高一点 */
.tab { gap: 2px; }
.tab .ui-icon, .tab img.ui-icon { width: 32px; height: 32px; }
#tabbar { height: 76px; padding: 7px; }
/* 学习数据标题里的图标 */
.dash-head .hc-title .ui-icon { width: 24px; height: 24px; }

/* ============ 睡着的样子：睡姿素材 + 呼吸 + Zzz / 呼噜 ============ */
.pet-avatar.asleep, .hs-pet.asleep { filter: none; }
/* 睡姿图轻轻起伏 = 呼吸 */
.pet-avatar.asleep .sleep-art,
.hs-pet.asleep .sleep-art {
  animation: sleepBreath 4.4s ease-in-out infinite;
  transform-origin: 50% 92%;
  filter: brightness(.98) saturate(.96);
}
@keyframes sleepBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035) translateY(-1%); }
}
/* Zzz 三个字依次往上飘 */
.sleep-zzz { position: absolute; right: 2%; top: 0; z-index: 3; width: 46px; height: 46px; pointer-events: none; }
.sleep-zzz i {
  position: absolute; left: 4px; top: 16px; font-style: normal;
  font-weight: 900; font-size: 15px; color: #5FA552;
  text-shadow: 0 1px 0 #fff; opacity: 0;
  animation: zzzFloat 3.2s ease-in-out infinite;
}
.sleep-zzz i:nth-child(2) { font-size: 19px; animation-delay: .8s; }
.sleep-zzz i:nth-child(3) { font-size: 24px; animation-delay: 1.6s; }
@keyframes zzzFloat {
  0%   { opacity: 0; transform: translate(0, 6px) scale(.8); }
  28%  { opacity: 1; }
  100% { opacity: 0; transform: translate(16px, -30px) scale(1.05); }
}
/* 「呼噜～」小气泡：和说话气泡同一套配色 */
.sleep-zzz .snore {
  position: absolute; left: -34px; top: 34px; white-space: nowrap;
  font-size: 12px; font-weight: 900; color: #3F7D34;
  background: #DDF5C7; border: 2px solid #5FA552; border-radius: 999px;
  padding: 2px 9px; opacity: 0;
  animation: snorePop 5.6s ease-in-out infinite;
}
@keyframes snorePop {
  0%, 62%  { opacity: 0; transform: translateY(4px) scale(.85); }
  70%      { opacity: 1; transform: translateY(0) scale(1.05); }
  78%      { transform: translateY(0) scale(1); }
  96%,100% { opacity: 0; transform: translateY(-6px) scale(.95); }
}

/* ============ 去掉图标容器的白底/浅底 ============
   图标素材自带颜色，不需要再垫一层白底。
   ⚠️ 这条曾在替换气泡样式时被整块误删，导致首页/我的的图标又出现白底方块 */
.home-card .hc-icon,
.home-card.mini .hc-icon,
.home-card.wide .hc-icon,
.home-card.half .hc-icon,
.home-card.strip .hc-icon {
  background: none; border-radius: 0; box-shadow: none;
}
.li-emoji { background: none !important; border-radius: 0; }

/* ============ 宠物页：场景铺满全宽（左右不留白） ============
   抵消 #screen 的左右内边距；其它内容行补回内边距保持对齐。
   ⚠️ 这条曾在替换气泡样式时被整块误删，导致场景变成"被框起来"的卡片 */
.pet-fill { margin-left: -16px; margin-right: -16px; }
.pet-fill .page-head,
.pet-fill .scene-meta,
.pet-fill .lv-progress,
.pet-fill .stat-bars,
.pet-fill .pet-actions,
.pet-fill .scene-hint {
  padding-left: 16px; padding-right: 16px;
}
.pet-fill .scene-bg { box-shadow: none; border-radius: 0 0 var(--radius) var(--radius); }

/* ============ 选择道具：大图网格 + 右上角 X ============ */
.modal .m-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: #F1EEE0; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease-bounce);
}
.modal .m-close:active { transform: scale(.9); }
.modal.has-x .m-title { padding-right: 34px; }

.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pk-card {
  position: relative; cursor: pointer; text-align: center;
  background: linear-gradient(180deg, #FCFAF2, #F4F0DF);
  border: 2px solid #EDE7D2; border-radius: 16px;
  padding: 10px 6px 8px; transition: transform var(--t) var(--ease-bounce), box-shadow var(--t);
}
.pk-card:active { transform: translateY(3px) scale(.96); }
.pk-card .pk-art { display: flex; align-items: center; justify-content: center; height: 74px; }
.pk-card .pk-name { font-size: 13px; font-weight: 900; color: var(--text); margin-top: 2px; }
.pk-card .pk-sub { font-size: 10.5px; font-weight: 800; color: var(--text-3); margin-top: 2px; line-height: 1.35; }
.pk-card .pk-badge {
  position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; background: linear-gradient(180deg, #8FD14F, var(--green));
  color: #fff; font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
}

/* ============ 旅行来信：大图 + 召回按钮 ============ */
.scene-envelope { cursor: pointer; margin-right: 30%; }   /* 往左让开右边的窝 */
.scene-envelope .letter-art { filter: drop-shadow(0 8px 14px rgba(120, 90, 40, .28)); animation: letterFloat 3s var(--ease-soft) infinite; }
@keyframes letterFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-7px) rotate(1.5deg); }
}

.recall-btn {
  position: absolute; left: 16px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-family: inherit; font-size: 12px; font-weight: 900; color: #8A6A3A;
  background: rgba(255, 255, 255, .92); border: 2px solid #EBD9B4;
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease-bounce);
}
.recall-btn:active { transform: scale(.94); }

/* 来信要显眼：更大的投影 + 轻微的呼吸光晕 */
.scene-envelope .letter-art { filter: drop-shadow(0 10px 18px rgba(120, 90, 40, .32)); }


/* ============ 数量角标（商城 / 喂食弹窗共用）：要非常明显 ============ */
.qty-badge {
  position: absolute; top: -10px; right: -10px; z-index: 4;
  min-width: 40px; height: 40px; padding: 0 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF9E6B, #F06E36);
  color: #fff; font-size: 18px; font-weight: 900; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 5px 12px rgba(206, 86, 36, .42), inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.qty-badge small { font-size: 13px; font-weight: 900; margin-right: 1px; opacity: .95; }
/* 弹窗里的旧角标样式不再需要 */
.pk-card .pk-badge { display: none; }

/* ============================================================
 * 旅行明信片
 *  - .postcard-entry  宠物场景下方的入口条
 *  - .postcard        一张明信片（底图 + 可叠加的宠物自拍）
 *  - .pc-*            明信片册页面
 * ============================================================ */
.postcard-entry { margin: 10px 0 0; }
.pce {
  display: flex; align-items: center; gap: 10px; width: 100%;
  font-family: inherit; text-align: left; cursor: pointer;
  background: linear-gradient(180deg, #FFFDF6, #FBF3E2);
  border: 2px solid #EFE4CA; border-radius: var(--radius-sm);
  padding: 9px 12px; box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease-bounce);
}
.pce:active { transform: translateY(2px) scale(.985); }
.pce-icon {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  background: #FDF0D6; display: flex; align-items: center; justify-content: center;
}
.pce-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pce-title { font-size: 14px; font-weight: 900; color: var(--text); }
.pce-sub { font-size: 11px; font-weight: 800; color: var(--text-3); }
.pce-sub b { color: var(--orange-ink); }
.pce-thumbs { flex: 0 0 auto; display: flex; }
.pce-thumb { width: 42px; aspect-ratio: 4 / 3; display: block; border-radius: 8px; overflow: hidden;
  border: 2px solid #fff; box-shadow: var(--shadow-sm); background: #F1EAD8; }
.pce-thumb + .pce-thumb { margin-left: -16px; }
.pce-go { flex: 0 0 auto; display: flex; }

/* 一张明信片：竖版卡片 —— 上半是横图，下半是它留的几句话 */
.postcard {
  display: flex; flex-direction: column; width: 100%; aspect-ratio: 20 / 32;
  overflow: hidden; position: relative;
  background: linear-gradient(180deg, #FFFDF6, #FAF4E6);
  border: 2px solid #EDE2C8; border-radius: 12px; box-shadow: var(--shadow-sm);
}
/* 上半：风景照（横图按 4:3 裁切铺满） */
.postcard .pc-photo { position: relative; display: block; width: 100%; flex: 0 0 auto;
  aspect-ratio: 3 / 2; overflow: hidden; background: #EAF1E4; }
.postcard .pc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* 缺 -pet 成品图时的兜底：风景图上把宠物叠在**左侧**（和素材约定一致） */
.postcard .pc-photo-inner { position: absolute; inset: 0; display: block; }
.postcard .pc-pet {
  position: absolute; left: 5%; bottom: 3%;
  width: 48%; display: flex; align-items: flex-end; justify-content: flex-start; pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(60, 50, 20, .3));
}
.postcard .pc-pet img, .postcard .pc-pet svg { width: 100%; height: auto; }
.postcard.is-selfie .pc-img { filter: saturate(1.05) brightness(1.02); }

/* 下半：留言（手写体 + 字正好落在横格上） */
.postcard .pc-body {
  display: flex; flex-direction: column; flex: 1 1 auto; padding: 8px 10px 9px;
}
/* 手写体：系统自带的楷体（Mac / iPad 都有，不用下载字体） */
.postcard .pc-head,
.postcard .pc-text,
.postcard .pc-sign {
  font-family: "Kaiti SC", "STKaiti", "华文楷体", "楷体-简", "KaiTi", "楷体",
               "Xingkai SC", "Hanzipen SC", "PingFang SC", sans-serif;
}
.postcard .pc-head { display: block; font-size: 13px; font-weight: 900; color: var(--text); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 横格线画在“每一行的下沿”，字号/行高配对 → 字就写在格子里 */
.postcard .pc-text {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden;
  font-size: 12.5px; font-weight: 700; color: #6B6754; line-height: 19px; margin-top: 4px;
  background: repeating-linear-gradient(180deg,
      transparent 0 18px, rgba(132,158,116,.42) 18px 19px);
}
.postcard .pc-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  margin-top: auto; padding-top: 5px; }
.postcard .pc-date { font-size: 10px; font-weight: 800; color: #A79F8A; }
.postcard .pc-sign { font-size: 10.5px; font-weight: 900; color: #8A7A4E;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 三种尺寸档：网格 / 大图 / 缩略图 */
.postcard.size-big .pc-body { padding: 11px 14px 13px; }
.postcard.size-big .pc-head { font-size: 15.5px; white-space: normal; line-height: 1.4; }
.postcard.size-big .pc-text {
  font-size: 13.5px; line-height: 22px; -webkit-line-clamp: 8; margin-top: 5px;
  background: repeating-linear-gradient(180deg,
      transparent 0 21px, rgba(132,158,116,.42) 21px 22px);
}
.postcard.size-big .pc-date, .postcard.size-big .pc-sign { font-size: 11.5px; }
/* 缩略图只留照片（字太小反而像脏点） */
.postcard.size-thumb { aspect-ratio: 4 / 3; }
.postcard.size-thumb .pc-body { display: none; }
.postcard.size-thumb .pc-photo { border-radius: 11px; }
.pce-thumb .postcard .pc-pet { width: 58%; left: 4%; }   /* 小缩略图里要让宠物看得见 */
.pc-big .postcard .pc-pet { width: 42%; left: 4%; }     /* 大图里留白多一点更自然 */
.pc-big .postcard { border-radius: 14px; box-shadow: var(--shadow); border-width: 3px; }

/* ---- 明信片册（列表页） ---- */
.pc-sum {
  background: linear-gradient(180deg, #FFFDF6, #FBF3E2);
  border: 2px solid #EFE4CA; border-radius: var(--radius-sm);
  padding: 12px 14px; box-shadow: var(--shadow-sm); margin-bottom: 10px;
}
.pc-sum-top { display: flex; align-items: baseline; justify-content: space-between; }
.pc-sum-num { font-size: 13px; font-weight: 800; color: var(--text-2); }
.pc-sum-num b { font-size: 20px; font-weight: 900; color: var(--orange-ink); }
.pc-sum-selfie { font-size: 11.5px; font-weight: 800; color: var(--text-3); }
.pc-sum-track { height: 9px; border-radius: 999px; background: #EFE7D4; overflow: hidden; margin: 8px 0 7px; }
.pc-sum-track i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #FFC46B, #F5A623); transition: width .4s var(--ease-soft); }
.pc-sum-tip { font-size: 11.5px; font-weight: 800; color: var(--text-3); }

.pc-filters { display: flex; gap: 8px; margin-bottom: 12px; }
.pc-chip {
  font-size: 12.5px; font-weight: 900; color: var(--text-2); cursor: pointer;
  background: #F4F0E2; border: 2px solid #EAE3CF; border-radius: 999px; padding: 5px 14px;
  transition: transform var(--t) var(--ease-bounce);
}
.pc-chip:active { transform: scale(.95); }
.pc-chip.on { color: #fff; background: linear-gradient(180deg, var(--green), var(--green-d)); border-color: var(--green-d); }

.pc-city { margin-bottom: 16px; }
.pc-city-head { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 8px; }
.pc-city-name { font-size: 15px; font-weight: 900; color: var(--text); }
.pc-city-num { font-size: 11.5px; font-weight: 900; color: var(--text-3); }
/* 两列：明信片要看得清留言，比三列更舒服 */
.pc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }

.pc-card {
  position: relative; font-family: inherit; text-align: left; cursor: pointer;
  padding: 0; background: none; border: none;
  transition: transform var(--t) var(--ease-bounce);
}
.pc-card:active { transform: translateY(2px) scale(.975); }
.pc-card .pc-tagwrap { display: block; }
.pc-card .postcard { width: 100%; }
.pc-card.is-selfie .postcard { border-color: #F3C3D5; }

.pc-card.locked { cursor: default; }
.pc-card.locked .postcard { background: #F5F3EA; border-color: #E7E3D4; box-shadow: none; }
.pc-card.locked .pc-photo.pc-blank {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #EFEDE2, #EFEDE2 9px, #E9E6D8 9px, #E9E6D8 18px);
}
.pc-card.locked .pc-q { font-size: 30px; font-weight: 900; color: #C9C4B2; }
.pc-card.locked .pc-head { color: #B0AC9C; }
.pc-card.locked .pc-text { color: #B6B1A0; -webkit-line-clamp: 2; }
.pc-card.locked .pc-sign { color: #B0AC9C; }


.pc-big { width: 100%; max-width: 262px; margin: 0 auto; }

.pc-card.locked.want-selfie .pc-q { color: #E9B7CC; }

/* ============ 宠物页：饱食+心情 合成一条 ============ */
.pet-fill .stats-row.one {
  display: flex; align-items: center; gap: 6px;
  background: var(--cream); border-radius: 12px; padding: 9px 10px;
  box-shadow: var(--shadow-sm);
}
.pet-fill .stats-row.one .sti { position: relative; display: flex; align-items: center; gap: 5px; flex: 1 1 0; min-width: 0; }
.pet-fill .stats-row.one .sti + .sti { padding-left: 8px; border-left: 1px dashed #E7E1CE; }
.pet-fill .sti-lbl { font-size: 11.5px; font-weight: 800; color: var(--text-3); white-space: nowrap; }
.pet-fill .sti-track { flex: 1 1 auto; height: 8px; border-radius: 999px; background: #E8EAF1; overflow: hidden; min-width: 22px; }
.pet-fill .sti-track > i { display: block; height: 100%; border-radius: 999px; transition: width .4s var(--ease-soft); }
.pet-fill .sti-pct { font-size: 12.5px; font-weight: 900; color: var(--text); white-space: nowrap; }

/* ============ 宠物页：四个按钮一行 ============ */
.pet-fill .pet-actions { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pet-fill .pet-btn { padding: 9px 3px 8px; font-size: 13px; border-radius: 16px; gap: 3px; }
.pet-fill .pet-btn .ic { display: flex; align-items: center; justify-content: center; height: 32px; }
.pet-fill .pet-btn .ic .ui-icon { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)); }
.pet-fill .pet-btn .bl { font-size: 13.5px; font-weight: 900; }
.pet-fill .pet-btn .sub { font-size: 10px; font-weight: 800; opacity: .75; }
.pet-btn.b-pink { background: linear-gradient(180deg, #FFB6CE, #F58CAE); color: #7A2444; }

/* ============ 宠物页：四个圆角按钮（用户指定的浅色）+ 素材图 ============ */
.pet-fill .pet-actions { grid-template-columns: repeat(4, 1fr); gap: 13px; padding-left: 28px; padding-right: 28px; }
.pet-fill .pet-btn.ic-only {
  display: flex; align-items: center; justify-content: center;
  padding: 3%; gap: 0; border-radius: 22px;
  box-shadow: 0 2px 6px rgba(120, 120, 90, .13), inset 0 -3px 0 rgba(0, 0, 0, .05);
  aspect-ratio: 1 / 1;
}
.pet-fill .pet-btn.ic-only:active { transform: translateY(2px) scale(.94); }
.pet-fill .pet-btn.c1 { background: #E4F1FB; }
.pet-fill .pet-btn.c2 { background: #FDE9E2; }
.pet-fill .pet-btn.c3 { background: #FFF6D9; }
.pet-fill .pet-btn.c4 { background: #E8F7E4; }
.pet-fill .pet-btn.ic-only .ic { display: block; width: 100%; height: 100%; position: relative; }
.pet-fill .pet-btn.ic-only .ic img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; max-width: none;
}

/* ============ 商城 · 还没开放的宠物（敬请期待） ============ */
.pet-cell.soon { cursor: pointer; opacity: .92; }
.pet-cell.soon .pc-emoji { filter: grayscale(.35); opacity: .9; }
.pet-cell.soon .pc-name { color: #9A968A; }
.pet-cell.soon .pc-state { color: #B0AC9C; }
.pet-cell .pc-soon {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 900; letter-spacing: .5px; color: #fff;
  background: linear-gradient(180deg, #C9C4B2, #ABA693);
  border-radius: 999px; padding: 2px 10px; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.pet-cell { position: relative; }

/* ============ 首页卡片：用户指定配色（纯色，不用渐变） ============ */
.home-card.g-green  { background: #E8F7E4; }   /* 开始算 */
.home-card.g-yellow { background: #FFF6D9; }   /* 每日任务 */
.home-card.g-red    { background: #FDE9E2; }   /* 错题集 */
.home-card.g-blue   { background: #E4F1FB; }   /* 宠物商城 */
.home-card.g-orange { background: #FCEBDC; }   /* 我的宠物（右上角） */
/* 文字：主色 / 次要色 */
.home-card .hc-title { color: #444444; }
.home-card .hc-sub   { color: #777777; }
.home-card .hc-icon  { background: none; }     /* 浅色卡片上不再垫白块 */

/* 旅行中：喂食/玩耍按钮置灰（视觉上告诉用户现在不可用） */
.pet-fill .pet-btn.ic-only.is-away .ic { opacity: .38; filter: grayscale(.75); }

/* ============ 旅行归来：把带回来的明信片直接摆出来 ============ */
.ret-cards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 2px; }
.ret-card { width: 76px; }
.ret-card .postcard { width: 100%; border-radius: 9px; }
.ret-card .pc-body { display: none; }                     /* 只显示图案 */
.ret-card .pc-photo { border-radius: 9px; }
.ret-card .ret-name { font-size: 10px; font-weight: 800; color: var(--text-3); margin-top: 3px; line-height: 1.25; }
.ret-card.dup { opacity: .55; }
.ret-card .ret-dup { font-size: 9.5px; font-weight: 800; color: #B0AC9C; }
.ret-note { font-size: 12px; color: var(--text-2); margin-top: 9px; line-height: 1.5; }
.ret-note i { font-style: normal; color: #6B6754; }

/* ============ 答题：答错后的提示框（可改 / 可跳过） ============ */
.q-hintbox {
  margin-top: 12px; padding: 12px 14px; border-radius: 16px;
  background: #FFF7E2; border: 2px solid #F3E4BE;
  animation: hintIn .32s var(--ease-bounce);
}
@keyframes hintIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.q-hintbox .qh-title { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 900; color: #8A6A22; }
.q-hintbox .qh-text { font-size: 13.5px; font-weight: 700; color: #7A6A3A; line-height: 1.55; margin: 6px 0 10px; }
.q-hintbox .qh-skip {
  display: block; width: 100%; min-height: 44px; padding: 10px 16px;
  font-size: 14px; font-weight: 800; font-family: inherit; cursor: pointer;
  color: #8A6A22; background: #FFFDF6; border: 2px solid #EEDDB4; border-radius: 999px;
  transition: transform var(--t) var(--ease-bounce);
}
.q-hintbox .qh-skip:active { transform: scale(.97); }
/* 选错的选项：划掉并变灰，避免重复点 */
.choice-btn.wrong { opacity: .5; text-decoration: line-through; }

/* ============ 明信片入口（可点） ============ */
.stat-link { cursor: pointer; border-radius: 12px; padding: 2px 6px; margin: -2px -6px; transition: background var(--t); }
.stat-link:active { background: #F6F2E4; }
.stat-link .muted { display: inline-flex; align-items: center; gap: 2px; }
.dash-link {
  display: flex; align-items: center; gap: 8px; width: 100%;
  font-family: inherit; cursor: pointer; text-align: left;
  margin-top: 12px; padding: 11px 14px;
  background: #FFFDF6; border: 2px solid #F0E7D2; border-radius: 15px;
  transition: transform var(--t) var(--ease-bounce);
}
.dash-link:active { transform: translateY(2px) scale(.985); }
.dash-link .dkl-t { font-size: 14px; font-weight: 900; color: #6A6450; }
.dash-link .dkl-v { font-size: 12.5px; font-weight: 800; color: var(--text-3); }
.dash-link .dkl-v b { color: #E0729E; font-size: 15px; }
.dash-link .dkl-go { margin-left: auto; display: flex; align-items: center; gap: 2px;
  font-size: 12.5px; font-weight: 800; color: #A9A395; }

/* ============ 我的页 · 备份进度（醒目卡片） ============ */
.backup-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  font-family: inherit; text-align: left; cursor: pointer;
  margin-top: 14px; padding: 14px 16px;
  background: linear-gradient(180deg, #FFF8E6, #FDEFCF);
  border: 2px solid #F2E0B6; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease-bounce);
}
.backup-card:active { transform: translateY(2px) scale(.985); }
.backup-card .bk-ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px;
  background: #FFFDF4; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .05);
}
.backup-card .bk-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.backup-card .bk-title { font-size: 15.5px; font-weight: 900; color: #6A5220; }
.backup-card .bk-sub { font-size: 11.5px; font-weight: 800; color: #A08850; }
.backup-card .bk-go {
  flex: 0 0 auto; display: flex; align-items: center; gap: 2px;
  font-size: 12.5px; font-weight: 900; color: #B08A3A;
}


/* ============ 备份弹窗：按钮图标对齐 + 更多选项 ============ */
.btn .ui-icon { vertical-align: -3px; margin-right: 6px; }
.modal .m-actions.col { flex-direction: column; }
.modal .m-actions.col .btn { flex: none; }
.bk-hint { font-size: 11.5px; font-weight: 800; color: #A9A395; text-align: center; margin: 10px 2px 4px; line-height: 1.6; }
details.bk-more { margin-top: 12px; border-top: 1px dashed #E6E0CE; padding-top: 10px; }
details.bk-more > summary {
  font-size: 12.5px; font-weight: 900; color: #8A8474; cursor: pointer;
  list-style: none; text-align: center; padding: 4px 0;
}
details.bk-more > summary::-webkit-details-marker { display: none; }
details.bk-more > summary::before { content: '▾ '; }
details.bk-more[open] > summary::before { content: '▴ '; }
details.bk-more > textarea { margin-top: 8px; }

/* ============ 分享给朋友 ============ */
.share-card {
  margin-top: 6px; padding: 22px 18px 18px;
  background: linear-gradient(180deg, #FFFDF6, #FBF3E2);
  border: 2px solid #EFE4CA; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-align: center;
}
.share-card .sc-title { font-size: 26px; font-weight: 900; color: #5E4A20; letter-spacing: 2px; }
.share-card .sc-sub { font-size: 13px; font-weight: 800; color: #8A7A50; margin-top: 4px; }
.share-card .sc-qr { margin: 16px auto 8px; display: flex; justify-content: center; align-items: center; min-height: 248px; }
.share-card .sc-qr-img { border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(120, 100, 60, .12); }
.share-card .sc-qr svg { border-radius: 12px; background: #fff; }
.share-card .sc-url { font-size: 12px; font-weight: 800; color: #A08A50; word-break: break-all; margin-top: 6px; }
.share-card .sc-tip { font-size: 12px; font-weight: 700; color: var(--text-3); line-height: 1.7; margin-top: 12px; }
.share-card .sc-tip b { color: #8A6A22; }
.sh-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ============ 场景比例统一成 4:5 ============
   之前：首页是 4:5、宠物详情是矮横版 → 同一张素材两处裁得不一样 ✗
   现在两处都按 4:5 展示（素材按 1080×1350 做，一点都不会被裁） */
.pet-scene .scene-bg { aspect-ratio: 4 / 5; min-height: 200px; }

/* ============ 分享面板素材（assets/share/panel.png，720:1000）============
   有面板图时：卡片按面板比例铺满，代码只叠「二维码 + 网址」两样动态内容 */
.share-card.has-panel {
  position: relative; aspect-ratio: 720 / 1000;
  background-size: 100% 100%; background-repeat: no-repeat;
  border: none; padding: 0;
}
.share-card.has-panel .sc-title,
.share-card.has-panel .sc-sub,
.share-card.has-panel .sc-tip { display: none; }
.share-card.has-panel .sc-qr {
  position: absolute; left: 20.83%; top: 30%; width: 58.33%;
  min-height: 0; margin: 0; padding: 0;
}
.share-card.has-panel .sc-url {
  position: absolute; left: 6%; right: 6%; top: 92.6%; margin: 0;
  background: rgba(60, 50, 30, .35); color: #fff; border-radius: 999px;
  padding: 6px 10px; font-size: 12px;
}

/* ============ 宠物详情页：顶栏压窄 + 场景和「我的」页统一 4:5 ============
   原来场景是 flex:1（被拉伸成剩余高度），和「我的」页大小不一致 ✗
   现在两处都按 4:5 展示（素材 1080×1350 完整显示，顶部天空不会被切） */
.pet-fill .scene-bg {
  flex: 0 0 auto; min-height: 0; width: 100%; align-self: stretch;
  aspect-ratio: 4 / 5;
}
/* 顶栏压窄：返回按钮 / 标题 / 信息行 / 等级条都瘦一圈，把空间让给场景 */
.pet-fill .page-head { margin-bottom: 0; }
.pet-fill .page-head .back-btn { width: 36px; height: 36px; border-radius: 11px; }
.pet-fill .page-head .page-title { font-size: 20px; }
.pet-fill .scene-meta.top { margin: 0; gap: 6px; }
.pet-fill .scene-meta.top .pet-lv-mini { font-size: 11.5px; padding: 2px 8px; }
.pet-fill .scene-meta.top .acc-chip { width: 24px; height: 24px; border-radius: 8px; }
.pet-fill .lv-progress { gap: 3px; }
.pet-fill .lvp-head { font-size: 11px; }
.pet-fill .lvp-lv { font-size: 12px; }
.pet-fill .lvp-track { height: 7px; }


/* ============ 宠物详情页：能滚动（不再把下面的元素挤出屏幕）+ 按钮瘦身 ============ */
/* 场景变高后，原来 height:100% 会把下面的进度条/按钮挤到屏幕外 ✗
   改成内部可滚动 → 所有元素都在，往上滑就能看到 ✓ */
.pet-fill { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }




/* ============ 宠物详情页 · 布局修正（v125）============
   问题1：.pet-scene 被 flex 压扁 → 里面的场景"溢出"盖住下面的进度条/按钮 ✗
   问题2：上一版只把图标缩小、色块没缩 → 又丑又乱 ✗
   现在：① 场景不再被压扁（flex:0 0 auto）② 场景略微内缩、两处大小一致
        ③ 按钮整体缩小（正方形色块 + 图标一起） */
.pet-fill .pet-scene { flex: 0 0 auto; min-height: 0; }

/* 场景：两边各内缩一点，4:5 不变（画面不裁切），高度自然矮一点 */
.pet-fill .scene-bg {
  flex: 0 0 auto; min-height: 0; aspect-ratio: 4 / 5;
  width: auto; align-self: stretch; margin: 0 12px;
  border-radius: var(--radius);
}
/* 「我的」页场景：和内缩后的宠物页等宽（同样 4:5、同样圆角） */
.home-scene {
  aspect-ratio: 4 / 5; min-height: 0;
  margin: 0 -4px; border-radius: var(--radius);
}
/* 四个动作按钮：整体缩小（收窄整行 → 正方形按钮和图标一起变小） */
.pet-fill .pet-actions { padding-left: 46px; padding-right: 46px; gap: 8px; }

/* 四个按钮：均匀铺满整行（每列居中 + 等距），不再是"挤在中间" */
.pet-fill .pet-actions {
  padding-left: 14px; padding-right: 14px; gap: 12px;
  justify-items: center;
}
.pet-fill .pet-btn.ic-only { max-width: 74px; width: 100%; margin: 0 auto; }

/* 关键修正：网格列允许收缩（minmax(0,1fr)），否则 110px 的图标会把列撑爆 → 第4个溢出屏幕 ✗ */
.pet-fill .pet-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  padding-left: 16px; padding-right: 16px; gap: 12px;
  justify-items: center;
}
.pet-fill .pet-btn.ic-only { max-width: 76px; width: 100%; margin: 0 auto; }
.pet-fill .pet-btn.ic-only .ic img { width: 100% !important; height: 100% !important; }

/* 顶栏右侧的配饰/衣橱：紧凑一点，不占额外一行 */
.pet-fill .page-head { flex-wrap: nowrap; }
.pet-fill .page-head .scene-meta.top { margin: 0; gap: 5px; flex-wrap: nowrap; }
.pet-fill .page-head .wardrobe-btn {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: var(--purple-tint, #EFE7FB); color: #6E58A8; font-weight: 900;
}
.pet-fill .page-head .acc-chip { width: 24px; height: 24px; border-radius: 8px; }

/* 顶栏标题后面的小铅笔（提示可以改名） */
.pet-fill .page-head .page-title .rename-hint {
  display: inline-flex; align-items: center; margin-left: 6px; vertical-align: -2px;
  opacity: .85;
}
.pet-fill .page-head .page-title { display: inline-flex; align-items: center; }

/* 铅笔再明显一点（浅黄圆底 + 琥珀色笔） */
.pet-fill .page-head .page-title .rename-hint {
  margin-left: 7px; width: 22px; height: 22px; border-radius: 999px;
  background: #FDF3D6; align-items: center; justify-content: center;
}
