/* =====================================================
   猫猫日程本 · Hello Kitty 粉粉风样式
   ===================================================== */
:root {
  --hk-red: #ff4d6d;
  --hk-red-deep: #e23e5f;
  --hk-pink: #ff8fab;
  --hk-pink-deep: #f76f97;
  --hk-soft: #ffd6e0;
  --hk-bg: #ffeef4;
  --cream: #fffdfb;
  --cream-2: #fff6e8;
  --text: #6b4f5a;
  --text-strong: #54394a;
  --muted: #b0879a;
  --border: #ffd9e2;
  --shadow: 0 10px 30px rgba(247, 111, 151, .14);
  --green: #7bd389;
  --radius: 22px;
  --ttRowH: 46px;
  --ttTimeW: 52px;
  --ttDayMinW: 108px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Baloo 2', 'ZCOOL KuaiLe', 'PingFang SC', 'Microsoft YaHei', ui-rounded, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #ffeef4 0%, #fff6e8 55%, #ffeef7 100%);
  background-attachment: fixed;
}

h1, h2, h3, .cal-title, .anniv-big {
  font-family: 'ZCOOL KuaiLe', 'Baloo 2', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  letter-spacing: .5px;
  color: var(--text-strong);
  font-weight: 400;
}

.muted { color: var(--muted); }
button { touch-action: manipulation; }

/* ---------------- Hello Kitty 背景层 ---------------- */
#bgLayer {
  position: fixed; inset: 0; z-index: -3;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
#bgLayer::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 244, 248, .78), rgba(255, 252, 250, .88));
}

/* ---------------- 背景漂浮爪印 ---------------- */
#pawBg { position: fixed; inset: 0; pointer-events: none; z-index: -2; overflow: hidden; }
.paw-float {
  position: absolute;
  font-size: 26px;
  animation: pawFloat linear infinite;
  will-change: transform;
}
@keyframes pawFloat {
  0%   { transform: translateY(105vh) rotate(0deg); }
  100% { transform: translateY(-16vh) rotate(42deg); }
}

/* ---------------- 页头 ---------------- */
.site-header { padding: 14px 16px 4px; }
.header-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.mascot-wrap { width: 88px; height: 88px; filter: drop-shadow(0 6px 10px rgba(247, 143, 171, .35)); }
.brand-text h1 { font-size: 32px; }
.brand-text p { color: var(--muted); font-size: 13.5px; }
.header-stats { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stat-chip {
  background: rgba(255, 253, 251, .92);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.stat-chip b { color: var(--hk-red-deep); }
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--hk-red-deep); font: inherit; font-size: 13.5px;
  text-decoration: underline dotted;
}

/* ---------------- 导航 ---------------- */
.main-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 246, 240, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--border);
}
.nav-btn {
  position: relative;
  display: flex; align-items: center; gap: 5px;
  border: 2px solid transparent; background: transparent;
  color: var(--muted); font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: .2s;
}
.nav-btn:hover { color: var(--hk-red-deep); background: #fff; }
.nav-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--hk-red), #ffb3c6);
  box-shadow: 0 6px 16px rgba(226, 62, 95, .35);
}
.nav-btn.active::after {
  content: '🎀'; position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%); font-size: 12px;
}
.nav-ico { font-size: 17px; }
.nav-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--hk-red); color: #fff; font-size: 11px;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  box-shadow: 0 2px 6px rgba(226, 62, 95, .5);
}

/* ---------------- 主区域 ---------------- */
.app { max-width: 1080px; margin: 0 auto; padding: 14px 14px 40px; }
.tab { display: none; animation: fadeUp .3s ease; }
.tab.active { display: block; }

.card {
  background: rgba(255, 253, 251, .9);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card-title { font-size: 19px; margin-bottom: 10px; }

/* 打招呼条 */
.greeting { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.greeting .g-cat { width: 52px; flex: none; }
.greeting .g-cat .cat-svg { width: 52px; height: 52px; }
.g-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* 接下来 */
.up-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 16px; cursor: pointer; transition: .15s;
}
.up-item:hover { background: var(--hk-bg); }
.up-emoji {
  font-size: 21px; width: 40px; height: 40px; flex: none;
  background: var(--hk-soft); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.up-main { flex: 1; min-width: 0; }
.up-title { font-weight: 700; }
.up-meta { font-size: 12px; color: var(--muted); }
.t-badge {
  flex: none; background: var(--hk-soft); color: var(--hk-red-deep);
  font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px;
}
.t-badge.today { background: linear-gradient(135deg, var(--hk-red), #ff8fab); color: #fff; }

/* ================ 课表（小时网格） ================ */
.tt-card { padding: 14px 14px 10px; }
.tt-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.cal-title { flex: 1; min-width: 140px; text-align: center; font-size: 18px; }
.view-toggle {
  display: inline-flex; background: var(--hk-bg); border-radius: 999px;
  padding: 3px; border: 2px solid var(--border);
}
.vt-btn {
  border: none; background: transparent; font-family: inherit;
  font-size: 13px; font-weight: 700; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: .15s;
}
.vt-btn.active {
  background: linear-gradient(135deg, var(--hk-red), #ff8fab); color: #fff;
  box-shadow: 0 3px 8px rgba(226, 62, 95, .3);
}

.tt-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 2px solid var(--border); border-radius: 16px;
  background: rgba(255, 253, 251, .85);
}
.tt-grid {
  display: grid;
  grid-template-columns: var(--ttTimeW) repeat(7, minmax(var(--ttDayMinW), 1fr));
  min-width: 0;
}
.tt-grid.dayview { grid-template-columns: var(--ttTimeW) minmax(240px, 1fr); }

.tt-hd {
  text-align: center; font-size: 12.5px; font-weight: 700; color: var(--text-strong);
  padding: 8px 4px; border-bottom: 2px solid var(--border);
  background: var(--hk-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tt-hd.time-cell { background: #fff; color: var(--muted); font-size: 12px; }
.tt-hd.today { background: linear-gradient(135deg, var(--hk-red), #ff8fab); color: #fff; }
.tt-hd small { display: block; font-weight: 400; color: inherit; opacity: .85; }

.tt-times { border-right: 2px solid var(--border); background: #fff; }
.tt-time-label {
  height: var(--ttRowH); display: flex; align-items: flex-start; justify-content: center;
  font-size: 11px; color: var(--muted); padding-top: 2px; font-weight: 600;
  border-bottom: 1px solid #ffe9ee;
}

.tt-day {
  position: relative;
  height: calc(var(--ttRowH) * 16); /* 07:00 - 23:00 */
  border-right: 1px solid #ffe9ee;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--ttRowH) - 1px), #ffe9ee calc(var(--ttRowH) - 1px), #ffe9ee var(--ttRowH));
  cursor: crosshair;
}
.tt-day:last-child { border-right: none; }
.tt-day.istoday { background-color: rgba(255, 214, 224, .35); }

/* 全天事项胶囊 */
.tt-allday { position: absolute; top: 3px; left: 3px; right: 3px; z-index: 6; display: flex; flex-direction: column; gap: 2px; pointer-events: auto; }
.tt-allday .tt-chip {
  background: #fff; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 11px; padding: 2px 5px; cursor: pointer; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; text-align: left; color: var(--text);
}

/* 事件块 */
.tt-block {
  position: absolute; z-index: 5;
  border-radius: 9px; padding: 3px 6px; overflow: hidden;
  cursor: pointer; border: 1.5px solid rgba(255, 255, 255, .8);
  box-shadow: 0 2px 6px rgba(107, 79, 90, .12);
  transition: transform .12s, box-shadow .12s;
}
.tt-block:hover, .tt-block:active { transform: scale(1.02); box-shadow: 0 4px 12px rgba(107, 79, 90, .2); z-index: 8; }
.tt-block .tb-time { font-size: 10px; font-weight: 700; opacity: .85; line-height: 1.25; }
.tt-block .tb-title {
  font-size: 12px; font-weight: 700; color: #fff; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tt-block .tb-sub { font-size: 10px; color: rgba(255, 255, 255, .9); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 现在时间线 */
.tt-nowline {
  position: absolute; left: 0; right: 0; height: 2px; z-index: 7;
  background: var(--hk-red); pointer-events: none;
}
.tt-nowline::before {
  content: ''; position: absolute; left: -4px; top: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--hk-red);
}

/* 日视图节次分界线（粉=我，蓝=TA） */
.tt-plines { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.tt-pline {
  position: absolute; left: 0; right: 0; height: 0;
  border-top: 2px dashed; transform: translateY(-1px);
}
.tt-pline.me { border-color: #ff8fab; }
.tt-pline.partner { border-color: #4cc9f0; }
.tt-pline.end { border-style: dotted; opacity: .5; }
.tt-pline span {
  position: absolute; right: 2px; top: -9px;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 9.5px; display: flex; align-items: center; justify-content: center;
  background: #fff;
}
.tt-pline.me span { border: 1px solid #ff8fab; color: #e23e5f; }
.tt-pline.partner span { border: 1px solid #4cc9f0; color: #2f8fc4; }
.pline-dot {
  display: inline-block; width: 12px; height: 0;
  border-top: 2px dashed; vertical-align: middle; margin: 0 3px;
}
.pline-dot.me { border-color: #ff8fab; }
.pline-dot.partner { border-color: #4cc9f0; }

/* ================ 月历 ================ */
.cal-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--muted); padding: 3px 0; }
.cal-cell {
  min-height: 58px; border-radius: 12px; padding: 4px; cursor: pointer;
  border: 2px solid transparent; background: #fffaf7; position: relative; transition: .15s;
}
.cal-cell:hover { border-color: var(--hk-soft); transform: translateY(-1px); }
.cal-cell.empty { background: transparent; cursor: default; transform: none; }
.cal-num { font-size: 13px; font-weight: 700; }
.cal-cell.selected { border-color: var(--hk-pink); background: var(--hk-bg); }
.cal-cell.today .cal-num {
  background: linear-gradient(135deg, var(--hk-red-deep), var(--hk-red));
  color: #fff; border-radius: 50%;
  width: 22px; height: 22px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px;
}
.cal-dots { display: flex; gap: 2px; margin-top: 4px; flex-wrap: wrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-more { font-size: 9px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 3px; }

/* 日详情面板 */
.day-card { position: sticky; top: 64px; }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.day-head h3 { font-size: 18px; }
.ev-item {
  display: flex; gap: 10px; padding: 10px; border-radius: 16px;
  background: #fffaf7; border-left: 5px solid var(--c, var(--hk-pink));
  margin-bottom: 10px;
}
.ev-emoji {
  font-size: 21px; width: 36px; height: 36px; flex: none;
  background: #fff; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--border);
}
.ev-main { flex: 1; min-width: 0; }
.ev-title { font-weight: 700; word-break: break-all; }
.ev-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ev-note { font-size: 12px; color: #a58393; background: var(--hk-bg); border-radius: 9px; padding: 3px 7px; margin-top: 5px; }
.ev-actions { display: flex; flex-direction: column; gap: 5px; }
.day-tip { margin-top: 8px; font-size: 12.5px; color: var(--hk-red-deep); text-align: center; }
.rep-tag {
  display: inline-block; font-size: 10.5px; background: #fff; color: var(--hk-red-deep);
  border: 1px solid var(--border); border-radius: 6px; padding: 0 5px; margin-left: 4px;
}

/* 空状态 */
.empty { text-align: center; color: var(--muted); padding: 16px 8px; font-size: 13.5px; }
.empty .cat-svg { width: 84px; margin: 0 auto 4px; display: block; }

/* ---------------- 按钮 / 输入 ---------------- */
.btn {
  border: none; cursor: pointer; font-family: inherit;
  font-size: 14.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--hk-red), var(--hk-red-deep));
  padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(226, 62, 95, .3);
  transition: .15s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: #fff; color: var(--hk-red-deep); border: 2px solid var(--hk-soft); box-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #ff7a8a, var(--hk-red)); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.danger-btn { color: #e0708b; border-color: #ffc9d6; }

.btn-ico {
  width: 36px; height: 36px; border-radius: 11px;
  border: 2px solid var(--border); background: #fff; cursor: pointer;
  font-size: 15px; transition: .15s;
}
.btn-ico:hover { border-color: var(--hk-pink); transform: translateY(-1px); }
.btn-ico.tiny { width: 29px; height: 29px; font-size: 12.5px; border-radius: 8px; }

.input {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--text);
  background: #fffaf9; border: 2px solid var(--border); border-radius: 12px;
  padding: 8px 11px; outline: none; transition: .15s;
}
.input:focus { border-color: var(--hk-pink); box-shadow: 0 0 0 3px rgba(255, 143, 171, .15); }
textarea.input { resize: vertical; }
select.input { cursor: pointer; }
.year-input { width: 78px; display: inline-block; padding: 5px 8px; }

/* 选择胶囊 */
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.pchip, .cchip, .schip {
  cursor: pointer; border: 2px solid var(--border); background: #fff;
  border-radius: 999px; padding: 5px 11px; font-size: 13px;
  transition: .15s; user-select: none;
}
.pchip input, .cchip input, .schip input { display: none; }
.pchip.active, .cchip.active, .schip.active {
  background: var(--hk-bg); border-color: var(--hk-pink);
  color: var(--hk-red-deep); font-weight: 700;
}
.cchip.active { transform: scale(1.05); }
.schip { padding: 3px 7px; font-size: 15px; border-radius: 10px; }

/* ---------------- 弹窗 ---------------- */
.modal-root {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 12px;
}
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(107, 79, 90, .35); backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.modal-card {
  background: #fffdfb; border-radius: 24px;
  max-width: 520px; width: 100%; max-height: 88vh; max-height: 88dvh; overflow: auto;
  padding: 20px; position: relative;
  animation: popIn .25s ease;
  -webkit-overflow-scrolling: touch;
}
.modal-card.wide { max-width: 920px; }
.m-head h3 { font-size: 21px; }
.m-head .muted { margin-top: 4px; }
.m-cat { width: 104px; margin: 0 auto 4px; }
.m-msg { text-align: center; font-size: 14.5px; padding: 6px 0 4px; }
.m-btns { display: flex; gap: 9px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.flex1 { flex: 1; }

/* 表单 */
.m-body .frow { display: flex; gap: 9px; margin-top: 11px; align-items: flex-end; flex-wrap: wrap; }
.m-body .frow label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12.5px; color: var(--muted); font-weight: 600;
  flex: 1; min-width: 100px;
}
.m-body label.fld {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 11px;
}

/* ---------------- 导入 ---------------- */
.dropzone {
  text-align: center; padding: 28px 16px;
  border-style: dashed; border-width: 3px; cursor: pointer; transition: .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--hk-pink); background: var(--hk-bg); transform: scale(1.01); }
.dropzone h3 { font-size: 21px; margin: 8px 0 5px; }
.dz-cat { width: 100px; margin: 0 auto; }
.paste-row { display: flex; gap: 10px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-top: 10px; }
.paste-row label { font-size: 13px; display: flex; align-items: center; gap: 7px; }
.hint-list { padding-left: 18px; font-size: 13px; line-height: 1.9; }
.hint-list code {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 0 5px; font-size: 12px; color: var(--hk-red-deep);
}

/* 解析审核列表 */
.draft-list { max-height: 46vh; max-height: 46dvh; overflow: auto; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-right: 4px; }
.draft-row {
  display: grid;
  grid-template-columns: 30px 1.4fr 1fr .7fr .7fr .9fr .9fr .8fr 28px;
  gap: 5px; align-items: center; min-width: 700px;
}
.d-chk { display: flex; justify-content: center; }
.d-chk input { width: 17px; height: 17px; accent-color: var(--hk-red-deep); cursor: pointer; }
.draft-row .input { padding: 5px 7px; font-size: 12.5px; }
.d-del { color: #e07a7a; }

/* ---------------- 提醒 ---------------- */
.board-2col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; align-items: start; }
.rem-item {
  display: flex; gap: 10px; padding: 11px; border-radius: 16px;
  background: #fffaf7; border: 2px solid var(--border);
  margin-bottom: 9px; align-items: center;
}
.rem-item.done { opacity: .65; background: #f7f4f0; }
.rem-item.done .rem-title { text-decoration: line-through; }
.rem-sticker {
  font-size: 24px; width: 44px; height: 44px; flex: none;
  background: #fff; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--border);
}
.rem-main { flex: 1; min-width: 0; }
.rem-title { font-weight: 700; word-break: break-all; }
.rem-detail { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rem-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.rem-actions { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.done-tag { font-size: 12.5px; color: var(--green); font-weight: 700; }
.sub { margin: 12px 0 7px; color: var(--hk-red-deep); font-size: 14.5px; }
.qchip {
  border: 2px solid var(--border); background: #fff; border-radius: 999px;
  padding: 4px 11px; font-size: 12.5px; cursor: pointer; font-family: inherit; color: var(--text);
  transition: .15s;
}
.qchip:hover { border-color: var(--hk-pink); color: var(--hk-red-deep); }

/* 戳一戳 */
.poke-btns { display: flex; gap: 9px; margin: 10px 0; flex-wrap: wrap; }
.poke-btn {
  display: flex; align-items: center; gap: 7px;
  border: 2px solid var(--border); background: #fff; border-radius: 999px;
  padding: 7px 13px; font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--hk-red-deep); cursor: pointer; transition: .15s;
}
.poke-btn:hover { border-color: var(--hk-pink); transform: translateY(-1px); }
.poke-btn.ghost { color: var(--muted); font-weight: 600; }
.poke-btn .cat-svg { width: 32px; height: 32px; }
.poke-stream { max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 9px; padding: 5px 2px; }
.bubble { display: flex; gap: 8px; align-items: flex-end; max-width: 90%; }
.bubble.theirs { align-self: flex-start; }
.bubble.mine { align-self: flex-end; flex-direction: row-reverse; }
.bub-av {
  font-size: 22px; width: 34px; height: 34px; flex: none;
  border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--border);
}
.bub-box { background: #fff; border: 2px solid var(--border); border-radius: 15px 15px 15px 4px; padding: 7px 11px; }
.bubble.mine .bub-box { background: var(--hk-bg); border-radius: 15px 15px 4px 15px; }
.bub-name { font-size: 11px; color: var(--muted); }
.bub-text { font-size: 13.5px; }
.bub-sticker { font-size: 15px; }
.bub-time { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* 新鲜提醒弹窗 */
.fresh-list { display: flex; flex-direction: column; gap: 7px; margin: 10px 0 4px; }
.fresh-item {
  background: var(--hk-bg); border-radius: 13px;
  padding: 9px 13px; font-size: 14.5px; text-align: left;
}

/* ---------------- 我们的 ---------------- */
.profiles-row { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; }
.profile {
  display: flex; align-items: center; gap: 9px;
  background: #fffaf7; border: 2px solid var(--border);
  border-radius: 16px; padding: 11px;
}
.avatar-btn {
  font-size: 30px; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--border); background: #fff; cursor: pointer; transition: .15s;
  display: flex; align-items: center; justify-content: center;
}
.avatar-btn:hover { transform: scale(1.08) rotate(-6deg); border-color: var(--hk-pink); }
.avatar-btn .cat-svg, .avatar-opt .cat-svg { width: 32px; height: 32px; }
.bub-av .cat-svg { width: 24px; height: 24px; }
.rem-meta .cat-svg, .up-meta .cat-svg, .tb-sub .cat-svg {
  display: inline-block; width: 15px; height: 15px; vertical-align: -3px;
}
.name-input { width: 104px; }
.plus-heart { font-size: 24px; animation: heartBeat 1.6s infinite; }
.avatar-grid { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; padding: 10px 0 4px; }
.avatar-opt {
  font-size: 27px; width: 52px; height: 52px; border-radius: 13px;
  border: 2px solid var(--border); background: #fff; cursor: pointer; transition: .15s;
}
.avatar-opt:hover { border-color: var(--hk-pink); transform: scale(1.1); }
.anniv-row { display: flex; gap: 9px; align-items: flex-end; flex-wrap: wrap; }
.anniv-row label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.anniv-big { font-size: 19px; margin: 12px 0 4px; }
.anniv-big b { color: var(--hk-red-deep); }

/* 作息时间（两套课表划分） */
.sched-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.sched-panel {
  background: #fffaf7; border: 2px solid var(--border); border-radius: 16px; padding: 12px;
}
.sched-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.sched-emoji { font-size: 22px; }
.sched-name { width: 90px; flex: none; }
.sched-rows { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.sched-row { display: flex; align-items: center; gap: 6px; }
.sched-label { font-size: 12px; color: var(--muted); width: 46px; flex: none; }
.sched-row .input { padding: 5px 7px; font-size: 13px; width: 92px; flex: none; }

/* 云端同步 */
.sync-form { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.sync-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sync-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

/* 贴贴墙 */
.note-form { margin-bottom: 12px; }
.note-form-row { display: flex; gap: 9px; align-items: center; margin-top: 9px; flex-wrap: wrap; }
.note-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.note {
  border-radius: 15px; padding: 11px; position: relative;
  transform: rotate(-1deg); box-shadow: 0 4px 10px rgba(107, 79, 90, .08);
  border: 1px solid rgba(255, 143, 171, .25);
}
.note:nth-child(even) { transform: rotate(1.2deg); }
.note-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; }
.note-sticker { font-size: 17px; }
.note p { margin: 5px 0; font-size: 13.5px; word-break: break-word; }
.note-foot { display: flex; justify-content: space-between; align-items: center; }

/* 数据小屋 */
.data-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.notify-label { font-size: 13.5px; color: var(--muted); display: flex; gap: 5px; align-items: center; cursor: pointer; }
.notify-label input { accent-color: var(--hk-red-deep); width: 16px; height: 16px; }
.small-note { margin-top: 9px; font-size: 12px; }

/* ---------------- 提示气泡 ---------------- */
.toast-box {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 7px;
  align-items: center; pointer-events: none; width: max-content; max-width: 92vw;
}
.toast {
  background: rgba(84, 57, 74, .92); color: #fff;
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  animation: popIn .25s ease;
  display: flex; gap: 7px; align-items: center; max-width: 92vw;
}
.toast.out { opacity: 0; transform: translateY(8px); transition: .35s; }

/* ---------------- 加载遮罩 ---------------- */
.loading-overlay {
  position: fixed; inset: 0; z-index: 250; display: none;
  align-items: center; justify-content: center;
  background: rgba(255, 238, 244, .75); backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.loading-card {
  background: #fffdfb; border: 2px solid var(--border); border-radius: 22px;
  padding: 24px 34px; text-align: center; box-shadow: var(--shadow);
}
.loading-card .cat-svg { width: 100px; margin: 0 auto; }
.loading-card p { margin-top: 9px; font-size: 14.5px; color: var(--text); }

/* ---------------- 页脚 ---------------- */
.site-footer { text-align: center; padding: 8px 14px 24px; color: var(--muted); font-size: 12.5px; }

/* ---------------- Hello Kitty 猫咪 SVG（静态为主，仅轻微眨眼） ---------------- */
.cat-svg { display: block; }
.cat-svg.mascot { animation: bob 4.2s ease-in-out infinite; }
.cat-svg.bob { animation: bob 1.8s ease-in-out infinite; }
.cat-svg .eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.2s infinite; }
.cat-svg .eyes-closed, .cat-svg .eyes-heart, .cat-svg .mouth, .cat-svg .mouth-sad, .cat-svg .zzz { display: none; }
.cat-svg.sleep .eyes, .cat-svg.love .eyes { display: none; }
.cat-svg.sleep .eyes-closed, .cat-svg.love .eyes-heart { display: block; }
.cat-svg.sad .mouth-sad { display: block; }
.cat-svg.sleep .zzz { display: block; }
.cat-svg.small { width: 64px; }
.cat-svg.mini { width: 34px; }

/* ---------------- 点击特效 ---------------- */
.spark {
  position: fixed; pointer-events: none; z-index: 999;
  animation: sparkFly .9s ease-out forwards;
}

/* ---------------- 动画 ---------------- */
@keyframes popIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes blink { 0%, 91%, 97%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.06); } }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes sparkFly { to { transform: translate(var(--dx), var(--dy)) rotate(200deg); opacity: 0; } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 880px) {
  .cal-wrap { grid-template-columns: 1fr; }
  .day-card { position: static; }
  .board-2col { grid-template-columns: 1fr; }
  .sched-grid { grid-template-columns: 1fr; }
  .modal-card.wide { max-width: 96vw; }
  .draft-row { min-width: 680px; }
}
@media (max-width: 600px) {
  :root { --ttRowH: 42px; }
  .brand-text h1 { font-size: 26px; }
  .mascot-wrap { width: 68px; height: 68px; }
  .nav-btn { padding: 6px 11px; font-size: 13.5px; gap: 3px; }
  .nav-ico { font-size: 15px; }
  .app { padding: 10px 10px 32px; }
  .card { padding: 14px; border-radius: 18px; }
  .tt-head { gap: 6px; }
  .cal-title { font-size: 15.5px; min-width: 110px; }
  .cal-cell { min-height: 44px; padding: 3px; border-radius: 9px; }
  .cal-num { font-size: 12px; }
  .cal-cell.today .cal-num { width: 20px; height: 20px; font-size: 11px; }
  .cal-grid { gap: 3px; }
  .header-stats { gap: 5px; }
  .stat-chip { padding: 5px 10px; font-size: 12px; }
  .btn { padding: 8px 15px; font-size: 13.5px; }
  .vt-btn { padding: 5px 10px; font-size: 12px; }
  .tt-block .tb-title { font-size: 11px; }
  .tt-block .tb-time { font-size: 9px; }
  .tt-block .tb-sub { font-size: 9px; }
  .modal-card { padding: 16px; border-radius: 20px; }
  .toast { font-size: 12.5px; padding: 8px 14px; }
  .greeting { font-size: 14px; }
  .note-wall { grid-template-columns: 1fr 1fr; }
}
