:root{color-scheme:dark;--ink:#f5efd9;--gold:#dbc08d;--soft:#a9b8ab;--edge:rgba(218,200,150,.23);font:16px/1.5 "Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);background:#071513}*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 66% 40%,#13332b66,transparent 49%),linear-gradient(122deg,#091b17,#081713 64%,#08130f);display:flex;flex-direction:column;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer;color:inherit;transition:background .2s,border-color .2s,transform .2s}button:hover{filter:brightness(1.18)}button:active{transform:translateY(1px)}button:focus-visible,canvas:focus-visible,input:focus-visible{outline:2px solid #f4dc9b;outline-offset:4px}button:disabled{opacity:.55;cursor:wait}svg{width:1.15em;height:1.15em;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;flex:none}.symbols{position:absolute;width:0;height:0;overflow:hidden}header{height:84px;flex:none;display:flex;justify-content:space-between;align-items:center;margin:0 5.5%;border-bottom:1px solid var(--edge);position:relative;z-index:1}.brand,.share,.action,.label,.swatches,.hint,.modal-head,.editorial,footer,.flourish{display:flex;align-items:center}.brand{gap:13px;font:bold 26px Georgia,serif;letter-spacing:.02em;color:#f2e7cc}.seal{width:38px;height:38px;border:1px solid #ac9666;border-radius:50%;display:grid;place-items:center;color:var(--gold);box-shadow:inset 0 0 0 3px #10201a,inset 0 0 0 4px #87744655}.seal svg{width:22px;height:22px}.share{gap:10px;border:1px solid #e5c998;border-radius:30px;background:#eddbb5;color:#23362a;padding:9px 20px;font-size:.875rem;font-weight:600;letter-spacing:.035em}main{flex:1;display:flex;flex-direction:column}.stage{position:relative;min-height:480px;flex:1;height:calc(100svh - 278px)}#scene{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}#scene:active{cursor:grabbing}.intro{position:absolute;top:44%;left:8%;transform:translateY(-50%);pointer-events:none}.editorial{gap:12px;font:11px/1.4 Georgia,serif;font-weight:600;color:#d6bd88;letter-spacing:.25em}.editorial i,.flourish i{width:32px;height:1px;background:#ba9b60}.intro h1{font:500 clamp(2.7rem,4.7vw,5.25rem)/1.2 "Songti SC","Noto Serif CJK SC","SimSun",serif;letter-spacing:.07em;margin:19px 0 3px;color:#f3eddb}.script{font:italic clamp(1.7rem,2.9vw,3.2rem)/1.3 Georgia,"Times New Roman",serif;letter-spacing:-.04em;color:#d6b87e}.intro p{margin:23px 0 0;color:#bcc9bc;font-size:.93rem;letter-spacing:.06em}.flourish{gap:9px;color:#c9af78;margin-top:29px;font-size:18px}.flourish i{width:35px;background:linear-gradient(90deg,#84724600,#9a854e)}.flourish i:last-child{transform:rotate(180deg)}.hint{position:absolute;left:67%;bottom:12px;transform:translateX(-50%);gap:9px;color:#b1c0b2;font-size:.8rem;white-space:nowrap;pointer-events:none}.hint svg{width:15px;height:15px}.hint span{color:#867d60}.desk{margin:8px auto 0;width:min(88%,1110px);display:grid;grid-template-columns:1.12fr 1fr 1fr;border-radius:15px;border:1px solid var(--edge);background:linear-gradient(115deg,#182b22e6,#14261ef2);box-shadow:0 15px 45px #020f0a38;padding:22px 0}.cell{padding:0 clamp(18px,2.7vw,42px);border-left:1px solid var(--edge);display:flex;flex-direction:column;justify-content:space-between;gap:12px}.cell:first-child{border:0}.label{font-size:.94rem;font-weight:550;letter-spacing:.07em;gap:9px}.label svg{color:#d8bd83;width:17px;height:17px}.count{margin-left:auto;font:12px/1.4 Georgia,serif;letter-spacing:1px;border:1px solid #b7bd9c30;border-radius:20px;padding:2px 9px;color:#d3d6c5}.action{justify-content:center;gap:9px;border:1px solid #9d966855;border-radius:7px;background:#ffffff06;padding:8px 14px;font-size:.875rem;letter-spacing:.05em;min-height:38px}.action:hover,.icon:hover{background:#ffffff10;border-color:#c4ae7a}.swatches{gap:12px;height:39px}.swatches button{border:2px solid #25392c;outline:1px solid transparent;width:29px;height:29px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#addf94,#3f906d 49%,#174b3b)}.swatches button:nth-child(2){background:radial-gradient(circle at 30% 25%,#e0f3ff,#8ebbd5 52%,#486783)}.swatches button:nth-child(3){background:radial-gradient(circle at 30% 25%,#f4d2b4,#d79e89 52%,#88564d)}.swatches .chosen{outline-color:#e4cd98}.swatches span{font-size:.81rem;color:#b9c5b7;margin-left:4px}.action[aria-pressed=true]{color:#e2cc93;background:#7a926b26}footer{justify-content:center;gap:14px;height:52px;color:#ad986e;font:italic 15px Georgia,serif;letter-spacing:.045em}footer span:not(.line){font-size:12px}.line{height:1px;width:36px;background:#a991602e}dialog{color:var(--ink);background:#14271f;padding:25px;border:1px solid #b8a57666;border-radius:15px;width:min(440px,90vw);max-height:80svh;box-shadow:0 14px 70px #00110dbb}dialog::backdrop{background:#00110dcc;backdrop-filter:blur(5px)}.modal-head{justify-content:space-between;gap:15px}.modal-head h2{font:500 1.55rem/1.5 "Songti SC",SimSun,serif;margin:0}.icon{display:grid;place-items:center;background:transparent;border:1px solid var(--edge);border-radius:50%;width:32px;height:32px}dialog p{color:#c5cfc0;font-size:.94rem;line-height:1.8}.full{width:100%;background:#e4cda3;color:#20342a;font-weight:600}.full:hover{background:#efd7ac}#gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}#gallery figure{position:relative;margin:0}#gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:5px}#gallery button{position:absolute;right:2px;top:2px;width:24px;height:24px;line-height:1;background:#0a1a13d9;border:1px solid #ffffff55;border-radius:50%}#shareLink{width:100%;background:#0b1b14;color:#e3d7b8;border:1px solid var(--edge);border-radius:5px;padding:9px;margin:4px 0 12px}#largePhoto{width:100%;max-height:62svh;object-fit:contain;margin-top:15px}.toast{position:fixed;z-index:4;left:50%;bottom:25px;transform:translate(-50%,15px);opacity:0;pointer-events:none;transition:.25s;background:#eddfbd;color:#153322;padding:10px 20px;border-radius:10px;font-size:.88rem;box-shadow:0 5px 25px #0005;width:max-content;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1600px){.desk{width:80%;max-width:1420px}.stage{min-height:570px}}
@media(max-width:760px){header{height:65px;margin:0 6%}.brand{font-size:22px;gap:9px}.seal{width:32px;height:32px}.share{padding:7px 14px}.intro{top:20px;left:0;right:0;transform:none;text-align:center}.editorial{justify-content:center;font-size:10px}.editorial i,.flourish,.intro p{display:none}.intro h1{font-size:2.5rem;margin:7px 0 0}.script{font-size:1.45rem}.stage{min-height:480px;height:calc(100svh - 320px)}.hint{left:50%;bottom:4px}.desk{width:91%;margin:12px auto 0;grid-template-columns:1fr 1fr;padding:0 15px 14px;gap:12px 0;border-radius:12px}.cell{padding:0 12px;gap:8px}.colors{grid-column:1/-1;flex-direction:row;align-items:center;padding:9px 0;border-bottom:1px solid var(--edge)!important}.cell:nth-child(2){border:0;padding-left:0}.cell:last-child{padding-right:0}.swatches{height:32px;gap:9px}.swatches button{width:24px;height:24px}.swatches span{min-width:39px}.label{font-size:.86rem}.count{font-size:11px;padding:1px 5px}.action{font-size:.82rem}footer{height:38px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
header nav,.show-tools{display:flex;align-items:center;gap:12px}
.show-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:var(--ink);background:#11271fdf;border:1px solid #beaa7b70;border-radius:24px;padding:9px 17px;font-size:.875rem;font-weight:550;white-space:nowrap}
.show-button:hover{background:#253e31}.show-button svg{color:var(--gold)}
body.presenting{overflow:hidden}.presenting header,.presenting .desk,.presenting footer,.presenting .intro,.presenting .hint{display:none}
.presenting .stage{position:fixed;inset:0;width:100%;height:100%;min-height:0;overflow:hidden;background:radial-gradient(ellipse at 45% 53%,#142b25 0%,#091b18 42%,#061310 85%)}
.show-tools{position:absolute;right:max(22px,env(safe-area-inset-right));top:max(20px,env(safe-area-inset-top));z-index:2}.show-tools .show-button{backdrop-filter:blur(10px)}
.field-hint{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:6px 15px;color:#d8d1b8;background:#081a15bf;border-radius:20px;font-size:.82rem;letter-spacing:.055em;white-space:nowrap;pointer-events:none}
#fieldPhotos{position:absolute;inset:0;pointer-events:none}.field-photo{position:absolute;left:0;top:0;pointer-events:auto;overflow:hidden;border:2px solid #e2cea4;border-bottom-width:5px;border-radius:3px;padding:0;background:#263c31;box-shadow:0 3px 18px #06131099,0 0 10px #ebc98028;cursor:zoom-in;will-change:transform}.field-photo img{width:100%;height:100%;object-fit:cover;display:block}.field-photo:hover,.field-photo:focus-visible{border-color:#fff0c9;box-shadow:0 0 18px #edce865c;z-index:1}
#detail{padding:0;border:0;background:transparent;overflow:visible;border-radius:0;max-width:none;width:max-content;max-height:none;box-shadow:none}#detail::backdrop{background:#03120ef0;backdrop-filter:blur(3px)}
#shrinkPhoto{display:block;cursor:zoom-out;border:2px solid #e5d2a7;border-bottom-width:6px;background:#ddcba4;border-radius:3px;padding:0;box-shadow:0 18px 70px #0006;overflow:hidden}#shrinkPhoto:hover{filter:none}#shrinkPhoto:active{transform:none}
#largePhoto{display:block;width:auto;height:auto;max-width:min(82vw,1200px);max-height:79svh;margin:0}
#detailClose{position:absolute;right:0;bottom:calc(100% + 8px);background:#10251ee6}
[hidden]{display:none!important}
@media(max-width:760px){header nav,.show-tools{gap:6px}.show-button,.share{font-size:.8rem;padding:7px 10px}.show-tools{top:max(12px,env(safe-area-inset-top));right:12px}.brand{font-size:19px;gap:6px}header{margin:0 4%}.field-hint{font-size:.77rem}}
@media(max-width:380px){header .seal{display:none}}
.gesture-guide{position:fixed;z-index:3;bottom:max(17px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;column-gap:15px;row-gap:4px;width:max-content;max-width:calc(100% - 28px);background:#0b1e18e8;color:#e2d7bd;border:1px solid #cdb57b40;border-radius:20px;padding:7px 15px;font-size:.8125rem;line-height:1.45;backdrop-filter:blur(8px);pointer-events:none}
.gesture-guide span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.gesture-guide svg{width:16px;height:16px;color:#c9b483}.gesture-guide [data-active="true"]{color:#fff4b9}.gesture-guide [data-active="true"] svg{color:#fff1ae}#gestureState{color:#aebfb0;font-size:.76rem}
#handCursor{position:fixed;left:0;top:0;width:18px;height:18px;border:1.5px solid #f2d596;background:#f9df9e18;border-radius:50%;pointer-events:none;z-index:2;box-shadow:0 0 11px #f0ce8c55}#handCursor::after{content:'';position:absolute;inset:6px;background:#fff3cc;border-radius:50%}.field-photo.gesture-target{border-color:#fff2bb;outline:2px solid #f8d991;outline-offset:3px;box-shadow:0 0 25px #f4d08666;z-index:1}
@media(max-width:600px){.gesture-guide{column-gap:9px;padding:6px 10px;font-size:.76rem}.gesture-guide svg{width:14px;height:14px}#gestureState{font-size:.72rem}}
#gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
#gallery label{display:grid;gap:3px;color:#cfccb6;font-size:.8rem}
#gallery input{width:100%;min-width:0;box-sizing:border-box;background:#0d2019;border:1px solid var(--edge);color:var(--ink);border-radius:5px;padding:5px;font:inherit}
.field-photo:has(time){display:flex;flex-direction:column;border-bottom-width:2px}
.field-photo:has(time) img{min-height:0;flex:1}
.field-photo time,#largeDate{display:block;background:#e5d5ae;color:#29352b;text-align:center;width:100%;font-family:Georgia,serif;letter-spacing:.035em;font-variant-numeric:tabular-nums}
.field-photo time{font-size:clamp(8px,1vw,12px);line-height:1.2}
#largeDate{padding:4px 0;font-size:1rem}

.backdrop-tools{width:min(88%,1110px);margin:0 auto;text-align:right}.backdrop-tools button{font-size:.82rem;padding:5px 13px}.presenting .backdrop-tools{display:none}
#bgDialog>label{display:block;margin:18px 0 6px}#bgText{width:100%;resize:vertical;border:1px solid var(--edge);border-radius:8px;color:var(--ink);background:#0b1c16;padding:10px;font:inherit}.bg-options{display:flex;gap:20px;margin:13px 0 18px}.bg-options input{accent-color:#dabf88}
#bgTitle{width:100%;background:#0b1c16;border:1px solid var(--edge);border-radius:8px;padding:10px;color:var(--ink);font:inherit}#bgDialog small{float:right;color:#b0baa9}
#backdropWords,.presenting #backdropWords{position:absolute;pointer-events:none;top:45%;left:67.5%;transform:translate(-50%,-50%);width:56%;text-align:center;color:#eddfbd;overflow-wrap:anywhere}
.presenting #backdropWords{left:50%;width:86%}
#backdropWords strong{display:block;font:500 clamp(22px,4.3vw,82px)/1.16 Georgia,SimSun,serif;letter-spacing:.05em;opacity:.88}
#backdropWords p{margin:.7em auto 0;max-width:27em;font-size:clamp(13px,1.3vw,20px);line-height:1.5;white-space:pre-line;color:#e0d6bc;text-shadow:0 1px 4px #071513}
#backdropWords p:empty{display:none}.depth#backdropWords strong{filter:drop-shadow(2px 4px 4px #324c49)}
.rainbow#backdropWords strong{color:transparent;background:linear-gradient(110deg,#a7dfd1,#f4d299,#e9a9bf,#a7bfe7,#a7dfd1);background-size:200% 100%;background-clip:text;animation:bgShimmer 12s ease-in-out infinite alternate}@keyframes bgShimmer{to{background-position:100% 50%}}
@media(max-width:760px){#backdropWords{left:50%;width:92%;top:53%}#backdropWords strong{font-size:clamp(20px,7.5vw,42px)}.presenting #backdropWords{top:43%}}
@media(prefers-reduced-motion:reduce){.rainbow#backdropWords strong{animation:none}}

.field-photo.held{z-index:3;border-color:#fff0c9}.field-photo.held img{object-fit:contain}
