@font-face{font-family:NeedMood;src:url('./assets/NeedMoodNiuNiu.ttf') format('truetype');font-display:swap}
:root{--cream:#fffdf4;--cream2:#faf5e8;--blue:#a9c9da;--blue-light:#e5f0f5;--blue-deep:#789fb5;--berry:#91434d;--berry-soft:#b86d75;--ink:#54444a;--muted:#9b8984;--line:#eee5d6;--white:#fffefa;--shadow:0 8px 24px rgba(116,86,76,.09)}
*{box-sizing:border-box}html{background:var(--cream);scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:NeedMood,"PingFang SC","Microsoft YaHei",sans-serif;font-size:15px;-webkit-tap-highlight-color:transparent}.app-shell{max-width:760px;margin:auto;min-height:100dvh;padding-bottom:105px}.topbar{height:76px;padding:12px 22px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--berry)}.brand-mark{width:45px;height:45px;background:var(--blue-light);border-radius:16px;display:grid;place-items:center;font-size:25px}.brand b{font-size:18px;display:block;letter-spacing:.5px}.brand small{font-size:10px;color:var(--muted);letter-spacing:1.2px}.round-icon{width:39px;height:39px;border:0;border-radius:50%;background:var(--blue-light);color:var(--berry);font-size:21px}
main{padding:0 20px}.hero{min-height:230px;background:var(--blue);border-radius:28px;padding:26px 25px;position:relative;overflow:hidden;display:flex;align-items:center;box-shadow:var(--shadow)}.hero-copy{position:relative;z-index:2}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--berry-soft);font-weight:bold}.hero h1{font-size:29px;line-height:1.34;margin:12px 0 8px;color:#fffdf4;font-weight:600}.hero h1 em{font-style:normal;color:var(--berry)}.hero p{font-size:12px;color:#fffdf4;margin:0 0 17px}.primary-btn{border:0;border-radius:13px;background:var(--berry);color:#fffaf0;padding:12px 18px;font:inherit;font-size:13px;box-shadow:0 4px 10px #91434d24}.hero-art{position:absolute;right:12px;top:10px;width:46%;height:210px}.plate{position:absolute;right:9px;top:31px;width:166px;height:166px;border-radius:50%;background:#fdf8e9;border:8px solid #fff9e9;box-shadow:0 5px 0 #779bb0;display:grid;place-items:center;transform:rotate(-9deg)}.plate span{font-size:75px;filter:drop-shadow(0 4px 2px #b9a58b55)}.plate i{position:absolute;right:10px;top:18px;color:var(--berry);font-size:25px}.spark{position:absolute;color:#fff9e9;font-size:28px}.s1{top:15px;right:160px}.s2{bottom:18px;right:5px}.tiny-note{position:absolute;bottom:12px;left:5px;color:#fff9e9;font-size:12px;line-height:1.1;transform:rotate(-8deg)}
.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0 27px}.stat-card{background:var(--white);border:1px solid #f1e9db;border-radius:17px;padding:13px 10px;display:flex;align-items:center;gap:9px;box-shadow:0 3px 12px #7e5e4c08}.stat-icon{width:34px;height:34px;border-radius:12px;background:var(--blue-light);display:grid;place-items:center;color:var(--berry);font-size:19px}.stat-card strong{display:block;color:var(--berry);font-size:19px;line-height:1.1}.stat-card small{font-size:10px;color:var(--muted)}
.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px}.section-heading h2{margin:5px 0 0;font-size:23px;color:var(--berry)}.section-heading h2 span{color:#c9a9a0;font-size:17px}.text-btn{border:0;background:var(--blue-light);color:var(--berry);border-radius:20px;padding:8px 14px;font:inherit;font-size:12px}.searchbox{height:46px;background:#fffefa;border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;padding:0 13px;gap:9px}.searchbox span{font-size:24px;color:var(--blue-deep)}.searchbox input{border:0;outline:0;background:transparent;flex:1;min-width:0;font:inherit;font-size:13px;color:var(--ink)}.searchbox kbd{font-size:9px;color:#b8aaa0;background:var(--cream2);padding:4px 6px;border-radius:5px}.filters{display:flex;gap:8px;overflow-x:auto;padding:14px 0 17px;scrollbar-width:none}.filters::-webkit-scrollbar{display:none}.filter-chip{white-space:nowrap;border:1px solid #e9e1d4;background:#fffefa;color:#9c8580;border-radius:18px;padding:7px 13px;font:inherit;font-size:11px}.filter-chip.active{background:var(--berry);border-color:var(--berry);color:white}.collection-top{display:flex;justify-content:space-between;align-items:center;margin:0 1px 12px;font-size:12px;color:var(--berry);font-weight:bold}.sort-btn{border:0;background:transparent;color:var(--muted);font:inherit;font-size:11px}.recipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.recipe-card{background:#fffefa;border-radius:19px;overflow:hidden;box-shadow:var(--shadow);border:1px solid #f1e9dd;min-width:0;position:relative}.recipe-cover{height:132px;background:var(--blue-light);display:grid;place-items:center;position:relative;overflow:hidden}.recipe-cover img{width:100%;height:100%;object-fit:cover}.recipe-cover .food-emoji{font-size:61px;filter:drop-shadow(0 5px 3px #8c776233)}.category-tag{position:absolute;left:9px;top:9px;border-radius:12px;padding:5px 8px;background:#fffdf0e8;color:var(--berry);font-size:9px}.favorite-btn{position:absolute;right:8px;top:8px;width:29px;height:29px;border:0;border-radius:50%;background:#fffdf0e8;color:var(--berry);font-size:17px}.favorite-btn.on{background:var(--berry);color:white}.recipe-info{padding:11px 12px 13px}.recipe-info h3{margin:0 0 5px;font-size:14px;color:var(--berry);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recipe-info p{font-size:10px;color:var(--muted);margin:0 0 9px;line-height:1.5;min-height:15px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.recipe-meta{display:flex;justify-content:space-between;color:#a18f88;font-size:10px}.recipe-meta button{border:0;background:transparent;color:var(--blue-deep);font:inherit;padding:0}.empty-state{text-align:center;padding:42px 10px;color:var(--muted)}.empty-state>div{font-size:54px}.empty-state h3{color:var(--berry);margin:10px 0 5px}.empty-state p{font-size:12px;margin:0 0 18px}
.bottom-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,760px);height:82px;padding:9px 17px calc(9px + env(safe-area-inset-bottom));background:#a9c9da;border-radius:24px 24px 0 0;display:flex;align-items:center;justify-content:space-around;box-shadow:0 -6px 24px #667e8520}.nav-item{border:0;background:transparent;color:#fff9ed;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:48px;font:inherit}.nav-item span{font-size:23px;line-height:1.2}.nav-item small{font-size:9px}.nav-item.active{color:var(--berry)}.nav-add{width:48px;height:48px;border:4px solid #d7e8ee;border-radius:17px;background:var(--berry);color:white;font-size:27px;line-height:1;box-shadow:0 4px 10px #7b4b4b30}
.modal{border:0;padding:0;background:transparent;max-width:none;max-height:none;width:100%;height:100%;margin:0;align-items:end;justify-content:center}.modal[open]{display:flex}.modal::backdrop{background:#44353670;backdrop-filter:blur(3px)}.modal-card{width:min(100%,600px);max-height:92dvh;overflow:auto;background:var(--cream);border-radius:26px 26px 0 0;padding:23px 21px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -8px 35px #503c3020;position:relative}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.modal-head h2{margin:4px 0 0;color:var(--berry);font-size:23px}.close-btn{border:0;background:var(--blue-light);color:var(--berry);border-radius:50%;width:34px;height:34px;font-size:24px;line-height:1}.field{display:block;font-size:12px;color:var(--berry);margin:0 0 13px}.field b{color:#c75f69}.field input,.field textarea,.field select{display:block;width:100%;margin-top:7px;border:1px solid #e9dfd0;border-radius:12px;background:#fffefa;padding:12px;color:var(--ink);font:inherit;font-size:13px;outline:none}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--blue-deep);box-shadow:0 0 0 3px #a9c9da35}.field textarea{resize:vertical;min-height:48px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.secondary-btn{border:1px solid #e7dccc;background:#fffefa;color:var(--muted);border-radius:13px;padding:11px 18px;font:inherit;font-size:13px}.detail-card{border-radius:26px 26px 0 0}.detail-close{position:absolute;right:18px;top:17px;z-index:2}.detail-hero{height:190px;margin:-23px -21px 18px;background:var(--blue-light);display:grid;place-items:center;overflow:hidden}.detail-hero img{width:100%;height:100%;object-fit:cover}.detail-hero span{font-size:86px}.detail-card h2{font-size:25px;color:var(--berry);margin:6px 0}.detail-desc{font-size:12px;color:var(--muted);line-height:1.7}.detail-section{margin-top:20px}.detail-section h3{font-size:15px;color:var(--berry);margin:0 0 9px}.detail-section ul,.detail-section ol{padding-left:20px;margin:0;color:var(--ink);font-size:13px;line-height:1.9}.detail-tools{display:flex;gap:9px;margin-top:22px}.detail-tools button{flex:1}.muted{color:var(--muted);font-size:12px;line-height:1.8}.backup-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.backup-tile{border:1px solid #e8e0d2;background:#fffefa;border-radius:17px;padding:18px 12px;display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--berry);font:inherit;cursor:pointer}.backup-tile span{font-size:28px}.backup-tile b{font-size:13px}.backup-tile small{font-size:10px;color:var(--muted)}.about-note{background:var(--blue-light);border-radius:14px;padding:13px;color:var(--berry);font-size:13px}.about-note small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.toast{position:fixed;z-index:30;bottom:100px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:var(--berry);color:white;padding:10px 17px;border-radius:20px;font-size:12px;transition:.25s;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:650px){main{padding:0 30px}.hero{min-height:260px;padding:35px}.hero h1{font-size:35px}.hero-art{right:45px;transform:scale(1.12)}.recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-cover{height:150px}.modal{align-items:center;padding:20px}.modal-card{border-radius:26px;max-height:88dvh}.detail-hero{border-radius:15px;margin:0 0 18px}.detail-close{top:14px;right:14px}}
@media(max-width:370px){main{padding:0 14px}.hero{padding:21px 18px}.hero h1{font-size:25px}.plate{width:132px;height:132px;top:42px}.plate span{font-size:60px}.stats-row{gap:6px}.stat-card{padding:10px 7px;gap:5px}.stat-icon{width:29px;height:29px}.stat-card small{font-size:9px}}
