/* ============================================================
   仔仔成长档案 · 奶黄奶蓝 · 低饱和治愈系
   男孩风格 · 干净温柔 · 无高饱和
   ============================================================ */

:root {
  --bg: #fffefa;
  --bg-soft: #fff8ec;
  --bg-blue: #e8f1f7;       /* 奶蓝背景 */
  --bg-yellow: #fdf3d9;     /* 奶黄背景 */

  --blue: #a8c8de;          /* 奶蓝主色 */
  --blue-deep: #7ba5c5;     /* 深一点的奶蓝 */
  --blue-dark: #5b86a8;     /* 文字用的深蓝 */
  --blue-light: #d0e0ec;

  --yellow: #f5d77b;        /* 奶黄主色 */
  --yellow-deep: #dfb958;
  --yellow-dark: #a88339;
  --yellow-light: #fbe9b3;

  --green: #9bcaaf;
  --green-soft: #d8ece0;
  --red-soft: #f0c8c8;

  --ink: #4a4540;           /* 暖灰文字 */
  --ink-soft: #8a857e;
  --ink-line: #ebe4d4;

  --shadow: 0 2px 8px rgba(122, 100, 80, 0.06);
  --shadow-hover: 0 6px 18px rgba(122, 100, 80, 0.10);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --font: "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei",
          "Helvetica Neue", "Avenir", system-ui, sans-serif;
}

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

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--bg-yellow) 0%, var(--bg-yellow) 220px, var(--bg) 220px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   顶部导航（奶蓝）
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-blue);
  padding: 14px 24px;
  box-shadow: 0 2px 12px rgba(168, 200, 222, 0.4);
  border-bottom: 2px solid var(--blue-light);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(223, 185, 88, 0.3);
  border: 2px solid var(--yellow-light);
}
.brand-logo img { width: 100%; height: 100%; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all 0.2s;
  font-weight: 500;
}
.nav-links a:hover {
  background: var(--blue-light);
  color: var(--ink);
}
.nav-links a.active {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   容器
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   卡片
   ============================================================ */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--ink-line);
  transition: all 0.2s;
}
.card:hover {
  border-color: var(--blue-light);
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-blue);
}
.card-title .deco {
  width: 32px;
  height: 32px;
  background: var(--yellow-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.card-row { display: grid; gap: 20px; }
.card-row-2 { grid-template-columns: 1fr 1fr; }
.card-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.card-row-aside { grid-template-columns: 1fr 320px; }
@media (max-width: 860px) {
  .card-row-2, .card-row-3, .card-row-aside { grid-template-columns: 1fr; }
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-blue);
  color: var(--blue-dark);
  transition: all 0.2s;
  border: none;
}
.btn:hover { background: var(--blue); color: white; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue);
  color: white;
}
.btn-primary:hover { background: var(--blue-deep); }
.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}
.btn-yellow:hover { background: var(--yellow-deep); }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink-line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); background: transparent; }
.btn-danger { background: var(--red-soft); color: #a85a5a; }
.btn-danger:hover { background: #e8b8b8; color: #8a4444; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* ============================================================
   表单
   ============================================================ */
.field { margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-weight: 600;
}
.input, .textarea, .select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--ink-line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 14px;
  transition: all 0.2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(168, 200, 222, 0.25);
}
.textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* ============================================================
   Hero（奶黄底 + 奶蓝边框头像）
   ============================================================ */
.hero {
  background: var(--bg-yellow);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(223, 185, 88, 0.18);
  border: 2px solid var(--yellow-light);
}
.hero-content {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 36px 32px;
  position: relative;
  z-index: 2;
}
.hero-avatar-wrap { position: relative; flex-shrink: 0; }
.hero-avatar {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 12px rgba(122, 100, 80, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 60px;
  border: 4px solid var(--blue);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-info { flex: 1; min-width: 220px; color: var(--ink); }
.hero-name { font-size: 34px; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.hero-nickname { font-size: 16px; color: var(--blue-dark); margin-bottom: 14px; font-weight: 500; }
.hero-nickname .tag { font-size: inherit; font-weight: inherit; padding: 0; background: transparent; color: inherit; margin-right: 6px; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stat {
  background: white;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  border: 1.5px solid var(--blue-light);
}
.hero-stat strong { font-size: 15px; font-weight: 700; color: var(--blue-dark); }

/* ============================================================
   时间轴
   ============================================================ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 14px; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--blue-light);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 20px;
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--ink-line);
}
.timeline-item:nth-child(even) {
  border-color: var(--yellow-light);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 24px;
  width: 16px; height: 16px;
  background: var(--yellow);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--blue-light);
}
.timeline-date {
  font-size: 12px;
  color: var(--blue-dark);
  background: var(--bg-blue);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-weight: 600;
}
.timeline-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.timeline-desc { color: var(--ink-soft); font-size: 14px; }
.timeline-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.timeline-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  border: 2px solid var(--ink-line);
}
.timeline-photos img:hover { transform: scale(1.04); border-color: var(--blue); }

/* ============================================================
   留言板
   ============================================================ */
.message-form { margin-bottom: 28px; }
.message-item {
  background: white;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--ink-line);
  border-left: 5px solid var(--blue);
}
.message-item:nth-child(3n+2) { border-left-color: var(--yellow); }
.message-item:nth-child(3n+3) { border-left-color: var(--green); }
.message-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.message-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.message-avatar {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: 700;
}
.message-item:nth-child(3n+2) .message-avatar { background: var(--yellow); color: var(--ink); }
.message-item:nth-child(3n+3) .message-avatar { background: var(--green); color: white; }
.message-time { font-size: 12px; color: var(--ink-soft); }
.message-content { color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.message-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-soft);
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px dashed var(--ink-line);
}

/* ============================================================
   相册
   ============================================================ */
.album-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.album-tab {
  padding: 8px 18px;
  background: white;
  border: 1.5px solid var(--ink-line);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  color: var(--ink);
}
.album-tab:hover { border-color: var(--blue); color: var(--blue-dark); }
.album-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  font-weight: 600;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.album-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  border: 3px solid var(--bg-soft);
}
.album-item:hover { transform: scale(1.02); border-color: var(--yellow-light); }
.album-item img { width: 100%; height: 100%; object-fit: cover; }
.album-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(74, 69, 64, 0.7), transparent);
  color: white;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
}
.album-uploader {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
}

/* 上传卡片 */
.upload-card {
  background: var(--bg-soft);
  border: 2px dashed var(--blue-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.upload-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   寄语 / 侧边栏（双语）
   ============================================================ */
.quote-box {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--blue-light);
  border-left: 5px solid var(--yellow);
}
.quote-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.quote-text-en {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ink-line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--blue-dark);
  font-style: italic;
  font-weight: 400;
}
.quote-refresh {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-blue);
  color: var(--blue-dark);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-refresh:hover { background: var(--blue); color: white; }

.anniv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1.5px dashed var(--ink-line);
}
.anniv-item:last-child { border-bottom: none; }
.anniv-icon {
  width: 44px; height: 44px;
  background: var(--yellow-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1.5px solid var(--yellow);
}
.anniv-info { flex: 1; min-width: 0; }
.anniv-title { font-weight: 600; font-size: 14px; }
.anniv-date { font-size: 12px; color: var(--ink-soft); }
.anniv-count {
  background: var(--blue);
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.anniv-count.today { background: var(--yellow); color: var(--ink); }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(74, 69, 64, 0.88);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: var(--blue);
  color: white;
  width: 44px; height: 44px;
  border-radius: 8px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--blue-deep);
}

/* ============================================================
   弹窗 / Modal
   ============================================================ */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(74, 69, 64, 0.4);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-bg.show { display: flex; }
.modal {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 50px rgba(74, 69, 64, 0.25);
  border: 2px solid var(--blue-light);
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--blue-dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-blue);
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-soft);
}
.modal-close:hover { background: var(--bg-soft); }
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--blue);
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(74, 69, 64, 0.2);
  opacity: 0;
  transition: all 0.3s;
  z-index: 2000;
  pointer-events: none;
  font-size: 14px;
  font-weight: 600;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { background: var(--green); }
.toast.error { background: #d49393; }

/* ============================================================
   浮动小马
   ============================================================ */
.float-animals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.float-animal {
  position: absolute;
  opacity: 0.06;
  width: 80px;
  height: 80px;
}
.float-animal:nth-child(1) { top: 5%; left: 2%; }
.float-animal:nth-child(2) { top: 8%; right: 3%; }
.float-animal:nth-child(3) { bottom: 5%; left: 3%; width: 70px; }
.float-animal:nth-child(4) { bottom: 12%; right: 4%; width: 70px; }
.float-animal:nth-child(5) { top: 40%; right: 1%; width: 60px; }
.float-animal:nth-child(6) { top: 55%; left: 1%; width: 60px; }

/* ============================================================
   Tag / Chip
   ============================================================ */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-blue);
  border-radius: 6px;
  font-size: 12px;
  color: var(--blue-dark);
  margin-right: 4px;
  font-weight: 500;
}
.tag.yellow { background: var(--bg-yellow); color: var(--yellow-dark); }
.tag.green { background: var(--green-soft); color: #5a8068; }
.tag.gray { background: var(--bg-soft); color: var(--ink-soft); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  text-align: center;
  padding: 40px 20px 24px;
  color: var(--ink-soft);
  font-size: 12px;
}
.footer-love {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 4px;
  font-size: 13px;
}

/* ============================================================
   Profile page
   ============================================================ */
.profile-header {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-yellow);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--yellow-light);
  box-shadow: 0 6px 18px rgba(223, 185, 88, 0.15);
}
.profile-photo {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: white;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  box-shadow: 0 4px 12px rgba(122, 100, 80, 0.10);
  border: 4px solid var(--blue);
  overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 30px; font-weight: 800; color: var(--ink); }
.profile-nickname { color: var(--ink-soft); margin-top: 6px; font-weight: 500; font-size: 16px; }
.profile-birth {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink);
}
.profile-birth .profile-birth-date {
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 17px;
  margin: 0 2px;
}
.profile-zodiac {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Hero · 出生行蓝字 + 生肖/星座胶囊
   ============================================================ */
.hero-birth {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 500;
}
.hero-birth .hero-birth-date {
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 17px;
  margin: 0 2px;
}
.hero-zodiac {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}
.hero-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.hero-pill-label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
}
.hero-pill-value {
  font-weight: 600;
}

/* ============================================================
   Growth · WHO 提示
   ============================================================ */
.who-tip {
  background: var(--bg-soft);
  border: 1.5px dashed var(--blue-light);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.85;
}
.who-tip strong { color: var(--blue-dark); font-weight: 600; }

/* ============================================================
   Time capsule (in mailbox)
   ============================================================ */
.capsule-item {
  background: white;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--ink-line);
  border-left: 5px solid var(--yellow);
}
.capsule-item.capsule-locked {
  border-left-color: var(--ink-line);
  opacity: 0.92;
}
.capsule-item.capsule-sealed {
  border-left-color: var(--blue);
}
.capsule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.capsule-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}
.capsule-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.capsule-avatar.capsule-avatar-locked {
  background: var(--bg-soft);
  color: var(--ink-soft);
}
.capsule-avatar.capsule-avatar-open {
  background: var(--yellow);
  color: var(--ink);
}
.capsule-date {
  font-size: 12px;
  color: var(--ink-soft);
}
.capsule-lock-tip {
  background: var(--bg-soft);
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
  border: 1.5px dashed var(--ink-line);
}
.capsule-lock-tip strong {
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 15px;
  margin: 0 2px;
}
.capsule-content-locked {
  background: linear-gradient(135deg, var(--bg-blue), var(--bg-yellow));
  padding: 24px 18px;
  border-radius: 12px;
  text-align: center;
  border: 1.5px dashed var(--blue);
}
.capsule-lock-icon {
  font-size: 32px;
  margin-bottom: 6px;
}
.capsule-lock-hint {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.7;
}
.capsule-content-open {
  margin-top: 6px;
  animation: capsuleFade 0.4s ease-out;
}
.capsule-content-text {
  background: var(--bg-yellow);
  padding: 18px 20px;
  border-radius: 10px;
  color: var(--ink);
  white-space: pre-wrap;
  line-height: 1.85;
  font-size: 15px;
  border-left: 4px solid var(--yellow-deep);
}
@keyframes capsuleFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.info-cell {
  background: white;
  border: 1.5px solid var(--ink-line);
  padding: 14px 16px;
  border-radius: 10px;
  transition: border-color 0.2s;
}
.info-cell:hover { border-color: var(--blue); }
.info-label { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; font-weight: 600; }
.info-value { font-size: 16px; font-weight: 700; color: var(--ink); }

.relative-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 10px 16px;
  border-radius: 8px;
  margin: 4px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--ink-line);
}
.relative-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: 700;
}

/* ============================================================
   Growth chart
   ============================================================ */
.chart-wrap {
  position: relative;
  height: 320px;
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--ink-line);
}

/* ============================================================
   Empty state
   ============================================================ */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.empty-emoji { font-size: 48px; margin-bottom: 12px; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.pagination button {
  padding: 6px 12px;
  border-radius: 6px;
  background: white;
  border: 1.5px solid var(--ink-line);
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}
.pagination button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue-dark); }
.pagination button.active { background: var(--blue); color: white; border-color: var(--blue); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   Manage page tabs
   ============================================================ */
.tab-btn.active {
  background: var(--blue) !important;
  color: white !important;
  border-color: var(--blue) !important;
}
.tab-btn .badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  margin-left: 4px;
  font-weight: 700;
}

/* 待审核照片标记 */
.album-item.pending { border-color: var(--yellow); border-style: dashed; }
.album-item .pending-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================
   Misc
   ============================================================ */
.text-center { text-align: center; }
.text-soft { color: var(--ink-soft); }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }