/* 字体请在各 HTML 中通过 <link> 引入 ./fonts/xiaoxia.css 与 ./fonts/inter.css，勿用 @import */

:root {
  /* Frame */
  --frame-bg: #000;
  --frame-ring: #1f2937;
  --screen-bg: #FBF7F2;
  --status-bar-image: url("../images/status-bar-black.svg");

  /* 小夏 · 暮光暖巢 */
  --brand: #C4704B;
  --brand-light: #E8A87C;
  --brand-dark: #9E5238;
  --brand-on: #FFFCF8;
  --spark: #D4A574;
  --spark-bg: #FDF6EC;
  --spark-glow: rgba(212, 165, 116, 0.35);
  --grow: #6B9080;
  --grow-bg: #EFF5F2;
  --worth: #7BA7BC;
  --worth-bg: #EDF4F7;
  --notice: #D4847C;
  --notice-bg: #FBF0EE;
  --surface-base: #FBF7F2;
  --surface-card: #FFFCF8;
  --surface-muted: #F5EDE4;
  --surface-recording: #2C3639;
  --text-primary: #2C3639;
  --text-secondary: #6B7B7E;
  --text-tertiary: #9EABA8;
  --border-subtle: rgba(44, 54, 57, 0.08);
  --border-default: #E8DFD4;
  --divider: #EDE4DA;
  --shadow-card: 0 2px 8px rgba(44, 54, 57, 0.06), 0 0 0 1px var(--border-subtle);
  --shadow-float: 0 8px 24px rgba(44, 54, 57, 0.10);
  --shadow-glow: 0 0 24px var(--spark-glow);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --font-family-base: "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-family-display: "LXGW WenKai Lite", "LXGW WenKai", "KaiTi", "STKaiti", serif;
  --font-family-data: "Inter", "Alibaba PuHuiTi", ui-monospace, monospace;
  --font-size-base: 14px;
  --control-height-base: 44px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #EDE4DA;
  font-family: var(--font-family-base);
  color: var(--text-primary);
}

/* ── iOS Frame ── */
.ios-frame-wrapper {
  display: inline-block;
  padding: 12px;
  background: var(--frame-bg);
  border-radius: 60px;
  box-shadow: 0 0 0 2px var(--frame-ring), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ios-screen {
  position: relative;
  width: 393px;
  height: 852px;
  border-radius: 48px;
  overflow: hidden;
  background: var(--screen-bg);
}

.ios-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% -10%, rgba(232, 168, 124, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(107, 144, 128, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.status-bar {
  position: absolute;
  padding-top: 6px;
  left: 0;
  width: 100%;
  height: 54px;
  z-index: 20;
  pointer-events: none;
  background-image: var(--status-bar-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 36px;
  background: #000;
  border-radius: 999px;
  z-index: 30;
}

.screen-content {
  position: absolute;
  left: 0;
  right: 0;
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  z-index: 1;
}

.screen-content::-webkit-scrollbar { display: none; }

.top-header-shell {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 252, 248, 0.92);
  border-bottom: 1px solid var(--divider);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 18;
}

/* Layout: tabs only */
.layout-tabs .top-header-shell { height: auto; }
.layout-tabs .screen-content {
  top: 0;
  bottom: 0;
  padding-top: 54px;
  padding-bottom: 82px;
}

/* Layout: header */
.layout-header .top-header-shell { height: 106px; }
.layout-header .screen-content {
  top: 0;
  bottom: 0;
  padding-top: 106px;
  padding-bottom: 24px;
}

.title-bar {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  height: 52px;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  z-index: 18;
}

.title-btn {
  text-align: center;
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.title-btn--ghost { color: transparent; pointer-events: none; }

.title-text {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

/* layout-header 子页：标题相对整栏居中（iOS 导航栏） */
.layout-header .title-bar {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.layout-header .title-bar > :first-child {
  flex: 0 0 56px;
  width: 56px;
}

.layout-header .title-bar > :last-child:not(.title-text) {
  flex: 0 0 56px;
  width: 56px;
  margin-left: auto;
}

.layout-header .title-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  max-width: calc(100% - 112px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-header .title-btn {
  position: relative;
  z-index: 1;
}

/* Layout: fullscreen */
.layout-full .top-header-shell { height: auto; }
.layout-full .screen-content {
  top: 0;
  bottom: 0;
  padding-top: 54px;
  padding-bottom: 0;
}

.app-shell {
  position: relative;
  min-height: 100%;
  padding: 16px 20px 24px;
  z-index: 1;
}

/* Tab bar */
.tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 82px;
  padding: 8px 6px 22px;
  background: rgba(255, 252, 248, 0.95);
  border-top: 1px solid var(--divider);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  z-index: 16;
  backdrop-filter: blur(12px);
  overflow: visible;
}

.tab-bar--5 { grid-template-columns: repeat(5, 1fr); }

.tab-bar--5 .tab-item:not(.tab-item--xiaoxia) {
  font-size: 9px;
  letter-spacing: 0;
}

.tab-bar--5 .tab-item:not(.tab-item--xiaoxia) .tab-icon {
  width: 22px;
  height: 22px;
  font-size: 18px;
}

.tab-item {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-top: 2px;
  color: var(--text-tertiary);
  font-size: 10px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}

.tab-item.active { color: var(--brand); font-weight: 600; }

.tab-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab-icon i { font-size: 18px; line-height: 1; }

/* 小夏 · 中心 IP Tab（无文字，略高出底栏） */
.tab-item--xiaoxia {
  position: relative;
  z-index: 20;
  align-self: end;
  margin-top: -30px;
  margin-bottom: 2px;
  gap: 0;
  padding-top: 0;
  color: inherit;
}

.tab-item--xiaoxia.active {
  color: inherit;
  font-weight: 400;
}

.tab-item--xiaoxia .tab-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #f5f6f8 100%);
  border: 3px solid rgba(255, 252, 248, 0.98);
  box-shadow:
    0 6px 20px rgba(196, 112, 75, 0.22),
    0 2px 8px rgba(44, 54, 57, 0.08);
  overflow: hidden;
  transition:
    transform 0.22s var(--ease-soft),
    box-shadow 0.22s var(--ease-soft);
}

.tab-item--xiaoxia.active .tab-icon {
  border-color: rgba(232, 168, 124, 0.55);
  box-shadow:
    0 8px 26px rgba(212, 165, 116, 0.38),
    0 0 0 2px rgba(232, 168, 124, 0.35);
  transform: translateY(-2px) scale(1.04);
}

.tab-item--xiaoxia:active .tab-icon {
  transform: scale(0.96);
}

.tab-xiaoxia-svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.1);
  transform-origin: center 42%;
}

.tab-item--xiaoxia .tab-icon i { display: none; }

/* 小夏 IP 三态 · 表情层 */
.xiaoxia-ip-host {
  position: relative;
}

.xiaoxia-ip-host .xiaoxia-ip-svg,
.xiaoxia-ip-host .tab-xiaoxia-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.xiaoxia-ip-host .ip-face {
  opacity: 0;
  transition: opacity 0.32s var(--ease-soft);
}

.xiaoxia-ip-host[data-ip-state="idle"] .ip-face--idle,
.xiaoxia-ip-host:not([data-ip-state]) .ip-face--idle {
  opacity: 1;
}

.xiaoxia-ip-host[data-ip-state="listen"] .ip-face--listen {
  opacity: 1;
}

.xiaoxia-ip-host[data-ip-state="think"] .ip-face--think {
  opacity: 1;
}

.xiaoxia-ip-host[data-ip-state="private"] .ip-face--private {
  opacity: 1;
}

.xiaoxia-ip-host[data-ip-state="speak"] .ip-face--listen {
  opacity: 1;
}

/* 底部 Tab 小夏 IP 三态 */
.tab-item--xiaoxia .tab-icon.xiaoxia-ip-host[data-ip-state="idle"] {
  animation: tabIpIdleGlow 4s ease-in-out infinite;
}

.tab-item--xiaoxia.active .tab-icon.xiaoxia-ip-host[data-ip-state="idle"] {
  animation: tabIpIdleGlowActive 4s ease-in-out infinite;
}

.tab-item--xiaoxia .tab-icon.xiaoxia-ip-host[data-ip-state="listen"] {
  border-color: rgba(196, 112, 75, 0.55);
  box-shadow:
    0 0 0 4px rgba(196, 112, 75, 0.18),
    0 10px 28px rgba(196, 112, 75, 0.38);
  animation: tabIpListenPulse 1.4s ease-in-out infinite;
}

.tab-item--xiaoxia.active .tab-icon.xiaoxia-ip-host[data-ip-state="listen"] {
  animation: tabIpListenPulseActive 1.4s ease-in-out infinite;
}

.tab-item--xiaoxia .tab-icon.xiaoxia-ip-host[data-ip-state="think"] {
  border-color: rgba(212, 165, 116, 0.6);
  box-shadow:
    0 0 0 3px rgba(212, 165, 116, 0.28),
    0 10px 26px rgba(212, 165, 116, 0.36);
  animation: tabIpThinkPulse 1.5s ease-in-out infinite;
}

.tab-item--xiaoxia.active .tab-icon.xiaoxia-ip-host[data-ip-state="think"] {
  animation: tabIpThinkPulseActive 1.5s ease-in-out infinite;
}

.tab-item--xiaoxia .tab-icon.xiaoxia-ip-host[data-ip-state="speak"] {
  border-color: rgba(196, 112, 75, 0.55);
  box-shadow:
    0 0 0 4px rgba(196, 112, 75, 0.16),
    0 10px 28px rgba(196, 112, 75, 0.34);
  animation: tabIpListenPulse 1.1s ease-in-out infinite;
}

.tab-item--xiaoxia.active .tab-icon.xiaoxia-ip-host[data-ip-state="speak"] {
  animation: tabIpListenPulseActive 1.1s ease-in-out infinite;
}

@keyframes tabIpIdleGlow {
  0%, 100% {
    box-shadow:
      0 6px 20px rgba(196, 112, 75, 0.22),
      0 2px 8px rgba(44, 54, 57, 0.08);
  }
  50% {
    box-shadow:
      0 8px 24px rgba(212, 165, 116, 0.3),
      0 2px 8px rgba(44, 54, 57, 0.08);
  }
}

@keyframes tabIpIdleGlowActive {
  0%, 100% {
    box-shadow:
      0 8px 26px rgba(212, 165, 116, 0.38),
      0 0 0 2px rgba(232, 168, 124, 0.35);
  }
  50% {
    box-shadow:
      0 10px 30px rgba(212, 165, 116, 0.48),
      0 0 0 3px rgba(232, 168, 124, 0.42);
  }
}

@keyframes tabIpListenPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.05); }
}

@keyframes tabIpListenPulseActive {
  0%, 100% { transform: translateY(-2px) scale(1.04); }
  50% { transform: translateY(-4px) scale(1.07); }
}

@keyframes tabIpThinkPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.03); }
}

@keyframes tabIpThinkPulseActive {
  0%, 100% { transform: translateY(-2px) scale(1.04); }
  50% { transform: translateY(-4px) scale(1.06); }
}

.tab-item--xiaoxia:active .tab-icon.xiaoxia-ip-host[data-ip-state="listen"],
.tab-item--xiaoxia:active .tab-icon.xiaoxia-ip-host[data-ip-state="think"] {
  transform: scale(0.96);
}

.home-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 5px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  bottom: 8px;
  z-index: 17;
}

/* ── Shared Components ── */
.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-top: 4px;
}

.page-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.page-logo span { font-weight: 400; color: var(--text-secondary); font-size: 12px; margin-left: 6px; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.greeting-sub { font-size: 13px; color: var(--text-secondary); margin: 0 0 2px; }
.greeting-name {
  font-family: var(--font-family-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.child-pills { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-soft);
}

.pill.active {
  background: var(--brand);
  color: var(--brand-on);
}

.insight-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.insight-label { font-size: 12px; color: var(--text-tertiary); margin-bottom: 10px; }

.health-dots { display: flex; gap: 7px; margin-bottom: 10px; }

.health-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-default);
}

.health-dot.on {
  background: var(--spark);
  box-shadow: 0 0 8px var(--spark-glow);
}

.insight-trend { font-size: 14px; color: var(--grow); font-weight: 500; }

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.module-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.module-link {
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
}

.spark-card {
  background: var(--spark-bg);
  border-radius: var(--radius-md);
  padding: 14px 14px 14px 17px;
  border-left: 3px solid var(--spark);
  margin-bottom: 10px;
  box-shadow: var(--shadow-glow);
}

.spark-card .quote {
  font-family: var(--font-family-display);
  font-size: 16px;
  margin: 0 0 6px;
  line-height: 1.55;
}

.spark-card .desc { font-size: 12px; color: var(--text-secondary); margin: 0; }

.notice-card {
  background: var(--notice-bg);
  border-radius: var(--radius-md);
  padding: 14px 14px 14px 17px;
  border-left: 3px solid var(--notice);
  margin-bottom: 16px;
}

.notice-card .quote {
  font-family: var(--font-family-display);
  font-size: 15px;
  margin: 0 0 6px;
}

.notice-card .desc { font-size: 12px; color: var(--text-secondary); margin: 0 0 8px; }

.notice-card .link {
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
}

.worth-row { display: flex; gap: 10px; margin-bottom: 20px; }

.worth-chip {
  flex: 1;
  background: var(--worth-bg);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
}

.worth-chip .label { font-size: 11px; color: var(--text-tertiary); margin-bottom: 4px; }
.worth-chip .val { font-size: 15px; font-weight: 600; color: var(--worth); }

.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: var(--brand-on);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(196, 112, 75, 0.25);
  transition: transform 0.15s var(--ease-soft);
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.xiaoxia-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s var(--ease-soft);
}

.xiaoxia-entry:active { transform: scale(0.98); }

.xiaoxia-avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, #F2CC8F, #E8A87C, var(--brand));
  box-shadow: 0 0 14px var(--spark-glow);
}

.xiaoxia-entry-text { flex: 1; }
.xiaoxia-entry-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.xiaoxia-entry-text span { font-size: 12px; color: var(--text-secondary); }

.record-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}

.record-wave {
  width: 40px;
  height: 32px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.record-wave span {
  flex: 1;
  background: var(--brand-light);
  border-radius: 2px;
  opacity: 0.7;
}

.record-card-info { flex: 1; }
.record-card-info strong { display: block; font-size: 14px; margin-bottom: 2px; }
.record-card-info span { font-size: 12px; color: var(--text-tertiary); }

.status-pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--grow-bg);
  color: var(--grow);
}

.course-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 -20px 20px;
  padding-left: 20px;
  padding-right: 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.course-scroll::-webkit-scrollbar { display: none; }

.course-card {
  flex: 0 0 140px;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
}

.course-cover {
  height: 80px;
  background: linear-gradient(135deg, var(--grow-bg), var(--worth-bg));
}

.course-card-body { padding: 10px 12px; }
.course-card-body strong { display: block; font-size: 13px; margin-bottom: 4px; line-height: 1.35; }
.course-card-body span { font-size: 10px; color: var(--text-tertiary); }

.badge-3rd {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--text-tertiary);
  margin-top: 4px;
}

.child-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--spark-bg), var(--worth-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-display);
  font-size: 22px;
  color: var(--brand);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: var(--brand-on);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim-fade-up { animation: fadeUp 0.5s var(--ease-soft) both; }
.anim-delay-1 { animation-delay: 0.08s; }
.anim-delay-2 { animation-delay: 0.16s; }
.anim-delay-3 { animation-delay: 0.24s; }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  body { display: block; background: var(--screen-bg); }
  .ios-frame-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  .ios-screen {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .status-bar, .dynamic-island, .home-indicator { display: none; }
  .layout-tabs:not(.layout-worth):not(.layout-chat) .top-header-shell {
    display: none;
  }
  .layout-tabs .screen-content {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .layout-worth .top-header-shell {
    display: flex;
    align-items: stretch;
    min-height: calc(50px + env(safe-area-inset-top));
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 2px;
    box-sizing: border-box;
    height: auto;
    background: rgba(255, 252, 248, 0.96);
    border-bottom: 1px solid var(--divider);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .layout-worth .worth-title-bar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    align-items: center;
    justify-content: flex-start;
    display: flex;
    gap: 8px;
    grid-template-columns: unset;
  }

  .layout-worth .worth-title-child {
    flex: 0 1 auto;
    min-width: 0;
  }

  .layout-worth .screen-content {
    padding-top: calc(50px + env(safe-area-inset-top));
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .layout-header .top-header-shell {
    display: flex;
    align-items: stretch;
    height: auto;
    min-height: calc(54px + env(safe-area-inset-top));
    padding-top: calc(10px + env(safe-area-inset-top));
    box-sizing: border-box;
  }
  .layout-header .title-bar {
    position: relative;
    top: auto;
    width: 100%;
    height: 44px;
    min-height: 44px;
  }
  .layout-header .screen-content {
    padding-top: calc(54px + env(safe-area-inset-top));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .tab-bar {
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 8px 4px calc(10px + env(safe-area-inset-bottom));
  }

  /* 移动端入场动画易卡在 opacity:0，与成长树页同类问题 */
  .anim-fade-up,
  .anim-msg-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
