/* 手机 H5：仅影响 899px 以下的视口，桌面保留原 VI。 */
@media(max-width:899px){
 body{--ink:#548caf;--ink-2:#456e8b;--ink-deep:#3d4859;--leaf:#6d9283;--paper:#e9ecef;--sage:#dce4eb;--sage-2:#dfe6ec;--card:#e9ecef;--text:#3d4859;--text-2:#566274;--muted:#68758a;--faint:#7c8897;--line:#d4dbe2;--line-2:#dce2e8;--shadow:7px 7px 16px #bcc3cc99,-7px -7px 16px #fff;--shadow-lg:12px 12px 28px #bcc3cc99,-12px -12px 28px #fff;background:#e9ecef;color:#3d4859}
 body.route-write{overflow:auto;background:#e9ecef}body.route-write #app{height:auto;min-height:100dvh;overflow:visible}body.route-write .main{height:auto;overflow:visible;padding:0 0 calc(126px + env(safe-area-inset-bottom))}
 body::before{background:none!important}.app,.main,.topbar{background:#e9ecef}.topbar{border:0;color:#3d4859}
 .main{padding-bottom:calc(126px + env(safe-area-inset-bottom))}
 .card,.sq-card,.tile,.profile-card{background:#e9ecef;border:0;border-radius:22px;box-shadow:var(--shadow);color:#3d4859}
 .page-title,.card-title,.section-title{color:#3d4859}
 .btn-main,.btn-ghost,.btn{background:#e9ecef;color:#548caf;border:0;box-shadow:5px 5px 12px #bcc3cc99,-5px -5px 12px #fff;border-radius:14px}
 .btn-main:active,.btn-ghost:active,.btn:active{box-shadow:inset 4px 4px 9px #bcc3cc99,inset -4px -4px 9px #fff}
 input:not([type=checkbox]),textarea{background:#e9ecef;color:#3d4859;border:0;box-shadow:inset 4px 4px 9px #bcc3cc99,inset -4px -4px 9px #fff}
 .chip{background:#dde5eb;color:#45647d}.chip.person{background:#dce4eb;color:#45647d}
 .tabbar{width:min(350px,calc(100% - 40px));height:76px;padding:7px 10px;background:#e9ecef;border:0;border-radius:22px;box-shadow:8px 8px 20px #bcc3ccbb,-8px -8px 20px #fff;bottom:calc(18px + env(safe-area-inset-bottom));gap:2px}
 .tabbar a{flex:1;min-width:0;width:auto;height:62px;font-size:11px;color:#68758a;gap:5px}
 .tabbar a .ico,.tabbar a.center .ico{width:40px;height:38px;border-radius:12px;background:transparent;color:inherit;outline:0;box-shadow:none}
 .tabbar a.on,.tabbar a.center.on{color:#548caf}.tabbar a.on .ico,.tabbar a.center.on .ico{background:#e9ecef;color:#548caf;outline:0;border-radius:12px;box-shadow:inset 4px 4px 9px #bcc3ccaa,inset -4px -4px 9px #fff}
 .tabbar a.center{color:#68758a}.tabbar a .ico svg,.tabbar a.center .ico svg{width:21px;height:21px}
 .ph{--ph-lime:#548caf;--ph-dark:#3d4859;--ph-soft:#e9ecef;--ph-muted:#68758a;background:#e9ecef;max-width:480px;height:auto;min-height:100%;padding:8px 18px 24px;overflow:visible}
 .ph-date{margin:10px 5px 0}.ph-date h2{font-size:36px;font-weight:600;letter-spacing:-.025em;line-height:1.1;color:#3d4859;margin:0}
 .ph-date-line{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:9px}.ph-month{font-size:21px;color:#68758a;white-space:nowrap}
 .ph-date .ph-weather{font-size:11px;font-weight:400;min-height:30px;gap:5px;color:#68758a}.ph-sun{width:7px;height:7px;background:#94aabd;box-shadow:none}
 .ph-sub{color:#68758a;font-size:12px;margin-top:10px}
 .deck{flex:none;height:clamp(420px,58dvh,560px);min-height:420px;max-height:none;margin:24px 26px 14px 0}
 .ph-card,.ph-card.is-main,.ph-card.is-mid,.ph-card.is-back{background:#e9ecef;color:#3d4859;border:0;border-radius:24px;box-shadow:8px 8px 20px #b5c0cd99,-8px -8px 20px #fff;padding:22px 20px}
 .ph-card.is-mid{background:#dce3ea;transform:translate(13px,8px) rotate(1.8deg) scale(.96)}
 .ph-card.is-back{background:#d2dce5;transform:translate(26px,16px) rotate(3.6deg) scale(.92)}
 .ph-title{color:#68758a;font-size:10px;letter-spacing:1px}.ph-title strong{color:#3d4859;font-size:24px;line-height:1.4;margin-top:7px}.ph-star{color:#548caf}
 .ph-entry{margin-top:15px;min-height:130px}.ph-entry textarea{padding:14px;box-sizing:border-box;font-size:16px;line-height:1.8;color:#3d4859;border-radius:15px;background:#e9ecef;height:100%;min-height:130px}.ph-entry textarea::placeholder{color:#788597}
 .ph-foot{align-items:center;margin-top:18px;gap:10px}.ph-moods{gap:10px}.ph-mood{background:#e9ecef;color:#68758a;width:44px;height:44px;min-width:44px;flex-shrink:0;border-radius:50%;box-shadow:4px 4px 9px #bcc3cc99,-4px -4px 9px #fff}
 .ph-mood.selected{color:#548caf;box-shadow:inset 3px 3px 7px #bcc3ccaa,inset -3px -3px 7px #fff}
 .ph-pub{margin-left:auto;display:flex;align-items:center;gap:6px;min-height:44px;padding:0;font-family:inherit;font-size:12px;color:#68758a;background:transparent;border:0;box-shadow:none;flex-shrink:0}
 .ph-pub-track{display:block;position:relative;width:34px;height:21px;border-radius:12px;background:#d5dce3;box-shadow:inset 2px 2px 4px #b5c0cc88,inset -2px -2px 4px #fff}
 .ph-pub-track::after{content:'';position:absolute;width:15px;height:15px;left:3px;top:3px;border-radius:50%;background:#f8fafc;box-shadow:1px 1px 3px #9eaabb66;transition:transform .16s}
 .ph-pub.on .ph-pub-track{background:#548caf;box-shadow:none}.ph-pub.on .ph-pub-track::after{transform:translateX(13px)}
 .ph-track{background:#e9ecef;color:#548caf;border:0;border-radius:16px;box-shadow:5px 5px 12px #bcc3cc99,-5px -5px 12px #fff;height:48px}.ph-knob{background:transparent;color:#548caf;box-shadow:none}.ph-track span{color:#548caf;font-size:14px;letter-spacing:1px}
 .ph-card.is-main .pec-head b{color:#548caf}.ph-card.is-main .pec-text,.ph-card.is-mid .pec-text,.ph-card.is-back .pec-text{color:#3d4859;line-height:1.9}.ph-card.is-main .pec-tags{color:#68758a}
 .ph-hint,.ph-recent{color:#68758a}.ph-recent{margin-bottom:20px}
 .modal,.lock-mask{background:#e9ecef}.sq-example-note{color:#68758a}
 @media(max-width:360px){.ph{padding-left:14px;padding-right:14px}.ph-card{padding:18px 15px}.ph-moods{gap:6px}.ph-mood{width:40px;min-width:40px;height:44px}.ph-pub{gap:4px}.ph-foot{gap:6px}}
}
