:root {
  --paper: #fbf7ee;
  --surface: #fffdf7;
  --ink: #20241f;
  --muted: #747a72;
  --line: rgba(41, 50, 43, 0.14);
  --jade: #356d58;
  --jade-soft: #e4efe7;
  --clay: #b94d3c;
  --shadow: 0 18px 46px rgba(43, 35, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #e6dfd0;
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  height: min(100vh, 920px);
  min-height: 760px;
  overflow: hidden;
  border-radius: 34px;
  background:
    repeating-linear-gradient(90deg, rgba(53, 109, 88, 0.018), rgba(53, 109, 88, 0.018) 1px, transparent 1px, transparent 8px),
    var(--paper);
  box-shadow: 0 24px 90px rgba(39, 34, 27, 0.22);
}

.login-screen,
.app-shell {
  display: none;
  height: 100%;
}

.login-screen.active,
.app-shell.active {
  display: flex;
}

.login-screen {
  flex-direction: column;
  justify-content: center;
  padding: 34px 26px;
}

.brand-mark {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: var(--jade);
  color: white;
  font-size: 46px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.login-screen h1 {
  margin: 28px 0 12px;
  font-size: 40px;
  line-height: 1.2;
}

.login-screen > p {
  margin: 0 0 30px;
  color: #555d55;
  font-size: 23px;
  line-height: 1.7;
}

.login-card {
  display: grid;
  gap: 13px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
}

.login-card label {
  font-size: 21px;
  font-weight: 700;
}

.login-card input,
.login-card select {
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  font-size: 24px;
}

.login-card select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--jade) 50%), linear-gradient(135deg, var(--jade) 50%, transparent 50%);
  background-position:
    calc(100% - 26px) 27px,
    calc(100% - 17px) 27px;
  background-size:
    9px 9px,
    9px 9px;
  background-repeat: no-repeat;
}

.login-card button {
  min-height: 64px;
  border: 0;
  border-radius: 20px;
  font-size: 24px;
  font-weight: 800;
}

.login-card button {
  margin-top: 8px;
  background: var(--jade);
  color: white;
}

.login-error {
  margin: 2px 0 0;
  color: #a33a2d;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 800;
}

.app-shell {
  position: relative;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}

.app-shell::-webkit-scrollbar {
  display: none;
}

.app-shell.profile-mode .simple-header {
  display: none;
}

.simple-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(41, 50, 43, 0.08);
  background:
    repeating-linear-gradient(90deg, rgba(53, 109, 88, 0.018), rgba(53, 109, 88, 0.018) 1px, transparent 1px, transparent 8px),
    rgba(251, 247, 238, 0.94);
  backdrop-filter: blur(14px);
}

.simple-header > div {
  min-width: 0;
}

.simple-header strong {
  display: block;
  overflow: hidden;
  font-size: 25px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-header span {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-link {
  min-width: 68px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--jade);
  font-size: 20px;
}

.panel {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: visible;
}

.panel.active {
  display: flex;
  flex-direction: column;
}

.chat-thread {
  flex: 1 0 auto;
  overflow: visible;
  padding: 12px 20px 168px;
}

.tts-toggle {
  display: none; /* 默认隐藏，例如在登录屏 */
  position: absolute;
  top: 104px;
  right: 20px;
  z-index: 50;
  width: 50px;
  height: 50px;
  padding: 0; /* 清除默认内边距，防止按钮变形 */
  box-sizing: border-box;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(251, 247, 238, 0.9);
  color: var(--jade);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(54, 43, 30, 0.12);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.5;
  transform: scale(0.85);
  backdrop-filter: blur(4px);
}

/* 当 app-shell 处于活动状态，且不是资料页面（即在聊天页面）时，显示语音开关 */
.app-shell.active:not(.profile-mode) ~ .tts-toggle {
  display: flex;
}

.tts-toggle:active {
  transform: scale(0.8);
}

.tts-toggle.is-scrolling,
.tts-toggle:hover {
  opacity: 1;
  transform: scale(1);
}

.tts-toggle svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.tts-toggle .icon-voice-off {
  display: none;
}

.tts-toggle:not(.active) .icon-voice-on {
  display: none;
}

.tts-toggle:not(.active) .icon-voice-off {
  display: block;
}

.message {
  display: flex;
  margin: 14px 0;
}

.message p {
  max-width: 88%;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  font-size: 23px;
  line-height: 1.75;
  box-shadow: 0 8px 26px rgba(54, 43, 30, 0.07);
}

.message.ai {
  justify-content: flex-start;
}

.message.ai p {
  background: var(--surface);
}

.message.elder {
  justify-content: flex-end;
}

.message.elder p {
  background: var(--jade-soft);
}

.message.thinking p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.message.thinking i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--jade);
  opacity: 0.35;
  animation: thinking-dot 1.2s infinite ease-in-out;
}

.message.thinking i:nth-child(3) {
  animation-delay: 0.16s;
}

.message.thinking i:nth-child(4) {
  animation-delay: 0.32s;
}

.message.retry p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.message.retry button {
  min-height: 38px;
  border: 1px solid rgba(53, 109, 88, 0.24);
  border-radius: 999px;
  background: var(--jade-soft);
  color: var(--jade);
  font-size: 18px;
  font-weight: 800;
  padding: 0 14px;
}

@keyframes thinking-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.28;
  }

  40% {
    transform: translateY(-4px);
    opacity: 0.78;
  }
}

.talk-bar {
  position: sticky;
  bottom: 0;
  z-index: 25;
  min-height: 136px;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.86);
  backdrop-filter: blur(16px);
}

.gentle-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 44px;
  gap: 10px;
  margin-bottom: 10px;
}

.gentle-actions > button,
.more-actions-toggle {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #5e655e;
  font-size: 18px;
  font-weight: 700;
}

.gentle-actions > button:nth-child(2) {
  border-color: rgba(53, 109, 88, 0.24);
  color: var(--jade);
}

.more-actions {
  position: relative;
  min-width: 0;
}

.more-actions-toggle {
  width: 44px;
  padding-bottom: 8px;
  color: var(--jade);
  font-family: Arial, sans-serif;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1;
}

.more-actions-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 34;
  width: 144px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.more-actions-menu[hidden] {
  display: none;
}

.more-actions-menu button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(185, 77, 60, 0.24);
  border-radius: 12px;
  background: rgba(185, 77, 60, 0.08);
  color: var(--clay);
  font-size: 17px;
  font-weight: 800;
}

.skip-confirm {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  width: min(100vw, 430px);
  height: min(100vh, 920px);
  margin: auto;
  padding: 20px;
}

.skip-confirm[hidden] {
  display: none;
}

.skip-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 37, 32, 0.34);
}

.skip-confirm-card {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.skip-confirm-card h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
}

.skip-confirm-card p {
  margin: 0;
  color: #5e655e;
  font-size: 19px;
  line-height: 1.65;
}

.skip-confirm-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
}

.skip-confirm-actions button {
  min-height: 52px;
  border-radius: 16px;
  font-size: 19px;
  font-weight: 800;
}

.skip-confirm-secondary {
  border: 1px solid rgba(185, 77, 60, 0.24);
  background: rgba(185, 77, 60, 0.08);
  color: var(--clay);
}

.skip-confirm-primary {
  border: 0;
  background: var(--jade);
  color: white;
}

.topic-sheet {
  display: grid;
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: calc(100% - 4px);
  z-index: 30;
  gap: 8px;
  max-height: min(46vh, 360px);
  overflow-y: auto;
  margin-bottom: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topic-sheet[hidden] {
  display: none;
}

.topic-sheet p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.topic-sheet div {
  display: grid;
  gap: 8px;
}

.topic-sheet button {
  min-height: 48px;
  border: 1px solid rgba(53, 109, 88, 0.2);
  border-radius: 16px;
  background: var(--surface);
  color: var(--jade);
  font-size: 19px;
  font-weight: 800;
  text-align: left;
  padding: 0 14px;
}

.topic-sheet .all-topics-button {
  text-align: center;
  background: var(--jade);
  color: #fff;
}

.topic-drawer {
  position: fixed;
  top: max(0px, calc((100vh - 920px) / 2));
  left: 50%;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr;
  width: min(100vw, 430px);
  height: min(100vh, 920px);
  min-height: min(760px, 100vh);
  overflow: hidden;
  transform: translateX(-50%);
  background: var(--paper);
}

.topic-drawer[hidden] {
  display: none;
}

.topic-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: var(--paper);
}

.topic-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 370px);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(53, 109, 88, 0.018), rgba(53, 109, 88, 0.018) 1px, transparent 1px, transparent 8px),
    var(--paper);
  box-shadow: -18px 0 46px rgba(43, 35, 24, 0.22);
}

.topic-drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--jade);
  font-family: Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
}

.topic-drawer-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 68px 14px 18px;
  border-bottom: 1px solid var(--line);
}

.topic-drawer-panel header strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
}

.topic-drawer-panel header span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 17px;
}

.topic-drawer-groups {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 24px;
}

.topic-category {
  border-bottom: 1px solid rgba(41, 50, 43, 0.1);
}

.topic-category summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.topic-category summary::-webkit-details-marker {
  display: none;
}

.topic-category summary strong {
  font-size: 21px;
}

.topic-category summary span {
  color: var(--muted);
  font-size: 16px;
}

.topic-category-list {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
}

.topic-category-list button {
  width: 100%;
  display: grid;
  gap: 8px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid rgba(53, 109, 88, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.topic-category-list button.current {
  border-color: rgba(53, 109, 88, 0.36);
  background: var(--jade-soft);
}

.topic-category-list button span {
  font-size: 18px;
  line-height: 1.45;
}

.topic-category-list button em {
  color: var(--jade);
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
}

.topic-drawer-empty {
  padding: 18px 4px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.input-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
}

.input-toggle {
  width: 58px;
  min-height: 58px;
  border: 1px solid rgba(53, 109, 88, 0.22);
  border-radius: 50%;
  background: var(--jade-soft);
  color: var(--jade);
  font-size: 18px;
  font-weight: 800;
}

.hold-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: var(--jade);
  color: white;
  box-shadow: 0 15px 34px rgba(53, 109, 88, 0.23);
}

.hold-button span {
  font-size: 24px;
  font-weight: 800;
}

.hold-button.recording {
  transform: scale(0.99);
  background: var(--clay);
  box-shadow: 0 15px 34px rgba(185, 77, 60, 0.23);
}

.text-input-row {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 10px;
  margin: 0;
}

.text-input-row[hidden] {
  display: none;
}

.text-input-row textarea {
  width: 100%;
  min-height: 58px;
  max-height: 112px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 21px;
  line-height: 1.5;
}

.text-input-row button {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: var(--jade);
  color: white;
  font-size: 20px;
  font-weight: 800;
}

.talk-bar.text-mode .hold-button {
  display: none;
}

.talk-bar:not(.text-mode) .text-input-row {
  display: none;
}

.page-title {
  padding: 18px 22px 8px;
}

.page-title.compact {
  padding-top: 6px;
}

.page-title h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.page-title p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.plain-stats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 22px 16px;
}

.plain-stats span {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--jade);
  font-size: 19px;
  font-weight: 700;
}

.question-list,
.chapter-list,
.memoir-content {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 0 20px 26px;
}

.question-row,
.chapter-list button {
  width: 100%;
  min-height: 86px;
  display: grid;
  gap: 8px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  padding: 18px;
}

.question-row strong,
.chapter-list button {
  font-size: 21px;
  line-height: 1.45;
}

.question-row span,
.chapter-list span {
  color: var(--muted);
  font-size: 18px;
}

.question-row.current {
  background: var(--jade-soft);
  border-color: rgba(53, 109, 88, 0.22);
}

.question-row.done {
  background: #f5ead4;
}

.book-page {
  margin: 12px 20px 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.book-page span {
  color: var(--jade);
  font-size: 19px;
  font-weight: 700;
}

.book-page h3 {
  margin: 14px 0;
  font-size: 32px;
}

.book-page p {
  margin: 0;
  color: #3f453f;
  font-size: 22px;
  line-height: 1.9;
}

.chapter-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.memoir-actions {
  padding: 8px 20px 14px;
}

.memoir-actions button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: var(--jade);
  color: white;
  font-size: 22px;
  font-weight: 800;
}

.memoir-actions button:disabled {
  opacity: 0.72;
}

.chapter-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chapter-card span {
  color: var(--jade);
  font-size: 18px;
  font-weight: 700;
}

.chapter-card h3 {
  margin: 12px 0;
  font-size: 30px;
  line-height: 1.25;
}

.chapter-card p {
  margin: 0;
  color: #3f453f;
  font-size: 22px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.empty-state {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.7;
}

.subpage-header {
  display: grid;
  grid-template-columns: 82px 1fr 82px;
  align-items: center;
  padding: 22px 20px 4px;
}

.subpage-header button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--jade);
  font-size: 20px;
}

.subpage-header strong {
  text-align: center;
  font-size: 26px;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 18px 20px 12px;
}

.profile-tab {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: #5e655e;
  font-size: 22px;
  font-weight: 800;
}

.profile-tab.active {
  border-color: rgba(53, 109, 88, 0.24);
  background: var(--jade-soft);
  color: var(--jade);
}

.profile-section {
  display: none;
}

.profile-section.active {
  display: block;
}

.profile-list {
  display: grid;
  gap: 18px;
  padding: 8px 20px;
}

.profile-summary {
  display: grid;
  gap: 12px;
  margin: 8px 20px 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
}

.profile-summary[hidden],
.profile-form[hidden] {
  display: none;
}

.profile-summary article {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(41, 50, 43, 0.1);
}

.profile-summary span {
  color: var(--muted);
  font-size: 18px;
}

.profile-summary strong {
  font-size: 24px;
  line-height: 1.35;
}

.profile-summary button {
  min-height: 56px;
  border: 1px solid rgba(53, 109, 88, 0.24);
  border-radius: 18px;
  background: var(--jade-soft);
  color: var(--jade);
  font-size: 22px;
  font-weight: 800;
}

.profile-form {
  display: grid;
  gap: 12px;
  margin: 8px 20px 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
}

.profile-form label {
  font-size: 21px;
  font-weight: 800;
}

.profile-form input,
.profile-form select {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 0 16px;
  font-size: 23px;
}

.gender-choice {
  display: grid;
  gap: 12px;
  border: 0;
  padding: 0;
  margin: 0;
}

.gender-choice legend {
  padding: 0;
  font-size: 21px;
  font-weight: 800;
}

.gender-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gender-card {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
}

.gender-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.gender-card:has(input:checked) {
  border-color: var(--jade);
  background: var(--jade-soft);
  box-shadow: 0 0 0 4px rgba(63, 115, 94, 0.12);
}

.profile-form-actions {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 10px;
}

.profile-form button {
  min-height: 60px;
  border: 0;
  border-radius: 18px;
  background: var(--jade);
  color: white;
  font-size: 23px;
  font-weight: 800;
}

.profile-form button[type="button"] {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: #5e655e;
}

.profile-list article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.profile-group {
  display: grid;
  gap: 12px;
}

.profile-group h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.profile-group-grid {
  display: grid;
  gap: 12px;
}

.profile-list strong {
  display: block;
  margin-bottom: 10px;
  color: var(--jade);
  font-size: 22px;
}

.profile-list p {
  margin: 0;
  font-size: 22px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-value-card {
  cursor: pointer;
}

.profile-value-card.expanded p {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.logout-button {
  min-height: 58px;
  margin: 20px 20px 24px;
  border: 1px solid rgba(185, 77, 60, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--clay);
  font-size: 22px;
  font-weight: 800;
}

@media (max-width: 460px) {
  body {
    display: block;
    background: var(--paper);
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  /* 移动端下将语音开关设为 fixed 定位，防止页面滚动/上滑时跟着滑走 */
  .tts-toggle {
    position: fixed;
    top: 104px; /* 在移动端标题栏下方合适位置悬浮 */
    right: 20px;
  }
}
