:root{font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:#34383c;background:#edf2f6;--green:#515d67;--muted:#81888d;--line:#dae0e5}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:inherit;text-decoration:none}.layout{display:grid;grid-template-columns:224px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid var(--line);padding:42px 24px;display:flex;flex-direction:column;background:#e6ecf0}.brand{font-family:Georgia,"SimSun",serif;font-size:29px;letter-spacing:5px}.brand small{display:block;font:10px sans-serif;letter-spacing:3px;margin-top:9px;color:var(--muted)}.nav{display:grid;gap:9px;margin-top:58px}.nav button{border:0;background:none;text-align:left;padding:14px 16px;border-radius:8px;color:#697178}.nav button.active{background:#d9e0e6;color:#3c4954;font-weight:600}.side-bottom{margin-top:auto;font-size:12px;line-height:1.9;color:#788189}.private{padding:10px 0;color:#515d67}.main{padding:32px 5.5vw 60px;max-width:1500px;width:100%}.topbar{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#7d8388;border-bottom:1px solid var(--line);padding-bottom:22px}.user{display:flex;align-items:center;gap:10px}.avatar{width:31px;height:31px;background:#d7dfe5;border-radius:50%;display:grid;place-items:center;color:var(--green)}.plain{background:none;border:0;color:var(--green);padding:6px}.heading{display:flex;justify-content:space-between;align-items:center;margin:37px 0 25px;gap:20px}.eyebrow{font-size:10px;letter-spacing:3px;color:var(--muted)}h1{font-family:Georgia,"SimSun",serif;font-size:34px;font-weight:500;margin:10px 0}h2{font-size:19px;font-weight:500;margin:0}h3{font-weight:500;margin:12px 0;font-size:18px}p{line-height:1.85}.subtitle{color:var(--muted);font-size:13px;margin:0}.primary{background:var(--green);color:#fff;border:0;border-radius:6px;padding:12px 20px;white-space:nowrap}.secondary{background:#ffffff;border:1px solid #cfd7dd;border-radius:6px;padding:10px 16px;color:var(--green)}.hero{position:relative;overflow:hidden;min-height:270px;border-radius:12px;background:#dce3e9;padding:38px 42px;display:flex;align-items:center}.hero-copy{position:relative;z-index:1;width:70%}.hero-title{font-family:"SimSun",serif;font-size:30px;line-height:1.6;font-weight:400;margin:14px 0}.hero p{font-size:12px;color:#717d86}.hero-art{position:absolute;right:-15px;top:0;width:40%;height:100%;background:radial-gradient(ellipse at 60% 100%,#62798b55 0,transparent 65%)}.stem{position:absolute;width:110px;height:230px;border-left:2px solid #657b8d;transform:rotate(23deg);top:52px;right:115px;border-radius:50%}.stem:before,.stem:after{content:"";position:absolute;background:#7b90a1;border-radius:90% 0 90% 0;width:65px;height:27px;left:-61px;top:68px;transform:rotate(18deg)}.stem:after{left:1px;top:115px;transform:rotate(-30deg);background:#8da2b3}.stem.two{right:50px;top:105px;transform:rotate(50deg);opacity:.55}.mini-label{font-size:11px;letter-spacing:2px;color:#5e6d79}.hero-count{font:42px Georgia,serif;color:#515d67}.hero-count small{font:12px sans-serif;margin-left:8px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0 36px}.stat{border:1px solid var(--line);border-radius:9px;padding:21px 23px;background:#ffffff}.stat strong{font:27px Georgia,serif;display:block;margin-bottom:7px}.stat span{font-size:12px;color:var(--muted)}.section-head{display:flex;justify-content:space-between;align-items:center;margin:27px 0 18px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.card{background:#ffffff;border:1px solid var(--line);border-radius:9px;overflow:hidden;cursor:pointer}.cover{height:195px;background:#dee3e8;display:flex;align-items:center;justify-content:center;overflow:hidden}.cover img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.card:hover img{transform:scale(1.03)}.paper-art{font-family:Georgia,"SimSun",serif;color:#909eaa;font-size:45px;letter-spacing:8px;background:linear-gradient(145deg,#dbe2e8,#e6edf3)}.card-body{padding:20px}.meta{font-size:11px;color:#8c949b}.excerpt{font-size:13px;color:#6c757c;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:45px}.tag{font-size:10px;display:inline-block;padding:4px 8px;background:#e6ecf0;color:#697783;border-radius:4px;margin:4px 5px 0 0}.empty{padding:44px 24px;text-align:center;border:1px dashed #cad2d9;border-radius:10px;color:#7e8891;background:#ffffff;grid-column:1/-1}.empty-icon{font-size:32px;color:#93a2ae;margin-bottom:10px}.empty h3{color:#5c6b78}.empty p{font-size:13px}.toolbar{display:flex;gap:12px;margin-bottom:24px}.toolbar input{flex:1}.field{display:grid;gap:8px;margin:16px 0;font-size:13px;color:#5d666e}input,textarea{width:100%;border:1px solid #cfd7dd;border-radius:6px;background:#ffffff;padding:11px 12px;color:#34383c}textarea{resize:vertical;min-height:130px}.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.notice{font-size:12px;line-height:1.9;padding:15px 18px;background:#e2e8ed;color:#5f6d79;border-radius:7px;margin:20px 0}.notice.warning{background:#dbe7f1;color:#527088}.anniversary{padding:24px;border:1px solid var(--line);background:#ffffff;border-radius:9px}.anniversary strong{display:block;font:34px Georgia,serif;color:var(--green);margin:16px 0}.anniversary small{color:var(--muted)}.panel{background:#ffffff;padding:26px;border:1px solid var(--line);border-radius:9px;margin:20px 0}.panel p{font-size:13px;color:#727b83}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}dialog{width:min(700px,calc(100% - 30px));border:1px solid var(--line);border-radius:12px;padding:28px;background:#ffffff;color:#34383c;max-height:90vh}dialog::backdrop{background:#232b3275;backdrop-filter:blur(3px)}.dialog-title{display:flex;align-items:center;justify-content:space-between}.previews{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.preview{position:relative}.preview img{width:85px;height:85px;object-fit:cover;border-radius:5px}.preview button{position:absolute;right:0;top:0;border:0;background:#fff;border-radius:50%}.detail-photos{display:grid;gap:14px}.detail-photos img{max-width:100%;max-height:70vh;display:block;margin:auto}.detail-photos a{font-size:12px;color:var(--green)}.body-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:2}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-art{background:#dce3e9;display:flex;flex-direction:column;justify-content:center;padding:12%;position:relative}.login-art h1{font-size:44px;line-height:1.6}.login-box{align-self:center;width:min(370px,85%);margin:auto}.login-box h2{font-family:"SimSun",serif;font-size:27px;margin:35px 0}.login-box .primary{width:100%;margin-top:10px}.error{color:#a25e48;font-size:12px;min-height:20px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#3d4851;color:white;padding:13px 22px;border-radius:8px;z-index:10;display:none;font-size:13px;max-width:90vw}.footer{margin-top:45px;text-align:center;color:#939da5;font-size:10px;letter-spacing:2px}.check{display:flex;gap:8px;align-items:center;font-size:13px}.check input{width:auto}.file-label{padding:22px;border:1px dashed #acb9c3;border-radius:8px;text-align:center;background:#e6ecf0;display:block;font-size:13px;cursor:pointer}.file-label input{margin-top:12px;background:none;border:0;font-size:12px}.progress{font-size:12px;color:#5b6b79;line-height:1.8}.danger{color:#a3634c}.all-photos{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.all-photos img{width:100%;height:190px;object-fit:cover;border-radius:6px}.card:focus-visible{outline:2px solid var(--green);outline-offset:4px}@media(min-width:1600px){.main{margin:auto}}@media(max-width:1000px){.layout{grid-template-columns:180px 1fr}.sidebar{padding:32px 15px}.main{padding:28px 4vw}.cards{grid-template-columns:repeat(2,1fr)}.hero{padding:30px}.all-photos{grid-template-columns:repeat(3,1fr)}}@media(max-width:650px){.layout{display:block}.sidebar{position:relative;height:auto;padding:20px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:24px}.brand small,.side-bottom{display:none}.nav{display:flex;overflow-x:auto;margin-top:18px;gap:4px}.nav button{padding:10px;white-space:nowrap;font-size:12px}.main{padding:22px 18px 40px}.heading{margin-top:26px;gap:10px}h1{font-size:28px}.primary{padding:11px 14px;font-size:13px}.hero{padding:26px;min-height:230px}.hero-copy{width:85%}.hero-title{font-size:25px}.hero-art{opacity:.5}.stats{gap:8px}.stat{padding:16px 12px}.stat strong{font-size:23px}.cards{gap:12px}.cover{height:145px}.card-body{padding:13px}.card h3{font-size:15px}.row{grid-template-columns:1fr;gap:0}.all-photos{grid-template-columns:repeat(2,1fr)}.login{display:block}.login-art{padding:35px}.login-art h1{font-size:27px}.login-box{padding:20px 0 50px}.topbar{font-size:10px}.toolbar{flex-wrap:wrap}.toolbar input{min-width:100%}dialog{padding:20px}.hero-count{font-size:34px}}
.connection-warning{position:sticky;top:0;z-index:99;background:#cee1f1;color:#375166;padding:12px 20px;font-size:13px;line-height:1.7;text-align:center}
/* 日记式时光轴：按参考图的日期轴、纸张与小动物重新布局 */
.timeline-page{background:#d1e3f2}.timeline-page .main{max-width:1400px;padding-bottom:0}.timeline-page .topbar{border-color:#b4c7d7}.timeline-page .heading{margin-bottom:18px}.timeline-page .heading .primary{background:#272a2c;border-radius:22px}.timeline-page .sidebar{background:#ddeaf5;border-color:#ccd9e4}.timeline-page .nav button.active{background:#cad8e3}.timeline-top{padding:4px 20px 28px}.timeline-caption{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:2px;color:#6c8193}.timeline-caption>span:last-child{display:flex;align-items:center;gap:10px;letter-spacing:1px}.timeline-caption .timeline-cat{position:static;width:42px;height:42px;transform:rotate(9deg);color:#5f6c77}.timeline-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:20px;margin-top:15px}.timeline-day{padding:0;border:0;background:none;color:#6a8296;display:flex;align-items:center;flex-direction:column;gap:10px;font-family:Georgia,"KaiTi",serif;font-size:16px;min-width:0}.day-bubble{width:66px;height:66px;border-radius:50%;background:#ffffff;display:grid;place-items:center;color:#b7c5d0;font:29px Georgia,serif;box-shadow:0 2px 12px #a0b8cc0b;transition:transform .2s,box-shadow .2s;overflow:hidden}.day-bubble img{width:100%;height:100%;object-fit:cover}.timeline-day:hover .day-bubble{transform:translateY(-3px);box-shadow:0 4px 16px #7598b426}.timeline-day.selected .day-bubble{outline:2px solid #688298;outline-offset:4px}.timeline-day small{font-size:10px;color:#768998;font-family:inherit;letter-spacing:1px}.day-heart{font-size:28px;color:#7f909d}.timeline-sheet{background:#fff;border-radius:34px 34px 0 0;padding:26px 26px 36px;min-height:420px;box-shadow:0 -6px 30px #9eb7cb0a}.timeline-tools{display:flex;align-items:center;gap:15px;border-bottom:1px solid #e8ecf0;padding-bottom:15px}.timeline-search{display:flex;align-items:center;flex:1;gap:7px;min-width:100px;color:#959ea6}.timeline-search input{background:transparent;border:0;padding:7px 0;font-size:12px;min-width:0}.timeline-month-filter{display:flex;align-items:center;gap:7px;font-size:11px;color:#828c95}.timeline-month-filter input{font-size:12px;padding:5px;border-color:#e6eaee;width:140px;background:#ffffff}.timeline-tools .plain{font-size:11px;white-space:nowrap;color:#717e89}.timeline-filter-note{font-size:11px;color:#969fa6;margin:18px 0 8px}.timeline-month-title{font-family:Georgia,"KaiTi",serif;font-size:17px;color:#8f9ba5;font-weight:400;display:flex;gap:12px;align-items:baseline;margin:26px 0 22px}.timeline-month-title span{font-size:13px;letter-spacing:2px}.timeline-list{list-style:none;padding:0;margin:0 0 0 82px;border-left:1px solid #d7dbdf}.timeline-row{position:relative;padding:0 0 31px 27px;min-width:0}.timeline-stamp{position:absolute;right:calc(100% + 16px);top:-2px;display:flex;flex-direction:column;align-items:flex-end;gap:10px;white-space:nowrap;font-family:"KaiTi",Georgia,serif;color:#9da3a8;font-weight:400}.stamp-day{font-size:19px}.stamp-clock{font-size:15px;letter-spacing:1px}.stamp-repeat{font-size:11px;line-height:22px;color:#b9bfc3}.timeline-dot{position:absolute;left:-5px;top:40px;width:9px;height:9px;border-radius:50%;border:1px solid #b8bfc4;background:#fff}.diary-paper{position:relative;min-height:216px;background:#ffffff;border-radius:10px;padding:27px 29px;box-shadow:0 4px 18px #728a9d14;cursor:pointer;transition:transform .2s,box-shadow .2s;overflow:hidden;border:1px solid #ffffff}.diary-paper:hover{transform:translateY(-2px);box-shadow:0 7px 22px #728a9d23}.diary-paper:focus-visible{outline:2px solid #738492;outline-offset:4px}.diary-content{position:relative;z-index:1;width:calc(100% - 100px);min-width:0}.diary-content h3{font-family:"KaiTi","STKaiti","SimSun",serif;font-size:19px;color:#585f64;line-height:1.7;margin:0 0 14px;font-weight:400;overflow-wrap:anywhere}.diary-photos{display:flex;gap:10px;align-items:center;flex-wrap:wrap;position:relative;margin:5px 0 12px}.diary-photos img{width:108px;height:108px;object-fit:cover;border-radius:7px;background:#e2eaf0}.photo-total{font-size:10px;color:#8d969e;align-self:flex-end;margin-bottom:4px}.diary-lines{font-family:"KaiTi","STKaiti","SimSun",serif;font-size:19px;color:#62686d;line-height:2.05;letter-spacing:1px;white-space:pre-line;overflow-wrap:anywhere;margin:0 0 12px;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(2.05em - 1px),#cdd6ddb0 calc(2.05em - 1px),#cdd6ddb0 2.05em);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.diary-meta{font-size:10px;color:#95a0a9;display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;line-height:1.8}.diary-meta span{color:#8493a0}.timeline-cat{position:absolute;right:23px;bottom:22px;width:92px;height:92px;color:#81888e;transform:rotate(-5deg);pointer-events:none}.text-only .diary-content{width:100%}.text-only .diary-meta{padding-right:100px}.text-only .timeline-cat{width:64px;height:64px;opacity:.7;bottom:14px}.text-only .diary-lines{padding-right:10px}.timeline-empty{position:relative;margin:34px 0 0 82px;border-left:1px solid #d7dbdf;padding-left:27px;min-height:250px}.empty-stamp{position:absolute;right:calc(100% + 16px);top:4px;color:#9da3a8;font-family:"KaiTi",Georgia,serif;font-size:18px;white-space:nowrap}.empty-paper{cursor:default;min-height:240px;padding-top:40px}.empty-paper:hover{transform:none}.empty-paper h3{font-family:"KaiTi","SimSun",serif;font-weight:400;font-size:20px;position:relative;z-index:1;max-width:75%;line-height:1.8;color:#69747d}.empty-paper p{font-size:12px;color:#8e9aa4;max-width:70%}.empty-paper .plain{padding:9px 0;font-size:12px}.timeline-end{display:flex;align-items:center;justify-content:center;gap:12px;color:#b3bbc2;font-size:17px;margin:20px 0}.timeline-end span{font-size:10px;letter-spacing:3px}.timeline-write{position:fixed;bottom:40px;right:42px;width:65px;height:65px;display:grid;place-items:center;border-radius:50%;border:0;background:#25282a;color:#fff;box-shadow:0 5px 20px #30353a26;z-index:3;transition:transform .2s}.timeline-write:hover{transform:rotate(-8deg)}.timeline-page .footer{background:#fff;margin-top:0;padding:20px 10px}.timeline-month-group:last-child .timeline-row:last-child{padding-bottom:12px}
@media(min-width:1450px){.timeline-page .main{max-width:1100px}.timeline-week{gap:32px}.diary-paper{min-height:235px}.diary-photos img{width:124px;height:124px}}
@media(max-width:900px){.timeline-tools{gap:8px}.timeline-top{padding-inline:8px}.timeline-week{gap:10px}.day-bubble{width:53px;height:53px}.timeline-sheet{padding:23px 16px}.diary-paper{padding:23px 22px}.diary-content{width:calc(100% - 70px)}.timeline-cat{width:70px;height:70px;right:13px}.diary-photos img{width:85px;height:85px}.timeline-list{margin-left:65px}.timeline-empty{margin-left:65px}.timeline-row,.timeline-empty{padding-left:19px}.timeline-caption{font-size:9px;letter-spacing:1px}}
@media(max-width:650px){.timeline-page .main{padding:20px 0 0}.timeline-page .main>.topbar,.timeline-page .heading{margin-left:20px;margin-right:20px}.timeline-page .sidebar{background:#d1e3f2;border-color:#bfcfdd}.timeline-page .heading{margin-top:25px;margin-bottom:24px}.timeline-page .heading h1{font-size:27px}.timeline-page .heading .subtitle{font-size:11px}.timeline-page .heading .primary{padding:10px 12px;font-size:11px}.timeline-top{padding:0 17px 25px}.timeline-caption>span:first-child{font-size:8px;letter-spacing:1.4px}.timeline-caption>span:last-child{font-size:10px;letter-spacing:0}.timeline-caption .timeline-cat{width:34px;height:34px}.timeline-week{gap:5px;margin-top:14px}.timeline-day{font-size:14px;gap:8px}.day-bubble{width:40px;height:40px;font-size:24px}.timeline-day small{font-size:9px;letter-spacing:0}.timeline-sheet{border-radius:28px 28px 0 0;padding:22px 12px 30px}.timeline-tools{flex-wrap:wrap;gap:8px}.timeline-search{flex-basis:100%;border-bottom:1px solid #e8edf1;padding-bottom:7px}.timeline-month-filter{flex:1}.timeline-month-filter input{width:145px}.timeline-filter-note{font-size:10px;margin-left:6px}.timeline-month-title{margin-left:6px;margin-top:24px}.timeline-list,.timeline-empty{margin-left:54px}.timeline-row,.timeline-empty{padding-left:14px}.timeline-row{padding-bottom:26px}.timeline-stamp{right:calc(100% + 10px);gap:9px}.stamp-day{font-size:15px}.stamp-clock{font-size:12px}.stamp-repeat{font-size:9px;line-height:18px}.timeline-dot{width:7px;height:7px;left:-4px;top:31px}.diary-paper{padding:19px 17px;min-height:185px;border-radius:9px}.diary-content{width:calc(100% - 35px)}.diary-content h3{font-size:17px;margin-bottom:9px}.diary-photos img{width:70px;height:76px;border-radius:5px}.diary-photos{gap:7px}.diary-lines{font-size:16px;letter-spacing:.5px;-webkit-line-clamp:4}.timeline-cat{width:51px;height:51px;right:8px;bottom:15px;opacity:.8}.with-photos .timeline-cat{bottom:18px}.diary-meta{font-size:9px;gap:5px}.text-only .timeline-cat{width:44px;height:44px;bottom:13px}.text-only .diary-meta{padding-right:42px}.empty-stamp{right:calc(100% + 10px);font-size:14px}.empty-paper{min-height:220px;padding-top:32px}.empty-paper h3{font-size:18px;max-width:100%}.empty-paper p{font-size:11px;max-width:80%}.timeline-empty{margin-top:28px}.timeline-end{margin-top:26px}.timeline-end span{font-size:9px;letter-spacing:2px}.timeline-write{width:54px;height:54px;right:20px;bottom:24px}.timeline-page .footer{font-size:8px;letter-spacing:1px}}
@media(prefers-reduced-motion:reduce){.timeline-day .day-bubble,.diary-paper,.timeline-write{transition:none}.diary-paper:hover{transform:none}}
.relationship-breakdown{display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:18px;font-size:12px;color:#616f7a;align-items:center}.relationship-breakdown b{font-family:Georgia,serif;font-size:17px;font-weight:400;margin-left:5px}.period-plus{color:#96a2ac}.hero .relationship-hero-note{font-size:11px;line-height:1.9;margin-bottom:0}.relationship-hero-edit{padding:10px 0;font-size:11px}.relationship-panel .section-head{margin-top:0;gap:15px}.relationship-total{display:flex;align-items:baseline;gap:12px;margin:25px 0}.relationship-total strong{font:48px Georgia,serif;color:#515d67}.relationship-total>span{font-size:12px;color:#818c95}.relationship-period{display:flex;align-items:center;gap:20px;padding:20px 0;border-top:1px solid #e4eaee}.period-index{font:22px Georgia,serif;color:#adbac4}.relationship-period>div{flex:1}.relationship-period h3{font-size:15px;margin:0 0 8px}.relationship-period p{margin:0;font-size:12px}.relationship-period small{font-size:10px;color:#8f99a2}.relationship-period>strong{font:27px Georgia,serif;color:#5a6b79;white-space:nowrap}.relationship-anniversary{border-top:1px solid #dde4e9;padding-top:22px;margin-top:5px}.relationship-anniversary>span{font-size:11px;letter-spacing:2px;color:#8f99a2}.relationship-anniversary h3{font-family:"SimSun",serif;color:#5a6b79;font-size:20px}.period-editor-row{border:1px solid #ced7df;background:#ffffff;border-radius:8px;padding:15px 18px 20px;margin:22px 0}.period-editor-row legend{font-size:12px;color:#7f8c97;padding:0 8px}.period-editor-row .field{margin-top:9px}.period-editor-top{display:flex;gap:16px;align-items:center}.period-editor-top>.field{flex:1}.period-editor-row .subtitle{font-size:10px;margin:10px 0 0}.anniversary-editor{border-top:1px solid #d7dfe5;margin-top:25px;padding-top:15px}.anniversary{position:relative}.anniversary-edit{position:absolute;right:14px;top:14px;font-size:11px}.hero:has(.relationship-breakdown){min-height:340px}.hero:has(.relationship-breakdown) .hero-copy{width:85%}@media(max-width:650px){.relationship-panel .section-head{align-items:flex-start}.relationship-panel .secondary{padding:9px;font-size:11px}.relationship-period{gap:10px}.relationship-period>strong{font-size:23px}.relationship-period p{font-size:11px}.relationship-period h3{font-size:14px}.relationship-breakdown{font-size:11px;gap:5px 8px}.hero:has(.relationship-breakdown){min-height:350px}.hero:has(.relationship-breakdown) .hero-copy{width:100%}.period-editor-row{padding:12px}.relationship-total strong{font-size:40px}}
/* 年度箱子与月度日记本：纯 CSS 纸张、布面和纸箱 */
.timeline-archive-link{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 20px;font-size:11px;color:#7a8893}.timeline-archive-link .secondary{font-size:11px;border-radius:18px;background:#ffffff}.library-intro{display:flex;justify-content:space-between;align-items:center;padding:36px 42px;background:#dce5ec;border-radius:16px;margin-bottom:36px}.library-intro h2{font-family:"KaiTi","SimSun",serif;font-size:30px;line-height:1.7;letter-spacing:3px;margin:15px 0}.library-intro p{font-size:12px;color:#7e8b95;line-height:2}.library-intro-stamp{border:1px solid #9aa9b6;border-radius:70px 70px 8px 8px;width:120px;height:155px;display:flex;flex-direction:column;align-items:center;justify-content:center;font:30px/1.3 "SimSun",serif;color:#8294a2;transform:rotate(7deg);position:relative}.library-intro-stamp span{position:absolute;bottom:-25px;font:8px sans-serif;letter-spacing:2px;white-space:nowrap}.year-crates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.year-crate-card{border:1px solid #d5dee5;border-radius:12px;background:#ffffff;padding:28px 24px 20px;text-align:left;color:inherit;transition:transform .25s,box-shadow .25s}.year-crate-card:hover{transform:translateY(-4px);box-shadow:0 10px 28px #4b5f6f12}.year-crate-art{position:relative;width:230px;height:185px;margin:10px auto 26px}.crate-back{position:absolute;width:180px;height:100px;left:25px;top:12px;background:linear-gradient(105deg,#82a1bb,#b7c9d8);transform:skewY(-8deg);border:2px solid #a9bed0;border-radius:3px}.crate-books{position:absolute;left:40px;right:30px;top:19px;height:120px;display:flex;align-items:flex-end;gap:3px;transform:skewY(-8deg);overflow:hidden}.crate-books>span:not(.crate-letter){height:110px;width:15px;background:#9ba7b1;border:1px solid #7a8995;border-radius:3px 3px 0 0;color:#ffffff;font:8px Georgia,serif;display:flex;justify-content:center;padding-top:8px;box-shadow:inset 3px 0 #ffffff35}.crate-books>span.spine-tone-1{background:#86a5be;border-color:#6b8fac}.crate-books>span.spine-tone-2{background:#8ea7bb;border-color:#7c95a9}.crate-books>span.spine-tone-3{background:#9aabba;border-color:#8495a2}.crate-letter{font-family:"KaiTi",serif;font-size:12px;color:#6a8296;position:absolute;top:34px;left:22px;letter-spacing:3px}.crate-front{position:absolute;left:9px;bottom:5px;width:188px;height:104px;background:repeating-linear-gradient(2deg,#b6c9d8 0,#b6c9d8 2px,#c2d1de 3px,#ccd9e4 8px);border:1px solid #98b2c7;border-radius:3px;transform:skewY(5deg);box-shadow:0 7px 8px #2c405113;display:flex;flex-direction:column;padding:18px 20px;color:#547188}.crate-front>span{font-size:7px;letter-spacing:3px}.crate-front strong{font:32px Georgia,serif;margin:5px 0}.crate-front i{position:absolute;right:22px;bottom:16px;font:22px Georgia,serif}.crate-side{position:absolute;left:197px;bottom:8px;width:32px;height:104px;background:linear-gradient(90deg,#93aec5,#bbcddb);transform:skewY(-25deg);transform-origin:left bottom;border:1px solid #96b0c6;border-radius:0 3px 3px 0}.year-crate-caption{display:flex;justify-content:space-between;align-items:center;gap:10px}.year-crate-caption h2{font-family:"SimSun",serif;font-size:19px}.year-crate-caption>span{font-size:10px;color:#808d97}.year-crate-card>p{font-size:11px;color:#87919a;margin:12px 0 0}.library-rule{display:flex;align-items:center;gap:18px;margin-top:30px;border-top:1px solid #d9e0e5;padding:20px 0}.library-rule>span{color:#94a5b3;font-size:25px}.library-rule p{font-size:11px;color:#818d97;margin:0;line-height:2}.library-rule b{font-weight:400;color:#677581}.library-breadcrumb{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8c969f;margin-bottom:20px}.shelf-heading{padding:24px 0 10px;text-align:center}.shelf-heading h2{font:26px "SimSun",serif;letter-spacing:3px;margin-top:18px}.shelf-heading p{font-size:12px;color:#828f99;margin:15px 0 25px}.month-shelf{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:35px 22px;background:#dfe8ef;border:1px solid #d0dce5;border-radius:15px;padding:35px 27px}.month-slot{text-align:center;min-width:0;position:relative}.month-slot>p{font-size:10px;color:#818d96;margin:18px -8px 0}.month-book{position:relative;width:100%;max-width:146px;height:205px;padding:0;margin:auto;display:block;border:0;border-radius:5px 10px 10px 5px;background-color:#9fb3c4;background-image:repeating-linear-gradient(0deg,transparent 0,transparent 10px,#ffffff30 11px,transparent 12px),repeating-linear-gradient(90deg,transparent 0,transparent 10px,#ffffff35 11px,transparent 12px);box-shadow:3px 6px 0 #bbc7d1,5px 9px 12px #2c415224;transition:transform .22s;transform:rotate(-2deg);color:#516270;text-align:center}.month-book:hover{transform:rotate(1deg) translateY(-5px)}.month-book.cover-tone-1{background-color:#9bb4c9;color:#4d718e}.month-book.cover-tone-2{background-color:#a0b8cc;color:#5d798f}.month-book.cover-tone-3{background-color:#acbbc4;color:#667c88}.book-spine{position:absolute;inset:0 auto 0 0;width:13px;border-radius:5px 0 0 5px;background:#4c565e80;box-shadow:inset -2px 0 #ffffff60,3px 0 4px #3c454c18}.book-cover-label{display:flex;flex-direction:column;gap:6px;background:#ffffffcf;border:1px solid #ffffff90;border-radius:50%/23%;position:absolute;left:29px;right:16px;top:27px;padding:14px 3px}.book-cover-label small{font:6px Georgia,serif;letter-spacing:1px}.book-cover-label strong{font:38px Georgia,serif;font-weight:400}.book-cover-label>span{font:12px "KaiTi",serif}.book-cover-year{position:absolute;bottom:30px;left:20px;right:10px;font:9px Georgia,serif;letter-spacing:1px}.book-cover-clasp{position:absolute;right:-5px;top:126px;width:27px;height:22px;background:#92aabd;border-radius:4px 0 0 4px;box-shadow:0 2px 3px #37465220}.book-cover-clasp:after{content:'';width:9px;height:9px;background:#dfecf6;position:absolute;left:8px;top:6px;border-radius:50%;box-shadow:1px 1px 2px #7775}.cover-tone-1 .book-cover-clasp{background:#80a0ba}.cover-tone-2 .book-cover-clasp{background:#b99483}.cover-tone-3 .book-cover-clasp{background:#91a6b2}.book-page-edges{position:absolute;bottom:0;left:13px;right:0;height:9px;border-radius:0 0 6px 0;background:repeating-linear-gradient(0deg,#ffffff 0,#ffffff 1px,#bfcdd8 2px);border-bottom:3px solid #5b6872}.empty-book-slot{height:205px;max-width:146px;width:100%;margin:auto;border:1px dashed #bec7cf;border-radius:7px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#93a0aa;background:#eff4f960;gap:10px;padding:12px;font-size:10px}.slot-number{font:35px Georgia,serif;color:#adb9c3}.empty-book-slot small{font-size:9px;color:#8695a2;line-height:1.8}.month-slot.slot-current .empty-book-slot{border-color:#90a7b9;background:#e2edf6;color:#758795}.month-slot.slot-future .empty-book-slot{opacity:.5}.library-footnote{font-size:11px;color:#808d97;text-align:center;margin:25px 0;line-height:2}.reader-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;color:#77838d;margin-bottom:24px}.reader-toolbar>.plain{font-size:12px;white-space:nowrap}.open-notebook{display:flex;max-width:850px;margin:auto;background:#466075;border:5px solid #4b6478;border-radius:8px 24px 24px 8px;padding:6px 9px 8px 0;box-shadow:0 12px 25px #283b4a24,6px 2px 0 #b8c6d2}.notebook-binding{width:35px;flex-shrink:0;background:linear-gradient(90deg,#e9f1f8,#ced5db 65%,#9fa7ae 85%,#dfe7ee);border-right:1px solid #c4ced7;border-radius:2px 0 0 2px}.notebook-page{position:relative;background-color:#ffffff;background-image:radial-gradient(#bbc7d075 .7px,transparent .7px);background-size:17px 26px;border-radius:0 16px 16px 0;padding:28px 34px 20px;min-width:0;flex:1;min-height:580px;box-shadow:4px 0 #d3dce3,7px 0 #c4ccd3}.notebook-page-header{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:26px;background:#ffffff}.notebook-page-header>span:first-child{font:32px "KaiTi",Georgia,serif;color:#5d6469}.notebook-page-header>span:last-child{font:10px Georgia,serif;letter-spacing:2px;color:#818a92}.notebook-page-header b{font:27px Georgia,serif;margin-left:9px;font-weight:400}.notebook-page-content{padding:6px 3px 35px}.book-entry{margin-bottom:23px}.book-entry:last-child{margin-bottom:0}.book-entry-date{display:flex;align-items:center;gap:10px;color:#939fa8;font-size:10px;margin-bottom:8px}.book-entry-date time{font:14px "KaiTi",Georgia,serif}.book-entry-date>span{flex:1}.book-entry-date .plain{font-size:9px;padding:0;color:#8c9aa6}.book-entry h3{font-family:"KaiTi","SimSun",serif;font-size:18px;font-weight:400;margin:9px 0;line-height:1.8;overflow-wrap:anywhere}.book-entry-text{font-family:"KaiTi","STKaiti","SimSun",serif;font-size:18px;line-height:2;letter-spacing:.7px;color:#596066;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.book-entry-location{display:block;font-size:10px;color:#8f9aa3;margin-top:10px}.book-entry-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:15px;margin:15px 0}.book-entry-photos img{display:block;max-width:100%;width:100%;max-height:320px;object-fit:contain;background:#e2e9ee;border:5px solid #ffffff;box-shadow:1px 3px 6px #63738026}.notebook-page-footer{margin-top:35px;display:flex;justify-content:space-between;align-items:center;padding-right:50px;font-size:9px;color:#8c98a1;position:relative;min-height:28px;letter-spacing:1px}.notebook-page-footer .timeline-cat{width:35px;height:35px;right:0;bottom:0;transform:none}.book-pagination{display:flex;justify-content:center;align-items:center;gap:25px;margin:30px 0 12px}.book-pagination>span{font-size:12px;color:#8b959d}.book-pagination button:disabled{opacity:.35;cursor:default}.reader-hint{font-size:10px;color:#8f9ca6;text-align:center;line-height:1.8}.book-contents{display:grid;gap:5px;margin-top:20px}.contents-row{display:flex;gap:12px;align-items:center;border:0;background:#e8eef2;padding:15px 12px;text-align:left;border-radius:5px;color:#64717b}.contents-row>time,.contents-row>small{font-size:11px;white-space:nowrap}.contents-row>span{flex:1;overflow-wrap:anywhere;font-size:13px;line-height:1.7}.contents-row>small{color:#8c98a1}@media(max-width:1000px){.month-shelf{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 20px;padding:30px 22px}.year-crates{gap:16px}.year-crate-card{padding:20px 14px}.year-crate-art{transform:scale(.85);transform-origin:center bottom;width:230px;margin-left:calc(50% - 115px);margin-right:0;margin-top:-10px}.year-crate-caption{flex-direction:column;align-items:flex-start;gap:9px}.notebook-page{padding:23px}.book-entry-text{font-size:17px}}@media(max-width:650px){.timeline-archive-link{margin-inline:18px;align-items:flex-start}.timeline-archive-link>span{font-size:9px;max-width:45%;line-height:1.8}.timeline-archive-link .secondary{padding:8px 12px;font-size:10px}.library-intro{padding:26px 22px;border-radius:12px}.library-intro h2{font-size:24px;letter-spacing:1px}.library-intro p{font-size:10px}.library-intro-stamp{width:68px;height:105px;font-size:25px;margin-left:12px}.library-intro-stamp span{font-size:6px;letter-spacing:1px;bottom:-18px}.year-crates{grid-template-columns:1fr}.year-crate-card{padding:20px 24px}.year-crate-art{transform:scale(1);margin:0 auto 20px}.year-crate-caption{flex-direction:row;align-items:center}.year-crate-caption h2{font-size:19px}.shelf-heading h2{font-size:22px;letter-spacing:2px}.shelf-heading p{font-size:10px}.month-shelf{grid-template-columns:repeat(2,minmax(0,1fr));padding:25px 20px;gap:28px 22px}.month-book{height:195px}.empty-book-slot{height:195px}.book-cover-label{left:23px;right:13px;padding:12px 3px}.book-cover-label strong{font-size:34px}.reader-toolbar{font-size:10px;flex-wrap:wrap;gap:12px}.reader-toolbar>.plain{font-size:11px}.reader-toolbar>span{order:3;width:100%;text-align:center}.notebook-binding{width:15px}.notebook-page{padding:20px 16px;min-height:480px}.open-notebook{padding-right:6px;border-width:3px;border-radius:6px 17px 17px 6px;box-shadow:0 7px 18px #283b4a1c}.notebook-page-header>span:first-child{font-size:26px}.notebook-page-header>span:last-child{font-size:8px;letter-spacing:1px}.notebook-page-header b{font-size:23px}.notebook-page-content{padding-inline:0}.book-entry-text{font-size:16px;line-height:2;letter-spacing:.2px}.book-entry h3{font-size:17px}.book-entry-date{gap:6px;flex-wrap:wrap}.book-entry-date>span{font-size:9px}.book-entry-photos{grid-template-columns:1fr}.book-entry-photos img{max-height:270px}.book-pagination{gap:12px}.book-pagination>.secondary{padding:9px 12px;font-size:11px}.book-pagination>span{font-size:10px}.notebook-page-footer{font-size:8px;letter-spacing:0;padding-right:35px;gap:7px}.notebook-page-footer .timeline-cat{width:29px;height:29px}.contents-row{gap:8px;padding:12px 8px}.contents-row>span{font-size:12px}.contents-row>small{font-size:9px}}@media(prefers-reduced-motion:reduce){.month-book,.year-crate-card{transition:none}}
.member-avatar{width:46px;height:46px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;background:#d8e0e7;color:#637584;font-size:15px;border:1px solid #ced7df}.member-avatar.avatar-tone-1{background:#d4e1ec;color:#658299;border-color:#c8d6e2}.member-avatar img{width:100%;height:100%;object-fit:cover}.member-avatar.top-avatar{width:31px;height:31px;font-size:11px}.photo-feed{max-width:860px;margin:10px auto}.photo-post{padding:27px 0 32px;border-bottom:1px solid #dbe1e5}.photo-post:first-child{padding-top:5px}.photo-post:last-child{border-bottom:0}.photo-post-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}.photo-post-date{display:flex;align-items:center;gap:12px}.post-clock{display:grid;place-items:center;width:29px;height:29px;background:#d8a4a1;border-radius:50%;color:#ffffff}.post-clock svg{width:22px;height:22px}.post-day{font:bold 28px Georgia,serif;letter-spacing:1px;color:#40474d;display:block;line-height:1.2}.post-time{display:block;font-size:10px;color:#8f99a1;margin-top:7px;letter-spacing:.5px}.photo-post-author{display:flex;align-items:center;flex-direction:column;gap:6px;color:#85919b;font-size:10px;min-width:46px}.photo-post-title{font-family:"KaiTi","SimSun",serif;font-size:20px;line-height:1.7;margin:4px 0 10px;overflow-wrap:anywhere}.photo-post-caption{font-size:14px;color:#7e8890;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 19px}.photo-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;max-width:680px}.photo-post-grid>a{display:block;aspect-ratio:1;overflow:hidden;background:#dde4ea;border-radius:3px}.photo-post-grid img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.photo-post-grid a:hover img{transform:scale(1.025)}.photo-post-grid.single-photo{grid-template-columns:minmax(0,350px)}.photo-post-grid.single-photo>a{aspect-ratio:auto;max-height:480px}.photo-post-grid.single-photo img{height:auto;max-height:480px;object-fit:contain}.photo-post-grid:has(>a:nth-child(2)):not(:has(>a:nth-child(3))){grid-template-columns:repeat(2,minmax(0,1fr))}.photo-post-footer{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:13px;font-size:10px;color:#8d99a3;max-width:680px}.photo-post-footer .plain{font-size:10px;white-space:nowrap}.profile-editor{display:grid;grid-template-columns:80px 1fr;gap:20px;align-items:center}.member-avatar.profile-avatar{width:74px;height:74px;font-size:23px}.profile-editor input[type=file]{font-size:12px;background:none;border:0;padding:5px 0}.profile-editor .field{margin-top:7px}@media(max-width:650px){.photo-post{padding:22px 0 25px}.photo-post-header{margin-bottom:15px}.post-day{font-size:25px}.post-clock{width:25px;height:25px}.post-clock svg{width:19px;height:19px}.photo-post-date{gap:9px}.post-time{font-size:9px}.photo-post-author .member-avatar{width:39px;height:39px;font-size:12px}.photo-post-author{font-size:9px;gap:4px}.photo-post-caption{font-size:13px;line-height:1.85;margin-bottom:15px}.photo-post-title{font-size:18px}.photo-post-grid{gap:4px}.photo-post-grid.single-photo{grid-template-columns:minmax(0,280px)}.photo-post-footer{font-size:9px;gap:8px}.profile-editor{grid-template-columns:54px 1fr;gap:15px}.member-avatar.profile-avatar{width:54px;height:54px;font-size:18px}}
/* 照片墙统一三列：单张、双张均不跨格。 */
.photo-post-grid,.photo-post-grid.single-photo,.photo-post-grid:has(>a:nth-child(2)):not(:has(>a:nth-child(3))){grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:680px}
.photo-post-grid>a,.photo-post-grid.single-photo>a{aspect-ratio:1;max-height:none}
.photo-post-grid img,.photo-post-grid.single-photo img{width:100%;height:100%;max-height:none;object-fit:cover}
