/* 家庭成长乐园 · 美育视觉样稿
   首页 / 家长首页 / 儿童首页 */

:root {
  --paper: #f4efe6;
  --paper-deep: #e7ded0;
  --ink: #2f332e;
  --ink-soft: #62675f;
  --sage: #75836f;
  --sage-deep: #52604f;
  --sage-pale: #dfe6da;
  --clay: #c77f62;
  --apricot: #e7b17e;
  --butter: #e9d38e;
  --line: rgba(47, 51, 46, 0.14);
  --white-wash: rgba(255, 253, 248, 0.84);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* ---------- 首页 ---------- */

.landing-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 74% 18%, rgba(225, 196, 153, 0.22), transparent 31%),
    linear-gradient(122deg, #f6f1e8 0%, #f3ede3 58%, #e8e7dc 100%);
  color: var(--ink);
  font-family: var(--sans);
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.23;
  background-image:
    repeating-radial-gradient(circle at 0 0, transparent 0, rgba(73, 67, 56, 0.12) 0.55px, transparent 0.8px, transparent 4px);
  background-size: 7px 7px;
  mix-blend-mode: multiply;
}

.landing-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 96px));
  margin: 0 auto;
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--line);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(82, 96, 79, 0.32);
  border-radius: 50%;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  width: 1px;
  height: 15px;
  background: var(--sage-deep);
  transform: rotate(-5deg);
  transform-origin: bottom;
}

.brand-mark i {
  position: absolute;
  width: 8px;
  height: 13px;
  background: var(--sage);
  border-radius: 100% 0 100% 0;
}

.brand-mark i:first-child { left: 7px; top: 7px; transform: rotate(-25deg); }
.brand-mark i:last-child { right: 6px; top: 4px; transform: rotate(74deg); }

.landing-year {
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.landing-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(500px, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 58px;
  width: min(1320px, calc(100% - 96px));
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  padding: 54px 0 70px;
}

.landing-copy {
  padding: 18px 0 0 2vw;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--sage-deep);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.eyebrow span {
  display: block;
  width: 38px;
  height: 1px;
  background: var(--sage);
}

.landing-copy h1 {
  margin: 0;
  color: #30342f;
  font-family: var(--serif);
  font-size: clamp(42px, 4.25vw, 72px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.045em;
}

.landing-copy h1 em {
  color: var(--clay);
  font-style: normal;
}

.landing-lead {
  margin: 24px 0 32px;
  color: #68695f;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.entry-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 600px;
}

.entry-card {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr 28px;
  gap: 10px;
  align-items: start;
  min-height: 145px;
  padding: 21px 18px;
  overflow: hidden;
  border: 1px solid rgba(63, 70, 61, 0.15);
  border-radius: 2px 24px 2px 2px;
  background: rgba(255, 253, 248, 0.62);
  color: var(--ink);
  transition: transform 280ms ease, box-shadow 280ms ease, background 280ms ease;
}

.entry-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--sage);
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 300ms ease;
}

.entry-card:hover,
.entry-card:focus-visible {
  transform: translateY(-5px);
  background: rgba(255, 254, 251, 0.94);
  box-shadow: 0 18px 40px rgba(67, 65, 55, 0.12);
}

.entry-card:hover::after,
.entry-card:focus-visible::after { transform: scaleX(1); }
.child-entry::after { background: var(--clay); }

.entry-index {
  color: #8d8e84;
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.entry-label {
  margin-bottom: 15px;
  color: #8b8b81;
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.entry-card h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.entry-card p {
  margin: 0;
  color: #77796f;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.entry-arrow {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(54, 62, 52, 0.28);
  border-radius: 50%;
  color: var(--sage-deep);
  font-size: 15px;
  transition: transform 260ms ease, color 260ms ease;
}

.entry-card:hover .entry-arrow { transform: rotate(45deg); }

.landing-note {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 26px;
  color: #8b8b81;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.landing-note span { color: var(--clay); }

.landing-visual {
  position: relative;
  min-height: 620px;
}

.visual-frame {
  position: absolute;
  inset: 4% 0 5% 5%;
  overflow: hidden;
  border-radius: 180px 180px 10px 10px;
  background: #dfe4d8;
  box-shadow: 0 28px 70px rgba(70, 72, 60, 0.16);
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 253, 247, 0.54);
  border-radius: 168px 168px 5px 5px;
  pointer-events: none;
}

.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.87) contrast(0.96);
  transform: scale(1.01);
  animation: landingBreath 12s ease-in-out infinite alternate;
}

.visual-caption {
  position: absolute;
  right: 27px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  background: rgba(246, 241, 232, 0.76);
  backdrop-filter: blur(8px);
  color: #596154;
  font-family: Georgia, serif;
}

.visual-caption span { font-size: 8px; letter-spacing: 0.2em; }
.visual-caption strong { font-size: 10px; letter-spacing: 0.1em; }

.floating-leaf {
  position: absolute;
  z-index: 2;
  width: 24px;
  height: 40px;
  border-radius: 100% 0 100% 0;
  background: rgba(111, 132, 100, 0.82);
  box-shadow: inset 4px 2px 8px rgba(255, 255, 255, 0.25);
}

.leaf-one { left: 1%; top: 14%; transform: rotate(-42deg); animation: leafFloat 5s ease-in-out infinite; }
.leaf-two { right: -2%; bottom: 12%; width: 18px; height: 30px; transform: rotate(32deg); animation: leafFloat 6s 1.2s ease-in-out infinite; }

@keyframes landingBreath {
  from { transform: scale(1.01); }
  to { transform: scale(1.045); }
}

@keyframes leafFloat {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -13px; rotate: 7deg; }
}

/* ---------- 共用：家长、儿童样稿 ---------- */

.parent-page,
.child-page {
  --font: var(--sans);
}

.parent-page .nav-icon,
.parent-page .stat-card-icon,
.parent-page .section-card h3:first-letter {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ---------- 家长首页 ---------- */

.parent-page {
  background:
    linear-gradient(rgba(47, 51, 46, 0.023) 1px, transparent 1px),
    #f3f0e8;
  background-size: 100% 38px;
  color: var(--ink);
}

.parent-page .sidebar {
  width: 242px;
  padding: 26px 16px 18px;
  border-right: 1px solid rgba(50, 55, 48, 0.12);
  background: rgba(246, 243, 235, 0.96);
  box-shadow: none;
}

.parent-page .sidebar-logo {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 10px;
  padding: 0 11px 24px;
  border-bottom: 1px solid rgba(50, 55, 48, 0.12);
}

.parent-page .sidebar-logo .icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(82, 96, 79, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  font-size: 20px;
}

.parent-page .sidebar-logo h2 {
  margin: 1px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.05em;
}

.parent-page .sidebar-logo .sub {
  align-self: end;
  color: #8a8b81;
  font-size: 9px;
  letter-spacing: 0.19em;
}

.parent-page .nav-list {
  padding: 17px 2px 8px;
}

.parent-page .nav-item {
  gap: 11px;
  margin-bottom: 2px;
  padding: 10px 13px;
  border-radius: 11px;
  color: #73766d;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.parent-page .nav-item:hover {
  background: rgba(117, 131, 111, 0.08);
  color: var(--ink);
}

.parent-page .nav-item.active {
  position: relative;
  background: #dde3d8;
  color: var(--sage-deep);
  font-weight: 700;
}

.parent-page .nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 17px;
  border-radius: 3px;
  background: var(--sage-deep);
}

.parent-page .nav-divider {
  background: rgba(50, 55, 48, 0.1);
}

.parent-page .sidebar-footer {
  padding: 14px 6px 5px;
  border-top: 1px solid rgba(50, 55, 48, 0.1);
  background: transparent;
}

.parent-page .sidebar-footer .btn {
  margin-bottom: 4px !important;
  border-color: rgba(82, 96, 79, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.36);
  color: #6e746b;
  font-size: 10.5px;
}

.parent-page .sidebar-footer .btn:hover {
  background: #fffdf8;
  color: var(--sage-deep);
  opacity: 1;
}

.parent-page .main {
  margin-left: 242px;
  padding: 25px clamp(24px, 3.2vw, 54px) 50px;
}

.parent-page .topbar {
  max-width: 1240px;
  margin: 0 auto 21px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(48, 52, 47, 0.12);
}

.parent-page .topbar-greeting h1 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.parent-page .topbar-greeting .date {
  color: #888a80;
  font-family: Georgia, var(--serif);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.parent-page .topbar-btn,
.parent-page .avatar {
  border: 1px solid rgba(54, 61, 53, 0.14);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: none;
}

.parent-page .avatar {
  color: #fff;
  background: var(--clay);
}

.parent-page #view-dashboard {
  max-width: 1240px;
  margin: 0 auto;
}

.parent-page #view-dashboard .hero-card {
  position: relative;
  display: block;
  min-height: 310px;
  padding: 34px 42% 31px 36px;
  overflow: hidden;
  border: 1px solid rgba(62, 70, 61, 0.12);
  border-radius: 3px 46px 3px 3px;
  background: #e1e5da;
  color: var(--ink);
  box-shadow: 0 22px 54px rgba(67, 66, 56, 0.11);
}

.parent-page #view-dashboard .hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 0 48%;
  background:
    linear-gradient(90deg, #e1e5da 0%, rgba(225, 229, 218, 0.14) 38%),
    url("../assets/parent-archive.png") center/cover no-repeat;
  filter: saturate(0.86);
}

.parent-page #view-dashboard .hero-card::after {
  content: "GROWTH ARCHIVE  ·  2026";
  position: absolute;
  left: 36px;
  top: 28px;
  color: #798073;
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.parent-page #view-dashboard .hero-info,
.parent-page #view-dashboard .hero-stats {
  position: relative;
  z-index: 1;
}

.parent-page #view-dashboard .hero-info {
  margin-top: 28px;
}

.parent-page #view-dashboard .hero-info h2 {
  margin: 0 0 7px;
  color: #32372f;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 35px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.parent-page #view-dashboard .hero-info .meta {
  color: #6f756b;
  font-size: 12px;
  letter-spacing: 0.09em;
  opacity: 1;
}

.parent-page #view-dashboard .hero-kicker {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin-top: 17px;
  color: #656b61;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.8;
}

.parent-page #view-dashboard .hero-stats {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: max-content;
  margin-top: 18px;
  gap: 7px;
}

.parent-page #view-dashboard .hero-stat {
  min-width: 92px;
  padding: 9px 14px;
  border-left: 1px solid rgba(69, 77, 66, 0.18);
  text-align: left;
}

.parent-page #view-dashboard .hero-stat .val {
  color: var(--sage-deep);
  font-family: Georgia, var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.parent-page #view-dashboard .hero-stat .lbl {
  color: #7b8077;
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 1;
}

.parent-page #view-dashboard .dialogue-banner {
  border: 0;
  border-left: 3px solid var(--clay);
  border-radius: 0;
  background: #eee5d8;
}

.parent-page #view-dashboard .stats-row {
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 20px 0;
  padding: 1px;
  border: 1px solid rgba(54, 61, 53, 0.13);
  background: rgba(54, 61, 53, 0.13);
}

.parent-page #view-dashboard .stat-card {
  min-height: 90px;
  padding: 17px 18px;
  border-radius: 0;
  background: rgba(250, 248, 242, 0.94);
  box-shadow: none;
}

.parent-page #view-dashboard .stat-card-icon {
  width: 39px;
  height: 39px;
  border: 1px solid rgba(82, 96, 79, 0.15);
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
}

.parent-page #view-dashboard .stat-card-info .num {
  color: #41473f;
  font-family: Georgia, var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.parent-page #view-dashboard .stat-card-info .lbl {
  color: #85877e;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.parent-page #view-dashboard .content-grid {
  grid-template-columns: 1.14fr 0.86fr;
  gap: 16px;
  margin-bottom: 16px;
}

.parent-page #view-dashboard .content-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.parent-page #view-dashboard .section-card {
  min-height: 195px;
  padding: 21px;
  border: 1px solid rgba(54, 61, 53, 0.12);
  border-radius: 2px 20px 2px 2px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: none;
}

.parent-page #view-dashboard .section-card h3 {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(54, 61, 53, 0.1);
  color: #4f554d;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.parent-page #view-dashboard .progress-bar {
  height: 6px;
  background: #e7e5dc;
}

.parent-page #view-dashboard .progress-fill {
  background: var(--sage);
}

.parent-page #view-dashboard .timeline::before {
  background: #cfd5c9;
}

.parent-page #view-dashboard .timeline-item::before {
  width: 7px;
  height: 7px;
  background: var(--clay);
  box-shadow: 0 0 0 2px #eadbd0;
}

.parent-page #view-dashboard .btn-primary {
  background: var(--sage-deep);
}

.parent-page #view-dashboard .btn-outline {
  border-color: var(--sage);
  color: var(--sage-deep);
}

.parent-page #view-dashboard textarea {
  border-color: rgba(82, 96, 79, 0.2);
  background: rgba(255, 255, 255, 0.55);
}

/* ---------- 儿童首页 ---------- */

.child-page {
  background:
    radial-gradient(circle at 14% 4%, rgba(238, 207, 157, 0.35), transparent 26%),
    radial-gradient(circle at 85% 10%, rgba(159, 180, 150, 0.28), transparent 24%),
    #f5eee2;
  color: #4d4f47;
}

.child-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image: repeating-radial-gradient(circle at 0 0, rgba(92, 79, 61, 0.2) 0 0.5px, transparent 0.8px 5px);
  background-size: 8px 8px;
}

.child-page .topnav {
  padding: 12px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(76, 84, 71, 0.12);
  background: rgba(249, 246, 238, 0.82);
  backdrop-filter: blur(18px);
}

.child-page .topnav-avatar {
  position: relative;
  width: 43px;
  height: 43px;
  overflow: hidden;
  border: 1px solid rgba(85, 102, 78, 0.22);
  background: #dfe6d9;
  color: transparent;
}

.child-page .topnav-avatar::before {
  content: "✦";
  position: absolute;
  display: grid;
  place-items: center;
  inset: 0;
  color: var(--sage-deep);
  font-family: Georgia, serif;
  font-size: 18px;
}

.child-page .topnav-info .name {
  color: #43483f;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.child-page .topnav-info .sub {
  color: #81847b;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.child-page .topnav-btn {
  border: 1px solid rgba(91, 102, 84, 0.13);
  background: rgba(255, 253, 248, 0.74);
  filter: grayscale(0.25);
}

.child-page .container {
  max-width: 1050px;
  padding: 26px 24px 115px;
}

.child-page #pview-home .welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 8px 4px 17px;
  text-align: left;
}

.child-page #pview-home .welcome .greeting {
  color: #3f463c;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 33px);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.child-page #pview-home .welcome .motto {
  padding-bottom: 4px;
  color: #808279;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.child-page #pview-home .child-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 17px;
  align-items: start;
}

.child-page #pview-home .tree-section {
  position: relative;
  min-height: 505px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(69, 78, 65, 0.14);
  border-radius: 120px 120px 25px 25px;
  background: #dce6d6;
  box-shadow: 0 22px 50px rgba(78, 72, 61, 0.13);
}

.child-page #pview-home .tree-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.87) contrast(0.96);
  animation: treeBreath 10s ease-in-out infinite alternate;
}

.child-page #pview-home .tree-section::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 251, 241, 0.56);
  border-radius: 108px 108px 17px 17px;
  pointer-events: none;
}

.child-page #pview-home .tree-heading {
  position: absolute;
  z-index: 3;
  left: 26px;
  top: 28px;
  padding: 10px 14px;
  background: rgba(249, 244, 233, 0.76);
  backdrop-filter: blur(9px);
}

.child-page #pview-home .tree-title {
  margin: 0 0 2px;
  color: #4b5748;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.06em;
}

.child-page #pview-home .tree-whisper {
  color: #798074;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.child-page #pview-home .tree-visual {
  position: absolute;
  z-index: 2;
  inset: 0;
  min-height: 0;
  margin: 0;
  pointer-events: none;
}

.child-page #pview-home .growth-leaf {
  position: absolute;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(255, 250, 236, 0.72);
  border-radius: 50%;
  background: rgba(84, 108, 76, 0.82);
  box-shadow: 0 7px 15px rgba(56, 71, 50, 0.2);
  color: #fffdf6;
  font-family: var(--serif);
  font-size: 9px;
  animation: leafPulse 3.8s ease-in-out infinite;
}

.child-page #pview-home .growth-leaf.empty {
  background: rgba(242, 235, 220, 0.72);
  color: rgba(77, 86, 72, 0.58);
}

.child-page #pview-home .growth-leaf:nth-child(1) { left: 32%; top: 62%; }
.child-page #pview-home .growth-leaf:nth-child(2) { left: 47%; top: 53%; animation-delay: .35s; }
.child-page #pview-home .growth-leaf:nth-child(3) { left: 26%; top: 43%; animation-delay: .7s; }
.child-page #pview-home .growth-leaf:nth-child(4) { left: 59%; top: 39%; animation-delay: 1.05s; }
.child-page #pview-home .growth-leaf:nth-child(5) { left: 38%; top: 30%; animation-delay: 1.4s; }
.child-page #pview-home .growth-leaf:nth-child(6) { left: 68%; top: 25%; animation-delay: 1.75s; }
.child-page #pview-home .growth-leaf:nth-child(7) { left: 50%; top: 18%; animation-delay: 2.1s; }
.child-page #pview-home .growth-leaf:nth-child(8) { left: 71%; top: 12%; animation-delay: 2.45s; }

.child-page #pview-home .tree-stats {
  position: absolute;
  z-index: 3;
  left: 17px;
  right: 17px;
  bottom: 17px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 247, 0.52);
  border-radius: 15px;
  background: rgba(255, 253, 247, 0.3);
  backdrop-filter: blur(13px);
}

.child-page #pview-home .tree-stat {
  padding: 11px 5px;
  background: rgba(249, 245, 235, 0.64);
}

.child-page #pview-home .tree-stat .val {
  color: #55624f;
  font-family: Georgia, var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.child-page #pview-home .tree-stat .lbl {
  color: #747a70;
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.child-page #pview-home .child-side-stack {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.child-page #pview-home .daily-checkin-panel,
.child-page #pview-home .section,
.child-page #pview-home .savings-card,
.child-page #pview-home .preview-card {
  margin: 0;
  border: 1px solid rgba(69, 78, 65, 0.12);
  border-radius: 3px 21px 3px 3px;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: none;
}

.child-page #pview-home .daily-checkin-panel {
  padding: 18px;
}

.child-page #pview-home .dc-title,
.child-page #pview-home .section-title {
  color: #4f584c;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.055em;
}

.child-page #pview-home .dc-cap-bar {
  background: #e5e2d8;
}

.child-page #pview-home .dc-cap-fill {
  background: var(--sage);
}

.child-page #pview-home .dc-cap-text {
  color: var(--sage-deep);
}

.child-page #pview-home .dc-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.child-page #pview-home .dc-item {
  padding: 9px 4px;
  border: 1px solid rgba(85, 99, 79, 0.09);
  border-radius: 14px 14px 5px 14px;
  background: #eef0e8;
}

.child-page #pview-home .dc-item:nth-child(2n) { background: #f2e9dc; }
.child-page #pview-home .dc-item:nth-child(3n) { background: #ece4e6; }
.child-page #pview-home .dc-item:hover { border-color: var(--sage); }
.child-page #pview-home .dc-item .dc-icon { font-size: 21px; filter: saturate(0.72); }
.child-page #pview-home .dc-item .dc-name { font-size: 9.5px; }

.child-page #pview-home .task-preview {
  padding: 18px;
}

.child-page #pview-home .task-item {
  padding: 10px 11px;
  border: 1px solid rgba(78, 87, 73, 0.08);
  border-radius: 14px 14px 5px 14px;
  background: #f0eee5 !important;
}

.child-page #pview-home .task-item:nth-child(2n) { background: #e9eee6 !important; }
.child-page #pview-home .task-check {
  width: 32px;
  height: 32px;
  border: 2px solid #aeb9a8;
  font-size: 15px;
}

.child-page #pview-home .task-info .t-title { font-size: 12px; }
.child-page #pview-home .task-info .t-desc { font-size: 9.5px; }
.child-page #pview-home .task-reward { color: var(--clay); font-size: 10.5px; }
.child-page #pview-home .task-difficulty { font-size: 10px; filter: grayscale(0.35); }

.child-page #pview-home .home-lower-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-top: 17px;
}

.child-page #pview-home .savings-card {
  overflow: hidden;
}

.child-page #pview-home .savings-card-header {
  padding: 14px 16px;
  background: #e9eee5;
}

.child-page #pview-home .savings-card-header .sc-icon {
  filter: grayscale(0.3);
}

.child-page #pview-home .savings-card-header .sc-title {
  font-family: var(--serif);
  font-size: 14px;
}

.child-page #pview-home .savings-card-header .sc-balance {
  color: var(--clay);
  font-size: 14px;
}

.child-page #pview-home .savings-stats-grid {
  background: rgba(74, 83, 70, 0.1);
}

.child-page #pview-home .savings-stat-item {
  padding: 10px;
  background: #faf7f0;
}

.child-page #pview-home .savings-stat-item .ss-label { font-size: 9px; }
.child-page #pview-home .savings-stat-item .ss-value { color: #566052; font-size: 17px; }
.child-page #pview-home .savings-footer-row { padding: 10px 12px; }

.child-page #pview-home .savings-btn {
  padding: 9px;
  border-radius: 11px;
  box-shadow: none;
  font-size: 11px;
}

.child-page #pview-home .savings-btn-deposit { background: var(--sage); }
.child-page #pview-home .savings-btn-withdraw { background: var(--clay); }

.child-page #pview-home .small-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.child-page #pview-home .preview-card {
  min-width: 0;
  padding: 15px;
}

.child-page #pview-home .preview-card .section-header {
  margin-bottom: 12px;
}

.child-page #pview-home .preview-link {
  color: var(--clay);
  font-size: 9px;
  cursor: pointer;
}

.child-page #pview-home .badges-row,
.child-page #pview-home .moments-row {
  gap: 8px;
}

.child-page #pview-home .badge-chip {
  min-width: 62px;
}

.child-page #pview-home .badge-chip .bc-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(85, 98, 79, 0.14);
  background: #eef0e7 !important;
  font-size: 19px;
  filter: grayscale(0.2);
}

.child-page #pview-home .badge-chip .bc-name { font-size: 9px; }

.child-page #pview-home .moment-card { min-width: 82px; border-radius: 11px; }
.child-page #pview-home .moment-card .mc-img { width: 82px; height: 82px; }
.child-page #pview-home .moment-card .mc-cap { padding: 6px; font-size: 8.5px; }

.child-page .bottomnav {
  left: 50%;
  right: auto;
  bottom: 18px;
  width: min(720px, calc(100% - 28px));
  padding: 8px 11px;
  border: 1px solid rgba(69, 78, 65, 0.13);
  border-radius: 21px;
  background: rgba(250, 247, 239, 0.9);
  box-shadow: 0 13px 38px rgba(65, 63, 54, 0.13);
  backdrop-filter: blur(17px);
  transform: translateX(-50%);
}

.child-page .bottomnav-item {
  border-radius: 14px;
  color: #81857b;
}

.child-page .bottomnav-item.active {
  background: #e2e8dd;
  color: var(--sage-deep);
}

.child-page .bottomnav-item .bn-icon {
  filter: grayscale(0.25) saturate(0.75);
}

@keyframes treeBreath {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

@keyframes leafPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1080px) {
  .landing-main {
    grid-template-columns: 1fr 0.92fr;
    width: min(100% - 48px, 1080px);
    gap: 28px;
  }

  .landing-header { width: calc(100% - 48px); }
  .landing-copy { padding-left: 0; }
  .landing-visual { min-height: 520px; }

  .parent-page #view-dashboard .hero-card { padding-right: 38%; }
  .parent-page #view-dashboard .content-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 840px) {
  .landing-header { width: calc(100% - 36px); }

  .landing-main {
    grid-template-columns: 1fr;
    width: calc(100% - 36px);
    min-height: auto;
    padding-top: 34px;
  }

  .landing-copy h1 { font-size: clamp(39px, 10vw, 60px); }
  .landing-visual { min-height: 510px; grid-row: 1; }
  .visual-frame { inset: 0 0 0 0; }

  .parent-page #view-dashboard .hero-card {
    padding: 31px 31px 132px;
  }

  .parent-page #view-dashboard .hero-card::before {
    inset: 50% 0 0 0;
    background:
      linear-gradient(180deg, #e1e5da 0%, rgba(225, 229, 218, 0.12) 30%),
      url("../assets/parent-archive.png") center 60%/cover no-repeat;
  }

  .child-page #pview-home .child-home-grid,
  .child-page #pview-home .home-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .landing-header {
    padding: 20px 0 15px;
  }

  .landing-year { display: none; }
  .landing-main { gap: 28px; padding-bottom: 40px; }
  .landing-visual { min-height: 390px; }
  .visual-frame { border-radius: 95px 95px 7px 7px; }
  .visual-frame::after { border-radius: 84px 84px 4px 4px; }
  .entry-cards { grid-template-columns: 1fr; }
  .entry-card { min-height: 126px; }

  .parent-page .main { padding: 18px 14px 40px; }
  .parent-page #view-dashboard .stats-row { grid-template-columns: 1fr 1fr; }
  .parent-page #view-dashboard .content-grid,
  .parent-page #view-dashboard .content-grid-3 { grid-template-columns: 1fr; }
  .parent-page #view-dashboard .hero-card { min-height: 420px; padding: 28px 24px 140px; }
  .parent-page #view-dashboard .hero-card::after { left: 24px; }
  .parent-page #view-dashboard .hero-stats { left: 18px; right: 18px; }
  .parent-page #view-dashboard .hero-stat { min-width: 0; padding: 8px; }

  .child-page .container { padding: 17px 12px 105px; }

  .child-page #pview-home .welcome {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .child-page #pview-home .tree-section {
    min-height: 470px;
    border-radius: 80px 80px 20px 20px;
  }

  .child-page #pview-home .tree-section::after {
    border-radius: 70px 70px 13px 13px;
  }

  .child-page #pview-home .dc-grid { grid-template-columns: repeat(4, 1fr); }
  .child-page #pview-home .small-previews { grid-template-columns: 1fr; }
  .child-page .bottomnav-item { padding: 5px 4px; }
  .child-page .bottomnav-item .bn-icon { font-size: 17px; }
}

@media (max-width: 390px) {
  .child-page #pview-home .dc-grid { grid-template-columns: repeat(3, 1fr); }
  .child-page #pview-home .tree-stat .val { font-size: 15px; }
  .child-page #pview-home .tree-stat .lbl { font-size: 7.5px; }
}

/* ---------- 家长端 · 工具抽屉 ---------- */

.parent-page .sidebar-footer {
  padding: 12px 4px 2px;
}

.parent-page .sidebar-tools-toggle {
  display: grid;
  grid-template-columns: 24px 1fr 18px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(72, 82, 69, 0.16);
  border-radius: 2px 14px 2px 2px;
  background: rgba(255, 253, 248, 0.68);
  color: #596156;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.parent-page .sidebar-tools-toggle:hover {
  border-color: rgba(82, 96, 79, 0.35);
  background: #fffdf8;
  transform: translateY(-1px);
}

.parent-page .sidebar-tools-mark {
  color: var(--clay);
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.parent-page .sidebar-tools-arrow {
  color: #92958b;
  font-family: Georgia, serif;
  text-align: right;
}

.parent-page .sidebar-destinations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 6px;
}

.parent-page .sidebar-destinations a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  border-radius: 8px;
  color: #85887f;
  font-size: 9.5px;
  text-align: center;
  transition: background 180ms ease, color 180ms ease;
}

.parent-page .sidebar-destinations a:first-child {
  background: rgba(199, 127, 98, 0.09);
  color: #92644f;
}

.parent-page .sidebar-destinations a:hover {
  background: rgba(117, 131, 111, 0.1);
  color: var(--sage-deep);
  opacity: 1;
}

.parent-page .sidebar-destinations a span {
  font-family: var(--serif);
  font-size: 11px;
}

.parent-page .sidebar-tools-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  visibility: hidden;
  background: rgba(42, 45, 40, 0.26);
  opacity: 0;
  backdrop-filter: blur(2px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.parent-page .sidebar-tools-backdrop.open {
  visibility: visible;
  opacity: 1;
}

.parent-page .sidebar-tools-drawer {
  position: fixed;
  z-index: 250;
  top: 18px;
  bottom: 18px;
  left: 258px;
  display: flex;
  flex-direction: column;
  width: min(410px, calc(100vw - 282px));
  padding: 28px;
  overflow-y: auto;
  border: 1px solid rgba(55, 62, 53, 0.16);
  border-radius: 3px 32px 3px 3px;
  background:
    linear-gradient(rgba(47, 51, 46, 0.025) 1px, transparent 1px),
    #f8f4eb;
  background-size: 100% 33px;
  box-shadow: 0 25px 70px rgba(48, 48, 41, 0.18);
  opacity: 0;
  transform: translateX(-24px);
  visibility: hidden;
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
}

.parent-page .sidebar-tools-drawer.open {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.parent-page .tools-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 21px;
  border-bottom: 1px solid rgba(54, 61, 53, 0.13);
}

.parent-page .tools-drawer-kicker {
  margin-bottom: 8px;
  color: var(--sage);
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.parent-page .tools-drawer-header h2 {
  margin: 0;
  color: #363b34;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.parent-page .tools-drawer-header p {
  margin: 7px 0 0;
  color: #85877e;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.parent-page .tools-drawer-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(65, 72, 62, 0.16);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.58);
  color: #73776e;
  font-family: Georgia, serif;
  font-size: 21px;
  cursor: pointer;
}

.parent-page .tools-drawer-grid {
  display: grid;
  gap: 1px;
  margin: 21px 0;
  border: 1px solid rgba(59, 66, 57, 0.13);
  background: rgba(59, 66, 57, 0.13);
}

.parent-page .tool-action {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2px 12px;
  min-height: 68px;
  padding: 13px 38px 13px 14px;
  border: 0;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease;
}

.parent-page .tool-action::after {
  content: "→";
  position: absolute;
  right: 15px;
  top: 24px;
  color: #aaa99f;
  font-family: Georgia, serif;
  transition: transform 180ms ease, color 180ms ease;
}

.parent-page .tool-action:hover {
  background: #edf0e8;
}

.parent-page .tool-action:hover::after {
  color: var(--sage-deep);
  transform: translateX(3px);
}

.parent-page .tool-action-index {
  grid-row: span 2;
  padding-top: 2px;
  color: var(--clay);
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.parent-page .tool-action strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.parent-page .tool-action small {
  color: #8a8c83;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.parent-page .media-folder-action {
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(65, 73, 62, 0.15);
  border-radius: 2px 15px 2px 2px;
  background: #e8eadd;
  color: #555d51;
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
}

.parent-page .media-folder-action > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.parent-page .media-folder-action strong {
  font-family: var(--serif);
  font-size: 12px;
}

.parent-page .media-folder-action small {
  color: #7c8177;
  font-size: 9.5px;
}

.parent-page .media-folder-icon {
  color: var(--sage-deep);
  font-family: Georgia, serif;
  font-size: 20px;
}

.parent-page .media-folder-arrow {
  color: #858a80;
  text-align: right;
}

.parent-page .tools-drawer-note {
  margin: auto 0 0;
  padding-top: 20px;
  color: #96978f;
  font-family: var(--serif);
  font-size: 9.5px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* ---------- 家长端 · 其余成长档案 ---------- */

.parent-page .view:not(#view-dashboard) {
  max-width: 1240px;
  margin: 0 auto;
}

.parent-page .view:not(#view-dashboard) .page-header {
  position: relative;
  min-height: 84px;
  margin-bottom: 22px;
  padding: 26px 0 17px;
  border-bottom: 1px solid rgba(52, 58, 50, 0.14);
}

.parent-page .view:not(#view-dashboard) .page-header::before {
  content: "GROWTH ARCHIVE";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--sage);
  font-family: Georgia, serif;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.parent-page .view:not(#view-dashboard) .page-header h2 {
  color: #353a33;
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 29px);
  font-weight: 600;
  letter-spacing: 0.055em;
}

.parent-page .view:not(#view-dashboard) .btn,
.parent-page .modal .btn {
  border-radius: 2px 12px 2px 2px;
  box-shadow: none;
}

.parent-page .view:not(#view-dashboard) .btn-primary,
.parent-page .modal .btn-primary {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
}

.parent-page .view:not(#view-dashboard) .btn-warning {
  border-color: var(--clay);
  background: var(--clay);
  color: #fff;
}

.parent-page .view:not(#view-dashboard) .btn-outline,
.parent-page .modal .btn-outline {
  border-color: rgba(82, 96, 79, 0.35);
  background: rgba(255, 253, 248, 0.56);
  color: var(--sage-deep);
}

.parent-page .view:not(#view-dashboard) .btn.active {
  border-color: var(--sage-deep);
  background: #dfe6da;
  color: var(--sage-deep);
}

.parent-page .view:not(#view-dashboard) .table-card,
.parent-page .view:not(#view-dashboard) .section-card,
.parent-page .journey-chart-area {
  border: 1px solid rgba(54, 61, 53, 0.13);
  border-radius: 2px 22px 2px 2px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: none;
}

.parent-page .view:not(#view-dashboard) .table-card {
  padding: 7px 21px 18px;
  overflow-x: auto;
}

.parent-page .view:not(#view-dashboard) .section-card {
  padding: 22px;
}

.parent-page .view:not(#view-dashboard) .section-card > h3,
.parent-page .view:not(#view-dashboard) .table-card > h3 {
  margin: 0 0 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(58, 64, 55, 0.11);
  color: #4d544b;
  font-family: var(--serif);
  font-size: 14px !important;
  font-weight: 600;
  letter-spacing: 0.045em;
}

.parent-page .data-table th {
  padding: 14px 12px 11px;
  border-bottom-color: rgba(59, 65, 56, 0.16);
  color: #81847a;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.parent-page .data-table td {
  padding: 15px 12px;
  border-bottom-color: rgba(59, 65, 56, 0.08);
  color: #4d514a;
  font-size: 12px;
}

.parent-page .data-table tr:hover td {
  background: rgba(226, 231, 220, 0.44);
}

.parent-page .empty-state {
  padding: 48px 20px;
  color: #92948b;
  font-family: var(--serif);
}

.parent-page .empty-state-icon {
  margin-bottom: 8px;
  filter: grayscale(0.35) saturate(0.7);
}

.parent-page .calendar-grid {
  gap: 7px;
}

.parent-page .calendar-header {
  color: #85897f;
  font-family: var(--serif);
  font-size: 10px;
}

.parent-page .calendar-day {
  border: 1px solid rgba(77, 87, 73, 0.07);
  border-radius: 3px 12px 3px 3px;
  background: rgba(250, 248, 242, 0.72);
}

.parent-page .calendar-day.today {
  border-color: var(--clay);
  color: #8c5a46;
}

.parent-page .calendar-day.has-checkin {
  border-color: rgba(117, 131, 111, 0.18);
  background: #dfe6da;
  color: var(--sage-deep);
}

.parent-page .who-chart-wrap {
  padding: 14px;
  border: 1px solid rgba(74, 82, 70, 0.08);
  background: rgba(247, 245, 238, 0.65);
}

.parent-page .who-legend {
  color: #73786f;
  font-family: var(--serif);
  font-size: 10px;
}

.parent-page .series-card,
.parent-page .custom-badge-card,
.parent-page .badge-row,
.parent-page .wish-item {
  border: 1px solid rgba(66, 74, 63, 0.11);
  border-radius: 2px 16px 2px 2px;
  background: #f6f3eb;
}

.parent-page .series-card.completed {
  border-color: rgba(199, 127, 98, 0.42);
  background: #efe5d8;
}

.parent-page .badge-row .bdg-icon {
  border: 1px solid rgba(82, 96, 79, 0.14);
  border-radius: 50%;
  background: #e5e9df !important;
  filter: saturate(0.72);
}

.parent-page #momentsGrid > div {
  overflow: hidden;
  border: 1px solid rgba(61, 69, 58, 0.12);
  border-radius: 2px 20px 2px 2px !important;
  background: rgba(255, 253, 248, 0.78) !important;
  box-shadow: none !important;
}

.parent-page .journey-tabs {
  gap: 7px;
}

.parent-page .journey-tab {
  border-color: rgba(82, 96, 79, 0.22);
  border-radius: 2px 12px 2px 2px;
  background: rgba(255, 253, 248, 0.56);
  color: #70766d;
}

.parent-page .journey-tab.active {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
  color: #fff;
}

.parent-page .journey-overview {
  gap: 1px;
  padding: 1px;
  border: 1px solid rgba(58, 65, 55, 0.13);
  background: rgba(58, 65, 55, 0.13);
}

.parent-page .journey-metric {
  border-radius: 0;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: none;
}

.parent-page .journey-metric .jm-val {
  color: var(--sage-deep);
  font-family: Georgia, var(--serif);
  font-weight: 500;
}

.parent-page .journey-road {
  background: #cfd6ca;
}

.parent-page .journey-ms-dot.current {
  border-color: var(--clay);
  background: var(--clay);
  box-shadow: 0 0 0 5px rgba(199, 127, 98, 0.14);
}

.parent-page .journey-chart-area {
  padding: 21px;
}

.parent-page .journey-chart-title {
  color: #4d544b;
  font-family: var(--serif);
  font-size: 13px;
}

/* Parent data rendering layer */
.parent-page .parent-ui-empty {
  padding: 38px 16px;
  color: #92948b;
  text-align: center;
  font-family: var(--serif);
}

.parent-page .parent-ui-soft-empty {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  color: #878b83;
  font-family: var(--serif);
  line-height: 1.7;
}

.parent-page .parent-ui-soft-empty strong {
  color: #596156;
  font-weight: 500;
}

.parent-page .parent-ui-soft-empty span,
.parent-page .parent-ui-subtext {
  color: #92968d;
  font-size: 11px;
  line-height: 1.55;
}

.parent-page .parent-ui-pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 9px;
  border: 1px solid rgba(75, 84, 72, 0.13);
  border-radius: 999px;
  background: #f3f1e9;
  color: #70766d;
  font-size: 10px;
  white-space: nowrap;
}

.parent-page .parent-ui-pill.is-success {
  border-color: rgba(93, 120, 87, 0.2);
  background: #e4eadf;
  color: #53664f;
}

.parent-page .parent-ui-pill.is-pending {
  border-color: rgba(175, 122, 76, 0.2);
  background: #f1e7d8;
  color: #8b6247;
}

.parent-page .parent-ui-pill.is-danger {
  border-color: rgba(164, 86, 78, 0.18);
  background: #f3e3df;
  color: #8b5650;
}

.parent-page .parent-ui-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.parent-page .parent-ui-icon-btn {
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid rgba(70, 76, 67, 0.13);
  border-radius: 50%;
  background: transparent;
  color: #9b9d96;
  cursor: pointer;
  line-height: 1;
}

.parent-page .parent-ui-icon-btn:hover {
  border-color: rgba(156, 86, 74, 0.32);
  color: #9c564a;
}

.parent-page .heatmap-legend .leg-cell {
  display: inline-block;
  background: #efeee8;
}

.parent-page .heatmap-legend .leg-cell.lvl-1 { background: #cbd8c5; }
.parent-page .heatmap-legend .leg-cell.lvl-2 { background: #9caf95; }
.parent-page .heatmap-legend .leg-cell.lvl-3 { background: #667d62; }
.parent-page .heatmap-cell.is-future { visibility: hidden; }

.parent-page .parent-ui-moment {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(66, 74, 63, 0.11);
  border-radius: 2px 18px 2px 2px;
  background: #f6f3eb;
}

.parent-page .parent-ui-moment-media {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #e5e9df, #eee7dc);
  color: #75806f;
  font-family: var(--serif);
  font-size: 24px;
}

.parent-page .parent-ui-moment-media img,
.parent-page .parent-ui-moment-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parent-page .parent-ui-moment-copy {
  display: flex;
  padding: 11px 12px;
  flex-direction: column;
  gap: 3px;
}

.parent-page .parent-ui-moment-copy strong {
  color: #565d53;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
}

.parent-page .parent-ui-moment-copy small { color: #999b94; font-size: 9px; }
.parent-page .parent-ui-moment > .parent-ui-icon-btn { position: absolute; top: 8px; right: 8px; background: rgba(248, 244, 235, 0.9); }
.parent-page .parent-ui-moment.is-compact .parent-ui-moment-media { aspect-ratio: 1; }

.parent-page .parent-ui-calendar-title {
  margin-bottom: 12px;
  color: #596156;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.parent-page .calendar-day {
  position: relative;
  min-height: 38px;
}

.parent-page .calendar-day small {
  position: absolute;
  right: 5px;
  bottom: 2px;
  font-size: 8px;
}

.parent-page .parent-ui-emoji { margin-right: 7px; font-size: 16px; }

.parent-page .parent-ui-score-row,
.parent-page .parent-ui-target-row,
.parent-page .parent-ui-list-line {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(70, 76, 67, 0.08);
  color: #596156;
  font-size: 12px;
}

.parent-page .parent-ui-score-row strong { color: var(--clay); font-family: Georgia, var(--serif); font-size: 20px; font-weight: 500; }
.parent-page .parent-ui-score-row small,
.parent-page .parent-ui-list-line small { color: #999b94; font-size: 9px; }

.parent-page .series-card,
.parent-page .custom-badge-card,
.parent-page .badge-row,
.parent-page .wish-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  margin-bottom: 8px;
}

.parent-page .badge-row .bdg-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
}

.parent-page .badge-row .bdg-status { margin-left: auto; }
.parent-page .badge-row:not(.is-unlocked) { opacity: 0.68; filter: grayscale(0.38); }
.parent-page .wish-item > div:first-child,
.parent-page .custom-badge-card > div:nth-child(2) { flex: 1; }
.parent-page .parent-ui-custom-icon { font-size: 25px; }

.parent-page .parent-ui-series-progress {
  display: flex;
  min-width: 150px;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  color: #83877f;
  font-size: 10px;
}

.parent-page .parent-ui-series-progress > div {
  overflow: hidden;
  width: 105px;
  height: 5px;
  border-radius: 999px;
  background: #dedfd8;
}

.parent-page .parent-ui-series-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--clay);
}

.parent-page .parent-ui-journey-badge {
  display: flex;
  min-width: 116px;
  padding: 10px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(66, 74, 63, 0.11);
  border-radius: 2px 12px 2px 2px;
  background: #f6f3eb;
  color: #596156;
  font-family: var(--serif);
  font-size: 11px;
}

.parent-page .parent-ui-report-period,
.parent-page .parent-ui-modal-note {
  margin-bottom: 16px;
  color: #858a81;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.7;
}

.parent-page .parent-ui-report-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 1px;
  background: rgba(58, 65, 55, 0.12);
}

.parent-page .parent-ui-report-grid > div {
  display: flex;
  padding: 17px 8px;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  background: #f8f4eb;
}

.parent-page .parent-ui-report-grid strong { color: var(--clay); font-family: Georgia, var(--serif); font-size: 24px; font-weight: 500; }
.parent-page .parent-ui-report-grid span { color: #888c84; font-size: 9px; }
.parent-page .parent-ui-report-comment { margin: 18px 0 0; color: #596156; font-family: var(--serif); line-height: 1.8; }

.parent-page .parent-ui-config-list { display: flex; max-height: 52vh; flex-direction: column; gap: 7px; overflow: auto; }
.parent-page .parent-ui-config-row {
  display: grid;
  grid-template-columns: auto auto minmax(130px, 1fr) 58px auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(66, 74, 63, 0.1);
  background: rgba(255, 253, 248, 0.66);
  color: #596156;
  font-size: 11px;
}
.parent-page .parent-ui-config-row input[type="number"] { width: 58px; padding: 6px; }

.parent-ui-toast {
  position: fixed;
  z-index: 9999;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 18px;
  border: 1px solid rgba(73, 83, 70, 0.15);
  border-radius: 2px 15px 2px 2px;
  background: #586653;
  box-shadow: 0 16px 42px rgba(42, 45, 40, 0.2);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.24s ease;
}

.parent-ui-toast.is-error { background: #8b5650; }
.parent-ui-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 720px) {
  .parent-page .parent-ui-report-grid { grid-template-columns: repeat(2, 1fr); }
  .parent-page .parent-ui-series-progress { min-width: 92px; }
  .parent-page .parent-ui-series-progress > div { width: 60px; }
  .parent-page .parent-ui-score-row,
  .parent-page .parent-ui-target-row,
  .parent-page .parent-ui-list-line { grid-template-columns: 1fr auto; }
  .parent-page .parent-ui-config-row { grid-template-columns: auto auto 1fr 52px auto; }
  .parent-ui-toast { right: 16px; bottom: 16px; }
}

.parent-page .modal-overlay {
  background: rgba(42, 45, 40, 0.42);
  backdrop-filter: blur(3px);
}

.parent-page .modal {
  border: 1px solid rgba(57, 64, 54, 0.16);
  border-radius: 3px 28px 3px 3px;
  background: #f8f4eb;
  box-shadow: 0 28px 70px rgba(48, 48, 41, 0.2);
}

.parent-page .modal h3 {
  color: #40463d;
  font-family: var(--serif);
  letter-spacing: 0.04em;
}

.parent-page .modal input,
.parent-page .modal select,
.parent-page .modal textarea,
.parent-page .view:not(#view-dashboard) select {
  border-color: rgba(79, 90, 75, 0.22);
  border-radius: 2px 11px 2px 2px;
  background: rgba(255, 253, 248, 0.8);
}

/* ---------- 儿童端 · 其余绘本空间 ---------- */

.child-page .pview:not(#pview-home) {
  max-width: 960px;
  margin: 0 auto;
}

.child-page .pview:not(#pview-home) > .welcome {
  position: relative;
  padding: 38px 0 26px;
  text-align: left;
}

.child-page .pview:not(#pview-home) > .welcome::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 13px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(82, 96, 79, 0.28), transparent 76%);
}

.child-page .pview:not(#pview-home) > .welcome .greeting {
  color: #41483e;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 35px);
  font-weight: 600;
  letter-spacing: 0.055em;
}

.child-page .pview:not(#pview-home) > .welcome .motto {
  margin-top: 7px;
  color: #83867d;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.child-page .pview:not(#pview-home) .section {
  border: 1px solid rgba(70, 79, 66, 0.12);
  border-radius: 3px 24px 3px 3px;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: none;
}

.child-page .pview:not(#pview-home) .section-title {
  color: #4e584b;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.055em;
}

.child-page #pview-shop > div:nth-child(2) {
  display: inline-flex;
  margin: 0 0 19px !important;
  padding: 9px 15px;
  border: 1px solid rgba(199, 127, 98, 0.2);
  border-radius: 2px 14px 2px 2px;
  background: #efe3d5;
}

.child-page #pview-shop > div:nth-child(2) span {
  color: #885c49 !important;
  font-family: var(--serif);
  font-size: 14px !important;
}

.child-page #pview-shop .shop-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.child-page #pview-shop .shop-item {
  position: relative;
  min-height: 190px;
  padding: 24px 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(68, 78, 64, 0.12);
  border-radius: 46% 46% 4px 4px;
  background:
    radial-gradient(circle at 50% 4%, rgba(230, 205, 165, 0.34), transparent 42%),
    rgba(255, 253, 247, 0.82);
  box-shadow: none;
}

.child-page #pview-shop .shop-item:nth-child(2n) {
  background:
    radial-gradient(circle at 50% 4%, rgba(165, 190, 157, 0.26), transparent 42%),
    rgba(255, 253, 247, 0.82);
}

.child-page #pview-shop .shop-item:hover {
  border-color: rgba(199, 127, 98, 0.48);
  transform: translateY(-4px) rotate(-0.4deg);
}

.child-page #pview-shop .shop-item .s-emoji {
  font-size: 42px;
  filter: saturate(0.75);
}

.child-page #pview-shop .shop-item .s-name {
  color: #4c5349;
  font-family: var(--serif);
  font-size: 15px;
}

.child-page #pview-shop .shop-item .s-price {
  color: var(--clay);
  font-family: Georgia, var(--serif);
}

.child-page #pview-shop .shop-item.locked {
  filter: grayscale(0.34);
}

.child-page #badgesWall {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  gap: 13px !important;
}

.child-page #pview-badges .badge-chip {
  position: relative;
  width: 100%;
  min-height: 205px;
  padding: 23px 14px 16px;
  border: 1px solid rgba(69, 79, 66, 0.12);
  border-radius: 72px 72px 3px 3px;
  background: rgba(255, 253, 247, 0.78);
}

.child-page #pview-badges .badge-chip::after {
  content: "✦";
  position: absolute;
  right: 15px;
  top: 13px;
  color: rgba(199, 127, 98, 0.45);
  font-family: Georgia, serif;
}

.child-page #pview-badges .badge-chip .bc-icon {
  border: 1px solid rgba(83, 97, 78, 0.17);
  background: #e4e9df !important;
  filter: saturate(0.72);
}

.child-page #pview-badges .badge-chip .bc-name {
  color: #4c5349;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.child-page #pview-badges .priv-card {
  border: 1px dashed rgba(199, 127, 98, 0.44);
  border-radius: 2px 13px 2px 2px;
  background: #f2e8dc;
}

.child-page #pview-badges .pc-name,
.child-page #pview-badges .pc-uses {
  color: #81604e;
}

.child-page #momentsWall {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  gap: 13px !important;
}

.child-page #momentsWall > div {
  border: 1px solid rgba(68, 77, 64, 0.12);
  border-radius: 2px 20px 2px 2px !important;
  background: rgba(255, 253, 247, 0.78) !important;
  box-shadow: none !important;
}

.child-page #momentsWall > div:nth-child(3n + 1) {
  transform: rotate(-0.5deg);
}

.child-page #momentsWall > div:nth-child(3n) {
  transform: rotate(0.6deg);
}

.child-page #pview-wishes .wish-form-wrap input,
.child-page #pview-wishes #wishReason,
.child-page #pview-world textarea {
  border: 1px solid rgba(83, 96, 78, 0.21) !important;
  border-radius: 2px 14px 2px 2px !important;
  background: rgba(255, 253, 248, 0.84);
  color: #4d534a;
  font-family: var(--serif);
}

.child-page #pview-wishes .wish-form-wrap button,
.child-page #pview-world .inspo-form button,
.child-page #pview-world .treehole-form button {
  border-radius: 2px 14px 2px 2px;
  background: var(--sage);
  box-shadow: none;
}

.child-page #pview-wishes .wish-card {
  min-height: 68px;
  border: 1px solid rgba(69, 78, 65, 0.11);
  border-radius: 2px 17px 2px 2px;
  background: rgba(255, 253, 247, 0.72);
}

.child-page #pview-wishes .wish-card:nth-child(2n) {
  background: #eee6dc;
}

.child-page #pview-wishes .wc-status {
  border: 1px solid rgba(68, 79, 65, 0.1);
  filter: saturate(0.7);
}

.child-page #pview-world .section:first-of-type {
  background:
    radial-gradient(circle at 92% 8%, rgba(232, 191, 138, 0.21), transparent 24%),
    rgba(255, 253, 247, 0.8);
}

.child-page #pview-world .section:last-of-type {
  background:
    radial-gradient(circle at 92% 8%, rgba(143, 171, 136, 0.21), transparent 24%),
    rgba(255, 253, 247, 0.8);
}

.child-page #pview-world .mood-btn {
  border: 1px solid rgba(82, 96, 78, 0.18);
  background: #f7f3e9;
  filter: saturate(0.72);
}

.child-page #pview-world .mood-btn.selected {
  border-color: var(--sage);
  background: #dfe6da;
  box-shadow: 0 0 0 4px rgba(117, 131, 111, 0.1);
}

.child-page #pview-world .inspo-card,
.child-page #pview-world .treehole-card {
  border: 1px solid rgba(71, 80, 68, 0.1);
  border-radius: 2px 16px 2px 2px;
  background: #f0eadf;
  color: #4f554c;
}

.child-page #pview-world .treehole-card {
  border-left: 3px solid var(--sage);
  background: #e8ede4;
}

.child-page #pview-journey > div:nth-child(2) {
  gap: 1px !important;
  padding: 1px;
  border: 1px solid rgba(66, 75, 63, 0.13);
  background: rgba(66, 75, 63, 0.13);
}

.child-page #pview-journey > div:nth-child(2) .section {
  border: 0;
  border-radius: 0;
  background: rgba(255, 253, 247, 0.88);
}

.child-page #pview-journey > div:nth-child(2) .section > div > div:first-child {
  color: var(--sage-deep) !important;
  font-family: Georgia, var(--serif);
  font-weight: 500 !important;
}

.child-page #pview-journey #jMilestones {
  border-left-color: var(--clay) !important;
}

@keyframes childCardArrive {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.child-page .pview.active:not(#pview-home) .shop-item,
.child-page .pview.active:not(#pview-home) .badge-chip,
.child-page .pview.active:not(#pview-home) .section,
.child-page .pview.active:not(#pview-home) #momentsWall > div {
  animation: childCardArrive 360ms ease both;
}

@media (max-width: 960px) {
  .parent-page .sidebar-tools-drawer {
    top: auto;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    max-height: min(680px, calc(100vh - 28px));
    border-radius: 3px 28px 3px 3px;
    transform: translateY(24px);
  }

  .parent-page .sidebar-tools-drawer.open {
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .parent-page .view:not(#view-dashboard) .page-header {
    min-height: 92px;
    padding-top: 28px;
  }

  .parent-page .view:not(#view-dashboard) .page-header .btn {
    width: 100%;
  }

  .parent-page .journey-overview,
  .parent-page .journey-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .child-page #pview-shop .shop-grid {
    grid-template-columns: 1fr 1fr;
  }

  .child-page #pview-shop .shop-item {
    min-height: 170px;
    border-radius: 58px 58px 4px 4px;
  }
}

@media (max-width: 480px) {
  .parent-page .sidebar-tools-drawer {
    padding: 21px 18px;
  }

  .parent-page .tools-drawer-header h2 {
    font-size: 21px;
  }

  .parent-page .tool-action {
    min-height: 61px;
  }

  .parent-page .journey-overview,
  .parent-page .journey-detail-grid {
    grid-template-columns: 1fr;
  }

  .child-page #pview-shop .shop-grid {
    grid-template-columns: 1fr;
  }

  .child-page #pview-shop .shop-item {
    min-height: 154px;
    border-radius: 70px 70px 4px 4px;
  }

  .child-page .pview:not(#pview-home) > .welcome {
    padding: 28px 2px 22px;
  }

  .child-page .pview:not(#pview-home) .section {
    padding: 16px;
  }

  .child-page .wish-form-wrap,
  .child-page .inspo-form,
  .child-page .treehole-form {
    flex-direction: column;
  }

  .child-page .wish-form-wrap button,
  .child-page .inspo-form button,
  .child-page .treehole-form button {
    width: 100%;
  }
}

@media print {
  .sidebar-tools-backdrop,
  .sidebar-tools-drawer {
    display: none !important;
  }
}
