:root{color-scheme:dark;--paper:#f5ecd9;--gold:#e0bd7f;--muted:#afbec0;--line:#d1c7aa38;--forest:#234f40;font-family:"PingFang SC","Microsoft YaHei",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;min-height:100svh;display:flex;flex-direction:column;color:var(--paper);background:#102430;isolation:isolate}
button,select,input,textarea{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,.upload:focus-within{outline:2px solid #ddb86a;outline-offset:4px}button:disabled{opacity:.5;cursor:wait}
[hidden]{display:none!important}.symbols{position:absolute;width:0;height:0;overflow:hidden}.icon,.brand-tree{width:1.23em;height:1.23em;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.landscape{position:fixed;inset:0;z-index:-2;background:url(/art/night.svg) center bottom / cover no-repeat,radial-gradient(ellipse at 62% 48%,#213b44 0%,#112732 50%,#091a26 100%)}
header,footer{width:calc(100% - clamp(40px,9vw,156px));max-width:1530px;margin-inline:auto;display:flex;align-items:center;justify-content:space-between}
header{padding:25px 0 22px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:14px}.brand-tree{width:34px;height:42px;color:#d8ba80;stroke-width:1.3}.brand>span{font:29px Georgia,serif;letter-spacing:-1.2px}.brand i{height:18px;width:1px;background:var(--line);margin:0 1px}.brand small{font-size:14px;letter-spacing:.18em;color:#d3d1bf}.audio-btn,.opened-tools button{background:#0b202c55;border:1px solid var(--line);border-radius:30px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;padding:9px 15px;color:#e3dbc8}.audio-btn:hover,.opened-tools button:hover{border-color:var(--gold)}
.hero{width:min(1180px,86%);margin:auto;display:grid;grid-template-columns:.86fr 1.14fr;gap:clamp(22px,4vw,76px);align-items:center;flex:1;padding:clamp(58px,9vh,120px) 0 clamp(74px,11vh,140px)}
.edition,.modal-head small{font:700 11px/1.5 Arial,sans-serif;letter-spacing:.25em;color:var(--gold);display:flex;align-items:center;gap:12px}
.edition>span{height:1px;background:var(--gold);width:29px}h1{font:400 clamp(72px,7.8vw,116px)/.89 Georgia,"Times New Roman",serif;letter-spacing:-.067em;margin:27px 0 0;color:#f8eedb}
h1 em{font-weight:400;color:#e6c994;letter-spacing:-.077em}h1 b{font-weight:normal;color:#e6c994;font-size:.7em}
.flourish{width:98px;display:flex;align-items:center;gap:9px;color:var(--gold);font-size:20px;margin:22px 0 18px}.flourish span{width:37px;height:1px;background:linear-gradient(90deg,transparent,#b99d6e)}.flourish span:last-child{transform:rotate(180deg)}
.story h2{font:500 clamp(21px,2.05vw,31px)/1.48 "Songti SC","STSong",Georgia,serif;letter-spacing:.095em;margin:0;overflow-wrap:anywhere}
.intro,.signature{color:#b8c7c7;font-size:15px;line-height:1.85;letter-spacing:.045em;margin:10px 0 0;overflow-wrap:anywhere;white-space:pre-line}.signature{font-style:italic;color:var(--gold)}
.create,.primary,.secondary{border:1px solid #d8b778;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 22px;font-size:15px;font-weight:600}.create,.primary{background:#ebd1a0;color:#233330}.create{margin-top:29px;box-shadow:0 4px 20px #06182238}.create:hover,.primary:hover{background:#f9e0af}.create.pale,.secondary{border:1px solid #9fa99b;background:transparent;color:inherit}
.display{position:relative;width:100%;aspect-ratio:1.21;max-width:680px;justify-self:center;perspective:1000px}.cover{position:absolute;inset:15% 4% 14% 5%;filter:drop-shadow(0 30px 21px #020d1780)}
.envelope,.backcard{position:absolute;left:0;width:100%;top:50%;aspect-ratio:1.6;transform:translateY(-50%) rotate(-7deg);border:none;border-radius:5px}.envelope{background:transparent;padding:0;transition:transform .42s ease;isolation:isolate}.envelope:hover{transform:translateY(-51.8%) rotate(-5deg)}.envelope-paper{display:block;width:100%;height:100%}.backcard{background:repeating-linear-gradient(130deg,#af6753 0 10px,#e0d2b4 10px 22px,#607680 22px 32px,#e0d2b4 32px 44px);width:92%;left:6%;transform:translateY(-51%) rotate(5deg);padding:8px;box-shadow:0 4px 10px #0003}.backcard:before{content:"";position:absolute;inset:6px;background:#d4c4a4}.backcard span,.backcard i{position:absolute;color:#675f4d;font:italic 15px Georgia;top:13px;left:18px}.backcard i{left:auto;right:21px}
.stamp{position:absolute;right:5.3%;top:8%;width:12%;padding:3px;background:#e1ccad;transform:rotate(4deg);filter:drop-shadow(1px 2px 1px #17251d66);mask:linear-gradient(#000 0 0) center/calc(100% - 5px) calc(100% - 5px) no-repeat,radial-gradient(circle,transparent 1.5px,#000 1.7px) -3px -3px/6px 6px}.stamp img{display:block;width:100%}
.postmark{position:absolute;right:14%;top:14%;width:13%;aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;border:3px double #202d23;border-radius:50%;transform:rotate(12deg);color:#212e22;opacity:.72;font-family:Georgia,serif}.postmark b,.postmark small{font-size:clamp(4px,.43vw,7px);letter-spacing:.06em}.postmark i{font-size:clamp(7px,.73vw,12px);border-block:1px solid;line-height:1.5;margin:2px 0}.postmark:before{content:"";position:absolute;width:78%;right:91%;height:26%;border-block:1px solid;transform:rotate(6deg)}
.seal{position:absolute;top:55%;left:50%;width:16%;transform:translate(-50%,-50%);filter:drop-shadow(1px 4px 3px #081d16b3)}.seal img{display:block;width:100%}
.address{position:absolute;left:19%;right:19%;bottom:14%;color:#e8d9b5;font:500 clamp(15px,1.65vw,27px) "Songti SC",Georgia,serif;letter-spacing:.11em;display:flex;gap:.4em;align-items:baseline;justify-content:center}.address em{font:italic 1.05em Georgia,serif;color:#d3bd8f;letter-spacing:0}.address span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.stage-tools{position:absolute;bottom:-1%;left:-5%;right:-5%;display:flex;justify-content:center}.unseal,.opened-tools button{display:inline-flex;align-items:center;gap:13px}.unseal{background:transparent;border:0;color:#e6d7b8;font:15px "Songti SC",Georgia,serif;letter-spacing:.2em;padding:14px}.diamond{height:4px;width:4px;transform:rotate(45deg);background:#c7ae7c}.opened-tools{display:flex;gap:10px}.opened-tools button{gap:8px;padding:8px 14px}
footer{padding:18px 0 24px;border-top:1px solid var(--line);color:#aab7b7;font-size:12px}.foot-label,.post-date{display:flex;align-items:center;gap:9px}.tiny-star{font-size:21px;color:var(--gold)}.post-date{font:11px Georgia,serif;letter-spacing:.18em}.post-date i{width:22px;height:1px;background:#a7a38b}
.reveal{position:absolute;inset:-8% -1% 8%;opacity:0;visibility:hidden;pointer-events:none}.tree-art{position:absolute;inset:0;aspect-ratio:540/440;margin:auto;width:100%;height:auto}.tree-image{width:100%;display:block;filter:drop-shadow(0 15px 15px #05131e90)}
.topstar{position:absolute;top:8.5%;left:50%;transform:translate(-50%,-50%);font:clamp(36px,4.7vw,69px)/1 Georgia;color:#ffda82;text-shadow:0 0 12px #edbb5d,0 0 35px #eab34680}
.orn{position:absolute;min-width:44px;min-height:44px;padding:0;border:0;display:grid;place-items:center;background:transparent;transform:translate(-50%,-50%);pointer-events:auto}.orn .icon{border-radius:50%;width:32px;height:32px;padding:5px;color:#4e452f;background:#dbc398;box-shadow:1px 3px 7px #13291fb3}.orn:hover .icon{filter:brightness(1.2)}.bell{top:66%;left:34%}.snow{top:40%;left:60%}.note{top:72%;left:66%}.note .icon{border-radius:3px;background:#f1deb2;transform:rotate(8deg)}.bell.ringing .icon{transform-origin:50% 0;animation:ring .75s ease}.is-open .cover{visibility:hidden}.is-open .reveal{visibility:visible;opacity:1}
.opening .cover{animation:withdraw 2.3s both}.opening .seal{animation:lift 1.75s both}.opening .reveal{visibility:visible;animation:unfold 2.4s both;transform-origin:50% 87%}.opening .topstar{animation:ignite 2.4s both}.opening .tree-image{animation:lights 2.4s both}.opening .stage-tools{visibility:hidden}
@keyframes withdraw{0%,20%{opacity:1}65%,100%{opacity:0;transform:translateY(20%) scale(.8)}}@keyframes lift{0%{transform:translate(-50%,-50%)}40%,100%{transform:translate(-55%,-205%) rotate(14deg);opacity:0}}@keyframes unfold{0%,20%{opacity:0;transform:rotateX(78deg) scale(.74)}78%,100%{opacity:1;transform:rotateX(0) scale(1)}}@keyframes ignite{0%,65%{opacity:0;transform:translate(-50%,-115%) scale(.65)}100%{opacity:1;transform:translate(-50%,-50%)}}@keyframes lights{0%,55%{filter:brightness(.72)}100%{filter:brightness(1)}}@keyframes ring{20%{transform:rotate(26deg)}50%{transform:rotate(-23deg)}75%{transform:rotate(11deg)}}
.snowfall{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:3}.snowfall i{position:absolute;width:4px;height:4px;background:#fbf6e7;border-radius:50%;animation:fall 4s linear infinite;opacity:.75}@keyframes fall{from{transform:translateY(-8vh)}to{transform:translate(30px,105vh)}}
dialog{color-scheme:light;background:#f6f1e6;color:#223b32;border:1px solid #b9ab8c;border-radius:14px;padding:0;width:min(600px,calc(100% - 28px));max-height:90svh;box-shadow:0 28px 100px #07131999}dialog::backdrop{background:#091822bd;backdrop-filter:blur(5px)}#editor[open]{display:flex;flex-direction:column}.modal-head,.modal-foot{flex:none;padding:20px 25px}.modal-head{margin:0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d5d0c1}.modal-head small{font-size:10px;color:#82663d}.modal-head h2,.reader h2{font:600 25px "Songti SC",Georgia,serif;margin:5px 0 0}.x{border:1px solid #c7c9bb;border-radius:50%;width:34px;height:34px;background:transparent;color:#4b6355;font-size:23px;line-height:1}
.editor-body{padding:17px 25px 4px;overflow:auto}.editor-body label{display:flex;flex-direction:column;gap:5px;font-size:14px;font-weight:550;margin:0 0 13px}.duo{display:grid;grid-template-columns:1fr 1fr;gap:14px}input,textarea,select{background:#fffaf1;color:#22392e;border:1px solid #c5c9ba;border-radius:5px;padding:8px;width:100%;min-width:0;font-size:15px}textarea{resize:vertical}.section-head{display:flex;justify-content:space-between;align-items:center}.section-head h3{margin:6px 0 9px;font:600 20px "Songti SC",serif}.text-button,.photo-actions button{background:transparent;color:#426453;border:none;font-size:13px}.photo-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.photo-tile{background:#fffaf1;border:1px solid #d7d1bf;padding:5px;border-radius:5px}.photo-tile img{width:100%;height:68px;object-fit:cover;border-radius:2px}.photo-tile input{font-size:12px;padding:4px}.photo-actions{display:flex;justify-content:space-between}.photo-actions button{padding:4px}.photo-actions button:disabled{opacity:.28}.editor-body .upload{padding:14px;border:1px dashed #9da995;border-radius:6px;margin:10px 0;flex-direction:row;gap:12px;align-items:center;justify-content:center;cursor:pointer;position:relative;background:#e8ecdf}.upload input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload small,details small,.modal-foot small{display:block;font-size:12px;color:#617468;font-weight:400;margin-top:4px}.upload.drag{outline:2px solid #526f53}summary{cursor:pointer;font-size:14px;margin:12px 0}details select{margin-bottom:10px}.status{font-size:14px;margin:7px 0;color:#884436}.modal-foot{border-top:1px solid #d5d0c1;padding-top:12px}.modal-foot div{display:flex;gap:9px;justify-content:flex-end;margin-top:8px}.primary,.secondary{padding:9px 14px;font-size:14px}.primary{background:#315843;color:#fff4dd;border-color:#315843}.primary:hover{background:#406b51}
.reader{width:min(480px,calc(100% - 30px));padding:36px 28px;text-align:center}.reader-x{position:absolute;right:10px;top:10px}.reader p{line-height:1.7;overflow-wrap:anywhere;white-space:pre-line}.reader figure{margin:15px 0}.reader figure img{width:100%;height:clamp(130px,35vh,280px);object-fit:contain;background:#e4dfd0}.reader figcaption{font-size:14px;margin:6px}.reader nav{display:flex;justify-content:center;align-items:center;gap:18px}.reader nav span{font-size:13px}.reader input{margin:14px 0}.reader a{display:inline-block;color:var(--forest);margin:8px}.reader .status{min-height:1em}#toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:#234a3a;color:white;padding:10px 16px;border-radius:8px;z-index:4}
@media(min-width:1550px){.hero{max-width:1300px}.display{max-width:710px}}
@media(max-width:800px){.hero{width:90%;grid-template-columns:.9fr 1.1fr;gap:20px}h1{font-size:clamp(62px,9vw,84px)}.story h2{font-size:20px}.intro{font-size:14px}}
@media(max-width:640px){header{padding:14px 0}.brand{gap:9px}.brand-tree{width:26px;height:34px}.brand>span{font-size:23px}.brand small{font-size:12px;letter-spacing:.1em}.audio-btn{font-size:12px;padding:8px 11px}.hero{width:90%;display:flex;flex-direction:column;gap:17px;padding:30px 0 22px;text-align:center}.story{width:100%}.edition{justify-content:center;font-size:9px;letter-spacing:.22em}.edition>span{display:none}h1{font-size:clamp(44px,10.1vw,62px);line-height:1.06;margin-top:13px;letter-spacing:-.055em}h1 br{display:none}h1 em:before{content:" "}.flourish{margin:9px auto 8px;width:65px;font-size:14px}.story h2{font-size:20px}.intro{margin:4px auto 0;font-size:13px}.create{margin-top:13px;padding:9px 16px;font-size:14px}.display{max-width:410px;aspect-ratio:1.22;margin-top:0}.address{font-size:clamp(15px,4vw,21px)}.postmark b,.postmark small{font-size:5px}.postmark i{font-size:8px}.stage-tools{bottom:-2%}.topstar{font-size:38px}.orn .icon{width:26px;height:26px}.post-date{font-size:9px}.opened-tools button{font-size:12px}.landscape{background-position:58% bottom,center}.modal-head,.modal-foot{padding-left:15px;padding-right:15px}.editor-body{padding-inline:15px}.photo-list{gap:5px}.modal-head{padding-block:12px}footer{padding:10px 0 14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}.snowfall i{animation:none;top:35%}}
.flying-seal{position:absolute;z-index:3;pointer-events:none;filter:drop-shadow(0 5px 4px #08192080)}.opening .seal{visibility:hidden}.editor-body .sample-choice{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:13px;font-weight:400}.sample-choice input{width:auto}.pending{overflow-wrap:anywhere}.pending p{font-size:13px}.pending button{margin-top:5px;padding:4px}.home-link{color:var(--gold);margin:15px}
.flap-layer{position:absolute;inset:0;width:100%;height:100%;transform-origin:50% 1%;pointer-events:none}.opening .flap-layer{animation:open-flap .86s ease-in-out both}.opening .backcard{animation:slide-paper 1.3s ease-in-out both}.opening .fold-leaves{transform-origin:270px 375px;animation:stand-tree 1.75s cubic-bezier(.22,.7,.28,1) both}.opening .strand{animation:wire-on .26s ease-in both}.opening .s1{animation-delay:1.64s}.opening .s2{animation-delay:1.8s}.opening .s3{animation-delay:1.96s}.opening .s4{animation-delay:2.12s}.opening .orn{animation:wire-on .3s 1.75s both}
@keyframes open-flap{0%,10%{transform:perspective(700px) rotateX(0)}100%{transform:perspective(700px) rotateX(155deg);filter:brightness(.72)}}
@keyframes slide-paper{0%,15%{transform:translateY(-51%) rotate(5deg)}100%{transform:translateY(-85%) rotate(0)}}
@keyframes stand-tree{0%,30%{transform:scale(1.04,.09)}100%{transform:scale(1,1)}}
@keyframes wire-on{from{opacity:0}to{opacity:1}}
.is-open .cover{display:none}
