@media (max-width: 620px) {
  .button-primary { min-height: 68px; padding-right: 38px; padding-left: 38px; background-image: var(--image2-button-compact); }
  .mobile-app-shell { min-height: 100svh; padding-bottom: calc(78px + env(safe-area-inset-bottom)); background: transparent; }
  /* 顶栏是移动端的固定阅读起点；给它一层轻纸色，避免资料夹素材绘制到顶栏文字上。 */
  .mobile-header { position: relative; z-index: 30; height: 54px; padding: 16px 18px 0; background: rgba(245, 238, 226, 0.9); backdrop-filter: blur(10px); }
  .mobile-header.is-task-mode { display: none; }
  .mobile-brand { min-height: 34px; font-size: 14px; }
  .mobile-page { width: 100%; margin: 0; padding: 0 18px 28px; }
  .mobile-page h1 { letter-spacing: 0; }
  .mobile-nav { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; height: calc(68px + env(safe-area-inset-bottom)); grid-template-columns: repeat(3, minmax(0,1fr)); padding: 7px 20px env(safe-area-inset-bottom); background: rgba(255,253,248,0.93); box-shadow: 0 -8px 28px rgba(54,43,29,0.08); backdrop-filter: blur(18px); }
  .mobile-nav-link { display: flex; min-width: 0; min-height: 42px; align-items: center; justify-content: center; border: 0; padding: 3px; color: var(--ink-faint); background: transparent; font-size: 12px; }
  .mobile-nav-link.is-active { color: var(--brand); font-weight: 680; }

  .mobile-home { position: relative; min-height: calc(100svh - 130px); padding-top: 190px; }
  .mobile-welcome-art { position: absolute; top: -25px; right: 0; left: 0; height: 220px; overflow: hidden; pointer-events: none; }
  .mobile-welcome-art .cat-portrait { width: 205px; margin: 0 auto; }
  .mobile-welcome-copy h1 { margin-bottom: 14px; font-size: 34px; line-height: 1.22; font-weight: 680; }
  .mobile-welcome-copy > p:last-child { margin-bottom: 22px; color: var(--ink-soft); font-size: 15px; }
  .mobile-main-action { width: 100%; }
  .mobile-quiet-entries { margin-top: 19px; border-top: 1px solid var(--line); }
  .mobile-quiet-entries button { display: grid; width: 100%; grid-template-columns: minmax(0,0.8fr) minmax(0,1.2fr); gap: 16px; border: 0; border-bottom: 1px solid var(--line); padding: 15px 0; color: var(--ink); background: transparent; text-align: left; }
  .mobile-quiet-entries strong { font-size: 14px; }
  .mobile-quiet-entries span { color: var(--ink-soft); font-size: 12px; line-height: 1.55; }

  .mobile-task-page { min-height: 100svh; margin: 0 -18px -28px; padding: 12px 18px calc(92px + env(safe-area-inset-bottom)); background: rgba(247, 242, 232, 0.5); }
  .mobile-task-head { position: sticky; z-index: 12; top: 0; display: grid; height: 42px; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--ink-faint); background: rgba(255,253,248,0.76); font-size: 12px; }
  .mobile-task-head button { border: 0; padding: 8px 0; color: var(--ink-soft); background: transparent; }
  .mobile-close { justify-self: start; }
  .mobile-skip { justify-self: end; }
  .mobile-listener { height: 125px; overflow: hidden; }
  .mobile-listener .cat-portrait { width: 140px; margin: -16px auto 0; }
  .mobile-question-sheet { min-height: 590px; padding: 48px 34px 96px; background: transparent var(--image2-answer-mobile) center top / 100% 100% no-repeat; }
  .mobile-question-sheet h1 { margin-bottom: 12px; font-size: 27px; line-height: 1.42; font-weight: 650; }
  .mobile-prompt { margin-bottom: 22px; color: var(--ink-soft); font-size: 14px; }
  .mobile-answer { min-height: 180px; font-size: 16px; line-height: 1.75; }
  .mobile-thumb-action { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,253,248,0.86); box-shadow: 0 -8px 24px rgba(54,43,29,0.08); }
  .mobile-thumb-action .button { width: 100%; }

  .mobile-note-page, .mobile-paper-page { position: relative; min-height: calc(100svh - 110px); padding: 20px 2px 28px; }
  .mobile-flow-toolbar { display: flex; min-height: 34px; align-items: center; margin-bottom: 5px; }
  .mobile-flow-toolbar button { border: 0; padding: 7px 10px; color: var(--ink); background: rgba(255, 253, 248, 0.82); font-size: 13px; }
  .mobile-note-page h1, .mobile-paper-page h1 { margin-bottom: 10px; font-size: 30px; line-height: 1.3; font-weight: 680; }
  .mobile-complete-cat { height: 145px; overflow: hidden; }
  .mobile-complete-cat .cat-portrait { width: 160px; margin: -15px auto 0; }
  .mobile-feedback-note { display: grid; grid-template-rows: 1.35fr 0.78fr 0.78fr; gap: 12px; min-height: 890px; margin-top: 22px; padding: 76px 42px 73px; background: transparent var(--image2-feedback-mobile) center / 100% 100% no-repeat; }
  .mobile-feedback-note section { padding: 5px 2px; border: 0; }
  .mobile-feedback-note h2 { margin-bottom: 7px; font-size: 15px; }
  .mobile-feedback-note p { margin: 0; font-size: 15px; line-height: 1.78; }
  .mobile-note-actions { display: grid; gap: 10px; margin-top: 24px; }
  .mobile-note-actions .button, .mobile-note-actions .text-action { width: 100%; }
  .mobile-page-cat { float: right; width: 100px; height: 95px; margin: -8px 0 0 10px; overflow: hidden; }
  .mobile-page-cat .cat-portrait { width: 110px; }
  .mobile-material-page { min-height: 1140px; padding: 62px 38px 76px; background: transparent var(--image2-folder-mobile) center top / 100% 100% no-repeat; }
  .mobile-material-page .mobile-page-cat { margin-right: 7px; }
  .mobile-material-page .section-intro { max-width: 76%; }
  .mobile-form-fields { clear: both; padding-top: 29px; }
  .mobile-form-fields .text-area { min-height: 140px; font-size: 16px; }
  .mobile-material-page .form-field:nth-child(2) { margin-top: 46px; }
  .mobile-material-page .form-field:nth-child(2) .field-label { color: rgba(255, 255, 255, 0.93); }
  .mobile-material-page .form-field:nth-child(2) .text-area { color: #fff; border-bottom-color: rgba(255,255,255,0.58); background: rgba(12, 48, 107, 0.14); }
  .mobile-material-page .form-field:nth-child(2) .text-area::placeholder { color: rgba(255,255,255,0.68); }
  .mobile-paper-page > .mobile-main-action { margin-top: 28px; }
  .mobile-clue-page { min-height: 1190px; padding: 64px 40px 78px; background: transparent var(--image2-clue-mobile) center top / 100% 100% no-repeat; }
  .mobile-clue-page .room-label, .mobile-clue-page h1, .mobile-clue-page .section-intro, .mobile-clue-page .insight-group:first-child, .mobile-clue-page .insight-group:first-child h2, .mobile-clue-page .insight-group:first-child h3, .mobile-clue-page .insight-group:first-child p { color: #fff; }
  .mobile-clue-page .insight-groups { margin-top: 30px; }
  .mobile-clue-page .insight-group { border: 0; padding: 18px; }
  .mobile-clue-page .insight-group:first-child { background: rgba(34, 81, 137, 0.78); }
  .mobile-clue-page .insight-group:nth-child(2), .mobile-clue-page .insight-group:nth-child(3) { color: var(--ink); background: rgba(250, 247, 239, 0.94); }
  .mobile-clue-page .insight-group:nth-child(2) h2, .mobile-clue-page .insight-group:nth-child(2) h3, .mobile-clue-page .insight-group:nth-child(2) p, .mobile-clue-page .insight-group:nth-child(3) h2, .mobile-clue-page .insight-group:nth-child(3) h3, .mobile-clue-page .insight-group:nth-child(3) p { color: var(--ink); }
  .mobile-clue-page .insight-group:nth-child(2) { margin-top: 42px; }
  .mobile-clue-page .insight-group:nth-child(3) { margin-top: 28px; }
  .mobile-report-page { min-height: 1080px; padding: 60px 40px 70px; background: transparent var(--image2-feedback-mobile) center top / 100% 100% no-repeat; }
  .mobile-report-page .insight-groups { margin-top: 30px; }
  .mobile-report-page .insight-group { border: 0; padding: 18px; background: rgba(250, 247, 239, 0.94); }
  .mobile-report-page .insight-group:nth-child(2) { margin-top: 32px; color: var(--ink); }
  .mobile-report-page .insight-group:nth-child(2) h2, .mobile-report-page .insight-group:nth-child(2) h3, .mobile-report-page .insight-group:nth-child(2) p { color: var(--ink); }
  .mobile-results-page .insight-groups { margin-top: 30px; }
  .mobile-result-cat { height: 118px; overflow: hidden; }
  .mobile-result-cat .cat-portrait { width: 135px; margin: -13px auto 0; }
  .insight-group { display: block; padding: 22px 0; }
  .insight-group > h2 { margin-bottom: 16px; }
  .mobile-results-page > .text-action { display: block; width: 100%; margin-top: 10px; padding: 10px; color: var(--ink); background: rgba(255, 253, 248, 0.88); }
  .mobile-history-page { min-height: 980px; padding: 58px 40px 68px; background: transparent var(--image2-answer-mobile) center top / 100% 100% no-repeat; }
  .mobile-history-list { margin-top: 30px; }
  .mobile-history-item { padding: 22px 0; border-top: 1px solid var(--line); }
  .mobile-history-item > span { color: var(--ink-faint); font-size: 11px; }
  .mobile-history-item h2 { margin: 7px 0 5px; font-size: 16px; line-height: 1.5; }
  .mobile-history-item p { display: -webkit-box; margin-bottom: 7px; overflow: hidden; color: var(--ink-soft); font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .privacy-notice { clear: both; }
}

@media (max-width: 350px) {
  .mobile-page { padding-right: 14px; padding-left: 14px; }
  .mobile-welcome-copy h1 { font-size: 30px; }
  .mobile-task-page { margin-right: -14px; margin-left: -14px; padding-right: 14px; padding-left: 14px; }
}
