:root{font-family:"Noto Sans CJK SC","Microsoft YaHei",system-ui,sans-serif;color:#20302d;background:#f5f7f6;font-synthesis:none;letter-spacing:0}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #db6758;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
.app-shell{min-height:100vh;display:grid;grid-template-columns:246px minmax(0,1fr)}.sidebar{background:#fff;border-right:1px solid #e5eae7;padding:37px 21px 26px;display:flex;flex-direction:column;min-height:100vh}.brand{display:flex;align-items:center;gap:12px;padding-left:15px;font-size:24px;font-weight:700;letter-spacing:0;color:#203630}.brand-mark{width:30px;height:30px;background:#e96758;display:grid;place-items:center;border-radius:3px;transform:rotate(-7deg)}.brand-mark span{height:19px;width:2px;background:white;transform:rotate(20deg);box-shadow:6px 0 0 white}.side-nav{display:grid;gap:5px;margin-top:83px}.nav-item{border:0;background:transparent;color:#697772;text-align:left;padding:15px 18px;border-radius:5px;font-weight:600;display:flex;align-items:center;gap:17px}.nav-item:hover,.nav-item.is-active{background:#eaf1ee;color:#1c544c}.nav-symbol{font-size:20px;line-height:1;width:22px;text-align:center;font-weight:400}.sidebar-bottom{margin-top:auto;padding:0 16px;color:#7b8884;font-size:12px;line-height:1.8}.sidebar-bottom p{margin:20px 0 4px}.privacy-rule{height:1px;background:#e2e9e5}.quiet-link{padding:0;border:0;background:transparent;color:#256a60;font-size:13px;font-weight:600}.quiet-link:hover{text-decoration:underline}.mobile-bar,.bottom-nav{display:none}
.main-content{min-width:0;padding:0 clamp(28px,5.5vw,96px) 70px}.view{max-width:1300px;margin:0 auto}.page-head{min-height:234px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:66px 0 39px;border-bottom:1px solid #dce4df}.eyebrow{margin:0 0 17px;color:#d46555;font-size:12px;font-weight:700;letter-spacing:0}.page-head h1{font-family:"Noto Serif CJK SC","Songti SC","SimSun",serif;font-weight:600;font-size:clamp(31px,3vw,43px);line-height:1.25;margin:0;color:#1c322c}.head-aside{display:flex;align-items:center;gap:12px;color:#778a82;font-size:13px;padding-bottom:7px}.tiny-spark{color:#e26859;font-size:27px}.write-layout{display:grid;grid-template-columns:minmax(0,1fr) 254px;gap:clamp(30px,4.5vw,80px);padding-top:40px}.editor-wrap{background:#fff;border:1px solid #e2e9e5;box-shadow:0 18px 42px rgba(31,63,50,.035);min-height:610px;padding:31px clamp(25px,4vw,62px) 29px;display:flex;flex-direction:column}.editor-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e9eeeb;padding-bottom:23px}.editor-label{font-size:13px;font-weight:700;color:#38564e}.save-state{font-size:12px;color:#97a39e}.entry-date{border:0;color:#a0aca6;font-size:12px;margin:32px 0 22px;background:transparent;width:150px;padding:0;color-scheme:light}.entry-title{border:0;width:100%;font-family:"Noto Serif CJK SC","Songti SC","SimSun",serif;color:#22372e;font-weight:600;font-size:27px;line-height:1.5;padding:0;margin-bottom:18px;background:transparent;min-height:42px}.entry-title::placeholder{color:#b8c1bb}.entry-body{border:0;outline:none!important;resize:vertical;width:100%;min-height:290px;flex:1;font-size:15px;line-height:2.2;color:#33453e;padding:0;background:transparent}.entry-body::placeholder{color:#b1beb6}.editor-foot{display:flex;justify-content:space-between;gap:15px;color:#9ba9a2;font-size:12px;padding:18px 0 24px;border-bottom:1px solid #e9eeeb}.editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:23px}.button{border:1px solid transparent;border-radius:4px;padding:12px 20px;min-height:44px;font-size:13px;font-weight:700;white-space:nowrap}.button-primary{background:#e46554;color:#fff}.button-primary:hover{background:#cd5345}.button-secondary{background:#fff;color:#38584e;border-color:#d8e2dd}.button-secondary:hover{background:#f4f8f5}.button-danger{color:#b84d42;border-color:#e9cdc8;background:#fff}.button-danger:hover{background:#fff4f2}.writing-rail{padding-top:8px}.rail-top{display:flex;gap:12px;align-items:center;color:#8aa097;font-size:11px;font-weight:700}.rail-line{flex:1;height:1px;background:#d6e1db}.rail-quote{font-family:"Noto Serif CJK SC","Songti SC","SimSun",serif;font-size:22px;line-height:1.85;color:#536c60;margin:24px 0 82px}.rail-list-head{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid #dce5df;padding-bottom:14px}.rail-list-head h2{margin:0;font-size:14px}.recent-item{width:100%;padding:17px 0;background:none;border:0;border-bottom:1px solid #e3eae5;display:flex;justify-content:space-between;gap:12px;text-align:left;color:#40574c}.recent-item strong{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-item span{font-size:11px;color:#9baaa1;white-space:nowrap}.recent-empty{font-size:13px;line-height:1.8;color:#9aa89f;padding-top:12px}
.head-button{align-self:flex-end}.list-toolbar,.feed-bar{display:flex;justify-content:space-between;align-items:center;gap:18px;border-bottom:1px solid #dce4df;min-height:84px}.segmented{display:flex;gap:28px;height:84px}.segmented button{background:none;border:0;border-bottom:2px solid transparent;padding:2px 3px 0;color:#8b9a91;font-size:14px;font-weight:700}.segmented button.is-active{color:#265d51;border-color:#e46554}.segmented span{font-size:11px;margin-left:5px;font-weight:500}.toolbar-note,.feed-bar{font-size:12px;color:#8c9d93}.feed-bar{min-height:71px}.diary-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;padding-top:26px}.diary-card{min-width:0;min-height:230px;padding:26px 29px 25px;background:#fff;border:1px solid #e3eae5;border-radius:5px;display:flex;flex-direction:column;cursor:pointer;transition:transform .18s,border-color .18s}.diary-card:hover{transform:translateY(-2px);border-color:#b9cfc3}.diary-meta{font-size:12px;color:#829589;display:flex;justify-content:space-between;gap:12px}.status-pill{color:#cf6e5e}.diary-card h2{font-family:"Noto Serif CJK SC","Songti SC","SimSun",serif;font-size:21px;line-height:1.45;margin:26px 0 13px;overflow-wrap:anywhere}.diary-card p{font-size:13px;line-height:1.8;color:#718078;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line;overflow-wrap:anywhere}.diary-card-bottom{margin-top:auto;padding-top:25px;display:flex;justify-content:space-between;align-items:center;color:#9bab9f;font-size:12px}.diary-card-bottom span:last-child{font-size:18px;color:#2b6a5a}.empty-state{grid-column:1/-1;min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px;color:#87978e}.empty-art{width:74px;height:90px;border:1px solid #a8bdb1;background:#fff;transform:rotate(-8deg);margin-bottom:27px;position:relative;box-shadow:8px 8px 0 #e2ebe5}.empty-art:before,.empty-art:after{content:"";position:absolute;left:15px;right:15px;height:1px;background:#c9d7cc;top:29px}.empty-art:after{top:43px;right:27px}.empty-state h2{font-family:"Noto Serif CJK SC","Songti SC","SimSun",serif;color:#3c5a4a;font-size:19px;margin:0 0 8px}.empty-state p{font-size:13px;margin:0 0 22px;line-height:1.7}.public-list .diary-card{min-height:265px}
.dialog{border:1px solid #dfe7e1;border-radius:6px;background:#fff;color:#24372e;width:min(100% - 32px,520px);max-height:min(90vh,820px);overflow:auto;padding:36px 39px 32px;box-shadow:0 25px 80px rgba(24,47,35,.2)}.dialog::backdrop{background:rgba(21,40,32,.48)}.dialog form,.dialog>div{position:relative}.dialog-close{position:absolute;right:-7px;top:-17px;background:transparent;border:0;color:#778b7e;font-size:27px;line-height:1;padding:8px}.dialog h2{font-family:"Noto Serif CJK SC","Songti SC","SimSun",serif;font-size:25px;line-height:1.45;margin:0 25px 14px 0;overflow-wrap:anywhere}.dialog-copy,.privacy-text{font-size:13px;color:#687b70;line-height:1.9}.preview-snippet{border-left:3px solid #e56c5d;background:#f7faf8;padding:15px 18px;margin:27px 0 23px;display:grid;gap:7px}.preview-snippet span{font-size:11px;color:#8b9d91}.preview-snippet strong{font-size:15px;overflow-wrap:anywhere}.preview-snippet p{font-size:12px;line-height:1.6;color:#7d9083;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line;margin:0;overflow-wrap:anywhere}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px;flex-wrap:wrap}.read-dialog{width:min(100% - 32px,690px)}.read-dialog h2{font-size:30px;margin:0 22px 27px 0}.read-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:2.1;color:#34483b;min-height:100px}.read-dialog .dialog-actions{border-top:1px solid #e6ede8;padding-top:20px}.privacy-text p{margin:0 0 14px}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,15px);background:#263c33;color:#fff;font-size:13px;padding:12px 18px;border-radius:4px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:20;max-width:calc(100vw - 32px);text-align:center}.toast.is-visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:1050px){.app-shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding-left:13px;padding-right:13px}.main-content{padding-left:36px;padding-right:36px}.write-layout{grid-template-columns:minmax(0,1fr)}.writing-rail{display:none}.editor-wrap{min-height:590px}}
@media(max-width:720px){.app-shell{display:block}.sidebar{display:none}.mobile-bar{height:65px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e4ebe5}.mobile-bar .brand{font-size:20px;padding:0}.mobile-bar .brand-mark{width:26px;height:26px}.main-content{padding:0 20px 105px}.page-head{min-height:174px;padding:43px 0 26px}.page-head h1{font-size:31px}.head-aside,.public-marker{display:none}.write-layout{padding-top:20px}.editor-wrap{min-height:calc(100svh - 338px);padding:22px 21px 20px}.editor-top{padding-bottom:17px}.entry-date{margin:26px 0 18px}.entry-title{font-size:23px}.entry-body{min-height:240px;font-size:14px}.editor-foot{flex-wrap:wrap;gap:5px}.editor-actions{padding-top:18px}.button{padding:11px 15px}.bottom-nav{height:69px;display:grid;grid-template-columns:repeat(3,1fr);position:fixed;bottom:0;left:0;right:0;z-index:8;background:#fff;border-top:1px solid #dde7df}.bottom-nav button{background:transparent;border:0;color:#87968d;font-size:11px;font-weight:700;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;white-space:nowrap}.bottom-nav button span{font-size:19px;line-height:1}.bottom-nav button.is-active{color:#266254}.diary-list{grid-template-columns:1fr;gap:12px}.diary-card{min-height:200px}.list-toolbar,.segmented{height:67px;min-height:67px}.toolbar-note{display:none}.toast{bottom:84px}.dialog{padding:31px 26px 25px}}
@media(max-width:390px){.main-content{padding-left:15px;padding-right:15px}.page-head h1{font-size:28px}.editor-wrap{padding-left:18px;padding-right:18px}.editor-foot span:last-child{max-width:190px;text-align:right}.head-button{padding:10px 12px}}
@media(min-width:721px){.page-head{min-height:210px;padding-top:52px;padding-bottom:30px}.write-layout{padding-top:28px}.editor-wrap{min-height:560px}.entry-body{min-height:230px}.rail-quote{margin-bottom:58px}}
@media(max-width:720px){.page-head{min-height:155px;padding-top:35px;padding-bottom:22px}.entry-body{min-height:180px}.editor-wrap{min-height:calc(100svh - 365px)}}
.dream-art{width:100%;aspect-ratio:1001/601;margin:20px 0 54px;background:#f5ead4 url('/dream-ride.jpg') center/contain no-repeat;border:1px solid #e3e3d8}
@media(max-width:1050px){.editor-wrap{position:relative;isolation:isolate}.editor-wrap::before{content:"";position:absolute;left:50%;bottom:120px;transform:translateX(-50%);width:min(88%,520px);aspect-ratio:1001/601;background:url('/dream-ride.jpg') center/contain no-repeat;opacity:.23;pointer-events:none;z-index:-1}.editor-wrap:has(.entry-body:not(:placeholder-shown))::before{opacity:.08}}
@media(max-width:720px){.editor-wrap::before{width:78%;bottom:125px;opacity:.38}.editor-wrap:has(.entry-body:not(:placeholder-shown))::before{opacity:.08}}
.sidebar .brand{flex-direction:column;align-items:flex-start;gap:5px}.brand-image{display:block;width:108px;height:106px;object-fit:contain}.sidebar .side-nav{margin-top:40px}
@media(max-width:720px){.mobile-bar .brand{gap:8px}.mobile-bar .brand-image{width:38px;height:38px;object-fit:cover}}
.published-card{position:relative;isolation:isolate;overflow:hidden;background:#fbf7ed}.published-card::before{content:"";position:absolute;inset:0;background:url('/published-diary.jpg') center bottom/cover no-repeat;opacity:.18;pointer-events:none;z-index:-1}.published-card>*{position:relative}.published-card h2,.published-card p{color:#294038}.published-card .diary-meta,.published-card .diary-card-bottom{color:#5b6d61}
#publish-dialog,.read-dialog{isolation:isolate;position:relative;background:#fffdf8}#publish-dialog::before,.read-dialog::before{content:"";position:absolute;inset:0;background:url('/published-diary.jpg') center bottom/cover no-repeat;opacity:.13;pointer-events:none;z-index:-1}#publish-dialog>form,.read-dialog>div{position:relative;z-index:1}
