/* ════════════════════════════════════════════════════════════════════
   我的小窝 · 治愈系液态玻璃个人主页
   ────────────────────────────────────────────────────────────────
   🎨 整体换色指南：只需要修改下面「各模块配色」里每个模块的 5 个变量，
      全站（背景 / 玻璃 / 文字 / 氛围光）会自动跟随变化。
   ════════════════════════════════════════════════════════════════════ */

/* 让颜色变量可以平滑过渡（页面切换时颜色渐变不突兀的关键） */
@property --page-bg   { syntax: '<color>'; inherits: true; initial-value: #fbf2e2; }
@property --page-bg-2 { syntax: '<color>'; inherits: true; initial-value: #f7e8cf; }
@property --accent    { syntax: '<color>'; inherits: true; initial-value: #ee9e6d; }
@property --blob-a    { syntax: '<color>'; inherits: true; initial-value: #f6c9a0; }
@property --blob-b    { syntax: '<color>'; inherits: true; initial-value: #f3ddba; }

:root {
  /* ── 全局通用变量 ── */
  --font-cute: 'ZCOOL KuaiLe', 'Baloo 2', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-num:  'Baloo 2', 'Noto Sans SC', sans-serif;

  --r-lg: 30px;              /* 大圆角（液态玻璃卡） */
  --r-md: 22px;              /* 中圆角（普通玻璃卡） */
  --r-sm: 14px;              /* 小圆角 */

  --ease-jelly: cubic-bezier(.2, .9, .3, 1.2);   /* 果冻弹性 */
  --ease-soft:  cubic-bezier(.4, 0, .2, 1);      /* 柔和缓动 */
  --speed-view: .9s;                              /* 换页变色时长 */

  --glass-hi: rgba(255, 255, 255, .55);         /* 玻璃高光 */
  --glass-line: rgba(255, 255, 255, .55);       /* 玻璃描边 */
}

/* ── 🏠 主页 · 奶油杏（来自小屋那张图） ── */
body[data-view="home"] {
  --page-bg:   #fbf2e2;
  --page-bg-2: #f6e7cd;
  --accent:    #ee9e6d;
  --accent-2:  #e8856a;
  --ink:       #6b584a;
  --ink-soft:  #9a8574;
  --blob-a:    #f7c99c;
  --blob-b:    #f2e0b8;
}
/* ── ❀ 关于我 · 天空蓝（来自夏日风铃/冬日雪天） ── */
body[data-view="about"] {
  --page-bg:   #dcebf8;
  --page-bg-2: #c9e0f4;
  --accent:    #6ea8dc;
  --accent-2:  #5b92cf;
  --ink:       #4a5e75;
  --ink-soft:  #7d93a9;
  --blob-a:    #a9cdec;
  --blob-b:    #cfe4f6;
}
/* ── ✎ 留言板 · 樱花粉（来自粉色吉伊） ── */
body[data-view="board"] {
  --page-bg:   #fbdee9;
  --page-bg-2: #f8d0df;
  --accent:    #ef8fb6;
  --accent-2:  #e5729f;
  --ink:       #7a5566;
  --ink-soft:  #a9879a;
  --blob-a:    #f6b7d0;
  --blob-b:    #fad7e5;
}
/* ── ♡ 爱与感受 · 蜜桃珊瑚（来自樱花树） ── */
body[data-view="love"] {
  --page-bg:   #fce6d9;
  --page-bg-2: #f9d9c8;
  --accent:    #ef8a7a;
  --accent-2:  #e56f62;
  --ink:       #75554b;
  --ink-soft:  #a98a7e;
  --blob-a:    #f6b8a6;
  --blob-b:    #fad5c2;
}

/* ═══════════════ 基础 ═══════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--page-bg);
  min-height: 100vh;
  overflow-x: hidden;
  /* 页面切换时，所有颜色变量一起平滑渐变 → 衔接不突兀 */
  transition:
    --page-bg   var(--speed-view) var(--ease-soft),
    --page-bg-2 var(--speed-view) var(--ease-soft),
    --accent    var(--speed-view) var(--ease-soft),
    --blob-a    var(--speed-view) var(--ease-soft),
    --blob-b    var(--speed-view) var(--ease-soft),
    background-color var(--speed-view) var(--ease-soft),
    color .6s var(--ease-soft);
}

::selection { background: color-mix(in srgb, var(--accent) 35%, white); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 45%, white);
  border-radius: 99px; border: 2px solid transparent; background-clip: content-box;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 26px; }

/* ═══════════════ 氛围背景：三团柔光 ═══════════════ */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .55; will-change: transform;
}
.blob-a {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: -12%; right: -8%;
  background: radial-gradient(circle at 35% 35%, var(--blob-a), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-b {
  width: 40vw; height: 40vw; min-width: 320px; min-height: 320px;
  bottom: -14%; left: -8%;
  background: radial-gradient(circle at 60% 60%, var(--blob-b), transparent 70%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
.blob-c {
  width: 24vw; height: 24vw; min-width: 200px; min-height: 200px;
  top: 38%; left: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.8), transparent 70%);
  opacity: .5;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vw, 4vh) scale(1.12); }
}

/* 飘落的小花瓣（JS 生成） */
.petal {
  position: fixed; top: -40px; z-index: 0; pointer-events: none;
  color: var(--accent); opacity: 0;
  animation: petal-fall linear forwards;
  text-shadow: 0 2px 6px rgba(255,255,255,.6);
}
@keyframes petal-fall {
  0%   { opacity: 0; transform: translateY(0) translateX(0) rotate(0deg); }
  8%   { opacity: .8; }
  85%  { opacity: .7; }
  100% { opacity: 0; transform: translateY(105vh) translateX(6vw) rotate(340deg); }
}

/* ═══════════════ 液态玻璃（GitHub Liquid Glass 三层结构） ═══════════════ */
.liquid-glass {
  position: relative;
  border-radius: var(--r-lg);
  isolation: isolate;
}
.lg-effect, .lg-tint, .lg-shine { position: absolute; inset: 0; border-radius: inherit; }
.lg-effect {                    /* 第一层：折射扭曲 + 背景模糊 */
  z-index: 0; overflow: hidden;
  backdrop-filter: blur(3px) saturate(1.5);
  -webkit-backdrop-filter: blur(3px) saturate(1.5);
  filter: url(#glass-distortion);
}
.lg-tint {                      /* 第二层：奶白色调 */
  z-index: 1;
  background: linear-gradient(135deg, rgba(255,255,255,.46), rgba(255,255,255,.12) 60%, rgba(255,255,255,.2));
}
.lg-shine {                     /* 第三层：边缘高光 + 镜面反光 */
  z-index: 2; pointer-events: none;
  box-shadow:
    inset 2px 2px 1px 0 rgba(255,255,255,.6),
    inset -1px -1px 1px 1px rgba(255,255,255,.35);
  background: radial-gradient(130% 90% at 12% 0%, rgba(255,255,255,.4), transparent 55%);
}
.lg-content { position: relative; z-index: 3; }

/* 简化版玻璃（轻量、无折射，用于大量小元素） */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,.16));
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-md);
  box-shadow:
    0 14px 34px -14px color-mix(in srgb, var(--ink) 22%, transparent),
    inset 0 1px 0 var(--glass-hi);
}
.glass-mini {
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.2));
  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 6px 18px -8px color-mix(in srgb, var(--ink) 18%, transparent);
}
.pad { padding: 26px; }
.pad-lg { padding: 30px; }

/* ═══════════════ 顶部导航 ═══════════════ */
.topbar {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-cute); font-size: 18px; letter-spacing: 1px;
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: background var(--speed-view) var(--ease-soft);
}
.topnav { border-radius: 999px; }
.nav-inner { display: flex; gap: 4px; padding: 6px; }
.nav-inner a {
  padding: 9px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
  transition: background .35s, box-shadow .35s, transform .3s var(--ease-jelly);
}
.nav-inner a:hover { transform: translateY(-1px); background: rgba(255,255,255,.35); }
.nav-inner a.active {
  background: rgba(255,255,255,.75);
  box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 1px 0 #fff;
  color: color-mix(in srgb, var(--accent-2, var(--accent)) 80%, var(--ink));
}

/* ═══════════════ 视图切换动画 ═══════════════ */
.view { display: none; }
.view.active { display: block; animation: view-in .7s var(--ease-soft) both; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}

/* ═══════════════ 通用排版组件 ═══════════════ */
.kicker {
  font-family: var(--font-num); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; font-size: 13px;
  color: var(--accent-2, var(--accent));
  margin-bottom: 14px;
  transition: color var(--speed-view) var(--ease-soft);
}
.hero-title, .page-title {
  font-family: var(--font-cute); font-weight: 400;
  line-height: 1.25; letter-spacing: 1px;
}
.hero-title { font-size: clamp(40px, 6vw, 64px); }
.page-title { font-size: clamp(32px, 4.6vw, 48px); }
.hero-title em, .page-title em {
  font-style: normal; position: relative;
  color: var(--accent-2, var(--accent));
  transition: color var(--speed-view) var(--ease-soft);
}
.hero-sub, .page-sub { margin-top: 18px; line-height: 2; color: var(--ink-soft); font-size: 15.5px; }
.page-head { padding: 130px 26px 34px; }

.sec-title {
  font-family: var(--font-cute); font-weight: 400; font-size: 24px;
  display: flex; align-items: center; gap: 12px;
  margin: 66px 0 24px;
}
.sec-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: background var(--speed-view) var(--ease-soft);
}
.mini-title { font-family: var(--font-cute); font-weight: 400; font-size: 19px; margin-bottom: 18px; }

/* ═══════════════ 按钮 ═══════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 26px; border-radius: 999px; border: none;
  font-size: 15px; font-weight: 700;
  transition: transform .35s var(--ease-jelly), box-shadow .35s;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2, var(--accent)));
  box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 65%, transparent), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .35s var(--ease-jelly), box-shadow .35s, background var(--speed-view) var(--ease-soft);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -10px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-ghost {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,.25));
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.btn-ghost:hover { transform: translateY(-3px); }

/* ═══════════════ 首页 ═══════════════ */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
  min-height: 100vh; padding-top: 90px; padding-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* 照片玻璃框 */
.tilt { transition: transform .5s var(--ease-jelly); }
.tilt:hover { transform: perspective(900px) rotateX(2deg) rotateY(-3deg) translateY(-6px); }
.tilt-slow { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(.4deg); }
}
.photo-frame { padding: 14px; }
.photo-frame img {
  display: block; width: 100%; border-radius: calc(var(--r-lg) - 12px);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--ink) 30%, transparent);
}
.photo-cap {
  position: absolute; z-index: 4; left: 26px; bottom: 26px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.4));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.15);
}

/* 模块入口卡片 */
.modules { padding-bottom: 30px; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.module-card { display: block; transition: transform .45s var(--ease-jelly); }
.module-card:hover { transform: translateY(-8px) scale(1.015); }
.module-card:hover .module-go { color: var(--accent-2, var(--accent)); transform: translateX(4px); }
.module-inner { padding: 30px 26px; }
.module-emoji {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 18px;
  font-size: 24px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--card-hue, var(--accent)) 22%, white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.module-card[data-mod="about"] { --card-hue: #6ea8dc; }
.module-card[data-mod="board"] { --card-hue: #ef8fb6; }
.module-card[data-mod="love"]  { --card-hue: #ef8a7a; }
.module-inner h3 { font-family: var(--font-cute); font-weight: 400; font-size: 21px; margin-bottom: 8px; }
.module-inner p { font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.module-go {
  display: inline-block; margin-top: 18px;
  font-size: 14px; font-weight: 700; color: var(--ink);
  transition: transform .35s var(--ease-jelly), color .3s;
}

/* ═══════════════ 关于我 ═══════════════ */
.about-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 24px;
  padding-bottom: 40px;
}
.about-photo { grid-row: span 2; align-self: start; }
.about-main { display: flex; flex-direction: column; gap: 20px; }
.about-main .glass p { line-height: 2.1; font-size: 15px; }
.about-main .glass p + p { margin-top: 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  transition: transform .3s var(--ease-jelly);
}
.chip:hover { transform: translateY(-3px) rotate(-1deg); }
.about-side { display: flex; flex-direction: column; gap: 24px; }
.info-list { list-style: none; }
.info-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 2px; font-size: 14.5px;
  border-bottom: 1px dashed color-mix(in srgb, var(--ink) 15%, transparent);
}
.info-list li:last-child { border-bottom: none; }
.info-list span { color: var(--ink-soft); flex-shrink: 0; }
.info-list b { font-weight: 500; text-align: right; }
.about-photo-small { transform: rotate(1.5deg); }
.about-photo-small:hover { transform: rotate(0deg) translateY(-4px); }

/* ═══════════════ 留言板 ═══════════════ */
.board-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 26px;
  align-items: start; padding-bottom: 40px;
}
.board-form { position: sticky; top: 96px; }
.field { display: block; margin-bottom: 16px; }
.field > span {
  display: flex; justify-content: space-between;
  font-size: 13.5px; font-weight: 500; margin-bottom: 8px; color: var(--ink-soft);
}
.field i { font-style: normal; font-family: var(--font-num); opacity: .8; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--glass-line); outline: none;
  padding: 13px 16px; border-radius: var(--r-sm);
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  transition: box-shadow .3s, background .3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  background: rgba(255,255,255,.8);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink) 40%, transparent); }
.board-form .btn { width: 100%; justify-content: center; margin-top: 4px; }

.board-side { display: flex; flex-direction: column; gap: 20px; }
.board-deco {
  overflow: hidden; padding: 0; height: 150px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.board-deco img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.msg-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.msg-item { position: relative; display: flex; gap: 14px; animation: msg-in .5s var(--ease-soft) both; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.msg-avatar {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--font-cute); font-size: 19px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 14px -6px rgba(0,0,0,.18);
}
.msg-body { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.msg-name { font-weight: 700; font-size: 14.5px; }
.msg-time { font-family: var(--font-num); font-size: 12px; color: var(--ink-soft); }
.msg-text { margin-top: 6px; font-size: 14.5px; line-height: 1.9; word-break: break-word; white-space: pre-wrap; }
.msg-del {
  position: absolute; top: 14px; right: 14px;
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.5); color: var(--ink-soft);
  font-size: 12px; line-height: 1; opacity: 0;
  transition: opacity .25s, transform .3s var(--ease-jelly);
}
.msg-item:hover .msg-del { opacity: 1; }
.msg-del:hover { transform: scale(1.15) rotate(90deg); color: var(--accent-2); }
.msg-empty { text-align: center; padding: 40px 20px; color: var(--ink-soft); font-size: 14px; line-height: 2; }

/* 留言墙云端/本地状态标识 */
.wall-status-row { margin-top: 14px; }
.wall-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; font-size: 12.5px; font-weight: 500;
  color: var(--ink-soft);
  transition: color .5s, box-shadow .5s;
}
.wall-status.is-remote {
  color: color-mix(in srgb, var(--accent-2, var(--accent)) 85%, var(--ink));
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ═══════════════ My Love & Feeling ═══════════════ */
.love-hero { display: block; }
.love-hero .photo-frame img { aspect-ratio: 21 / 9; object-fit: cover; }
.love-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.love-card { text-align: center; transition: transform .4s var(--ease-jelly); }
.love-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.love-emoji { font-size: 34px; display: block; margin-bottom: 12px; }
.love-card h3 { font-family: var(--font-cute); font-weight: 400; font-size: 18px; margin-bottom: 8px; }
.love-card p { font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }

/* 心情时间线 */
.feeling-line { position: relative; padding: 10px 0 50px 26px; }
.feeling-line::before {
  content: ''; position: absolute; left: 7px; top: 16px; bottom: 60px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: .5;
}
.feeling-item { position: relative; margin-bottom: 18px; }
.feeling-item::before {
  content: ''; position: absolute; left: -25px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.feeling-card { display: flex; gap: 16px; align-items: flex-start; }
.feeling-mood { font-size: 26px; flex-shrink: 0; margin-top: 2px; }
.feeling-date { font-family: var(--font-num); font-size: 12.5px; letter-spacing: .06em; color: var(--accent-2, var(--accent)); font-weight: 600; }
.feeling-text { margin-top: 5px; font-size: 14.5px; line-height: 1.95; }

/* ── 站长编辑模式 ── */
.owner-toggle { cursor: pointer; font-family: inherit; }
.owner-toggle:hover { transform: translateY(-1px); }
.add-btn { margin-top: 18px; font-size: 14px; }

.love-card { position: relative; }
.love-date {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-num); font-size: 11.5px; letter-spacing: .04em;
  color: var(--ink-soft); opacity: .85;
}
.card-tools {
  position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 5;
}
.card-tools button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--glass-line);
  background: rgba(255,255,255,.65); color: var(--ink);
  font-size: 13px; line-height: 1;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .3s var(--ease-jelly);
}
.card-tools button:hover { transform: scale(1.12); }
.card-tools .tool-del:hover { color: #e05555; }
.feeling-card { position: relative; }

/* ── 弹窗 ── */
.modal-mask[hidden] { display: none; }
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: view-in .35s var(--ease-soft) both;
}
.modal { width: min(430px, calc(100vw - 40px)); max-height: 86vh; overflow: auto; }
.modal h3 { margin-bottom: 18px; }
.modal .btn { margin-top: 6px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; justify-content: center; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.emoji-pick button {
  width: 38px; height: 38px; border-radius: 12px; font-size: 19px;
  border: 1px solid var(--glass-line);
  background: rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .25s var(--ease-jelly), background .25s;
}
.emoji-pick button:hover { transform: scale(1.15); background: rgba(255,255,255,.85); }
.modal-tip { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; line-height: 1.8; }

/* ═══════════════ 页脚 ═══════════════ */
.footer { margin-top: 60px; text-align: center; }
.footer-img {
  display: block; width: 100%; height: 190px; object-fit: cover; object-position: bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
  mask-image: linear-gradient(to bottom, transparent, #000 45%);
}
.footer p {
  padding: 22px 20px 34px; font-size: 13px; color: var(--ink-soft);
  font-family: var(--font-num);
}

/* ═══════════════ 底部标签栏（手机） ═══════════════ */
.tabbar {
  display: none; position: fixed; z-index: 50;
  left: 14px; right: 14px; bottom: calc(10px + env(safe-area-inset-bottom));
  border-radius: 26px;
}
.tabbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px; }
.tabbar-inner a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 4px; border-radius: 18px; font-size: 11px;
  transition: background .3s;
}
.tabbar-inner a i { font-style: normal; font-size: 18px; line-height: 1; }
.tabbar-inner a.active {
  background: rgba(255,255,255,.75);
  box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 1px 0 #fff;
  color: color-mix(in srgb, var(--accent-2, var(--accent)) 80%, var(--ink));
}

/* ═══════════════ 响应式：平板 ═══════════════ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 120px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-photo { max-width: 560px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-photo { grid-row: auto; grid-column: 1 / -1; max-width: 620px; }
  .board-grid { grid-template-columns: 1fr; }
  .board-form { position: static; }
  .love-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════ 响应式：手机 ═══════════════ */
@media (max-width: 720px) {
  .topbar { display: none; }
  .tabbar { display: block; }
  body { padding-bottom: 96px; }
  .page-head { padding-top: 64px; }
  .hero { padding-top: 56px; }
  .module-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .love-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .love-hero .photo-frame img { aspect-ratio: 16 / 10; }
  .photo-cap { left: 18px; bottom: 18px; font-size: 12px; }
  .pad { padding: 20px; }
  .pad-lg { padding: 22px; }
  .footer-img { height: 130px; }
}

@media (max-width: 400px) {
  .love-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
