/* 心潮念：收音机（情绪）、邮戳（今天亮过的心情）、键盘（驱力）、压辊（此刻在想）、纸条（念头）、折纸（梦） */
.md-page { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 16px calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 26px; }
.md-page > * { flex-shrink: 0; }
.md-sec { display: flex; flex-direction: column; gap: 12px; }
.md-lbl { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--ink-3); text-shadow: var(--deboss-text); padding: 0 2px; }
.md-lbl small { font-size: 11.5px; font-weight: 400; letter-spacing: 0; text-shadow: none; }

/* 收音机 */
.radio { border-radius: 26px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--raise-l); }
.radio-top { display: flex; align-items: center; justify-content: space-between; }
.radio-top .mono { font-size: 11px; letter-spacing: .18em; color: var(--ink-3); text-shadow: var(--deboss-text); }
.radio-top .on { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.radio-top .on i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.radio-top .on.off i { background: var(--ink-4); }
.dial { position: relative; height: 104px; border-radius: 14px; overflow: hidden; background: #EFEAE0;
  box-shadow: inset calc(var(--lx) * 4px) calc(var(--ly) * 6px) 12px rgba(var(--sh), .2), inset 1px 2px 2px rgba(var(--sh), .16), inset calc(var(--lx) * -2px) calc(var(--ly) * -2px) 0 rgba(var(--hi), .95); }
.dial .w { position: absolute; top: 18px; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-serif); font-size: 12.5px; font-weight: 600; color: #8C877D; text-shadow: 0 1px 0 rgba(var(--hi), .9); transition: color .4s, font-size .4s; }
.dial .w.on { font-size: 17px; font-weight: 900; color: var(--accent-ink); }
.dial .ticks { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 26px; display: flex; align-items: flex-end; justify-content: space-between; }
.dial .ticks i { width: 1.5px; height: 11px; border-radius: 1px; background: rgba(var(--sh), .25); }
.dial .ticks i:nth-child(5n+1) { height: 22px; background: rgba(var(--sh), .45); }
.needle { position: absolute; top: 2px; bottom: 6px; width: 10px; margin-left: -5px; transition: left 1.1s cubic-bezier(.34, 1.4, .5, 1); }
.needle::before { content: ''; position: absolute; left: 4px; top: 4px; bottom: 0; width: 2px; border-radius: 1px; background: var(--accent); box-shadow: 1px 0 2px rgba(110, 60, 30, .3); }
.needle::after { content: ''; position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: -1px -1px 0 rgba(255, 255, 255, .6), 1px 2px 3px rgba(110, 60, 30, .3); }
.needle.ghost { opacity: .22; }
.needle.ghost::after { display: none; }
.needle.shake { animation: shake 1.6s ease-in-out infinite; }   /* 矛盾：针停不稳 */
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(5px); } 45% { transform: translateX(-3px); } 70% { transform: translateX(4px); } }
.radio-mid { display: flex; align-items: center; gap: 14px; }
.signal { display: flex; flex-direction: column; gap: 6px; flex: none; }
.signal .bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.signal .bars i { width: 6px; border-radius: 2px; background: #E3DDD1; box-shadow: inset 1px 1px 2px rgba(var(--sh), .15); transition: background .3s; }
.signal .bars i.on { background: var(--accent); box-shadow: -1px -1px 0 rgba(255, 255, 255, .6), 1px 1px 1px rgba(110, 60, 30, .2); }
.signal small { font-size: 11px; color: var(--ink-3); }
.grille { flex: 1; height: 54px; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-content: center; row-gap: 7px; justify-items: center; }
.grille i { width: 5px; height: 5px; border-radius: 50%; background: #E3DDD1; box-shadow: var(--well-in-s); }
.radio-meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.meter { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.meter .face { position: relative; width: 100%; height: 58px; border-radius: 12px; overflow: hidden; background: #F2EEE6; box-shadow: var(--well-in); }
.meter svg { width: 100%; height: 58px; display: block; }
.meter .nd { transition: transform 1.2s cubic-bezier(.34, 1.3, .5, 1); transform-origin: 48px 50px; }
.knob-wrap { position: relative; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; }
.knob-wrap .mono { position: absolute; bottom: 0; font-size: 9px; color: var(--ink-3); }
.knob { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: flex-start; justify-content: center; transition: transform 1.2s cubic-bezier(.34, 1.3, .5, 1); }
.knob i { margin-top: 5px; width: 3px; height: 12px; border-radius: 2px; background: var(--accent); }
.mixed-note { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; color: var(--ink-2); }
.mixed-note .two { display: flex; gap: 2px; flex: none; }
.mixed-note .two i { width: 2px; height: 12px; background: var(--accent); }
.mixed-note .two i:first-child { opacity: .35; }

/* 邮戳 */
.marks { display: flex; gap: 14px; align-items: flex-end; overflow-x: auto; padding: 2px 2px 4px; }
.mark { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.mark .stamp { border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #EFEBE2; box-shadow: var(--well-in-s); outline: 1.5px dashed rgba(var(--sh), .25); outline-offset: -5px; font-family: var(--font-serif); font-weight: 700; color: var(--ink-2); transition: transform .2s; }
.mark[aria-pressed="true"] .stamp { background: var(--paper); box-shadow: var(--raise-s); }
.mark .stamp.hot { color: var(--accent-ink); }
.mark .mono { font-size: 10.5px; color: var(--ink-3); }
.mark-why { align-self: flex-start; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; color: var(--ink-2); }

/* 键盘：前倾、紧挨着、前排压着后排 */
.kb-wrap { position: relative; padding-top: 58px; }
.kb { position: relative; border-radius: 20px; padding: 8px 8px 16px; background: #E4DED2; transform: perspective(900px) rotateX(14deg); transform-origin: 50% 100%;
  box-shadow: inset calc(var(--lx) * 4px) calc(var(--ly) * 6px) 12px rgba(var(--sh), .2), inset 1px 2px 2px rgba(var(--sh), .16), inset calc(var(--lx) * -2px) calc(var(--ly) * -2px) 0 rgba(var(--hi), .95); }
.kb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 3px; padding-top: 22px; }
.key { position: relative; height: 50px; text-align: left; }
.key.wide { grid-column: span 2; }
.key .body { position: absolute; left: 0; right: 0; bottom: -10px; display: flex; flex-direction: column; }
.key .cap { position: relative; z-index: 1; height: 50px; border-radius: 9px 9px 6px 6px; padding: 7px 9px; background: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -3px 6px rgba(var(--sh), .08), 0 0 0 1px rgba(var(--sh), .08); transition: background .15s; }
.key .cap b { font-family: var(--font-serif); font-size: 15px; font-weight: 700; }
.key .cap b.long { font-size: 13px; }
.key .cap .mono { position: absolute; right: 7px; bottom: 5px; font-size: 10px; color: var(--ink-3); }
.key.low .cap b { color: #8C877D; }
.key .skirt { display: block; margin-top: -6px; padding-top: 6px; border-radius: 0 0 10px 10px; background: linear-gradient(#DCD5C8, #CEC6B7); transition: height .12s ease-out; }
.key.on .cap { background: #F1EEE7; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -3px 6px rgba(var(--sh), .16), 0 0 0 1px rgba(var(--sh), .08); }
.key.on .cap b { color: var(--accent); }
.key.on .skirt { height: 3px !important; }
.key:active .skirt { height: 1px !important; }
.key .stem { position: absolute; left: 50%; bottom: 100%; margin-bottom: -14px; width: 8px; height: 44px; transform: translateX(-50%) scaleY(0); transform-origin: 50% 100%; border-radius: 3px; background: #CFC7B8; box-shadow: inset -2px 0 0 rgba(var(--sh), .15); z-index: 4; transition: transform .35s cubic-bezier(.34, 1.5, .5, 1) .08s; }
.key .pop { position: absolute; left: 50%; bottom: 100%; margin-bottom: 26px; transform: translate(-50%, 46px) scale(.6) rotate(-2deg); opacity: 0; padding: 8px 16px 9px; border-radius: 10px; background: #FBFAF6; box-shadow: var(--raise-l); display: flex; align-items: baseline; gap: 8px; white-space: nowrap; z-index: 5; pointer-events: none; transition: transform .45s cubic-bezier(.34, 1.5, .5, 1) .08s, opacity .2s .08s; }
.key .pop b { font-family: var(--font-serif); font-size: 22px; font-weight: 900; }
.key .pop .mono { font-size: 13px; color: var(--accent-ink); }
.key.on .stem { transform: translateX(-50%) scaleY(1); }
.key.on .pop { transform: translate(-50%, 0) scale(1) rotate(-2deg); opacity: 1; }
.drive-card { border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.drive-card .h { display: flex; align-items: baseline; gap: 8px; }
.drive-card .h b { font-family: var(--font-serif); font-size: 16px; font-weight: 700; }
.drive-card .h .mono { font-size: 12px; color: var(--accent-ink); }
.drive-card .h small { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.drive-card p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.vol { display: flex; align-items: flex-end; justify-content: space-between; height: 40px; padding-top: 4px; }
.vol i { width: 4px; border-radius: 2px; background: #CFC7B8; box-shadow: -1px -1px 0 rgba(255, 255, 255, .8), 1px 1px 1px rgba(var(--sh), .18); transform-origin: 50% 100%; animation: grow .5s cubic-bezier(.34, 1.4, .5, 1) both; }
.vol i.recent { background: #B9AF9F; }
.vol i.now { background: var(--accent); }
@keyframes grow { from { transform: scaleY(.1); } to { transform: none; } }
.vol-t { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); margin-top: -2px; }

/* 此刻在想：压辊扫过，一行行压进纸里 */
.think-card { position: relative; border-radius: 18px; padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.think-card .ln { font-family: var(--font-serif); font-size: 16px; font-weight: 600; line-height: 1.6; color: #D8D2C6; text-shadow: none; animation: press-line .5s ease-out forwards; }
@keyframes press-line { to { color: #3A3833; text-shadow: 1px 1px 0 rgba(255, 255, 255, .95), -1px -1px 0 rgba(110, 85, 55, .35); } }
.think-card .roller { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(rgba(var(--sh), .25) 50%, rgba(255, 255, 255, 1) 50%); box-shadow: 0 6px 12px rgba(var(--sh), .12); animation: roll-down var(--dur, 2s) linear forwards; }
@keyframes roll-down { 0% { top: 10px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
.think-card .doing { font-size: 12px; color: var(--ink-3); }
.slip { align-self: flex-end; margin-top: -24px; margin-right: 6px; width: 240px; max-width: 80%; padding: 12px 14px; border-radius: 4px; background: #FBFAF6; transform: rotate(-2.5deg); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--raise-s); animation: drop .6s cubic-bezier(.34, 1.4, .5, 1) both 1.2s; position: relative; z-index: 2; }
@keyframes drop { from { transform: translateY(-30px) rotate(-8deg); opacity: 0; box-shadow: var(--raise-up); } to { transform: rotate(-2.5deg); opacity: 1; } }
.slip small { font-size: 11px; color: var(--ink-3); }
.slip span { font-size: 14px; line-height: 1.6; }

/* 梦：折了一个角的纸 */
.dreams { display: flex; gap: 12px; }
.dream { position: relative; flex: 1; height: 96px; border-radius: 4px; background: #FBFAF6; box-shadow: var(--raise-s); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; text-align: left; }
.dream::before { content: ''; position: absolute; right: 0; top: 0; border-style: solid; border-width: 0 34px 34px 0; border-color: transparent var(--paper) transparent transparent; }
.dream::after { content: ''; position: absolute; right: 0; top: 0; border-style: solid; border-width: 34px 0 0 34px; border-color: transparent transparent transparent #EAE5DB; filter: drop-shadow(-2px 2px 2px rgba(110, 85, 55, .18)); }
.dream .fold { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--crease); }
.dream .mono { position: relative; font-size: 11px; color: var(--ink-3); }
.dream-open { padding: 22px 20px; border-radius: 6px; background: #FBFAF6; box-shadow: var(--raise-s); transform-origin: 50% 0; animation: unfold .7s cubic-bezier(.2, .8, .2, 1) both; position: relative; }
.dream-open::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--crease); opacity: .7; }
@keyframes unfold { 0% { transform: perspective(700px) rotateX(-88deg); } 60% { transform: perspective(700px) rotateX(8deg); } 100% { transform: none; } }
.dream-open p { margin: 0; font-family: var(--font-serif); font-size: 16px; font-weight: 600; line-height: 1.9; position: relative; }
.dream-open .mono { display: block; margin-top: 12px; font-size: 11px; color: var(--ink-3); position: relative; }
.words { display: flex; gap: 18px; flex-wrap: wrap; padding: 0 2px; }
.words span { font-family: var(--font-serif); font-size: 22px; font-weight: 900; color: #E2DCD0; text-shadow: 1px 1px 0 rgba(255, 255, 255, .95), -1px -1px 0 rgba(110, 85, 55, .35); }
