:root{--paper:#f7f7f5;--surface:#fff;--ink:#333;--soft:#666;--muted:#797974;--gold:#78643c;--action:#eadcb6;--pale:#f1f1ef;--line:#e4e4df;--gold-pale:#f7f2e5;--error:#a43d33;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:18px;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none;padding:0;touch-action:manipulation}button:disabled{cursor:wait;opacity:.55}a{color:var(--gold)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b69d61;outline-offset:3px}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.app{max-width:480px;min-height:100dvh;margin:auto;background:var(--paper);padding:0 22px calc(110px + env(safe-area-inset-bottom));position:relative}header{display:flex;align-items:center;justify-content:space-between;padding:26px 0 19px}.brand{display:flex;gap:9px;align-items:center;font-weight:600;letter-spacing:2px}.brand svg{color:var(--gold)}.small{font-size:14px;line-height:1.65;color:var(--soft)}.local{font-size:12px;background:var(--pale);color:var(--soft);border-radius:8px;padding:4px 7px}.icon-btn{min-width:48px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}h1{font-size:28px;line-height:1.4;letter-spacing:1px;margin:14px 0 10px;font-weight:600}h2{font-size:21px;line-height:1.5;margin:24px 0 12px;font-weight:600}h3{font-size:19px;margin:0 0 12px;font-weight:600}p{line-height:1.75;margin:9px 0}.muted{color:var(--soft)}.gold{color:var(--gold)}.lead{font-size:18px;color:var(--soft)}.child-head{display:flex;gap:15px;align-items:center;margin:6px 0 24px}.child-head h1{margin:0 0 4px;font-size:25px}.avatar{width:66px;height:66px;border-radius:50%;background:var(--gold-pale);display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:28px;flex-shrink:0;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.family-entry{margin-left:auto;color:var(--soft)}.quick{background:var(--pale);padding:18px 16px;border-radius:20px}.quick p{margin:0 0 14px;font-weight:500}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.quick-grid button{display:flex;flex-direction:column;align-items:center;gap:10px;min-height:76px;font-size:17px}.quick-grid button span{background:var(--surface);color:var(--gold);border-radius:17px;width:48px;height:48px;display:grid;place-items:center}.recap-band{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:17px 2px;border-bottom:1px solid var(--line);margin:6px 0 17px}.recap-band>svg:first-child{color:var(--gold);width:28px;height:28px}.recap-band>svg:last-child{margin-left:auto;color:var(--soft)}.recap-band strong{font-weight:500;font-size:17px}.timeline-head{display:flex;align-items:center;justify-content:space-between;margin:17px 0 8px}.timeline-head h2{margin:0}.text-btn{color:var(--gold);min-height:48px;font-size:16px;padding:8px 0}.month-label{display:flex;align-items:center;gap:10px;margin:22px 0 14px;color:var(--gold);font-size:16px;font-weight:500}.month-label:after{content:"";height:1px;background:var(--line);flex:1}.record{position:relative;border-radius:18px;background:var(--surface);padding:19px;margin:0 0 15px;border:1px solid var(--line)}.record-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;color:var(--soft);margin-bottom:12px}.record-date{font-weight:500;color:var(--ink);font-size:16px}.record-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0;line-height:1.85}.record-open{width:100%;text-align:left}.record-open:hover .record-text{color:var(--gold)}.badge{font-size:13px;color:var(--gold);background:var(--gold-pale);padding:5px 9px;border-radius:7px;display:inline-flex;align-items:center;gap:4px}.badge svg{width:15px;height:15px}.media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0}.media-grid.single{grid-template-columns:1fr}.photo{border-radius:12px;width:100%;height:160px;object-fit:cover;background:var(--pale)}.single .photo{height:230px}.media-block{margin:12px 0}video{display:block;width:100%;max-height:360px;background:#222;border-radius:12px}audio{display:block;width:100%;height:44px}.voice-label{font-size:14px;color:var(--gold);margin:10px 0 5px}.record-footer{border-top:1px solid var(--pale);margin-top:14px;padding-top:8px;display:flex;align-items:center;gap:13px}.record-footer button{min-height:48px;display:flex;align-items:center;gap:6px;font-size:15px;color:var(--soft)}.record-footer button.on{color:var(--gold)}.record-footer button.on svg{fill:var(--gold-pale)}.record-footer .spacer{flex:1}.author{font-size:13px;color:var(--soft)}.bottom-nav{position:fixed;z-index:10;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,480px);background:rgba(255,255,255,.97);border-top:1px solid var(--line);padding:9px 10px calc(9px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,1fr)}.bottom-nav button{min-height:57px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;font-size:14px;color:var(--soft)}.bottom-nav button.active{color:var(--gold)}.bottom-nav button.active svg{stroke-width:2}.primary,.secondary,.danger{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;padding:12px 20px;border-radius:13px;width:100%;font-weight:500;margin:12px 0}.primary{background:var(--action);color:#4b4029}.secondary{background:var(--surface);border:1px solid var(--line)}.danger{color:var(--error);background:var(--surface)}.back{display:flex;align-items:center;gap:5px;min-height:48px;color:var(--soft);font-size:16px}.top-page{display:flex;justify-content:space-between;align-items:center;padding:12px 0 5px}.top-page strong{font-size:17px;font-weight:500}.form{margin:20px 0}label.field{display:block;font-size:16px;font-weight:500;margin:19px 0 8px}input:not([type=checkbox]),textarea,select{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:12px;min-height:53px;padding:13px 14px;appearance:none;line-height:1.45}input[type=checkbox]{accent-color:var(--gold);width:22px;height:22px;flex-shrink:0}textarea{resize:vertical;min-height:150px;font-size:19px;line-height:1.8}textarea::placeholder{color:var(--muted)}.check-row{display:flex;align-items:center;gap:10px;font-size:16px;min-height:48px;margin:14px 0}.panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;margin:16px 0}.section-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.empty{text-align:center;padding:42px 12px}.empty svg{width:62px;height:62px;color:#bca56e;margin:8px 0 15px}.empty h2{margin:0 0 10px}.empty p{font-size:16px;color:var(--soft)}.welcome{padding:25px 0 0}.welcome-art{height:190px;display:grid;place-items:center;margin:0 0 30px;background:radial-gradient(ellipse at center,var(--gold-pale) 0%,transparent 70%)}.welcome-art svg{width:130px;height:130px;stroke:#bca56e;stroke-width:1.05}.welcome h1{font-size:30px;letter-spacing:2px}.welcome p{font-size:17px}.pills{display:flex;gap:8px;overflow:auto;margin:18px -2px;padding:3px 2px}.pills button{white-space:nowrap;min-height:45px;padding:10px 14px;background:var(--surface);border:1px solid var(--line);border-radius:10px;font-size:16px}.pills button.active{background:var(--gold-pale);color:var(--gold);border-color:#dfcea5}.search-row{position:relative}.search-row svg{position:absolute;left:13px;top:15px;color:var(--soft)}.search-row input{padding-left:45px}.attachments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.attachment{position:relative;background:var(--pale);border-radius:10px;min-height:96px;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:13px;gap:7px;overflow:hidden}.attachment img{width:100%;height:96px;object-fit:cover}.attachment button{position:absolute;right:0;top:0;min-height:48px;min-width:48px;background:rgba(255,255,255,.94);border-radius:0 0 0 10px}.attachment button svg{width:19px;height:19px}.upload-note{font-size:14px;color:var(--soft);margin:12px 0}.voice-control{margin:18px 0}.recording{color:var(--error);background:#fbefed}.recap-cover{background:var(--gold-pale);padding:35px 22px;border-radius:20px;text-align:center;margin:18px 0}.recap-cover svg{width:46px;height:46px;color:var(--gold)}.recap-cover h1{font-size:26px}.member{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.member:last-child{border:0}.member .avatar{width:45px;height:45px;font-size:18px;background:var(--pale);color:var(--soft)}.member .text-btn{margin-left:auto}.member .mini{width:auto;min-height:44px;padding:8px 12px;font-size:15px;margin:0}.member p{margin:0}.url-box{font-size:14px;line-height:1.6;word-break:break-all;background:var(--pale);border-radius:10px;padding:14px;user-select:all}.stack{display:flex;flex-direction:column;gap:5px}.error-box{color:var(--error);background:#fbefed;border-radius:12px;padding:14px;font-size:16px;line-height:1.6;margin:15px 0}.progress{font-size:15px;color:var(--gold);text-align:center;min-height:24px}.draft-link{font-size:15px;min-height:48px;color:var(--gold);width:100%;text-align:left;margin:6px 0}.recap-list button{width:100%;display:flex;align-items:center;text-align:left;min-height:65px;border-bottom:1px solid var(--line);gap:10px}.recap-list button:last-child{border:0}.recap-list svg{margin-left:auto}.header-link{min-height:48px;color:var(--gold);font-size:16px}#toast{position:fixed;left:50%;bottom:115px;transform:translateX(-50%);max-width:calc(100% - 40px);background:#45433e;color:#fff;border-radius:12px;padding:12px 18px;font-size:16px;line-height:1.5;opacity:0;pointer-events:none;transition:opacity .2s;z-index:30}#toast.visible{opacity:1}.loading{padding:80px 0;text-align:center;color:var(--soft)}.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.share-actions{display:flex;gap:10px}.share-actions button{flex:1}.footer-note{font-size:13px;color:var(--soft);text-align:center;margin:23px 0}.photo-button{display:block;width:100%}@media(min-width:600px){body{background:#ecece8}.app{border-left:1px solid var(--line);border-right:1px solid var(--line);box-shadow:0 0 50px #33333305}}@media(max-width:360px){.app{padding-left:16px;padding-right:16px}.quick-grid button{font-size:15px}.record{padding:15px}.record-footer{gap:8px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
