/* ============ 小羊计时器 · 样式 ============ */
.timer-wrap {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 20px 50px;
}

.timer-header {
  text-align: center;
  margin-bottom: 22px;
}
.timer-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(120deg, #ff5c8a 10%, #ff8fab 60%, #8ab4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.timer-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 2px;
}

/* 标签栏 */
.tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.tab {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-light);
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s;
  letter-spacing: 1px;
}
.tab.active {
  background: linear-gradient(120deg, var(--pink-soft), var(--pink));
  color: #fff;
  box-shadow: 0 6px 16px rgba(240, 65, 111, 0.3);
}

/* 计时圆盘 */
.ring-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-bg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.ring-bg circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 14;
}
.ring-progress {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  transition: stroke-dashoffset .3s linear;
}
.ring-progress circle {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 14;
  stroke-linecap: round;
}
.time-display {
  font-size: 56px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(255, 92, 138, 0.1);
}
.time-label {
  position: absolute;
  bottom: 70px;
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 3px;
}
.session-tag {
  position: absolute;
  top: 64px;
  padding: 4px 14px;
  background: rgba(255, 143, 171, 0.25);
  color: var(--pink-deep);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 2px;
}

/* 控制按钮 */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
}
.ctrl-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--pink-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(240, 65, 111, 0.18);
  transition: transform .15s;
}
.ctrl-btn:active { transform: scale(.92); }
.ctrl-btn svg { width: 26px; height: 26px; }
.ctrl-btn.main {
  width: 82px;
  height: 82px;
  background: linear-gradient(120deg, var(--pink-soft), var(--pink) 60%, var(--pink-deep));
  color: #fff;
  box-shadow: 0 12px 30px rgba(240, 65, 111, 0.4);
}
.ctrl-btn.main svg { width: 36px; height: 36px; }

/* 设置区（倒计时自定义时间） */
.time-setter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.time-setter input {
  width: 70px;
  padding: 10px 4px;
  text-align: center;
  border: 2px solid var(--pink-pale);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255,255,255,.8);
  outline: none;
  font-variant-numeric: tabular-nums;
}
.time-setter input:focus { border-color: var(--pink); }
.time-setter span { font-size: 18px; font-weight: 700; color: var(--ink-light); }
.preset-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.preset-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--pink-pale);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: var(--pink-deep);
  font-size: 12.5px;
  cursor: pointer;
  transition: all .2s;
}
.preset-btn:hover { background: var(--pink-pale); }
.preset-btn.active { background: var(--pink); color: #fff; border-color: var(--pink); }

/* 番茄钟周期选择 */
.pomodoro-config {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--ink-light);
}
.pomodoro-config label { display: flex; align-items: center; gap: 5px; }
.pomodoro-config input[type=number] {
  width: 54px;
  padding: 5px 2px;
  text-align: center;
  border: 1.5px solid var(--pink-pale);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255,255,255,.8);
}

/* 统计行 */
.timer-stats {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 24px;
}
.stat-pill {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 10px 18px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(240, 65, 111, 0.1);
}
.stat-pill .num { font-size: 20px; font-weight: 800; color: var(--pink-deep); }
.stat-pill .lbl { font-size: 11px; color: var(--ink-light); letter-spacing: 1px; margin-top: 2px; }

/* 装饰元素区 */
.timer-deco {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.deco-float {
  width: 38px;
  height: 38px;
  animation: sway 4s ease-in-out infinite;
}
.deco-float:nth-child(2) { animation-delay: .5s; }
.deco-float:nth-child(3) { animation-delay: 1s; }
.deco-float:nth-child(4) { animation-delay: 1.5s; }
.deco-float:nth-child(5) { animation-delay: 2s; }
@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

/* 锁机模式 */
.lock-mode {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(160deg, #1a1030 0%, #2d1b4e 100%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.lock-mode.show { display: flex; }
.lock-mode .time-display { font-size: 80px; color: #fff; }
.lock-mode .time-label { color: rgba(255,255,255,.6); position: static; margin-top: 14px; }
.lock-mode .lock-hint { margin-top: 40px; font-size: 13px; color: rgba(255,255,255,.5); letter-spacing: 2px; }
.lock-mode .unlock-btn {
  margin-top: 30px;
  padding: 10px 30px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 2px;
}

@media (max-width: 480px) {
  .timer-wrap { padding: 40px 14px 40px; }
  .ring-container { width: 240px; height: 240px; }
  .time-display { font-size: 46px; }
  .ctrl-btn { width: 54px; height: 54px; }
  .ctrl-btn.main { width: 72px; height: 72px; }
}

/* ============ 板块切换 ============ */
.panel { display: none; position: relative; }
.panel.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============ 底部导航 ============ */
/* ============ 侧边导航 ============ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 200px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 4px 0 20px rgba(240, 65, 111, 0.1);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  transition: width .25s ease;
  overflow: hidden;
}
.sidebar.collapsed { width: 68px; }

.sidebar-toggle {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--pink-pale);
  color: var(--pink-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: transform .25s;
}
.sidebar-toggle svg { width: 20px; height: 20px; }
.sidebar.collapsed .sidebar-toggle { transform: rotate(90deg); }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 16px;
  white-space: nowrap;
  overflow: hidden;
}
.brand-dot { font-size: 22px; flex-shrink: 0; }
.brand-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
  opacity: 1;
  transition: opacity .2s;
}
.sidebar.collapsed .brand-text { opacity: 0; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: none;
  color: var(--ink-light);
  font-size: 14px;
  cursor: pointer;
  padding: 11px 12px;
  border-radius: 12px;
  transition: all .2s;
  white-space: nowrap;
  overflow: hidden;
}
.nav-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.nav-label {
  opacity: 1;
  transition: opacity .2s;
}
.sidebar.collapsed .nav-label { opacity: 0; }
.nav-btn:hover { background: rgba(255, 92, 138, 0.08); color: var(--ink); }
.nav-btn.active {
  background: linear-gradient(120deg, var(--pink-soft), var(--pink));
  color: #fff;
  box-shadow: 0 4px 12px rgba(240, 65, 111, 0.25);
}
.nav-btn.active svg { stroke: #fff; }

.sidebar-back {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: rgba(255, 92, 138, 0.08);
  color: var(--ink-light);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  padding: 11px 12px;
  border-radius: 12px;
  transition: all .2s;
  white-space: nowrap;
  overflow: hidden;
  margin-top: auto;
}
.sidebar-back svg { width: 22px; height: 22px; flex-shrink: 0; }
.sidebar-back:hover { background: rgba(255, 92, 138, 0.15); color: var(--pink-deep); }

/* 主内容区适配侧边栏 */
.timer-wrap {
  margin-left: 200px;
  transition: margin-left .25s ease;
}
body.sidebar-collapsed .timer-wrap { margin-left: 68px; }

/* 移动端：侧边栏覆盖 */
@media (max-width: 640px) {
  .sidebar { width: 68px; }
  .sidebar.expanded { width: 200px; }
  .sidebar .brand-text, .sidebar .nav-label { opacity: 0; }
  .sidebar.expanded .brand-text, .sidebar.expanded .nav-label { opacity: 1; }
  .timer-wrap { margin-left: 68px !important; padding: 40px 14px 50px; }
}

/* ============ 计划表（备忘录风格） ============ */
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.plan-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 2px;
}
.plan-badge {
  display: inline-block;
  min-width: 22px;
  padding: 2px 8px;
  margin-left: 6px;
  background: var(--pink-soft);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  vertical-align: middle;
  text-align: center;
}

/* 视图切换 */
.view-switch {
  display: flex;
  background: rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 4px;
}
.view-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-light);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.view-btn.active {
  background: var(--ink);
  color: #fff;
}

/* 视图容器 */
.plan-view { display: none; }
.plan-view.active { display: block; animation: fadeIn .3s ease; }

/* 四象限 */
.matrix-summary {
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 12px;
}
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quadrant {
  border-radius: 16px;
  padding: 14px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
}
.q1 { background: #fde8e8; }
.q2 { background: #e8f0fd; }
.q3 { background: #fff3e0; }
.q4 { background: #f0f0f0; }
.q-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.q-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.q-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.q-desc {
  font-size: 11px;
  color: var(--ink-light);
}
.q-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-light);
  background: rgba(255,255,255,.6);
  padding: 1px 8px;
  border-radius: 999px;
}
.q-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.q-task {
  background: rgba(255,255,255,.8);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.q-task-check {
  width: 16px; height: 16px;
  border: 1.5px solid #bbb;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.q-task.done .q-task-check { background: #7ec8a0; border-color: #7ec8a0; }
.q-task-check svg { width: 10px; height: 10px; }
.q-task-body { flex: 1; min-width: 0; }
.q-task-text { font-size: 13px; color: var(--ink); word-break: break-word; }
.q-task.done .q-task-text { text-decoration: line-through; color: var(--ink-light); }
.q-task-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.q-task-cat {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  color: #fff;
}
.q-task-time { font-size: 10px; color: var(--ink-light); }
.q-task-del {
  border: none;
  background: none;
  color: var(--ink-light);
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
}

/* 四象限选择器 */
.quad-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.quad-pick {
  padding: 8px 10px;
  border: 1.5px solid var(--pink-pale);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  cursor: pointer;
  transition: all .2s;
}
.quad-pick.active {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

.cat-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 7px 16px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: var(--ink-light);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.cat-tab.active {
  background: var(--ink);
  color: #fff;
}

.plan-group { margin-bottom: 18px; }
.group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.group-count {
  font-size: 12px;
  color: var(--ink-light);
  font-weight: 400;
}

.plan-list { display: flex; flex-direction: column; gap: 10px; }

.plan-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.9);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 3px 12px rgba(240,65,111,.06);
}
.plan-check {
  width: 22px; height: 22px;
  border: 2px solid var(--pink-pale);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.plan-item.done .plan-check {
  background: #7ec8a0;
  border-color: #7ec8a0;
}
.plan-check svg { width: 14px; height: 14px; }
.plan-body { flex: 1; min-width: 0; }
.plan-cat-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #fff;
  margin-bottom: 4px;
}
.cat-daily { background: #ffb060; }
.cat-weekly { background: #8ab4ff; }
.cat-monthly { background: #c8a2e8; }
.cat-movie { background: #ff8fab; }
.plan-text {
  font-size: 15px;
  color: var(--ink);
  word-break: break-word;
}
.plan-item.done .plan-text {
  text-decoration: line-through;
  color: var(--ink-light);
}
.plan-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.plan-time { font-size: 11px; color: var(--ink-light); }
.plan-stars { color: #ffb060; font-size: 12px; letter-spacing: 1px; }
.plan-del {
  border: none;
  background: none;
  color: var(--ink-light);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0;
  transition: opacity .2s;
}
.plan-item:hover .plan-del { opacity: 1; }

/* 悬浮添加按钮 */
.fab-btn {
  position: fixed;
  right: 18px;
  bottom: 72px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(120deg, var(--pink-soft), var(--pink-deep));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(240,65,111,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s;
  z-index: 35;
}
.fab-btn:active { transform: scale(.9); }
.fab-btn svg { width: 26px; height: 26px; }

/* 添加计划弹层 */
.plan-modal {
  width: min(88vw, 380px);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px 20px;
}
.plan-modal h3 {
  text-align: center;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: 2px;
}
.modal-field { margin-bottom: 16px; }
.modal-field label {
  display: block;
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.modal-field input[type=text] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--pink-pale);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  color: var(--ink);
}
.modal-field input[type=text]:focus { border-color: var(--pink); }
.modal-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--pink-pale);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  color: var(--ink);
  resize: none;
  font-family: inherit;
  line-height: 1.6;
}
.modal-field textarea:focus { border-color: var(--pink); }

.cat-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-pick {
  padding: 6px 14px;
  border: 1.5px solid var(--pink-pale);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  cursor: pointer;
  transition: all .2s;
}
.cat-pick.active {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

.star-picker { display: flex; gap: 4px; }
.star {
  font-size: 26px;
  color: #ddd;
  cursor: pointer;
  transition: color .15s;
  user-select: none;
}
.star.active { color: #ffb060; }

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.modal-cancel, .modal-confirm {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
}
.modal-cancel {
  background: var(--pink-pale);
  color: var(--ink);
}
.modal-confirm {
  background: linear-gradient(120deg, var(--pink-soft), var(--pink));
  color: #fff;
}

/* ============ 便签岛（双岛屿） ============ */
.note-view { display: none; }
.note-view.active { display: block; animation: fadeIn .3s ease; }

.note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.note-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 2px;
}
.note-sub {
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 16px;
}
.mine-btn {
  border: none;
  background: rgba(255,255,255,.8);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}
.back-btn {
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

/* 岛屿卡片 */
.island-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.island-card {
  background: rgba(255,255,255,.9);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(240,65,111,.08);
  cursor: pointer;
  transition: transform .15s;
}
.island-card:active { transform: scale(.98); }
.island-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.island-avatar.sheep { background: #e8f5e9; }
.island-avatar.rabbit { background: #fce4ec; }
.island-info { flex: 1; min-width: 0; }
.island-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.island-desc { font-size: 12px; color: var(--ink-light); margin-top: 2px; }
.island-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-deep);
  background: var(--pink-pale);
  padding: 4px 10px;
  border-radius: 999px;
}

/* 聊天室入口 */
.chat-entry {
  background: rgba(255,255,255,.9);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(240,65,111,.08);
}
.chat-entry:active { transform: scale(.98); }
.chat-icon { font-size: 20px; }
.chat-arrow { margin-left: auto; color: var(--ink-light); font-size: 18px; }

/* 便签墙 */
.note-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.note-card {
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  cursor: pointer;
  transition: transform .15s;
}
.note-card:active { transform: scale(.98); }
.note-card .note-author {
  font-size: 11px;
  color: var(--ink-light);
  margin-bottom: 6px;
}
.note-card .note-eval {
  font-size: 11px;
  color: var(--ink-light);
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

/* 详情页 */
.detail-note {
  background: rgba(255,255,255,.9);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}
.detail-author { font-size: 13px; color: var(--ink-light); margin-bottom: 10px; }
.detail-text { font-size: 15px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.detail-meta { font-size: 11px; color: var(--ink-light); margin-top: 10px; }
.comments-section { }
.comments-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.comment-item {
  background: rgba(255,255,255,.7);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.comment-author { font-size: 12px; color: var(--ink-light); }
.comment-text { font-size: 14px; color: var(--ink); margin-top: 4px; word-break: break-word; }
.comment-input-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.comment-input-row input {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.comment-input-row button {
  border: none;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
}

/* 我的页面 */
.mine-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  background: rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 4px;
}
.mine-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink-light);
  font-size: 13px;
  padding: 7px 0;
  border-radius: 999px;
  cursor: pointer;
}
.mine-tab.active { background: var(--ink); color: #fff; }
.mine-item {
  background: rgba(255,255,255,.85);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.mine-item-text { font-size: 14px; color: var(--ink); word-break: break-word; }
.mine-item-meta { font-size: 11px; color: var(--ink-light); margin-top: 6px; }
.mine-item-island {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  color: #fff;
  margin-right: 6px;
}

/* 聊天室 */
#noteChat {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 130px);
}
#noteChat.active { display: flex; }
.chat-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  word-break: break-word;
}
.chat-msg.mine {
  align-self: flex-end;
  background: var(--pink);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.other {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chat-msg-sender { font-size: 10px; opacity: .7; margin-bottom: 2px; }
.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.chat-input-row input {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.chat-input-row button {
  border: none;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  padding: 11px 18px;
  font-size: 14px;
  cursor: pointer;
}

/* 匿名选项行 */
.anon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.anon-row input { width: auto; }

/* ============ 虚拟小人 ============ */
.pet-stage {
  text-align: center;
  padding: 20px 0;
}
.pet-avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
  animation: petBob 3s ease-in-out infinite;
}
.pet-avatar svg { width: 100%; height: 100%; }
@keyframes petBob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.pet-name { font-size: 20px; font-weight: 800; color: var(--pink-deep); }
.pet-mood { margin-top: 4px; font-size: 13px; color: var(--ink-light); }

.pet-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.pet-stat {
  background: rgba(255,255,255,.85);
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(240,65,111,.08);
}
.pet-stat-num { font-size: 24px; font-weight: 800; color: var(--pink-deep); }
.pet-stat-label { font-size: 11px; color: var(--ink-light); margin-top: 2px; }

.pet-food {
  background: rgba(255,255,255,.85);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(240,65,111,.08);
}
.pet-food-tip { font-size: 13px; color: var(--ink-light); text-align: center; margin-bottom: 14px; }
.pet-food-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.food-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  border: 1.5px solid var(--pink-pale);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  min-width: 78px;
}
.food-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(240,65,111,.15); }
.food-btn:active { transform: scale(.95); }
.food-icon { font-size: 24px; }
.food-name { font-size: 12px; color: var(--ink); font-weight: 600; }
.food-cost { font-size: 10px; color: var(--pink-deep); }
.pet-coin { text-align: center; font-size: 14px; color: var(--ink); }
.pet-coin b { color: var(--pink-deep); font-size: 18px; }

@media (max-width: 480px) {
  .note-wall { grid-template-columns: 1fr; }
  .pet-stats { gap: 8px; }
}
