:root{
  --navy:#0B2648;
  --red:#EF4243;
  --cream:#F1F0EC;
  --side:#EAE6DE;
  --card:#FFFFFF;
  --grey:#7D838B;
  --ink:#3E3E3E;
  --muted:#6F6F6F;
  --line:#E7E4DD;
  --r:14px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--cream);color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  min-height:100dvh;
}
body.lock{overflow:hidden}
button{font-family:inherit;color:inherit;appearance:none;border:0;background:none;padding:0;cursor:pointer}
button:disabled{opacity:.5}
.shell{display:flex;min-height:100dvh}

/* sidebar */
.side{
  width:276px;flex:none;background:var(--side);
  padding:calc(18px + env(safe-area-inset-top)) 14px 24px;
  display:flex;flex-direction:column;gap:2px;
}
.side-top{display:flex;align-items:center;justify-content:space-between;padding:0 6px 14px}
.side-date{font-size:11.5px;color:var(--navy);letter-spacing:.02em}
.side-date span{color:#6B6459;margin-left:6px}
.iconbtn{display:grid;place-items:center}
.side-top .iconbtn{width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.55)}
.side-top svg{width:17px;height:17px;stroke:var(--navy);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nav{width:100%;display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:22px;font-size:15px;color:var(--navy);text-align:left}
.nav svg{width:19px;height:19px;stroke:var(--navy);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.nav span{flex:1}
.nav em{font-style:normal;font-size:12.5px;color:#7C756A}
.nav.on{background:#D8D3CA}
.years-label{font-size:11.5px;color:#7C756A;padding:22px 12px 8px;letter-spacing:.03em}
.years{display:flex;flex-direction:column}
.years button{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;font-size:14.5px;color:var(--navy);border-radius:10px}
.years button em{font-style:normal;font-size:12.5px;color:#7C756A}
.years button.on{font-weight:600}
.years button:active{background:rgba(255,255,255,.4)}

/* main */
.main{flex:1;min-width:0;padding:calc(16px + env(safe-area-inset-top)) 24px calc(120px + env(safe-area-inset-bottom));max-width:1120px;margin:0 auto}
.top{display:flex;align-items:center;justify-content:space-between;min-height:40px}
.top .left{display:none}
.round{width:44px;height:44px;border-radius:50%;background:#fff;display:grid;place-items:center;
  box-shadow:0 2px 10px rgba(11,38,72,.07),inset 0 0 0 1px rgba(11,38,72,.04)}
.round svg{width:20px;height:20px;stroke:var(--navy);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.top-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.seg{display:flex;background:#fff;border-radius:22px;padding:4px;box-shadow:0 2px 10px rgba(11,38,72,.07)}
.seg button{width:40px;height:34px;border-radius:17px;display:grid;place-items:center}
.seg button.on{background:#EDEBE5}
.seg svg{width:18px;height:18px;stroke:var(--navy);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.avatar{width:38px;height:38px;border-radius:50%;background:#fff;display:grid;place-items:center;
  box-shadow:0 2px 10px rgba(11,38,72,.07),inset 0 0 0 1px rgba(11,38,72,.05)}
.avatar svg{width:19px;height:19px;stroke:var(--navy);fill:none;stroke-width:1.7;stroke-linecap:round}

h1{font-size:34px;line-height:1.15;color:var(--navy);font-weight:700;letter-spacing:.02em;margin:18px 0 16px}

/* stats */
.stats{background:var(--card);border-radius:var(--r);padding:14px 18px;box-shadow:0 1px 2px rgba(11,38,72,.04)}
.stats-row{display:grid;grid-template-columns:repeat(3,1fr)}
.stat label{display:block;font-size:12.5px;color:#5B5B5B;letter-spacing:.02em}
.stat b{display:block;font-size:32px;line-height:1.3;color:var(--navy);font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.01em}
.stat+.stat{padding-left:16px;border-left:1px solid var(--line)}
.bar{display:flex;height:4px;border-radius:2px;overflow:hidden;margin-top:10px;background:#E4E0D8}
.bar i{display:block;height:100%}
.stitch{display:flex;gap:5px;margin-top:12px;height:4px;overflow:hidden}
.stitch i{display:block;height:4px;flex:1;border-radius:2px}
.section-label{font-size:12.5px;color:var(--navy);margin:20px 2px 8px;letter-spacing:.02em}

/* year card */
.yearcard{background:var(--card);border-radius:var(--r);padding:15px 18px 16px;box-shadow:0 1px 2px rgba(11,38,72,.04)}
.yearcard h3{font-size:26px;color:var(--navy);font-weight:700;line-height:1.1;margin:0}
.yearcard p{font-size:10.5px;color:#5B5B5B;margin:3px 0 11px}
.bar6{display:flex;height:6px;border-radius:3px;overflow:hidden;background:#E4E0D8}
.bar6 i{display:block;height:100%}

/* months */
.months{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px}
@media(min-width:760px){.months{grid-template-columns:1fr 1fr}}
.month{background:var(--card);border-radius:var(--r);padding:16px 16px 14px;box-shadow:0 1px 2px rgba(11,38,72,.04)}
.mhead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.mhead>div{flex:1;min-width:0}
.mtitle{font-size:24px;font-weight:700;color:var(--navy);line-height:1.15;letter-spacing:.02em}
.mtitle small{font-size:11px;font-weight:400;color:#8A8A8A;margin-left:6px;letter-spacing:.02em;vertical-align:top;line-height:1.7}
.mcap{font-size:11px;color:#6B6B6B;line-height:1.6;margin:6px 0 12px;padding-right:8px}
.share{width:28px;height:28px;border-radius:50%;background:#F3F1EB;display:grid;place-items:center;flex:none}
.share svg{width:14px;height:14px;stroke:#555;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;padding-bottom:10px}
.gcell{aspect-ratio:1/1;border:0;padding:0;border-radius:6px;background:var(--cream);position:relative;appearance:none;cursor:default}
.gcell.m0{background:var(--navy)}
.gcell.m1{background:var(--red)}
.gcell.m2{background:var(--grey)}
.gcell.today::after{content:"";position:absolute;right:2px;bottom:-8px;width:6px;height:6px;border-radius:50%;background:var(--red);box-shadow:0 0 0 2px #fff}

/* float */
.fab{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom));width:56px;height:56px;border-radius:50%;
  background:var(--red);display:grid;place-items:center;z-index:30;box-shadow:0 10px 24px rgba(239,66,67,.35)}
.fab svg{width:24px;height:24px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fabbar{position:fixed;left:0;right:0;bottom:calc(20px + env(safe-area-inset-bottom));display:flex;justify-content:center;pointer-events:none;z-index:30}
.pill{pointer-events:auto;display:flex;background:#fff;border-radius:28px;padding:6px;gap:4px;box-shadow:0 10px 24px rgba(11,38,72,.14)}
.pill button{width:48px;height:44px;border-radius:22px;display:grid;place-items:center}
.pill button.on{background:#EDEBE5}
.pill svg{width:19px;height:19px;stroke:var(--navy);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* drawer */
.drawer-mask{position:fixed;inset:0;background:rgba(11,38,72,.28);opacity:0;pointer-events:none;transition:opacity .22s;z-index:40}
.drawer-mask.show{opacity:1;pointer-events:auto}

.empty{background:#fff;border-radius:var(--r);padding:28px 20px;text-align:center;margin-top:8px}
.empty p{color:var(--muted);font-size:14px;margin:0 0 16px;line-height:1.7}
.btn{border-radius:999px;background:var(--navy);color:#fff;font-size:15px;font-weight:500;padding:13px 22px}
.btn.red{background:var(--red)}
.btn.ghost{background:#fff;color:var(--navy);box-shadow:inset 0 0 0 1px var(--line)}
.toast{position:fixed;left:50%;top:calc(16px + env(safe-area-inset-top));transform:translate(-50%,-10px);background:rgba(11,38,72,.94);color:#fff;
  font-size:13px;padding:10px 16px;border-radius:999px;opacity:0;transition:.2s;pointer-events:none;z-index:120}
.toast.show{opacity:1;transform:translate(-50%,0)}
.placeholder{background:#fff;border-radius:var(--r);padding:40px 24px;text-align:center;color:var(--muted);font-size:14px}

/* today block */
.todaycard{background:var(--navy);border-radius:var(--r);padding:16px 18px;color:#fff;box-shadow:0 1px 2px rgba(11,38,72,.06)}
.todaycard .tmeta{font-size:11px;color:rgba(255,255,255,.65);letter-spacing:.04em}
.todaycard p{margin:8px 0 0;font-size:14px;line-height:1.85;color:#fff;white-space:pre-wrap}
.todaycard .moodname{font-size:11px;color:rgba(255,255,255,.55);margin-top:10px;letter-spacing:.04em}
.todayprompt{background:#fff;border-radius:var(--r);padding:18px;box-shadow:0 1px 2px rgba(11,38,72,.04)}
.todayprompt .q{font-size:12.5px;color:#5B5B5B;margin:0 0 14px}
.moodpick{display:flex;gap:14px}
.moodpick button{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px;color:#5B5B5B}
.moodpick .cap{width:26px;height:42px;border-radius:13px;position:relative;background:linear-gradient(180deg,var(--c) 0 48%,#fff 52% 100%);box-shadow:inset 0 0 0 1px rgba(11,38,72,.12)}
.moodpick button.on{background:#EDE9E1;border-radius:12px}
.moodpick .cap::after{content:"";position:absolute;left:15%;right:15%;top:50%;height:1px;background:rgba(11,38,72,.16)}

/* tiles */
.tiles{display:flex;gap:10px;flex-wrap:wrap}
.tile{width:58px;height:58px;border-radius:12px;border:1px dashed rgba(11,38,72,.35);background:rgba(255,255,255,.5);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11.5px;color:var(--navy)}
.tile em{font-style:normal;font-size:9.5px;color:#8A8478}
.tile.q{background:#E3E1DB;border:0;color:#6C6C6C;font-size:20px;font-weight:700}
.tsec{background:#fff;border-radius:var(--r);padding:16px;box-shadow:0 1px 2px rgba(11,38,72,.04);margin-top:10px}
.tsec-head{font-size:12.5px;color:var(--navy);margin:0 0 10px;letter-spacing:.02em}
.tsec-head+.tsec-head{margin-top:16px}
.tsec .hint{font-size:11px;color:#8A8478;margin:8px 0 0}

/* timeline */
.envgrid{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:900px){.envgrid{grid-template-columns:1fr 1fr}}
.timeline{display:grid;grid-template-columns:1fr;gap:10px;margin-top:10px}
@media(min-width:760px){.timeline{grid-template-columns:1fr 1fr}}
.tlcard{background:#fff;border-radius:var(--r);padding:14px 16px;text-align:left;display:flex;gap:12px;align-items:flex-start;
  box-shadow:0 1px 2px rgba(11,38,72,.04)}
.tl-main{flex:1;min-width:0}
.tl-date{font-size:10.5px;color:#8A8478;letter-spacing:.03em}
.tl-text{font-size:12.5px;line-height:1.7;color:#3E3E3E;margin:5px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tlcap{width:18px;height:30px;border-radius:9px;flex:none;background:linear-gradient(180deg,var(--c) 0 48%,#fff 52% 100%);box-shadow:inset 0 0 0 1px rgba(11,38,72,.12)}

/* envelope */
.env{position:relative;border-radius:14px;padding:14px 16px 26px;margin-bottom:12px;overflow:hidden;
  background:linear-gradient(180deg,#FBF7ED,#F6F0E3);box-shadow:0 1px 2px rgba(11,38,72,.05);text-align:left;width:100%}
.env::after{content:"";position:absolute;left:10px;right:10px;bottom:9px;height:4px;
  background-image:repeating-linear-gradient(90deg,var(--navy) 0 9px,transparent 9px 16px),repeating-linear-gradient(90deg,transparent 0 16px,var(--red) 16px 25px,transparent 25px 32px);
  background-size:32px 4px,32px 4px;background-repeat:repeat-x}
.env-main{display:flex;gap:12px;align-items:flex-start}
.env-info{flex:1;min-width:0}
.env-meta{font-size:10.5px;color:#6B6357;letter-spacing:.02em}
.env-label{font-size:10.5px;color:#6B6357;margin-top:10px}
.env-num{display:flex;align-items:baseline;gap:3px;color:var(--red);font-weight:700;line-height:1.1;margin-top:2px}
.env-num b{font-size:44px;letter-spacing:.01em}
.env-num span{font-size:13px;font-weight:600}
.env-num.arrived b{font-size:26px}
.envcap{width:22px;height:38px;border-radius:11px;flex:none;position:relative;
  background:linear-gradient(180deg,var(--red) 0 45%,var(--navy) 45% 100%)}
.envcap i{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:16px;height:16px;border-radius:50%;background:var(--navy);
  display:grid;place-items:center}
.envcap i svg{width:9px;height:9px;stroke:#fff;fill:none;stroke-width:1.6}
.env.red{background:linear-gradient(180deg,#F04B49,#E93F41)}
.env.red::after{background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.65) 0 9px,transparent 9px 16px),repeating-linear-gradient(90deg,transparent 0 16px,rgba(11,38,72,.35) 16px 25px,transparent 25px 32px)}
.env.red .env-meta{color:rgba(255,255,255,.8)}
.env.red .envcap{background:linear-gradient(180deg,#fff 0 45%,rgba(11,38,72,.6) 45% 100%)}
.env.red .envcap i{background:rgba(255,255,255,.85)}
.env.red .envcap i svg{stroke:var(--navy)}
.stamp{font-size:36px;font-weight:800;color:rgba(255,255,255,.92);letter-spacing:.02em;line-height:1.25;transform:rotate(-3deg);margin:10px 0 26px;white-space:nowrap;overflow:hidden}

/* screens */
.screen{position:fixed;inset:0;z-index:70;overflow:auto;background:var(--cream);display:flex;flex-direction:column}
.screen.navy{background:var(--navy);color:#fff}
.screen .close{position:absolute;left:16px;top:calc(14px + env(safe-area-inset-top));width:42px;height:42px;border-radius:50%;
  background:rgba(112,112,118,.78);display:grid;place-items:center;z-index:5;backdrop-filter:blur(10px)}
.screen .more{position:absolute;right:16px;top:calc(14px + env(safe-area-inset-top));width:42px;height:42px;border-radius:50%;
  background:rgba(112,112,118,.78);display:grid;place-items:center;z-index:5;backdrop-filter:blur(10px)}
.screen .close svg,.screen .more svg{width:17px;height:17px;stroke:var(--navy);fill:none;stroke-width:1.8;stroke-linecap:round}
.screen.navy .close svg,.screen.navy .more svg{stroke:#fff}
.screen .backdrop{position:absolute;inset:0;z-index:-1}

/* letter */
.letter{background:var(--cream);min-height:100dvh;display:flex;flex-direction:column}
.lnav{display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top)) 16px 8px;position:sticky;top:0;z-index:6;background:var(--cream)}
.lnav .center{font-size:17px;font-weight:600;color:var(--navy);letter-spacing:.02em}
.circle{width:42px;height:42px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 2px 10px rgba(11,38,72,.08)}
.circle svg{width:18px;height:18px;stroke:var(--navy);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.circle.red{background:var(--red);box-shadow:0 6px 16px rgba(239,66,67,.35)}
.circle.red svg{stroke:#fff;stroke-width:2.2}
.paper{margin:6px 10px 20px;background:#fff;border-radius:10px;padding:16px 18px 40px;
  background-image:radial-gradient(#F1EEE8 .9px,transparent 1px);background-size:8px 8px;flex:1}
.hero{height:120px;border-radius:8px;background:var(--navy);display:grid;place-items:center;overflow:hidden;position:relative;margin-bottom:18px}
.hero img{width:100%;height:100%;object-fit:cover;display:block}
.hero svg{width:34px;height:34px;stroke:#fff;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.titleinput{width:100%;border:0;background:transparent;outline:none;font-family:inherit;font-size:34px;font-weight:700;color:var(--navy);letter-spacing:.02em;line-height:1.3;padding:0;margin:2px 0 10px}
.titleinput::placeholder{color:#C3BDB1}
.bodytext{width:100%;border:0;background:transparent;outline:none;font-family:inherit;font-size:15px;line-height:1.95;color:#4A4A4A;resize:none;min-height:46vh;padding:0}
.bodytext::placeholder{color:#B9B3A8}
.photostrip{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 4px}
.thumb{width:66px;height:66px;border-radius:10px;overflow:hidden;position:relative;background:#EEEBE4}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb button{position:absolute;right:3px;top:3px;width:18px;height:18px;border-radius:50%;background:rgba(11,38,72,.6);color:#fff;font-size:10px;line-height:1}

/* opened */
.opened{min-height:100dvh;background:linear-gradient(180deg,#0B2648 0%,#07162A 100%);color:#fff}
.ohero{background:var(--red);color:var(--navy);min-height:300px;box-sizing:border-box;padding:calc(72px + env(safe-area-inset-top)) 22px 92px;clip-path:polygon(0 0,100% 0,100% 82%,0 100%);display:flex;flex-direction:column;justify-content:flex-end}
.ohero .dates{font-size:11px;line-height:1.9;letter-spacing:.03em}
.obody{padding:8px 22px 120px;flex:1}
.obody h2{font-size:34px;font-weight:700;color:#fff;letter-spacing:.02em;margin:14px 0 18px;line-height:1.3}
.obody p{font-size:15px;line-height:1.95;color:rgba(255,255,255,.94);white-space:pre-wrap;margin:0}
.obody .photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.obody .photo-grid img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px}
.oshare{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(24px + env(safe-area-inset-bottom));width:46px;height:46px;border-radius:50%;
  background:#24395E;display:grid;place-items:center}
.oshare svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* memory */
.memory{min-height:100dvh;background:#07162A;color:#fff;padding:calc(74px + env(safe-area-inset-top)) 16px 90px}
.mcard{background:#0E2A50;border-radius:12px;padding:26px 20px 40px;min-height:calc(100dvh - 230px)}
.mdate{font-size:30px;font-weight:700;color:#fff;letter-spacing:.03em;margin:6px 0 18px}
.mtext{font-size:15px;line-height:1.95;color:rgba(255,255,255,.94);white-space:pre-wrap;margin:0}
.memory .photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.memory .photo-grid img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px}

/* dialog */
.modal{position:fixed;inset:0;z-index:90;background:rgba(11,38,72,.32);display:grid;place-items:center;padding:24px}
.dialog{width:min(300px,100%);background:#fff;border-radius:14px;padding:22px 20px 16px;text-align:center;box-shadow:0 24px 60px rgba(11,38,72,.25)}
.dialog .dcap{width:24px;height:42px;border-radius:12px;margin:0 auto 12px;background:linear-gradient(180deg,var(--red) 0 45%,var(--navy) 45%)}
.dialog .capno{font-size:10.5px;letter-spacing:.18em;color:#8B8579;margin:0 0 6px}
.dialog h3{font-size:20px;font-weight:700;color:var(--navy);margin:0 0 10px;line-height:1.35}
.dialog .dmeta{font-size:11.5px;color:#5B5B5B;line-height:1.9;margin:0 0 14px}
.dialog .btn{width:100%;border-radius:10px;padding:12px 16px}
.dialog .cancel{display:block;width:100%;margin-top:10px;font-size:13px;color:#8B8579;text-align:center}
.dialog .count{font-size:34px;font-weight:700;color:var(--navy);margin:2px 0 0}
.dialog .count span{font-size:12px;font-weight:400;color:#6F6F6F;margin-left:4px}

/* sheet */
.sheet-mask{position:fixed;inset:0;z-index:85;background:rgba(11,38,72,.32);display:flex;align-items:flex-end;justify-content:center}
.sheet{width:min(520px,100%);background:#FBF8F2;border-radius:22px 22px 0 0;padding:20px 20px calc(24px + env(safe-area-inset-bottom));max-height:88dvh;overflow:auto}
@media(min-width:600px){.sheet-mask{align-items:center}.sheet{border-radius:22px;max-height:82dvh}}
.sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}
.sheet-head h3{font-size:19px;font-weight:700;color:var(--navy);margin:2px 0 0}
.sheet .x{width:32px;height:32px;border-radius:50%;background:#EDE9E1;color:var(--navy);font-size:13px}
.sheet textarea{width:100%;border:1px solid var(--line);border-radius:14px;background:#fff;padding:14px;font-family:inherit;font-size:15px;line-height:1.85;color:#3E3E3E;outline:none;min-height:140px;resize:vertical;margin-top:12px}
.sheet .row{display:flex;gap:10px;margin-top:14px}
.sheet .row .btn{flex:1}
.listrow{display:flex;justify-content:space-between;align-items:center;width:100%;padding:15px 4px;font-size:14.5px;color:var(--navy);border-bottom:1px solid var(--line);text-align:left}
.listrow:last-child{border-bottom:0}
.listrow span{color:#9A9385;font-size:12px}

@media(max-width:860px){
  .side{position:fixed;left:0;top:0;bottom:0;z-index:45;transform:translateX(-102%);transition:transform .26s ease;
    width:280px;padding-top:calc(24px + env(safe-area-inset-top));box-shadow:20px 0 60px rgba(11,38,72,.16)}
  .side.open{transform:none}
  .main{padding:calc(10px + env(safe-area-inset-top)) 20px calc(110px + env(safe-area-inset-bottom))}
  .top .left{display:block}
  .top-actions .seg{display:none}
  .top{min-height:44px}
  h1{font-size:32px;margin:14px 0 14px}
  .stat b{font-size:30px}
  .fab{right:18px;bottom:calc(18px + env(safe-area-inset-bottom))}
  .opened .obody h2{font-size:30px}
  .obody{padding-left:20px;padding-right:20px}
  .ohero{padding-left:20px;padding-right:20px}
}
@media(min-width:861px){
  .fabbar{display:none}
  .drawer-mask{display:none}
  .letter .paper{max-width:760px;width:calc(100% - 48px);margin:10px auto 28px}
  .lnav{max-width:760px;margin:0 auto;width:100%}
  .opened .ohero,.opened .obody{max-width:760px;width:100%;margin:0 auto}
  .memory .mwrap{max-width:760px;margin:0 auto}
}
/* 胶囊日签 */
.sign{background:radial-gradient(720px 480px at 18% -8%,#33467E 0%,rgba(51,70,126,0) 62%),linear-gradient(180deg,#182A52 0%,#0B2648 42%,#07162A 100%);color:#fff;padding:0 0 calc(110px + env(safe-area-inset-bottom))}
.sign-top{display:flex;align-items:center;justify-content:space-between;padding:calc(14px + env(safe-area-inset-top)) 18px 0}
.sback{display:flex;align-items:center;gap:2px;color:rgba(255,255,255,.88);font-size:13.5px;letter-spacing:.02em}
.sback svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sicon{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.12);display:grid;place-items:center}
.sicon svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sign h1{color:#fff;font-size:34px;margin:18px 20px 16px}
.sign-panel{margin:0 18px;display:flex;gap:14px;align-items:flex-start;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:14px 16px}
.sp-main{flex:1;min-width:0}
.sp-title{margin:0;font-size:14.5px;color:#fff;letter-spacing:.01em}
.sp-title b{color:#F45050;font-weight:700}
.sp-sub{margin:7px 0 0;font-size:10.8px;line-height:1.7;color:rgba(255,255,255,.62)}
.ribbon{width:24px;height:32px;flex:none;opacity:.8}
.ribbon path{fill:none;stroke:#fff;stroke-width:1.6;stroke-linejoin:round}
.sign-stage{margin:26px 18px 0;perspective:1200px}
.sign-card{background:linear-gradient(180deg,#F6F6F2,#E9EAE5);border-radius:5px;padding:20px 22px;min-height:196px;box-shadow:0 34px 60px -24px rgba(0,0,0,.6);transform:rotateZ(-1.6deg) rotateX(7deg);transform-origin:50% 50%;position:relative;overflow:hidden}
.sign-card .sd{font-size:27px;line-height:1.1;color:#3C3C3C;font-weight:600;letter-spacing:.02em}
.sign-card .sy{font-size:11px;color:#8A8A8A;margin-left:6px;font-weight:400;vertical-align:top;line-height:1.6}
.sign-card .sq{font-size:13.5px;line-height:1.8;color:#474747;margin:14px 0 0}
.sign-card .src{font-size:10.5px;color:#8C8C8C;margin:10px 0 0}
.sign-card.back{background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.10));border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);display:grid;place-items:center;text-align:center;padding:22px}
.sign-hint .blue{width:26px;height:34px;margin:0 auto 12px;fill:#3A7BF7;stroke:none}
.sign-hint p{margin:0;font-size:13px;color:#fff;line-height:1.6}
.sign-hint p+p{font-size:10.5px;color:rgba(255,255,255,.6);margin-top:6px}
.sign-tag{text-align:center;font-size:11px;color:rgba(255,255,255,.55);margin:26px 0 0;letter-spacing:.02em}
.sign-brand{text-align:center;font-size:9.5px;color:rgba(255,255,255,.42);line-height:1.75;margin:8px 0 0;letter-spacing:.04em}
.sign-brand span{color:#F45050}
.sign-brand b{color:rgba(255,255,255,.72);font-weight:600}
.sign-card.flip{animation:signflip .5s ease}
@keyframes signflip{0%{opacity:0;transform:rotateZ(-1.6deg) rotateX(7deg) rotateY(70deg)}100%{opacity:1;transform:rotateZ(-1.6deg) rotateX(7deg) rotateY(0)}}
.sign-entry{display:flex;align-items:center;gap:12px;width:100%;margin-top:10px;background:#fff;border-radius:14px;padding:14px 16px;text-align:left;box-shadow:0 1px 2px rgba(11,38,72,.04)}
.se-main{flex:1;min-width:0}
.se-kick{font-size:10.5px;color:#8A8478;letter-spacing:.04em}
.se-quote{font-size:12px;line-height:1.6;color:#3E3E3E;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.se-ribbon{width:16px;height:22px;flex:none;fill:none;stroke:var(--navy);stroke-width:1.6;stroke-linejoin:round;opacity:.7}
.sign .oshare{background:#24395E}
@media(max-width:860px){.sign h1{font-size:32px}}
