/* ============================================================
   包包岛 包包岛 · 设计系统
   暖调纸感底色 · 玻璃拟态卡片 · 衬线标题 · 移动端优先
   ============================================================ */

:root {
  --bg: #faf6f1;
  --bg-2: #f2ebe4;
  --card: rgba(255, 255, 255, 0.72);
  --ink: #3a3242;
  --ink-2: #7a7185;
  --ink-3: #a79fb1;
  --rose: #e2576d;
  --rose-deep: #c94158;
  --rose-soft: #fce7eb;
  --gold: #e39a3b;
  --gold-soft: #fbf0dc;
  --sage: #5f9c7f;
  --sage-soft: #e2f0e8;
  --line: rgba(58, 50, 66, 0.08);
  --font-display: 'Fraunces', 'Noto Serif SC', 'Songti SC', serif;
  --shadow-sm: 0 2px 8px rgba(93, 72, 90, 0.06);
  --shadow: 0 10px 30px rgba(93, 72, 90, 0.08);
  --shadow-lg: 0 22px 60px rgba(93, 72, 90, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html, body { overflow-x: hidden; max-width: 100vw; }
.grid-2 > * { min-width: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans SC',
    'Source Han Sans SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(720px 520px at 88% -8%, rgba(255, 214, 196, 0.55), transparent 62%),
    radial-gradient(640px 520px at -8% 22%, rgba(228, 214, 250, 0.4), transparent 62%),
    radial-gradient(560px 460px at 55% 108%, rgba(255, 238, 196, 0.45), transparent 62%);
}

::selection { background: rgba(226, 87, 109, 0.18); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #e4dad2; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

button { font-family: inherit; }
img { max-width: 100%; }

/* ---------------- 布局骨架 ---------------- */

.content {
  padding: calc(84px + env(safe-area-inset-top)) 16px calc(118px + env(safe-area-inset-bottom));
  min-height: 100vh;
}

#main { max-width: 880px; margin: 0 auto; }

.view { animation: viewIn 0.34s cubic-bezier(0.22, 0.8, 0.32, 1); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- 顶栏（移动端） ---------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(250, 246, 241, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.top-logo { display: flex; align-items: center; gap: 9px; }

.logo-mark {
  width: 34px; height: 34px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 17px;
  background: linear-gradient(140deg, #ffb27a, #f2798b 52%, #b85e9e);
  box-shadow: 0 5px 14px rgba(217, 78, 108, 0.3);
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.top-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rose-deep);
  box-shadow: var(--shadow-sm);
}

/* ---------------- 侧栏（桌面端） ---------------- */

.sidebar {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 248px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px 20px 22px;
  background: rgba(250, 246, 241, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--line);
}

.side-logo { display: flex; align-items: center; gap: 11px; padding: 0 10px; }
.side-logo .logo-mark { width: 42px; height: 42px; border-radius: 15px; font-size: 21px; }
.side-logo .logo-name { font-size: 21px; }
.logo-tag { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0.05em; }

.nav-list { display: flex; flex-direction: column; gap: 4px; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: none;
  background: transparent;
  border-radius: 14px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}

.nav-item:hover { background: rgba(255, 255, 255, 0.7); }
.nav-item:active { transform: scale(0.98); }
.nav-emoji { font-size: 18px; width: 22px; text-align: center; }
.nav-item.active { background: #fff; color: var(--rose-deep); font-weight: 700; box-shadow: var(--shadow-sm); }

.nav-badge {
  position: absolute;
  top: 9px; right: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 2px #fff;
}

.side-foot { margin-top: auto; }

.side-couple {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.12s;
}
.side-couple:hover { transform: translateY(-1px); }
.side-emojis { font-size: 21px; letter-spacing: 1px; }
.side-couple .sc-text { flex: 1; min-width: 0; }
.side-couple .sc-days { font-size: 12.5px; font-weight: 700; color: var(--rose-deep); }
.side-couple .sc-hint { font-size: 11px; color: var(--ink-3); }

/* ---------------- 底部标签栏（移动端） ---------------- */

.tabbar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 6px;
  box-shadow: 0 14px 40px rgba(93, 72, 90, 0.14);
}
.tabbar::-webkit-scrollbar { display: none; }

.tab-item {
  position: relative;
  flex: 0 0 25%; /* 一屏显示 4 个，其余左右滑动查看 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 0 6px;
  border: none;
  background: transparent;
  border-radius: 18px;
  color: var(--ink-3);
  font-size: 10.5px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.tab-emoji { font-size: 20px; transition: transform 0.15s; }
.tab-item.active { color: var(--rose-deep); background: var(--rose-soft); }
.tab-item.active .tab-emoji { transform: scale(1.12) translateY(-1px); }
.tab-item .nav-badge { top: 4px; right: 18%; }

/* ---------------- 通用组件 ---------------- */

.card {
  background: var(--card);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, #ef7086, #d94e6c);
  color: #fff;
  box-shadow: 0 6px 18px rgba(217, 78, 108, 0.32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(217, 78, 108, 0.4); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(58, 50, 66, 0.05); color: var(--ink); }
.btn-soft { background: var(--rose-soft); color: var(--rose-deep); }
.btn-soft:hover { background: #f9d8df; }
.btn-stop { background: var(--rose-soft); color: var(--rose-deep); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 12px; }

.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: rgba(226, 87, 109, 0.5); box-shadow: 0 0 0 4px rgba(226, 87, 109, 0.12); }
.input::placeholder { color: var(--ink-3); }
textarea.input { resize: vertical; min-height: 76px; line-height: 1.65; }

.icon-btn {
  width: 28px; height: 28px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  display: grid;
  place-items: center;
  transition: background 0.12s, color 0.12s;
}
.icon-btn:hover { background: rgba(58, 50, 66, 0.06); color: var(--rose-deep); }

.hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-3); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.section { margin-top: 22px; }
#sec-notifications { scroll-margin-top: calc(82px + env(safe-area-inset-top)); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 4px 12px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}
.section-more {
  border: none;
  background: none;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.12s;
}
.section-more:hover { color: var(--rose-deep); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 32px 26px;
  color: #fff;
  background: linear-gradient(140deg, #ffb27a 0%, #f2798b 46%, #b85e9e 100%);
  box-shadow: 0 20px 48px rgba(201, 90, 120, 0.35);
}
.hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 62%);
}
/* 原 .hero::after 白色心形水印已移除：在部分手机宽度下会与「说点什么」按钮重叠 */
.hero-mail {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(115, 44, 76, 0.12);
  transition: transform 0.12s, background 0.15s;
}
.hero-mail:hover { background: rgba(255, 255, 255, 0.29); }
.hero-mail:active { transform: scale(0.95); }
.hero-mail-icon { font-size: 20px; line-height: 1; }
.hero-mail-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e43f5a;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(120, 28, 51, 0.36);
}
.hero-greet { font-size: 14px; opacity: 0.92; padding-right: 46px; }
.hero-label {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.96;
}
.hero-num {
  font-family: 'Fraunces', var(--font-display);
  font-size: clamp(54px, 12vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  margin: 2px 0 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  animation: numPop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
@keyframes numPop {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: none; }
}
.hero-unit { font-size: 15px; opacity: 0.95; margin-left: 6px; }
.hero-sub { margin-top: 4px; font-size: 13px; opacity: 0.88; }
.hero-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  color: #fff;
  cursor: default;
}
button.hero-chip { cursor: pointer; transition: background 0.15s; }
button.hero-chip:hover { background: rgba(255, 255, 255, 0.3); }
.hero-chip.hero-set { background: #fff; color: var(--rose-deep); border-color: transparent; font-weight: 700; }

/* ---------------- 快捷操作 ---------------- */

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }

.qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 13px 4px 11px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s, box-shadow 0.15s;
}
.qa-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.qa-emoji { font-size: 22px; }

/* ---------------- 首页区块 ---------------- */

.meeting-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}
.meeting-main { flex: 1; min-width: 0; }
.meeting-kicker { font-size: 12px; font-weight: 800; color: var(--rose-deep); letter-spacing: 0.04em; }
.meeting-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.meeting-date { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.meeting-countdown {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 800;
}
.meeting-empty-title { margin-top: 3px; font-size: 16px; font-weight: 750; color: var(--ink); }
.meeting-note { margin-top: 4px; color: var(--ink-2); font-size: 12.5px; line-height: 1.6; }
.meeting-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.miss-btn { border: 1px solid var(--line); }

.mood-slot {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 2px;
  border-top: 1px solid var(--line);
}
.mood-slot:first-child { border-top: none; padding-top: 4px; }
.mood-slot .ms-emoji {
  width: 44px; height: 44px;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 22px;
  flex: 0 0 auto;
}
.ms-main { flex: 1; min-width: 0; }
.ms-who { font-size: 13px; font-weight: 600; color: var(--ink); }
.ms-text { font-size: 13px; color: var(--ink-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-time { font-size: 11.5px; color: var(--ink-3); }

.mini-bars { display: flex; flex-direction: column; gap: 12px; }
.mini-bar-row { display: flex; align-items: center; gap: 10px; }
.mini-bar-who { width: 74px; font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.mini-bar-track { flex: 1; height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.mini-bar-fill { height: 100%; border-radius: 999px; transition: width 0.5s cubic-bezier(0.22, 0.8, 0.32, 1); }
.mini-bar-val { font-size: 12px; font-weight: 700; color: var(--ink-2); width: 44px; text-align: right; flex: 0 0 auto; }
.fill-me { background: linear-gradient(90deg, #f0889b, #e2576d); }
.fill-partner { background: linear-gradient(90deg, #f0c47e, #e39a3b); }
.goal-note { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: center; }

.thumb-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.thumb-strip::-webkit-scrollbar { display: none; }
.thumb {
  flex: 0 0 92px;
  height: 92px;
  border-radius: 15px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.15s;
  box-shadow: var(--shadow-sm);
}
.thumb:hover { transform: scale(1.04); }

.invite-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  background: linear-gradient(135deg, #fff0e6, #fde7ef);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 14px 16px;
}
.invite-emoji { font-size: 26px; }
.invite-text { flex: 1; font-size: 13.5px; color: var(--ink); line-height: 1.55; }
.invite-code { font-weight: 800; color: var(--rose-deep); letter-spacing: 0.12em; }

/* ---------------- 心情选择 ---------------- */

.mood-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.mood-chips::-webkit-scrollbar { display: none; }
.mood-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 3px 2px;
  border-radius: 14px;
  min-width: 54px;
  transition: transform 0.12s;
}
.mood-chip:active { transform: scale(0.94); }
.mc-emoji {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 21px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.mood-chip.selected .mc-emoji {
  transform: scale(1.12);
  box-shadow: 0 0 0 2px var(--ink), 0 4px 12px rgba(58, 50, 66, 0.14);
}
.mc-label { font-size: 10.5px; color: var(--ink-3); }
.mood-chip.selected .mc-label { color: var(--rose-deep); font-weight: 700; }

/* ---------------- 动态流 ---------------- */

.composer { padding: 18px; }
.composer .composer-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.composer .composer-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.composer .mood-chips { margin-top: 12px; }
.composer textarea { margin-top: 6px; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.composer-count { font-size: 12px; color: var(--ink-3); flex: 1; }

.day-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 6px 4px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.day-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.feed-item { padding: 16px 18px; margin-top: 14px; }
.feed-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.author-chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.author-emoji {
  width: 26px; height: 26px;
  border-radius: 10px;
  background: var(--bg-2);
  display: grid; place-items: center;
  font-size: 14px;
}
.feed-time { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }

.mood-row { display: flex; gap: 13px; align-items: flex-start; }
.mood-big {
  width: 50px; height: 50px;
  border-radius: 17px;
  display: grid; place-items: center;
  font-size: 25px;
  flex: 0 0 auto;
}
.mood-text { font-size: 15px; line-height: 1.75; color: var(--ink); margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.mood-text.dim { color: var(--ink-3); }

.feed-study { display: flex; gap: 12px; align-items: flex-start; }
.feed-study-icon {
  width: 50px; height: 50px;
  border-radius: 17px;
  background: var(--sage-soft);
  display: grid; place-items: center;
  font-size: 23px;
  flex: 0 0 auto;
}
.feed-study-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.feed-study-dur {
  font-size: 12px;
  font-weight: 700;
  color: var(--sage);
  background: var(--sage-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.feed-study-note { font-size: 13.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.6; word-break: break-word; }

.feed-photo {
  width: 100%;
  display: block;
  border-radius: 14px;
  cursor: zoom-in;
  max-height: 480px;
  object-fit: cover;
}
.feed-photo-caption { font-size: 14px; color: var(--ink-2); margin: 10px 2px 0; line-height: 1.6; word-break: break-word; }

.feed-wishdone {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14.5px;
  color: #8a5f1f;
  background: var(--gold-soft);
  border-radius: 14px;
  padding: 12px 14px;
}
.feed-system { font-size: 13.5px; color: var(--ink-2); text-align: center; padding: 2px 4px; }

.reactions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.react-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
  transition: all 0.15s;
}
.react-btn:hover { border-color: rgba(226, 87, 109, 0.4); transform: translateY(-1px); }
.react-btn.active { background: var(--rose-soft); border-color: rgba(226, 87, 109, 0.45); color: var(--rose-deep); font-weight: 700; }
.react-emoji { font-size: 15px; }
.react-count { font-size: 12px; }

/* ---------------- 学习页 ---------------- */

.timer-card { padding: 26px 20px 22px; display: flex; flex-direction: column; align-items: center; }
.timer-ring-wrap { position: relative; width: 214px; height: 214px; margin: 4px 0 2px; }
.timer-ring { transform: rotate(-90deg); display: block; }
.timer-ring .ring-bg { fill: none; stroke: #f1e8e0; stroke-width: 10; }
.timer-ring .ring-fg {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s linear;
}
.timer-clock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.timer-time {
  font-family: 'Fraunces', var(--font-display);
  font-size: 42px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.timer-state { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.18em; }
.timer-subject-wrap { width: 100%; margin-top: 16px; }
.timer-actions { display: flex; gap: 10px; margin-top: 16px; width: 100%; }
.timer-actions .btn { flex: 1; padding: 13px 10px; }
.tomato-row { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tomato { font-size: 15px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-box { background: var(--bg); border-radius: 16px; padding: 14px 10px; text-align: center; }
.stat-who { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 5px; }
.stat-min { font-family: 'Fraunces', var(--font-display); font-size: 27px; font-weight: 600; margin-top: 4px; color: var(--ink); }
.stat-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }

.streak-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  background: linear-gradient(135deg, #fff3e0, #fde8dc);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #9a5b2e;
}
.streak-fire { font-size: 21px; }

.chart-wrap { padding: 20px 18px 14px; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 168px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-area { display: flex; gap: 4px; align-items: flex-end; height: 100%; }
.chart-bar {
  width: 13px;
  border-radius: 7px 7px 3px 3px;
  min-height: 3px;
  transition: height 0.5s cubic-bezier(0.22, 0.8, 0.32, 1);
}
.bar-me { background: linear-gradient(180deg, #f0889b, #e2576d); }
.bar-partner { background: linear-gradient(180deg, #f0c47e, #e39a3b); }
.chart-label { font-size: 11px; color: var(--ink-3); }
.chart-legend { display: flex; gap: 16px; justify-content: center; margin-top: 14px; font-size: 12px; color: var(--ink-2); }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 5px; }

.hist-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); }
.hist-item:first-child { border-top: none; }
.hist-emoji {
  width: 38px; height: 38px;
  border-radius: 13px;
  background: var(--sage-soft);
  display: grid; place-items: center;
  font-size: 17px;
  flex: 0 0 auto;
}
.hist-main { flex: 1; min-width: 0; }
.hist-title { font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.hist-dur { font-size: 13px; font-weight: 700; color: var(--sage); flex: 0 0 auto; }

/* ---------------- 相册页 ---------------- */

.upload-zone {
  border: 2px dashed rgba(226, 87, 109, 0.35);
  border-radius: 22px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.15s, border-color 0.15s;
}
.upload-zone:hover, .upload-zone.dragover { background: var(--rose-soft); border-color: var(--rose); }
.uz-emoji { font-size: 30px; }
.uz-title { font-size: 14.5px; font-weight: 700; margin-top: 6px; color: var(--ink); }
.uz-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.album-grid { columns: 2; column-gap: 12px; margin-top: 16px; }
.photo-cell {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform 0.15s, box-shadow 0.15s;
}
.photo-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.photo-cell img { width: 100%; display: block; }
.pc-cap { padding: 8px 11px 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-author { display: flex; align-items: center; gap: 5px; padding: 3px 11px 9px; font-size: 11.5px; color: var(--ink-3); }

.up-preview {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  border-radius: 14px;
  background: var(--bg);
  margin-bottom: 14px;
}

/* ---------------- 灯箱 ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 19, 28, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.lightbox.show { opacity: 1; }
.lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.lb-close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.12s;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.26); }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s;
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.26); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-caption {
  position: absolute;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 18px;
  border-radius: 999px;
  max-width: 84vw;
  text-align: center;
}
.lb-del {
  position: absolute;
  bottom: calc(88px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12.5px;
}
.lb-del:hover { background: rgba(226, 87, 109, 0.75); }

/* ---------------- 我们页 ---------------- */

.couple-card { padding: 28px 22px; text-align: center; }
.couple-emojis { font-size: 42px; display: flex; justify-content: center; align-items: center; gap: 15px; }
.ce-heart { font-size: 20px; animation: heartbeat 2.4s ease-in-out infinite; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.22); }
  24% { transform: scale(1); }
  36% { transform: scale(1.14); }
  48% { transform: scale(1); }
}
.couple-names {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  gap: 9px;
  justify-content: center;
  align-items: center;
}
.cn-and { font-size: 13px; color: var(--ink-3); font-family: inherit; font-weight: 500; }
.couple-meta { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}
.code-chip:hover { background: #f9d8df; transform: translateY(-1px); }
.code-chip .cc-hint { font-size: 11px; letter-spacing: 0.02em; opacity: 0.75; }

.set-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-top: 1px solid var(--line);
  background: none;
  border-left: none; border-right: none; border-bottom: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.set-row:first-of-type { border-top: none; }
.set-row:hover .set-label { color: var(--rose-deep); }
.sr-icon { font-size: 17px; width: 26px; text-align: center; flex: 0 0 auto; }
.set-label { flex: 1; font-size: 14px; color: var(--ink); font-weight: 600; transition: color 0.12s; }
.set-value { font-size: 13px; color: var(--ink-3); text-align: right; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mile-item { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); }
.mile-item:first-child { border-top: none; }
.mile-badge {
  width: 40px; height: 40px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 17px;
  background: var(--bg-2);
  flex: 0 0 auto;
}
.mile-item.done .mile-badge { background: var(--sage-soft); }
.mile-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.mile-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.mile-right {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--rose-deep);
  background: var(--rose-soft);
  padding: 4px 11px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.mile-item.done .mile-right { background: var(--sage-soft); color: var(--sage); }

.wish-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
  margin: 4px 0 6px;
}
.wish-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0889b, #e2576d);
  transition: width 0.4s cubic-bezier(0.22, 0.8, 0.32, 1);
}
.wish-count { font-size: 12px; color: var(--ink-3); text-align: right; }
.wish-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); }
.wish-row:first-child { border-top: none; }
.wish-check {
  width: 24px; height: 24px;
  border-radius: 9px;
  border: 2px solid rgba(226, 87, 109, 0.4);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #fff;
  flex: 0 0 auto;
  transition: all 0.15s;
}
.wish-check.done { background: var(--sage); border-color: var(--sage); }
.wish-title { flex: 1; font-size: 14.5px; color: var(--ink); word-break: break-word; }
.wish-title.done { text-decoration: line-through; color: var(--ink-3); }
.wish-by { font-size: 11.5px; color: var(--ink-3); flex: 0 0 auto; }
.wish-del { flex: 0 0 auto; }

.notes-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.note-card {
  position: relative;
  border-radius: 16px;
  padding: 18px 16px 13px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-0.7deg);
  transition: transform 0.15s;
}
.note-card:hover { transform: rotate(0deg) translateY(-2px); }
.note-card:nth-child(even) { transform: rotate(0.6deg); }
.note-card:nth-child(even):hover { transform: rotate(0deg) translateY(-2px); }
.note-card::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 58px; height: 17px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.nc-0 { background: #fdf6d8; }
.nc-1 { background: #fbe4e9; }
.nc-2 { background: #e3f0e8; }
.nc-3 { background: #e8eef9; }
.note-text { font-size: 14px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.note-meta { margin-top: 11px; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--ink-3); }

.note-input-row { display: flex; gap: 10px; }

/* ---------------- 空状态 ---------------- */

.empty { text-align: center; padding: 36px 16px; color: var(--ink-3); }
.empty-emoji { font-size: 36px; }
.empty-title { margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.empty-sub { margin-top: 4px; font-size: 12.5px; line-height: 1.7; }

/* ---------------- 骨架屏 ---------------- */

.skel {
  background: linear-gradient(100deg, #f0e9e2 30%, #f8f3ed 50%, #f0e9e2 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  border-radius: 12px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-hero { height: 200px; border-radius: 26px; }
.skel-card { height: 118px; margin-top: 16px; }
.skel-line { height: 14px; margin-top: 10px; }

/* ---------------- 弹层 ---------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(58, 50, 66, 0.38);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s;
}
.overlay.show { opacity: 1; }
.modal {
  width: min(94vw, 420px);
  background: #fff;
  border-radius: 24px;
  padding: 26px 24px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.2s cubic-bezier(0.22, 0.8, 0.32, 1);
  max-height: 86vh;
  overflow-y: auto;
}
.overlay.show .modal { transform: none; }
.modal-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); }
.modal-body { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.modal-body .input { margin-top: 8px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.modal-actions .btn { flex: 1; }

.avatar-picker { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 10px; }
.avatar {
  aspect-ratio: 1;
  border-radius: 13px;
  font-size: 20px;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.12s;
}
.avatar:hover { transform: scale(1.06); }
.avatar.selected { border-color: var(--rose); background: var(--rose-soft); transform: scale(1.08); }

/* ---------------- Toast ---------------- */

.toast-box {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(112px + env(safe-area-inset-bottom));
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(58, 50, 66, 0.94);
  color: #fff7f0;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.22, 0.8, 0.32, 1);
  max-width: 88vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: none; }
.toast-error { background: rgba(201, 65, 88, 0.95); }

/* ---------------- 小心心爆裂 ---------------- */

.burst {
  position: fixed;
  z-index: 400;
  font-size: 18px;
  pointer-events: none;
  animation: burstFly 0.9s ease-out forwards;
}
@keyframes burstFly {
  from { opacity: 1; transform: translate(0, 0) scale(0.5); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.35); }
}

/* ---------------- 引导页 ---------------- */

.obo { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.obo-card {
  width: min(94vw, 412px);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 40px 30px 34px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: viewIn 0.4s cubic-bezier(0.22, 0.8, 0.32, 1);
}
.obo-logo {
  width: 80px; height: 80px;
  margin: 0 auto 22px;
  border-radius: 27px;
  background: linear-gradient(140deg, #ffb27a, #f2798b 52%, #b85e9e);
  display: grid;
  place-items: center;
  font-size: 38px;
  box-shadow: 0 16px 34px rgba(217, 78, 108, 0.34);
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.obo-title { font-family: var(--font-display); font-size: 31px; font-weight: 700; color: var(--ink); }
.obo-sub { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.obo-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.obo-field { text-align: left; margin-top: 18px; }
.obo-label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; display: block; }
.obo-back { margin-top: 18px; background: none; border: none; color: var(--ink-3); font-size: 13px; cursor: pointer; transition: color 0.12s; }
.obo-back:hover { color: var(--ink); }
.obo-note { margin-top: 18px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }

.code-display { margin-top: 22px; border: 2px dashed rgba(226, 87, 109, 0.35); background: var(--rose-soft); border-radius: 18px; padding: 18px 14px; }
.cd-label { font-size: 12.5px; color: var(--ink-2); }
.cd-code {
  font-family: 'Fraunces', var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--rose-deep);
  margin-top: 6px;
}
.waiting { margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }
.wait-dots { display: flex; gap: 7px; justify-content: center; margin-top: 14px; }
.wait-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rose);
  animation: dotBounce 1.2s infinite;
}
.wait-dots i:nth-child(2) { animation-delay: 0.15s; }
.wait-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-7px); opacity: 1; }
}

/* ---------------- 响应式 ---------------- */

@media (min-width: 1100px) {
  .topbar { display: none; }
  .tabbar { display: none; }
  .sidebar { display: flex; }
  .content { margin-left: 248px; padding: 42px 40px 80px; }
  .toast-box { bottom: 36px; }
}

@media (max-width: 1099px) {
  .sidebar { display: none; }
  /* 手机端一律单列自适应，绝不横向拖动 */
  .grid-2 { grid-template-columns: 1fr; }
  .album-grid { columns: 2; }
  .notes-grid { grid-template-columns: 1fr; }
}

@media (min-width: 700px) {
  .album-grid { columns: 3; }
  .notes-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 28px 22px; }
  .meeting-card { align-items: stretch; flex-direction: column; gap: 12px; }
  .meeting-actions { width: 100%; }
  .meeting-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------- 评论 ---------------- */

.comments { margin-top: 10px; }
.comments-toggle {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 3px 2px 3px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.12s;
}
.comments-toggle:hover, .comments-toggle.open { color: var(--rose-deep); }
.comments-body { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.comment-item { background: var(--bg); border-radius: 12px; padding: 9px 12px; }
.comment-head { display: flex; align-items: center; gap: 8px; }
.comment-author { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.comment-time { font-size: 11px; color: var(--ink-3); }
.comment-head .icon-btn { margin-left: auto; }
.comment-text { font-size: 13.5px; color: var(--ink); margin-top: 3px; line-height: 1.6; word-break: break-word; }
.comment-input-row { display: flex; gap: 8px; margin-top: 2px; }
.comment-input { flex: 1; padding: 9px 12px; font-size: 13.5px; border-radius: 12px; }

/* ---------------- 互动消息 ---------------- */

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 2px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 8px;
}
.notif-item:first-child { border-top: none; }
.notif-item:hover { background: rgba(255, 255, 255, 0.6); }
.notif-emoji { font-size: 20px; flex: 0 0 auto; margin-top: 1px; }
.notif-main { flex: 1; min-width: 0; }
.notif-text { font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.notif-item.unread .notif-text { font-weight: 700; }
.notif-time { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose);
  flex: 0 0 auto;
  margin-top: 7px;
  box-shadow: 0 0 0 3px var(--rose-soft);
}

/* ---------------- 徽标数字 ---------------- */

.nav-badge.has-count {
  width: auto;
  height: 16px;
  min-width: 16px;
  border-radius: 9px;
  background: var(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
  top: 5px;
  right: 12px;
  box-shadow: 0 0 0 2px #fff;
}

.react-heart .react-count { color: var(--rose-deep); font-weight: 700; }

/* ---------------- 一起玩 ---------------- */

.game-panel { display: flex; gap: 10px; margin-top: 12px; align-items: stretch; }
.player-box { flex: 1; background: var(--bg); border-radius: 16px; padding: 14px 10px; text-align: center; }
.player-emoji { font-size: 30px; }
.player-name { font-size: 13px; font-weight: 700; margin-top: 4px; color: var(--ink); }
.player-status { font-size: 12px; color: var(--ink-3); margin-top: 2px; min-height: 18px; }
.game-vs { align-self: center; font-size: 20px; flex: 0 0 auto; }

.hand-btns { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
.hand-btn {
  width: 76px; height: 76px;
  border-radius: 22px;
  font-size: 34px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
}
.hand-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow); }
.hand-btn:active { transform: scale(0.94); }
.hand-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.game-banner { margin-top: 14px; text-align: center; font-size: 15px; font-weight: 700; color: var(--ink); }
.game-banner .gb-sub { font-size: 12.5px; color: var(--ink-2); font-weight: 500; margin-top: 3px; }
.game-stats { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

.quiz-q { font-size: 15.5px; font-weight: 700; color: var(--ink); margin-top: 12px; line-height: 1.6; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.quiz-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--ink);
  transition: all 0.15s;
}
.quiz-opt:hover:not(:disabled) { border-color: rgba(226, 87, 109, 0.4); transform: translateY(-1px); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.mine { background: var(--rose-soft); border-color: rgba(226, 87, 109, 0.5); font-weight: 700; color: var(--rose-deep); }
.quiz-opt.both { background: var(--sage-soft); border-color: var(--sage); color: #2f6b52; font-weight: 700; }
.opt-tag { font-size: 11px; font-weight: 700; background: var(--rose-deep); color: #fff; border-radius: 999px; padding: 2px 9px; flex: 0 0 auto; }
.opt-tag-pa { background: var(--gold); color: #fff; }

/* 动态里的游戏卡片 */
.feed-game { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; }
.game-hands { display: flex; gap: 12px; align-items: center; font-size: 30px; }
.game-result { font-size: 14px; font-weight: 700; color: var(--ink); text-align: center; }
.feed-game .quiz-q { margin-top: 0; text-align: center; }
.quiz-answer-list { margin-top: 8px; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.quiz-answer { background: var(--bg); border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--ink); }

/* 共同花圃 */
.garden-card { overflow: hidden; }
.garden-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.garden-title-row > div:first-child { min-width: 0; }
.garden-wallet { display: flex; gap: 7px; flex: 0 0 auto; align-items: center; }
.garden-level,
.garden-petals {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 5px 10px; font-size: 11.5px; font-weight: 800;
}
.garden-level { background: var(--sage-soft); color: var(--sage); }
.garden-petals { background: var(--rose-soft); color: var(--rose-deep); }
.garden-progress-wrap { margin-top: 15px; }
.garden-progress-head { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-3); font-size: 11.5px; }
.garden-progress { height: 7px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-top: 6px; }
.garden-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9bcfae, #5f9c7f); transition: width 0.35s; }

.garden-care-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.garden-care-btn {
  min-height: 64px; border: 1px solid var(--line); border-radius: 17px; background: var(--bg);
  color: var(--ink); display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto;
  column-gap: 8px; padding: 10px 12px; text-align: left; cursor: pointer; transition: transform .12s, border-color .15s, background .15s;
}
.garden-care-btn.ready { background: var(--sage-soft); border-color: rgba(95, 156, 127, .28); }
.garden-care-btn:not(:disabled):active { transform: scale(.98); }
.garden-care-btn:disabled { cursor: default; opacity: .76; }
.garden-care-icon { grid-row: 1 / 3; align-self: center; font-size: 23px; text-align: center; }
.garden-care-main { font-size: 13px; font-weight: 800; align-self: end; }
.garden-care-sub { font-size: 10.5px; color: var(--ink-3); align-self: start; }

.garden-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.garden-plot {
  position: relative; min-height: 170px; border: 1px solid rgba(130, 102, 72, .12); border-radius: 20px;
  background: linear-gradient(180deg, rgba(226, 240, 232, .85), rgba(242, 235, 228, .92));
  padding: 15px 11px 12px; text-align: center; color: var(--ink); overflow: hidden;
}
button.garden-plot { width: 100%; font-family: inherit; cursor: pointer; }
.garden-plot::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 23px; border-radius: 50%;
  background: rgba(132, 94, 57, .12); z-index: 0;
}
.garden-plot > * { position: relative; z-index: 1; }
.garden-plot.empty-plot { border-style: dashed; background: rgba(226, 240, 232, .48); }
.garden-plot.empty-plot:hover { border-color: rgba(95, 156, 127, .42); background: var(--sage-soft); }
.garden-plot.locked { background: var(--bg); color: var(--ink-3); border-style: dashed; }
.garden-plot.locked::after { opacity: .35; }
.garden-plot.ready { background: linear-gradient(180deg, rgba(226, 240, 232, .95), rgba(251, 240, 220, .82)); border-color: rgba(95, 156, 127, .24); }
.garden-soil-icon { font-size: 31px; margin-top: 13px; }
.garden-plant-emoji { font-size: 42px; line-height: 1.1; margin: 5px 0 5px; animation: gardenBob 3.2s ease-in-out infinite; }
@keyframes gardenBob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-3px) rotate(1deg); } }
.garden-plot-name { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.garden-plot-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; min-height: 17px; }
.garden-planted-by { font-size: 10px; color: var(--ink-3); margin-top: 5px; }
.garden-plant-progress { height: 5px; background: rgba(255,255,255,.58); border-radius: 999px; overflow: hidden; margin: 8px 5px 0; }
.garden-plant-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #91c9a5, #5f9c7f); }
.garden-ready-badge { position: absolute; top: 8px; right: 8px; font-size: 9.5px; font-weight: 800; color: #39755b; background: rgba(255,255,255,.76); border-radius: 999px; padding: 3px 7px; }
.garden-harvest-btn { margin-top: 8px; padding: 6px 11px; font-size: 11px; border-radius: 10px; }
.garden-expand-btn { margin-top: 9px; padding: 6px 11px; font-size: 11px; }

.garden-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; }
.garden-toolbar .btn { padding-left: 8px; padding-right: 8px; }
.garden-harvest-count { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.garden-log { margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); }
.garden-log-title { font-size: 11.5px; font-weight: 800; color: var(--ink-2); margin-bottom: 5px; }
.garden-log-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 6px; padding: 4px 1px; }
.garden-log-who { font-size: 15px; text-align: center; }
.garden-log-text { font-size: 11.5px; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.garden-log-time { font-size: 10px; color: var(--ink-3); }

.garden-seed-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 56vh; overflow-y: auto; padding-right: 2px; }
.garden-seed {
  width: 100%; display: grid; grid-template-columns: 42px 1fr auto; gap: 9px; align-items: center;
  border: 1px solid var(--line); border-radius: 15px; padding: 10px 11px; background: var(--bg); color: var(--ink);
  text-align: left; font-family: inherit; cursor: pointer;
}
.garden-seed:not(:disabled):hover { border-color: rgba(95, 156, 127, .38); background: var(--sage-soft); }
.garden-seed:disabled { cursor: default; opacity: .58; }
.garden-seed.discovered { border-color: rgba(95, 156, 127, .24); }
.garden-seed-emoji { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.65); font-size: 23px; }
.garden-seed-info { min-width: 0; display: flex; flex-direction: column; }
.garden-seed-name { font-size: 13px; font-weight: 800; color: var(--ink); }
.garden-seed-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
.garden-seed-mark { font-size: 9.5px; font-weight: 700; color: var(--sage); white-space: nowrap; }
.garden-seed.locked .garden-seed-mark { color: var(--ink-3); }

@media (min-width: 720px) {
  .garden-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 我们的森林 */
.garden-toolbar-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.garden-forest-btn { color: #3f7f61; background: var(--sage-soft); }

.forest-view { padding-bottom: 22px; }
.forest-head-section { margin-bottom: 2px; }
.forest-head { display: flex; align-items: flex-start; gap: 16px; }
.forest-back { flex: 0 0 auto; margin-top: 3px; }
.forest-head-copy { min-width: 0; }
.forest-kicker { font-size: 9.5px; letter-spacing: .19em; font-weight: 900; color: var(--sage); margin-bottom: 3px; }
.forest-title { font-size: clamp(24px, 4vw, 34px); line-height: 1.15; color: var(--ink); letter-spacing: -.025em; }
.forest-intro { max-width: 640px; margin-top: 7px; line-height: 1.65; }
.forest-card { overflow: hidden; }

.forest-controls {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.forest-scale { display: inline-flex; padding: 3px; border-radius: 13px; background: var(--bg-2); }
.forest-scale-btn {
  min-width: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3);
  font: inherit; font-size: 11.5px; font-weight: 800; padding: 6px 10px; cursor: pointer; transition: .15s;
}
.forest-scale-btn.active { background: var(--card); color: var(--sage); box-shadow: var(--shadow-sm); }
.forest-period-nav { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.forest-period-arrow {
  width: 31px; height: 31px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
  font-size: 22px; line-height: 1; cursor: pointer; transition: .15s;
}
.forest-period-arrow:hover { background: var(--sage-soft); border-color: rgba(95, 156, 127, .3); color: var(--sage); }
.forest-period-label { min-width: 150px; text-align: center; font-size: 13px; font-weight: 850; color: var(--ink); white-space: nowrap; }
.forest-now-btn { white-space: nowrap; }

.forest-scene-host { margin-top: 15px; }
.forest-loading,
.forest-load-error {
  min-height: 330px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; background: linear-gradient(180deg, #edf6f5 0%, #f5f7e9 62%, #e5efd9 100%); color: #668071; font-size: 12px;
}
.forest-loading-tree { font-size: 34px; animation: gardenBob 2.8s ease-in-out infinite; }
.forest-load-error-icon { font-size: 32px; }

.forest-scene {
  position: relative; height: 390px; overflow: hidden; border-radius: 25px; isolation: isolate;
  background: linear-gradient(180deg, #d9eff1 0%, #e9f5ee 52%, #cfe3b4 100%);
  border: 1px solid rgba(86, 132, 101, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.forest-scene.scale-day { height: 410px; }
.forest-scene.scale-year { height: 360px; }
.forest-sun {
  position: absolute; width: 68px; height: 68px; right: 8%; top: 9%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 36% 34%, #fffce7 0 20%, #f6d98a 48%, rgba(246,217,138,.16) 72%);
  box-shadow: 0 0 34px rgba(246, 217, 138, .28);
}
.forest-cloud { position: absolute; height: 22px; border-radius: 999px; background: rgba(255,255,255,.48); filter: blur(.1px); z-index: 0; }
.forest-cloud::before,
.forest-cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; bottom: 0; }
.forest-cloud::before { width: 30px; height: 30px; left: 13px; }
.forest-cloud::after { width: 38px; height: 38px; right: 11px; }
.cloud-one { width: 94px; left: 9%; top: 15%; opacity: .75; }
.cloud-two { width: 74px; left: 42%; top: 24%; opacity: .52; transform: scale(.75); }
.forest-hill { position: absolute; left: -8%; right: -8%; border-radius: 50% 50% 0 0; transform-origin: center bottom; z-index: 0; }
.hill-back { height: 43%; bottom: 24%; background: #b9d6aa; transform: rotate(-2deg) scaleX(1.05); opacity: .88; }
.hill-front { height: 38%; bottom: 8%; background: #94bd80; transform: rotate(3deg) scaleX(1.08); }
.forest-meadow { position: absolute; left: -2%; right: -2%; bottom: -1%; height: 37%; z-index: 1; background: linear-gradient(180deg, #84b772 0%, #6fa365 100%); border-radius: 48% 52% 0 0 / 22% 24% 0 0; }
.forest-path { position: absolute; z-index: 2; left: 47%; bottom: -9%; width: 20%; height: 48%; background: linear-gradient(180deg, rgba(239,225,191,.72), rgba(218,198,156,.88)); border-radius: 55% 45% 0 0; transform: perspective(220px) rotateX(28deg) rotate(3deg); transform-origin: bottom; opacity: .72; }
.forest-plants { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.forest-plant {
  position: absolute; border: 0; padding: 0; margin: 0; width: 1em; height: 1em; line-height: 1; background: transparent; cursor: pointer;
  transform-origin: 50% 100%; filter: drop-shadow(0 5px 4px rgba(48,76,49,.12)); pointer-events: auto; transition: filter .14s, scale .14s;
  text-align: center; appearance: none; -webkit-appearance: none;
}
.forest-plant:hover { filter: drop-shadow(0 7px 6px rgba(48,76,49,.2)); scale: 1.08; }
.forest-plant:active { scale: .96; }
.forest-plant.flower { filter: drop-shadow(0 3px 3px rgba(48,76,49,.1)); }
.forest-empty {
  position: absolute; z-index: 6; left: 50%; top: 55%; transform: translate(-50%, -50%); width: min(82%, 380px);
  text-align: center; padding: 17px 18px; border-radius: 20px; background: rgba(255,255,255,.64); backdrop-filter: blur(8px); box-shadow: 0 12px 34px rgba(74,104,75,.09);
}
.forest-empty-icons { font-size: 26px; margin-bottom: 7px; }
.forest-empty-title { font-size: 13px; font-weight: 850; color: #3f6650; }
.forest-empty-sub { font-size: 10.5px; color: #668071; margin-top: 4px; line-height: 1.5; }
.forest-scene-count {
  position: absolute; z-index: 8; right: 11px; bottom: 10px; border-radius: 999px; padding: 4px 8px;
  background: rgba(255,255,255,.66); backdrop-filter: blur(7px); color: #53705d; font-size: 9.5px; font-weight: 800;
}

.forest-summary { padding-top: 14px; }
.forest-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.forest-stat {
  min-width: 0; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 5px;
  border-radius: 15px; background: var(--bg); border: 1px solid var(--line); padding: 9px 10px; color: var(--ink-3); font-size: 10px;
}
.forest-stat-icon { font-size: 16px; }
.forest-stat strong { color: var(--ink); font-size: 14px; }
.forest-stat > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forest-species-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.forest-species-label { font-size: 10.5px; color: var(--ink-3); margin-right: 2px; }
.forest-species-chip { font-size: 9.5px; color: var(--ink-2); background: var(--sage-soft); border-radius: 999px; padding: 4px 8px; }
.forest-footnote { margin-top: 11px; font-size: 10.5px; line-height: 1.55; color: var(--ink-3); }

@media (max-width: 719px) {
  .garden-toolbar { align-items: flex-end; }
  .garden-toolbar-actions { gap: 4px; }
  .garden-toolbar-actions .btn { font-size: 10px; padding: 6px 7px; }
  .garden-harvest-count { font-size: 9.5px; }
  .forest-head { display: block; }
  .forest-back { margin: 0 0 8px -5px; }
  .forest-controls { grid-template-columns: 1fr auto; gap: 9px; }
  .forest-scale { justify-self: start; }
  .forest-period-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; order: 3; }
  .forest-period-label { min-width: 0; flex: 1; font-size: 12px; }
  .forest-now-btn { justify-self: end; }
  .forest-scene { height: 350px; border-radius: 20px; }
  .forest-scene.scale-day { height: 370px; }
  .forest-scene.scale-year { height: 325px; }
  .forest-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forest-stat { padding: 8px 9px; }
}

/* ---------------- 猫咪贴纸 ---------------- */

.mc-emoji svg { width: 30px; height: 30px; display: block; }
.mood-big.cat { background: #fffaf2 !important; }
.mood-big.cat svg { width: 44px; height: 44px; display: block; }
.ms-emoji svg { width: 30px; height: 30px; display: block; }

/* ---------------- 每日打卡 ---------------- */

.checkin-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); }
.checkin-row:first-child { border-top: none; }
.ck-icon {
  width: 34px; height: 34px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 16px;
  flex: 0 0 auto;
}
.ck-label { font-size: 13.5px; font-weight: 700; color: var(--ink); width: 36px; flex: 0 0 auto; }
.ck-status { flex: 1; display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.ck-chip {
  font-size: 11.5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--ink-2);
  white-space: nowrap;
}
.ck-chip.dim { opacity: 0.55; }
.feed-checkin { display: flex; gap: 12px; align-items: center; }
.feed-checkin-icon {
  width: 50px; height: 50px;
  border-radius: 17px;
  display: grid; place-items: center;
  font-size: 23px;
  flex: 0 0 auto;
}
.feed-checkin-title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.feed-checkin-time { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ---------------- App 手感（禁缩放） ---------------- */

html, body { touch-action: manipulation; }
input, textarea, button, a { touch-action: manipulation; }

@media (max-width: 1099px) {
  /* 输入框字号 ≥16px，避免 iOS 聚焦自动放大 */
  .input, textarea.input { font-size: 16px; }
}

/* ---------------- 评论表情面板 ---------------- */

.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--bg);
  border-radius: 12px;
  padding: 6px;
}
.emoji-btn {
  width: 33px; height: 33px;
  font-size: 18px;
  border: none;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
}
.emoji-btn:hover { background: #fff; transform: scale(1.12); }
.emoji-toggle {
  width: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  font-size: 17px;
  cursor: pointer;
  color: var(--ink-2);
  transition: all 0.12s;
}
.emoji-toggle.active { background: var(--rose-soft); border-color: rgba(226, 87, 109, 0.4); }

/* ---------------- 评论回复 ---------------- */

.comment-reply-btn {
  border: none;
  background: none;
  font-size: 11.5px;
  color: var(--ink-3);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: color 0.12s, background 0.12s;
  margin-left: auto;
}
.comment-reply-btn:hover { color: var(--rose-deep); background: rgba(226, 87, 109, 0.06); }
.comment-head .icon-btn { margin-left: 0; }
.comment-reply-to { color: var(--ink-3); font-weight: 600; }
.reply-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  padding: 5px 6px 5px 12px;
}

/* ---------------- 足迹 ---------------- */

.fp-kind-row { display: flex; gap: 10px; }
.fp-kind-btn {
  flex: 1;
  padding: 11px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.15s;
}
.fp-kind-btn.selected {
  background: var(--rose-soft);
  border-color: rgba(226, 87, 109, 0.5);
  color: var(--rose-deep);
}
.fp-stats {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 8px 14px;
}
.fp-preview-img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

.feed-footprint { display: flex; flex-direction: column; gap: 6px; }
.fp-head { display: flex; align-items: center; gap: 8px; }
.fp-badge {
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 11px;
}
.fp-badge.place { background: var(--sage-soft); color: var(--sage); }
.fp-badge.food { background: var(--gold-soft); color: #8a5f1f; }
.fp-date { font-size: 12px; color: var(--ink-3); }
.fp-title { font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.fp-note { font-size: 14px; color: var(--ink-2); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

/* ---------------- 情侣日历 ---------------- */

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cal-head .section-title { text-align: center; flex: 1; font-size: 17px; }
.cal-nav {
  width: 34px; height: 34px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.12s;
  flex: 0 0 auto;
}
.cal-nav:hover { border-color: rgba(226, 87, 109, 0.4); color: var(--rose-deep); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 14px; }
.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.cal-week { color: var(--ink-3); font-size: 11px; font-weight: 700; aspect-ratio: auto; padding: 4px 0; }
.cal-cell.today { background: var(--rose-soft); color: var(--rose-deep); font-weight: 800; }
.cal-cell.has-event { font-weight: 700; }
.cal-dot {
  position: absolute;
  bottom: 4px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rose);
}
.event-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.event-row:first-child { border-top: none; }
.event-main { flex: 1; min-width: 0; }
.event-text { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.event-row.done .event-text { text-decoration: line-through; color: var(--ink-3); }
.event-date { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ---------------- 足迹卡片（标题前图标） ---------------- */

.fp-title-row { display: flex; align-items: flex-start; gap: 12px; }
.fp-icon {
  width: 46px; height: 46px;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 22px;
  flex: 0 0 auto;
}
.fp-icon.place { background: var(--sage-soft); }
.fp-icon.food { background: var(--gold-soft); }
.fp-title-main { flex: 1; min-width: 0; }

/* 日历双色圆点与点击态 */
.cal-cell { cursor: pointer; transition: background 0.12s; }
.cal-cell:active { background: rgba(226, 87, 109, 0.08); }
.cal-dots { position: absolute; bottom: 4px; display: flex; gap: 3px; }
.cal-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rose);
  display: block;
}
.cal-dot-ck { background: var(--sage); }

/* ---------------- 自定义出题 ---------------- */

.quiz-custom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  background: var(--bg);
  border-radius: 16px;
}

/* ---------------- 时光归档月份头 ---------------- */

.month-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin: 22px 4px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.month-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------------- 深色模式 ---------------- */

html.dark,
body.dark {
  --bg: #17141b;
  --bg-2: #221e28;
  --card: rgba(38, 33, 46, 0.78);
  --ink: #f2edf6;
  --ink-2: #d1c8dc;
  --ink-3: #b2a8bf;
  --rose: #ef7f92;
  --rose-deep: #ff9daf;
  --rose-soft: rgba(226, 87, 109, 0.18);
  --gold: #e8b15b;
  --gold-soft: rgba(227, 163, 75, 0.18);
  --sage: #8ec7ab;
  --sage-soft: rgba(95, 156, 127, 0.22);
  --line: rgba(236, 231, 240, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.5);
}

html.dark { background: #17141b; }
body.dark {
  background: var(--bg);
  color: var(--ink);
}

body.dark::before {
  background:
    radial-gradient(720px 520px at 88% -8%, rgba(140, 96, 150, 0.18), transparent 62%),
    radial-gradient(640px 520px at -8% 22%, rgba(70, 60, 110, 0.2), transparent 62%),
    radial-gradient(560px 460px at 55% 108%, rgba(120, 84, 60, 0.16), transparent 62%);
}

body.dark ::-webkit-scrollbar-thumb { background: #3a3442; border-color: var(--bg); }
body.dark ::selection { background: rgba(226, 87, 109, 0.35); }

/* 玻璃容器 */
body.dark .card { border-color: rgba(255, 255, 255, 0.08); }
body.dark .topbar,
body.dark .sidebar { background: rgba(23, 20, 27, 0.85); }
body.dark .tabbar { background: rgba(34, 29, 41, 0.9); border-color: rgba(255, 255, 255, 0.08); }
body.dark .modal,
body.dark .obo-card { background: #241f2b; border-color: rgba(255, 255, 255, 0.08); }
body.dark .content,
body.dark #main { background: transparent; }


/* 白底组件 → 深色表面 */
body.dark .input,
body.dark .hand-btn,
body.dark .react-btn,
body.dark .quiz-opt,
body.dark .ck-chip,
body.dark .emoji-toggle,
body.dark .cal-nav,
body.dark .fp-kind-btn,
body.dark .photo-cell,
body.dark .modal,
body.dark .seg-btn.active,
body.dark .emoji-btn:hover {
  background: #241f2b;
  color: var(--ink);
  border-color: var(--line);
}
body.dark .photo-cell,
body.dark .modal,
body.dark .hand-btn,
body.dark .quiz-opt,
body.dark .react-btn,
body.dark .ck-chip,
body.dark .emoji-toggle,
body.dark .cal-nav,
body.dark .fp-kind-btn { box-shadow: var(--shadow-sm); }
body.dark .input::placeholder { color: var(--ink-3); }
body.dark .mood-big.cat { background: rgba(255, 255, 255, 0.08) !important; }

/* 导航高亮 */
body.dark .nav-item.active { background: rgba(255, 255, 255, 0.09); color: var(--rose-deep); }
body.dark .nav-item:hover { background: rgba(255, 255, 255, 0.04); }
body.dark .nav-badge { box-shadow: 0 0 0 2px #241f2b; }
body.dark .nav-badge.has-count { box-shadow: 0 0 0 2px #241f2b; }
body.dark .side-couple { background: rgba(255, 255, 255, 0.06); border-color: var(--line); }
body.dark .top-chip { background: rgba(255, 255, 255, 0.09); border-color: var(--line); }

/* 按钮与交互 */
body.dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
body.dark .notif-item:hover { background: rgba(255, 255, 255, 0.05); }
body.dark .code-chip:hover { background: rgba(255, 157, 175, 0.22); }
body.dark .set-row:hover .set-label,
body.dark .comment-reply-btn:hover { color: var(--rose-deep); }
body.dark .icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--rose-deep); }
body.dark .btn-soft { background: var(--rose-soft); color: var(--rose-deep); }
body.dark .btn-stop { background: var(--rose-soft); color: var(--rose-deep); }
body.dark .qa-btn { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); }
body.dark .avatar { border-color: transparent; }
body.dark .avatar.selected { border-color: var(--rose); background: var(--rose-soft); }
body.dark .wish-check { border-color: rgba(226, 87, 109, 0.5); }
body.dark .upload-zone { background: rgba(255, 255, 255, 0.04); }
body.dark .upload-zone:hover,
body.dark .upload-zone.dragover { background: var(--rose-soft); }
body.dark .stat-box,
body.dark .comment-item,
body.dark .emoji-picker,
body.dark .quiz-custom,
body.dark .player-box,
body.dark .quiz-answer,
body.dark .fp-stats { background: var(--bg-2); }

/* 浅色渐变彩条 → 深色半透明 */
body.dark .invite-card { background: rgba(255, 240, 230, 0.07); border-color: rgba(255, 255, 255, 0.08); }
body.dark .streak-banner { background: rgba(255, 243, 224, 0.08); color: #e8c08a; }
body.dark .feed-wishdone { color: #e8c08a; }
body.dark .fp-badge.food { color: #e8c08a; }

body.dark .hint,
body.dark .muted,
body.dark .dim,
body.dark .logo-tag,
body.dark .couple-meta,
body.dark .set-value,
body.dark .mile-sub,
body.dark .wish-count,
body.dark .wish-title.done,
body.dark .wish-by,
body.dark .empty,
body.dark .empty-title,
body.dark .empty-sub,
body.dark .notif-time,
body.dark .pc-cap,
body.dark .pc-author,
body.dark .hist-sub,
body.dark .chart-label,
body.dark .chart-legend,
body.dark .stat-who,
body.dark .stat-sub,
body.dark .timer-state,
body.dark .game-banner .gb-sub,
body.dark .game-stats,
body.dark .fp-date,
body.dark .fp-note,
body.dark .comment-time,
body.dark .comment-reply-btn,
body.dark .comment-reply-to,
body.dark .cd-label,
body.dark .obo-sub,
body.dark .obo-label,
body.dark .obo-back,
body.dark .obo-note,
body.dark .waiting,
body.dark .side-couple .sc-hint {
  color: var(--ink-2);
}

body.dark .empty,
body.dark .obo-note,
body.dark .obo-back,
body.dark .comment-reply-btn,
body.dark .game-stats,
body.dark .chart-label,
body.dark .pc-author,
body.dark .fp-date,
body.dark .timer-state,
body.dark .notif-time,
body.dark .wish-by,
body.dark .wish-count,
body.dark .mile-sub,
body.dark .set-value,
body.dark .couple-meta,
body.dark .logo-tag,
body.dark .cd-label,
body.dark .waiting,
body.dark .side-couple .sc-hint {
  color: var(--ink-3);
}

/* 花圃深色适配 */
body.dark .garden-care-btn,
body.dark .garden-plot.locked,
body.dark .garden-seed { background: var(--bg-2); border-color: var(--line); }
body.dark .garden-care-btn.ready,
body.dark .garden-plot.empty-plot:hover,
body.dark .garden-seed:not(:disabled):hover { background: var(--sage-soft); }
body.dark .garden-plot {
  background: linear-gradient(180deg, rgba(54, 65, 58, .92), rgba(48, 40, 36, .9));
  border-color: rgba(255,255,255,.08);
}
body.dark .garden-plot.ready { background: linear-gradient(180deg, rgba(49, 68, 57, .95), rgba(63, 51, 39, .9)); }
body.dark .garden-plot.empty-plot { background: rgba(95, 156, 127, .08); }
body.dark .garden-plant-progress { background: rgba(255,255,255,.1); }
body.dark .garden-ready-badge { background: rgba(23,20,27,.72); color: var(--sage); }
body.dark .garden-seed-emoji { background: rgba(255,255,255,.07); }
body.dark .garden-log-text,
body.dark .garden-log-title { color: var(--ink-2); }
body.dark .garden-log-time,
body.dark .garden-care-sub,
body.dark .garden-plot-sub,
body.dark .garden-planted-by,
body.dark .garden-harvest-count,
body.dark .garden-seed-sub { color: var(--ink-3); }

body.dark .garden-forest-btn { color: #9dd1b2; background: var(--sage-soft); }
body.dark .forest-scale { background: var(--bg-2); }
body.dark .forest-scale-btn.active { background: #302a35; color: #9dd1b2; }
body.dark .forest-period-arrow,
body.dark .forest-stat { background: var(--bg-2); border-color: var(--line); }
body.dark .forest-scene,
body.dark .forest-loading,
body.dark .forest-load-error {
  background: linear-gradient(180deg, #273a40 0%, #31493e 55%, #364f35 100%);
  border-color: rgba(255,255,255,.07); color: #b2c7ba;
}
body.dark .forest-sun { opacity: .6; }
body.dark .forest-cloud { background: rgba(224,237,239,.14); }
body.dark .hill-back { background: #49674b; }
body.dark .hill-front { background: #3f5c3f; }
body.dark .forest-meadow { background: linear-gradient(180deg, #385636, #2f482e); }
body.dark .forest-path { background: linear-gradient(180deg, rgba(176,157,119,.38), rgba(134,113,76,.48)); }
body.dark .forest-empty,
body.dark .forest-scene-count { background: rgba(31,42,35,.68); color: #bdd0c1; }
body.dark .forest-empty-title { color: #c8ddce; }
body.dark .forest-empty-sub { color: #9fb7a6; }
body.dark .forest-species-chip { color: #b8d2c1; background: rgba(95,156,127,.14); }

/* 贴纸便签：保留彩色但固定深色文字 */
body.dark .note-text,
body.dark .note-meta { color: #3a3242; }
body.dark .note-meta { color: #6e6576; }

/* 计时器圆环底色与骨架屏 */
body.dark .timer-ring .ring-bg { stroke: rgba(255, 255, 255, 0.08); }
body.dark .skel { background: linear-gradient(100deg, #2a2432 30%, #322b3c 50%, #2a2432 70%); background-size: 200% 100%; }

/* 日历今日格 */
body.dark .cal-cell:active { background: rgba(226, 87, 109, 0.14); }

/* ---------------- 学习内容汇总（日/周/月） ---------------- */

.seg-row {
  display: flex;
  gap: 3px;
  background: var(--bg);
  border-radius: 12px;
  padding: 3px;
  flex: 0 0 auto;
}
.seg-btn {
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.seg-btn.active { background: #fff; color: var(--rose-deep); box-shadow: var(--shadow-sm); }
body.dark .seg-btn.active { background: rgba(255, 255, 255, 0.1); }

.sum-line { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.subj-row { padding: 10px 0; border-top: 1px solid var(--line); }
.subj-row:first-of-type { border-top: none; }
.subj-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.subj-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.subj-times { display: flex; gap: 6px; flex: 0 0 auto; }
.subj-chip {
  font-size: 11.5px;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.subj-chip.me { background: var(--rose-soft); color: var(--rose-deep); font-weight: 700; }
.subj-chip.pa { background: var(--gold-soft); color: #8a5f1f; font-weight: 700; }
body.dark .subj-chip.pa { color: #e8c08a; }
.subj-track { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-top: 7px; }
.subj-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0889b, #e2576d);
  transition: width 0.4s cubic-bezier(0.22, 0.8, 0.32, 1);
}

/* ================================================================
   自定义头像（图库照片 + 表情头像共存）
   ================================================================ */
.member-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  vertical-align: middle;
}
.member-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-avatar-xs {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  font-size: 12px;
  background: var(--bg-2);
}
.member-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.author-emoji.member-avatar { overflow: hidden; }
.side-emojis {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0;
}
.side-avatar {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  font-size: 15px;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.72);
}
.couple-avatar {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 38px;
  background: var(--bg-2);
  box-shadow: 0 6px 18px rgba(85, 62, 56, .10);
  border: 2px solid rgba(255,255,255,.84);
}
.profile-avatar-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.profile-avatar-preview {
  width: 78px;
  height: 78px;
  border-radius: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-emoji { font-size: 42px; line-height: 1; }
.profile-avatar-actions { flex: 1; min-width: 0; }
.profile-avatar-hint { margin-top: 7px; font-size: 11px; line-height: 1.5; color: var(--ink-3); }
.pc-author { display: flex; align-items: center; gap: 5px; }
.ck-chip { display: inline-flex; align-items: center; gap: 5px; }
.stat-who .member-inline, .mini-bar-who .member-inline { vertical-align: middle; }
.garden-log-who.member-avatar { margin-right: 2px; }
.player-emoji.member-avatar { overflow: hidden; }

body.dark .profile-avatar-preview { background: rgba(255,255,255,.08); }
body.dark .couple-avatar,
body.dark .side-avatar { border-color: rgba(255,255,255,.12); }

@media (max-width: 520px) {
  .profile-avatar-upload { align-items: flex-start; }
  .profile-avatar-preview { width: 68px; height: 68px; border-radius: 22px; }
  .avatar-picker { grid-template-columns: repeat(6, 1fr); }
}

/* ================================================================
   花圃 40 种花木 CSS 插画
   图鉴主图全部由 CSS 绘制：21 种花草 + 19 种树木，各自独立轮廓与细节。
   ================================================================ */
.garden-botanical-art {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 46px;
  overflow: visible;
  isolation: isolate;
  flex: 0 0 auto;
}
.garden-botanical-art > i {
  position: absolute;
  display: none;
  pointer-events: none;
  box-sizing: border-box;
}
.garden-plant-art-large {
  width: 48px;
  height: 52px;
  margin: 2px auto 3px;
  animation: botanicalBob 3.2s ease-in-out infinite;
}
@keyframes botanicalBob {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-3px) rotate(1deg); }
}

/* ---------- 花草通用骨架 ---------- */
.garden-flower-art .plant-stem,
.garden-flower-art .plant-leaf,
.garden-flower-art .plant-bloom,
.garden-flower-art .plant-detail { display: block; }
.garden-flower-art .plant-stem {
  z-index: 1; left: 20px; bottom: 5px; width: 3px; height: 25px;
  border-radius: 999px; background: #67966d;
}
.garden-flower-art .plant-leaf { z-index: 1; width: 12px; height: 6px; background: #7eaa76; }
.garden-flower-art .leaf-a { left: 10px; bottom: 12px; border-radius: 100% 0 100% 0; transform: rotate(18deg); }
.garden-flower-art .leaf-b { right: 9px; bottom: 17px; border-radius: 0 100% 0 100%; transform: rotate(-20deg); }
.garden-flower-art .plant-bloom { z-index: 3; }
.garden-flower-art .plant-detail { z-index: 4; }

/* 01 雏菊：白色八瓣 + 金黄花心 */
.flower-daisy .bloom-a { display:block; left:11px; top:5px; width:20px; height:20px; border-radius:50%; background:#fffdf8; box-shadow:0 -5px 0 -3px #fffdf8, 0 5px 0 -3px #fffdf8, 5px 0 0 -3px #fffdf8, -5px 0 0 -3px #fffdf8, 4px 4px 0 -3px #fffdf8, -4px 4px 0 -3px #fffdf8, 4px -4px 0 -3px #fffdf8, -4px -4px 0 -3px #fffdf8; }
.flower-daisy .detail-a { display:block; left:18px; top:12px; width:6px; height:6px; border-radius:50%; background:#e9bb3c; }

/* 02 三色堇：三片大花瓣，紫黄撞色 */
.flower-pansy .bloom-a { display:block; left:10px; top:6px; width:12px; height:13px; border-radius:60% 60% 45% 45%; background:#735aa5; transform:rotate(-22deg); box-shadow:11px 1px 0 #9479bd, 6px 8px 0 #d7b24d; }
.flower-pansy .detail-a { display:block; left:19px; top:15px; width:4px; height:4px; border-radius:50%; background:#563d7c; }

/* 03 勿忘我：蓝色五瓣小花簇 */
.flower-forgetmenot .plant-stem { height:27px; transform:rotate(-5deg); }
.flower-forgetmenot .bloom-a { display:block; left:12px; top:7px; width:8px; height:8px; border-radius:50%; background:#79b9d6; box-shadow:9px -3px 0 #8bc8e1, 14px 5px 0 #6aaac9, 4px 8px 0 #9ad0e3; }
.flower-forgetmenot .detail-a { display:block; left:15px; top:10px; width:2px; height:2px; border-radius:50%; background:#f2cf58; box-shadow:9px -3px 0 #f2cf58, 14px 5px 0 #f2cf58, 4px 8px 0 #f2cf58; }

/* 04 向日葵：大金黄花盘 */
.flower-sunflower .plant-stem { height:28px; width:4px; background:#668b54; }
.flower-sunflower .bloom-a { display:block; left:9px; top:3px; width:24px; height:24px; border-radius:50%; background:#f2c744; box-shadow:0 -4px 0 -1px #edbb34, 4px 0 0 -1px #f5d15b, 0 4px 0 -1px #edbb34, -4px 0 0 -1px #f5d15b; }
.flower-sunflower .detail-a { display:block; left:16px; top:10px; width:10px; height:10px; border-radius:50%; background:#7f5b3d; box-shadow:inset 2px 2px rgba(255,255,255,.12); }

/* 05 风信子：饱满紫色穗状花序 */
.flower-hyacinth .plant-stem { height:24px; left:20px; }
.flower-hyacinth .bloom-a { display:block; left:14px; top:4px; width:14px; height:24px; border-radius:55% 55% 45% 45%; background:#9272bd; box-shadow:-4px 4px 0 -2px #aa8fd0, 4px 5px 0 -2px #75579f, -3px 12px 0 -2px #b19ad5, 4px 14px 0 -2px #8666ad; }
.flower-hyacinth .detail-a { display:block; left:17px; top:8px; width:3px; height:3px; border-radius:50%; background:#d8caed; box-shadow:6px 4px 0 #d8caed, 1px 9px 0 #d8caed, 6px 14px 0 #d8caed; }

/* 06 薰衣草：细长多穗 */
.flower-lavender .plant-stem { left:19px; height:29px; width:2px; background:#668b65; box-shadow:6px 4px 0 #668b65; }
.flower-lavender .leaf-a { width:10px; height:3px; bottom:11px; }
.flower-lavender .leaf-b { width:9px; height:3px; bottom:17px; }
.flower-lavender .bloom-a { display:block; left:16px; top:3px; width:4px; height:18px; border-radius:99px; background:repeating-linear-gradient(to bottom,#795ca7 0 3px,#a48bc7 3px 5px); transform:rotate(-5deg); box-shadow:7px 3px 0 #8b70b3; }

/* 07 郁金香：杯状花 */
.flower-tulip .plant-stem { height:27px; }
.flower-tulip .bloom-a { display:block; left:12px; top:5px; width:18px; height:17px; background:#e77f91; clip-path:polygon(0 0,28% 23%,50% 0,72% 23%,100% 0,87% 100%,13% 100%); border-radius:0 0 8px 8px; }
.flower-tulip .leaf-a { left:9px; bottom:8px; width:14px; height:9px; }
.flower-tulip .leaf-b { right:6px; bottom:13px; width:14px; height:8px; }

/* 08 康乃馨：锯齿褶皱花球 */
.flower-carnation .plant-stem { height:25px; }
.flower-carnation .bloom-a { display:block; left:10px; top:5px; width:22px; height:20px; background:#df7189; clip-path:polygon(50% 0,61% 10%,76% 4%,80% 20%,96% 25%,87% 40%,100% 52%,84% 63%,88% 80%,70% 80%,61% 96%,49% 84%,35% 98%,30% 81%,11% 82%,17% 63%,0 52%,14% 39%,5% 24%,22% 20%,25% 4%,40% 10%); }
.flower-carnation .detail-a { display:block; left:18px; top:12px; width:6px; height:6px; border-radius:50%; background:#c35471; }

/* 09 绣球花：蓝紫多球簇 */
.flower-hydrangea .plant-stem { height:22px; width:4px; }
.flower-hydrangea .bloom-a { display:block; left:9px; top:5px; width:11px; height:11px; border-radius:50%; background:#7698c9; box-shadow:10px -2px 0 #8da8d2, 16px 6px 0 #6d89bc, 5px 9px 0 #9ab2d9, 12px 11px 0 #7f99c8; }
.flower-hydrangea .detail-a { display:block; left:13px; top:9px; width:2px; height:2px; border-radius:50%; background:#dfe7f4; box-shadow:10px -2px 0 #dfe7f4, 16px 6px 0 #dfe7f4, 5px 9px 0 #dfe7f4, 12px 11px 0 #dfe7f4; }

/* 10 鸢尾花：尖长花瓣 */
.flower-iris .plant-stem { height:28px; }
.flower-iris .leaf-a { left:11px; bottom:5px; width:5px; height:23px; border-radius:100% 0; transform:rotate(-15deg); }
.flower-iris .leaf-b { right:10px; bottom:4px; width:5px; height:21px; border-radius:0 100%; transform:rotate(16deg); }
.flower-iris .bloom-a { display:block; left:10px; top:5px; width:22px; height:19px; background:#6c72b7; clip-path:polygon(50% 0,62% 42%,94% 18%,74% 56%,100% 72%,60% 69%,50% 100%,40% 69%,0 72%,26% 56%,6% 18%,38% 42%); }
.flower-iris .detail-a { display:block; left:19px; top:12px; width:4px; height:7px; border-radius:50%; background:#e9c44d; }

/* 11 铃兰：弯茎下垂白铃 */
.flower-lilyvalley .plant-stem { left:19px; top:9px; bottom:auto; width:3px; height:29px; border-radius:70% 0 0 0; transform:rotate(-18deg); }
.flower-lilyvalley .bloom-a { display:block; left:22px; top:10px; width:7px; height:8px; border-radius:50% 50% 65% 65%; background:#fffdf6; box-shadow:3px 9px 0 #f7f5ec, 1px 18px 0 #fffdf6; }
.flower-lilyvalley .detail-a { display:block; left:24px; top:16px; width:3px; height:2px; border-radius:50%; background:#d7dfcc; box-shadow:3px 9px 0 #d7dfcc, 1px 18px 0 #d7dfcc; }

/* 12 满天星：细枝白色星点 */
.flower-babysbreath .plant-stem { left:20px; height:28px; width:2px; }
.flower-babysbreath .branch-a { display:block; left:20px; top:13px; width:15px; height:2px; background:#7fa27b; transform-origin:left; transform:rotate(-28deg); }
.flower-babysbreath .branch-b { display:block; left:8px; top:17px; width:14px; height:2px; background:#7fa27b; transform-origin:right; transform:rotate(29deg); }
.flower-babysbreath .bloom-a { display:block; left:8px; top:8px; width:5px; height:5px; border-radius:50%; background:#fff; box-shadow:9px -4px 0 #fff, 19px 0 0 #fff, 24px 7px 0 #fff, 5px 11px 0 #fff, 15px 9px 0 #fff; }

/* 13 茉莉：五瓣白花 + 深绿叶 */
.flower-jasmine .plant-stem { height:23px; background:#527c59; }
.flower-jasmine .plant-leaf { background:#547e58; }
.flower-jasmine .bloom-a { display:block; left:11px; top:6px; width:20px; height:20px; background:#fffdf7; clip-path:polygon(50% 42%,58% 2%,73% 39%,100% 28%,70% 55%,88% 86%,56% 68%,37% 100%,39% 62%,0 64%,34% 48%,15% 17%); }
.flower-jasmine .detail-a { display:block; left:19px; top:14px; width:4px; height:4px; border-radius:50%; background:#efd36c; }

/* 14 矢车菊：蓝色尖瓣放射 */
.flower-cornflower .plant-stem { height:26px; }
.flower-cornflower .bloom-a { display:block; left:10px; top:5px; width:22px; height:22px; background:#4f79b8; clip-path:polygon(50% 0,58% 30%,75% 5%,72% 34%,100% 23%,77% 46%,100% 57%,70% 58%,82% 90%,58% 70%,50% 100%,42% 70%,18% 90%,30% 58%,0 57%,23% 46%,0 23%,28% 34%,25% 5%,42% 30%); }
.flower-cornflower .detail-a { display:block; left:17px; top:12px; width:8px; height:8px; border-radius:50%; background:#304f86; }

/* 15 玫瑰：层叠红色花瓣 */
.flower-rose .plant-stem { height:25px; background:#567c58; }
.flower-rose .bloom-a { display:block; left:10px; top:5px; width:22px; height:20px; border-radius:48% 52% 55% 45%; background:#c94f5f; box-shadow:inset 5px -2px #b53f50, inset -4px 4px #e06a77; }
.flower-rose .detail-a { display:block; left:15px; top:10px; width:12px; height:10px; border-radius:60% 40% 60% 40%; border:2px solid rgba(128,39,52,.55); transform:rotate(-18deg); }

/* 16 荷花：宽扁水生莲瓣 */
.flower-lotus .plant-stem { left:20px; height:18px; bottom:4px; background:#6e9f73; }
.flower-lotus .leaf-a { left:7px; bottom:3px; width:16px; height:7px; border-radius:50%; transform:none; background:#75a77a; }
.flower-lotus .leaf-b { right:5px; bottom:6px; width:15px; height:6px; border-radius:50%; transform:none; background:#648f69; }
.flower-lotus .bloom-a { display:block; left:8px; top:8px; width:26px; height:17px; background:#ef9fb1; clip-path:polygon(50% 100%,0 65%,22% 55%,12% 15%,40% 50%,50% 0,60% 50%,88% 15%,78% 55%,100% 65%); }
.flower-lotus .detail-a { display:block; left:18px; top:16px; width:6px; height:4px; border-radius:50%; background:#e9c45b; }

/* 17 百合：橙粉六瓣 + 花蕊 */
.flower-lily .plant-stem { height:27px; }
.flower-lily .bloom-a { display:block; left:8px; top:5px; width:26px; height:20px; background:#ef9b79; clip-path:polygon(50% 48%,50% 0,60% 37%,85% 8%,70% 47%,100% 45%,70% 60%,90% 92%,58% 68%,50% 100%,42% 68%,10% 92%,30% 60%,0 45%,30% 47%,15% 8%,40% 37%); }
.flower-lily .detail-a { display:block; left:19px; top:10px; width:2px; height:12px; background:#7f6841; transform:rotate(12deg); box-shadow:-5px 1px 0 #7f6841, 5px 0 0 #7f6841; }

/* 18 山茶花：规整层叠花瓣 */
.flower-camellia .plant-stem { height:22px; background:#557a52; }
.flower-camellia .plant-leaf { background:#4f7850; }
.flower-camellia .bloom-a { display:block; left:9px; top:5px; width:24px; height:22px; border-radius:50%; background:#df6e7c; box-shadow:inset 5px 0 #ef8b96, inset -5px 0 #c95869; }
.flower-camellia .detail-a { display:block; left:14px; top:10px; width:14px; height:12px; border-radius:50%; border:2px solid #f2a1aa; box-shadow:inset 0 0 0 2px #c95567; }

/* 19 牡丹：大而蓬松的粉花球 */
.flower-peony .plant-stem { height:22px; width:4px; }
.flower-peony .bloom-a { display:block; left:8px; top:3px; width:26px; height:24px; border-radius:50%; background:#eda0ae; box-shadow:-4px 3px 0 -1px #f4b7c2, 4px 4px 0 -1px #d77e91, 0 -3px 0 -2px #f8c8d0; }
.flower-peony .detail-a { display:block; left:16px; top:10px; width:10px; height:10px; border-radius:50%; background:#d66e84; box-shadow:inset 2px 1px #f0a7b6; }

/* 20 牵牛花：紫色喇叭 + 藤蔓 */
.flower-morningglory .plant-stem { left:19px; height:29px; width:2px; background:#668c65; transform:rotate(7deg); }
.flower-morningglory .branch-a { display:block; left:19px; top:16px; width:15px; height:2px; background:#668c65; transform-origin:left; transform:rotate(-38deg); }
.flower-morningglory .bloom-a { display:block; left:17px; top:4px; width:19px; height:18px; background:#7761ac; clip-path:polygon(0 0,100% 0,74% 45%,65% 100%,35% 100%,26% 45%); border-radius:50% 50% 30% 30%; }
.flower-morningglory .detail-a { display:block; left:24px; top:8px; width:6px; height:7px; background:#eee7f7; clip-path:polygon(50% 100%,0 0,100% 0); }

/* 21 桂花：金色小花簇 + 细枝 */
.flower-osmanthus .plant-stem { height:27px; background:#6d8b5b; }
.flower-osmanthus .branch-a { display:block; left:20px; top:15px; width:13px; height:2px; background:#6d8b5b; transform-origin:left; transform:rotate(-28deg); }
.flower-osmanthus .branch-b { display:block; left:9px; top:19px; width:12px; height:2px; background:#6d8b5b; transform-origin:right; transform:rotate(27deg); }
.flower-osmanthus .bloom-a { display:block; left:10px; top:8px; width:5px; height:5px; border-radius:50%; background:#e7b943; box-shadow:8px -2px 0 #efc85c, 17px 1px 0 #dfaa31, 21px 8px 0 #efc85c, 5px 10px 0 #e2b13a, 14px 9px 0 #f0c95a; }

/* ---------- 树木通用骨架 ---------- */
.garden-tree-art .plant-stem,
.garden-tree-art .plant-branch,
.garden-tree-art .plant-leaf,
.garden-tree-art .plant-crown,
.garden-tree-art .plant-bloom,
.garden-tree-art .plant-detail { display:block; }
.garden-tree-art .plant-stem {
  z-index:1; left:19px; bottom:3px; width:5px; height:22px;
  border-radius:4px 4px 2px 2px; background:#866049;
  box-shadow:inset -1px 0 rgba(71,45,32,.18);
}
.garden-tree-art .plant-branch { z-index:1; height:3px; background:#866049; border-radius:99px; transform-origin:0 50%; }
.garden-tree-art .plant-leaf { z-index:3; }
.garden-tree-art .plant-crown { z-index:2; }
.garden-tree-art .plant-bloom,
.garden-tree-art .plant-detail { z-index:4; }

/* 22 樱花：宽扁粉色云冠 */
.tree-cherry .plant-stem { height:23px; }
.tree-cherry .crown-a { left:6px; top:7px; width:30px; height:19px; border-radius:55% 45% 52% 48%; background:#f1a6b9; box-shadow:-3px 5px 0 #f6bdca, 5px 4px 0 #e98ca7, 2px -4px 0 #ffd1db; }
.tree-cherry .bloom-a { left:10px; top:10px; width:4px; height:4px; border-radius:50%; background:#fff0f4; box-shadow:9px -2px 0 #fff0f4, 18px 3px 0 #fff0f4, 5px 9px 0 #fff0f4, 14px 11px 0 #fff0f4, 23px 8px 0 #fff0f4; }

/* 23 紫藤：伞冠 + 多串垂花 */
.tree-wisteria .plant-stem { height:24px; width:4px; transform:rotate(-4deg); }
.tree-wisteria .crown-a { left:5px; top:6px; width:32px; height:14px; border-radius:60% 60% 38% 38%; background:#6c8b65; box-shadow:0 4px 0 #5d7b57; }
.tree-wisteria .bloom-a { left:8px; top:17px; width:4px; height:18px; border-radius:99px 99px 70% 70%; background:linear-gradient(#9f83c9,#70559f); box-shadow:8px 4px 0 #b39ad4, 16px 0 0 #8064b1, 24px 5px 0 #a88dcf; }

/* 24 桃花：V 字枝条 + 稀疏桃粉花 */
.tree-peach .plant-stem { height:26px; width:4px; }
.tree-peach .branch-a { left:21px; top:17px; width:16px; transform:rotate(-42deg); }
.tree-peach .branch-b { left:21px; top:20px; width:15px; transform:rotate(-138deg); }
.tree-peach .leaf-a { left:8px; top:13px; width:10px; height:6px; border-radius:100% 0 100% 0; background:#72a56b; transform:rotate(-18deg); }
.tree-peach .leaf-b { right:6px; top:11px; width:11px; height:6px; border-radius:0 100% 0 100%; background:#78ad71; transform:rotate(17deg); }
.tree-peach .bloom-a { left:7px; top:7px; width:6px; height:6px; border-radius:50%; background:#f39aae; box-shadow:11px 4px 0 #f8b5c2, 23px 0 0 #e87d98, 6px 13px 0 #f5a4b6, 20px 12px 0 #f8b3c1; }

/* 25 梅花：近乎无叶的横斜枝 + 深粉花点 */
.tree-plum .plant-stem { height:27px; width:4px; background:#6f4c3d; transform:rotate(7deg); }
.tree-plum .branch-a { left:20px; top:15px; width:18px; height:3px; background:#6f4c3d; transform:rotate(-36deg); }
.tree-plum .branch-b { left:18px; top:20px; width:17px; height:3px; background:#6f4c3d; transform:rotate(-145deg); }
.tree-plum .crown-a,.tree-plum .crown-b,.tree-plum .crown-c { display:none; }
.tree-plum .bloom-a { left:6px; top:8px; width:7px; height:7px; border-radius:50%; background:#cc5073; box-shadow:10px 4px 0 #ef88a0, 23px -1px 0 #d85e7e, 6px 14px 0 #f09bb0, 18px 12px 0 #bd4268, 28px 10px 0 #e77994; }

/* 26 红枫：鲜红尖角叶冠 */
.tree-maple .plant-stem { height:21px; background:#744b3c; }
.tree-maple .crown-a { left:4px; top:4px; width:34px; height:29px; background:linear-gradient(145deg,#df6a50,#a74142); clip-path:polygon(50% 0,60% 19%,81% 7%,76% 31%,100% 39%,77% 53%,90% 78%,62% 69%,50% 100%,38% 69%,10% 78%,23% 53%,0 39%,24% 31%,19% 7%,40% 19%); }
.tree-maple .detail-a { left:20px; top:22px; width:2px; height:12px; background:rgba(92,45,37,.55); transform:rotate(6deg); }

/* 27 梨花树：高梨形浅绿冠 + 白花 */
.tree-pearblossom .plant-stem { height:23px; }
.tree-pearblossom .crown-a { left:9px; top:3px; width:24px; height:29px; border-radius:54% 46% 42% 58% / 62% 62% 38% 38%; background:#82ad74; box-shadow:-3px 5px 0 #9ac48a, 4px 4px 0 #6f9b64; }
.tree-pearblossom .bloom-a { left:12px; top:8px; width:5px; height:5px; border-radius:50%; background:#fffdf5; box-shadow:9px -1px 0 #fff8eb, 14px 8px 0 #fffdf5, 4px 12px 0 #fff8eb, 11px 16px 0 #fffdf5; }

/* 28 银杏：扇形金冠 */
.tree-ginkgo .plant-stem { height:25px; width:4px; }
.tree-ginkgo .crown-a { left:5px; top:4px; width:32px; height:29px; background:#e3c34e; clip-path:polygon(50% 100%,4% 38%,10% 9%,34% 23%,50% 0,66% 23%,90% 9%,96% 38%); border-radius:48% 48% 24% 24%; }
.tree-ginkgo .detail-a { left:20px; top:9px; width:2px; height:21px; background:rgba(131,101,35,.35); box-shadow:-8px 2px 0 -1px rgba(131,101,35,.22), 8px 2px 0 -1px rgba(131,101,35,.22); }

/* 29 柳树：圆顶 + 长垂丝 */
.tree-willow .plant-stem { height:25px; width:4px; transform:rotate(-2deg); }
.tree-willow .crown-a { left:6px; top:4px; width:31px; height:17px; border-radius:55% 55% 44% 44%; background:#6b9e67; box-shadow:-3px 3px 0 #80b076, 4px 3px 0 #598c58; }
.tree-willow .leaf-a { left:7px; top:15px; width:3px; height:23px; border-radius:99px; background:#78a96f; box-shadow:6px 3px 0 #5f965c, 12px -1px 0 #8ab77e, 18px 4px 0 #649b61, 25px 0 0 #76aa6f; }
.tree-willow .leaf-b { left:11px; top:17px; width:2px; height:17px; border-radius:99px; background:#91bc84; box-shadow:12px 2px 0 #75a96e, 21px -1px 0 #5b915a; }

/* 30 蓝花楹：紫蓝扁伞冠 */
.tree-jacaranda .plant-stem { height:24px; }
.tree-jacaranda .crown-a { left:3px; top:7px; width:36px; height:17px; border-radius:60% 60% 42% 42%; background:#746ab0; box-shadow:4px -4px 0 #9487c8, -3px 4px 0 #615897, 6px 5px 0 #8275ba; }
.tree-jacaranda .bloom-a { left:7px; top:10px; width:4px; height:4px; border-radius:50%; background:#c5bae7; box-shadow:8px -2px 0 #b7aae0, 17px 1px 0 #d2c8ef, 25px 0 0 #b4a5dc, 4px 8px 0 #d4cbee, 14px 7px 0 #b9ace0, 23px 8px 0 #c9bee9; }

/* 31 松树：宽三层三角针叶 */
.tree-pine .plant-stem { height:13px; bottom:2px; background:#775341; }
.tree-pine .crown-a { left:5px; top:2px; width:32px; height:38px; background:linear-gradient(#497c61,#2f604b); clip-path:polygon(50% 0,74% 33%,64% 33%,88% 63%,70% 63%,100% 100%,0 100%,30% 63%,12% 63%,36% 33%,26% 33%); }
.tree-pine .detail-a { left:14px; top:18px; width:14px; height:2px; border-radius:99px; background:rgba(205,226,198,.3); box-shadow:-3px 9px 0 rgba(205,226,198,.22), 3px 16px 0 rgba(205,226,198,.18); }

/* 32 白桦树：白色双干 + 小椭圆绿冠 */
.tree-birch .plant-stem { left:18px; width:5px; height:27px; background:#f2eee2; box-shadow:inset -1px 0 #d6d0c4; }
.tree-birch .branch-a { left:21px; top:17px; width:13px; height:2px; background:#e9e3d7; transform:rotate(-38deg); }
.tree-birch .crown-a { left:9px; top:4px; width:25px; height:21px; border-radius:45% 55% 48% 52%; background:#77a96a; box-shadow:-4px 5px 0 #92bf7e, 5px 3px 0 #609554; }
.tree-birch .detail-a { left:18px; top:21px; width:6px; height:2px; background:#544e47; box-shadow:1px 6px 0 #544e47, -1px 12px 0 #544e47; }

/* 33 玉兰树：开叉枝 + 大白花，无厚重圆冠 */
.tree-magnolia .plant-stem { height:27px; width:4px; background:#755846; }
.tree-magnolia .branch-a { left:20px; top:16px; width:16px; background:#755846; transform:rotate(-48deg); }
.tree-magnolia .branch-b { left:19px; top:19px; width:15px; background:#755846; transform:rotate(-135deg); }
.tree-magnolia .crown-a,.tree-magnolia .crown-b,.tree-magnolia .crown-c { display:none; }
.tree-magnolia .leaf-a { left:7px; top:15px; width:10px; height:6px; border-radius:100% 0; background:#78966a; transform:rotate(-20deg); }
.tree-magnolia .leaf-b { right:6px; top:13px; width:10px; height:6px; border-radius:0 100%; background:#78966a; transform:rotate(18deg); }
.tree-magnolia .bloom-a { left:6px; top:5px; width:10px; height:10px; background:#fff9f2; clip-path:polygon(50% 0,67% 38%,100% 28%,75% 58%,90% 100%,50% 72%,10% 100%,25% 58%,0 28%,33% 38%); box-shadow:20px 2px 0 #f8e8e3, 10px 9px 0 #fff9f2; }

/* 34 杉树：窄高对称层叠针叶 */
.tree-cedar .plant-stem { height:15px; }
.tree-cedar .crown-a { left:10px; top:1px; width:22px; height:40px; background:linear-gradient(#496f5b,#2a5444); clip-path:polygon(50% 0,70% 22%,61% 22%,79% 43%,67% 43%,86% 65%,70% 65%,91% 87%,64% 87%,72% 100%,28% 100%,36% 87%,9% 87%,30% 65%,14% 65%,33% 43%,21% 43%,39% 22%,30% 22%); }
.tree-cedar .detail-a { left:17px; top:12px; width:8px; height:2px; background:rgba(210,227,204,.24); box-shadow:-2px 8px 0 rgba(210,227,204,.18), 2px 17px 0 rgba(210,227,204,.15); }

/* 35 海棠树：横向伸展冠 + 密集玫红花团 */
.tree-crabapple .plant-stem { height:22px; }
.tree-crabapple .branch-a { left:20px; top:18px; width:16px; transform:rotate(-28deg); }
.tree-crabapple .branch-b { left:20px; top:19px; width:15px; transform:rotate(-154deg); }
.tree-crabapple .crown-a { left:3px; top:8px; width:36px; height:18px; border-radius:62% 58% 48% 52%; background:#648c60; box-shadow:3px -3px 0 #76a171, -3px 4px 0 #547a51; }
.tree-crabapple .bloom-a { left:6px; top:9px; width:6px; height:6px; border-radius:50%; background:#df708c; box-shadow:9px -1px 0 #f093a8, 19px 2px 0 #d65d7d, 27px -1px 0 #ee8fa6, 5px 9px 0 #f09aaf, 16px 8px 0 #d96280, 25px 8px 0 #ea819b; }

/* 36 苹果树：圆冠 + 红苹果 */
.tree-apple .plant-stem { height:23px; }
.tree-apple .crown-a { left:7px; top:5px; width:28px; height:27px; border-radius:50%; background:#5f9258; box-shadow:-4px 5px 0 #78a86f, 5px 3px 0 #4d7c49; }
.tree-apple .detail-a { left:10px; top:11px; width:6px; height:6px; border-radius:48% 52% 50% 50%; background:#d64e48; box-shadow:11px -2px 0 #e16758, 18px 8px 0 #c84340, 5px 13px 0 #e05d53; }
.tree-apple .detail-b { left:12px; top:9px; width:3px; height:4px; border-radius:100% 0; background:#47764a; box-shadow:11px -2px 0 #47764a, 18px 8px 0 #47764a, 5px 13px 0 #47764a; }

/* 37 柠檬树：椭圆冠 + 椭圆黄果 */
.tree-lemon .plant-stem { height:24px; }
.tree-lemon .crown-a { left:6px; top:4px; width:30px; height:28px; border-radius:44% 56% 46% 54%; background:#579057; box-shadow:-3px 5px 0 #73a86d, 5px 3px 0 #46794a; }
.tree-lemon .detail-a { left:10px; top:10px; width:8px; height:5px; border-radius:70% 45% 70% 45%; background:#f0c936; transform:rotate(-18deg); box-shadow:11px 3px 0 #f5d85d, 18px 12px 0 #e5b82c, 2px 14px 0 #efc63a; }

/* 38 橄榄树：扭曲树干 + 银灰狭长叶冠 */
.tree-olive .plant-stem { left:19px; height:25px; width:4px; background:#7a5c47; transform:rotate(-5deg); }
.tree-olive .branch-a { left:20px; top:16px; width:15px; background:#7a5c47; transform:rotate(-37deg); }
.tree-olive .branch-b { left:19px; top:19px; width:13px; background:#7a5c47; transform:rotate(-145deg); }
.tree-olive .crown-a { left:3px; top:7px; width:36px; height:18px; border-radius:68% 42% 68% 42%; background:#829575; transform:rotate(-5deg); box-shadow:2px 5px 0 #93a486; }
.tree-olive .detail-a { left:9px; top:11px; width:4px; height:6px; border-radius:50%; background:#4d5740; box-shadow:10px -2px 0 #596448, 20px 2px 0 #424b38, 7px 8px 0 #5b654a, 17px 7px 0 #46503b; }

/* 39 小橘树：矮圆冠 + 鲜橙果 */
.tree-orange .plant-stem { height:20px; width:5px; }
.tree-orange .crown-a { left:6px; top:8px; width:30px; height:24px; border-radius:52% 48% 52% 48%; background:#4d8650; box-shadow:-3px 5px 0 #67a061, 4px 3px 0 #3e733f; }
.tree-orange .detail-a { left:10px; top:12px; width:6px; height:6px; border-radius:50%; background:#ed9131; box-shadow:10px -1px 0 #f3a748, 18px 7px 0 #df7925, 5px 11px 0 #f09a38; }
.tree-orange .detail-b { left:12px; top:10px; width:3px; height:4px; border-radius:100% 0; background:#5e9657; box-shadow:10px -1px 0 #5e9657, 18px 7px 0 #5e9657, 5px 11px 0 #5e9657; }

/* 40 红杉：极高瘦锥形 + 外露红褐长树干 */
.tree-redwood .plant-stem { left:19px; bottom:1px; width:6px; height:31px; background:#8a4d3b; }
.tree-redwood .crown-a { left:10px; top:0; width:22px; height:41px; background:linear-gradient(#3f755a,#294d40); clip-path:polygon(50% 0,66% 18%,59% 18%,72% 35%,63% 35%,78% 54%,67% 54%,83% 73%,70% 73%,86% 89%,63% 89%,68% 100%,32% 100%,37% 89%,14% 89%,30% 73%,17% 73%,33% 54%,22% 54%,37% 35%,28% 35%,41% 18%,34% 18%); }
.tree-redwood .detail-a { left:18px; top:11px; width:6px; height:2px; background:rgba(219,231,204,.2); box-shadow:-2px 10px 0 rgba(219,231,204,.16), 2px 20px 0 rgba(219,231,204,.13); }

body.dark .garden-botanical-art { filter:saturate(.92) brightness(.96); }


/* ================================================================
   自定义头像裁剪器
   ================================================================ */
.avatar-crop-body { margin-top: 10px; }
.avatar-crop-stage-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #171b19;
  min-height: 140px;
}
.avatar-crop-stage {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  background: #171b19;
}
.avatar-crop-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  pointer-events: none;
}
.avatar-crop-box {
  position: absolute;
  z-index: 3;
  border: 2px solid rgba(255,255,255,.98);
  border-radius: 16px;
  cursor: move;
  touch-action: none;
  box-shadow: 0 0 0 999px rgba(12,16,14,.58), 0 2px 12px rgba(0,0,0,.2);
}
.avatar-crop-box::before,
.avatar-crop-box::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.avatar-crop-box::before {
  left: -3px;
  top: -3px;
  border-left: 4px solid #fff;
  border-top: 4px solid #fff;
  border-radius: 5px 0 0 0;
}
.avatar-crop-box::after {
  right: -3px;
  top: -3px;
  border-right: 4px solid #fff;
  border-top: 4px solid #fff;
  border-radius: 0 5px 0 0;
}
.avatar-crop-grid { position: absolute; display: block; pointer-events: none; opacity: .48; background: rgba(255,255,255,.8); }
.avatar-crop-grid.grid-v1 { left: 33.333%; top: 0; bottom: 0; width: 1px; }
.avatar-crop-grid.grid-v2 { left: 66.666%; top: 0; bottom: 0; width: 1px; }
.avatar-crop-grid.grid-h1 { top: 33.333%; left: 0; right: 0; height: 1px; }
.avatar-crop-grid.grid-h2 { top: 66.666%; left: 0; right: 0; height: 1px; }
.avatar-crop-handle {
  position: absolute;
  display: block;
  right: -9px;
  bottom: -9px;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 7px;
  background: var(--sage);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  cursor: nwse-resize;
  touch-action: none;
}
.avatar-crop-size-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 13px;
  color: var(--ink-3);
  font-size: 11px;
}
.avatar-crop-range {
  width: 100%;
  accent-color: var(--sage);
}
body.dark .avatar-crop-stage-wrap,
body.dark .avatar-crop-stage { background: #0f1311; }

@media (max-width: 420px) {
  .avatar-crop-stage-wrap { border-radius: 15px; }
  .avatar-crop-box { border-radius: 13px; }
}
