:root{--bg:#fbf6ef;--surface:#fff;--surface-2:#f6eee3;--surface-3:#efe4d5;--text:#2b2622;--text-soft:#5d5248;--muted:#8d8175;--line:#ece0d1;--brand:#e8622c;--brand-dark:#c74d1d;--brand-soft:#fde7db;--green:#2f7a5b;--green-soft:#e3f1e9;--danger:#c2382b;--radius-lg:22px;--radius:16px;--radius-sm:12px;--shadow-sm:0 2px 10px #58391f0f;--shadow:0 12px 34px #58391f1f;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Noto Sans SC,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}html{background:var(--bg)}body{min-height:100dvh;color:var(--text);background:radial-gradient(1100px 500px at -10% -20%, #ffe6d5 0%, transparent 60%), radial-gradient(900px 500px at 110% 0%, #e6f1e6 0%, transparent 55%), var(--bg);-webkit-font-smoothing:antialiased;overscroll-behavior-y:none;background-attachment:fixed;margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:none;padding:0}a{color:inherit;text-decoration:none}input,textarea{-webkit-appearance:none}h1,h2,h3,p{margin:0}img{max-width:100%;display:block}::selection{background:var(--brand-soft)}.app{width:100%;max-width:760px;padding:calc(12px + var(--safe-top)) 18px calc(110px + var(--safe-bottom));min-height:100dvh;margin:0 auto}.splash{min-height:100dvh;color:var(--muted);place-items:center;display:grid}.splash-mark{background:var(--brand);color:#fff;width:64px;height:64px;box-shadow:var(--shadow);border-radius:20px;place-items:center;margin:0 auto 14px;font-size:30px;display:grid}.app-header{justify-content:space-between;align-items:flex-start;gap:16px;padding:10px 2px 18px;display:flex}.app-title{letter-spacing:.5px;font-size:27px;font-weight:800;line-height:1.2}.app-title .dot{color:var(--brand)}.app-subtitle{color:var(--muted);margin-top:6px;font-size:13px}.header-actions{align-items:center;gap:8px;display:flex}.icon-btn{width:42px;height:42px;color:var(--text-soft);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm);border-radius:14px;place-items:center;transition:transform .15s,background .15s;display:grid}.icon-btn:active{transform:scale(.94)}.icon-btn:hover{background:var(--surface-2)}.search{margin-bottom:12px;position:relative}.search svg{color:var(--muted);pointer-events:none;position:absolute;top:50%;left:15px;transform:translateY(-50%)}.search input{border:1px solid var(--line);background:var(--surface);width:100%;height:50px;box-shadow:var(--shadow-sm);border-radius:15px;outline:none;padding:0 44px;font-size:15px;transition:border-color .15s,box-shadow .15s}.search input::placeholder{color:#a99c8e}.search input:focus{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft)}.search-clear{width:34px;height:34px;color:var(--muted);border-radius:50%;place-items:center;display:grid;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.chips{scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:8px;padding:4px 2px 16px;display:flex;overflow-x:auto}.chips::-webkit-scrollbar{display:none}.chip{border:1px solid var(--line);background:var(--surface);height:36px;color:var(--text-soft);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:6px;padding:0 15px;font-size:13.5px;font-weight:600;transition:background .15s,color .15s,border-color .15s;display:inline-flex}.chip:active{transform:scale(.97)}.chip.active{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 6px 16px #e8622c47}.chip.ghost{color:var(--muted);border-style:dashed}.list-meta{color:var(--muted);justify-content:space-between;align-items:center;margin:2px 2px 12px;font-size:12.5px;display:flex}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;display:grid}@media (width>=620px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);flex-direction:column;transition:transform .18s,box-shadow .18s;display:flex;position:relative;overflow:hidden}.card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}.card-cover{aspect-ratio:4/3;background:linear-gradient(150deg,#f8e6d4,#eed9c0);position:relative;overflow:hidden}.card-cover img{object-fit:cover;width:100%;height:100%}.cover-empty{color:#8c603a73;place-items:center;width:100%;height:100%;display:grid}.cover-empty span{letter-spacing:2px;font-size:34px;font-weight:800}.card-fav{width:30px;height:30px;color:var(--brand);box-shadow:var(--shadow-sm);background:#ffffffe6;border-radius:50%;place-items:center;display:grid;position:absolute;top:8px;right:8px}.card-body{flex-direction:column;gap:6px;padding:11px 13px 13px;display:flex}.card-title{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:15px;font-weight:700;line-height:1.35;display:-webkit-box;overflow:hidden}.card-meta{color:var(--muted);flex-wrap:wrap;gap:4px 10px;font-size:11.5px;display:flex}.card-cats{flex-wrap:wrap;gap:4px;margin-top:2px;display:flex}.mini-tag{color:var(--green);background:var(--green-soft);border-radius:6px;padding:2px 6px;font-size:10.5px;font-weight:600}.empty{text-align:center;background:var(--surface);border:1px dashed var(--surface-3);border-radius:var(--radius-lg);max-width:420px;margin:28px auto;padding:40px 24px}.empty-icon{background:linear-gradient(150deg,#ffe7d8,#f8d5bd);border-radius:26px;place-items:center;width:88px;height:88px;margin:0 auto 20px;font-size:38px;display:grid}.empty h3{margin-bottom:8px;font-size:18px}.empty p{color:var(--muted);font-size:13.5px;line-height:1.7}.fab{z-index:20;bottom:calc(22px + var(--safe-bottom));background:var(--brand);color:#fff;border-radius:20px;place-items:center;width:58px;height:58px;transition:transform .16s;display:grid;position:fixed;right:max(20px,50vw - 360px);box-shadow:0 14px 30px #c8461461}.fab:active{transform:scale(.93)}.notice{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:var(--radius);box-shadow:var(--shadow-sm);align-items:flex-start;gap:12px;margin-bottom:14px;padding:13px 14px;display:flex}.notice.green{border-left-color:var(--green)}.notice-icon{background:var(--brand-soft);width:34px;height:34px;color:var(--brand-dark);border-radius:10px;flex:none;place-items:center;display:grid}.notice.green .notice-icon{background:var(--green-soft);color:var(--green)}.notice-text{color:var(--text-soft);flex:1;font-size:13px;line-height:1.55}.notice-text b{color:var(--text)}.notice-actions{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.link-btn{color:var(--brand-dark);padding:2px 0;font-size:13px;font-weight:700}.link-btn.muted{color:var(--muted);font-weight:600}.btn{white-space:nowrap;background:var(--surface);border:1px solid var(--line);height:46px;color:var(--text);border-radius:14px;justify-content:center;align-items:center;gap:8px;padding:0 18px;font-size:14.5px;font-weight:700;transition:transform .15s,background .15s;display:inline-flex}.btn:active{transform:scale(.97)}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 8px 20px #e8622c4d}.btn.danger{color:var(--danger);background:#fdf2f0;border-color:#f1c9c2}.btn.ghost{color:var(--muted);background:0 0;border-color:#0000}.btn.block{width:100%}.btn.small{border-radius:11px;height:38px;padding:0 13px;font-size:13px}.btn:disabled{opacity:.55;pointer-events:none}.detail-hero{border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);background:linear-gradient(150deg,#f8e6d4,#ecd4b9);margin-bottom:18px;position:relative;overflow:hidden}.detail-gallery{scroll-snap-type:x mandatory;scrollbar-width:none;display:flex;overflow-x:auto}.detail-gallery::-webkit-scrollbar{display:none}.detail-gallery figure{scroll-snap-align:start;aspect-ratio:4/3;flex:0 0 100%;margin:0}.detail-gallery img{object-fit:cover;width:100%;height:100%}.detail-hero-empty{aspect-ratio:16/10;color:#8c603a80;place-items:center;font-size:44px;display:grid}.detail-back{width:40px;height:40px;color:var(--text);box-shadow:var(--shadow-sm);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#ffffffeb;border-radius:50%;place-items:center;display:grid;position:absolute;top:12px;left:12px}.detail-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.detail-title{font-size:25px;font-weight:800;line-height:1.3}.detail-actions{flex:none;gap:6px;display:flex}.icon-btn.sm{border-radius:12px;width:38px;height:38px}.icon-btn.liked{color:var(--brand);background:var(--brand-soft);border-color:#f8cdb8}.detail-tags{flex-wrap:wrap;gap:6px;margin:12px 0;display:flex}.meta-row{flex-wrap:wrap;gap:8px;margin:14px 0 22px;display:flex}.meta-pill{background:var(--surface);border:1px solid var(--line);color:var(--text-soft);border-radius:999px;align-items:center;gap:6px;padding:7px 12px;font-size:12.5px;font-weight:600;display:inline-flex}.section{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);margin-bottom:14px;padding:18px}.section-head{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.section-title{align-items:center;gap:8px;font-size:15px;font-weight:800;display:flex}.section-note{color:var(--muted);font-size:12px}.ingredient{border-bottom:1px dashed var(--surface-3);justify-content:space-between;align-items:baseline;gap:16px;padding:10px 0;font-size:14.5px;display:flex}.ingredient:last-child{border-bottom:none;padding-bottom:0}.ingredient-name{color:var(--text)}.ingredient-amount{color:var(--muted);text-align:right;font-size:13.5px}.step{border-bottom:1px dashed var(--surface-3);gap:13px;padding:12px 0;display:flex}.step:last-child{border-bottom:none;padding-bottom:0}.step-index{background:var(--brand-soft);width:28px;height:28px;color:var(--brand-dark);border-radius:50%;flex:none;place-items:center;margin-top:1px;font-size:13px;font-weight:800;display:grid}.step.done .step-text{color:var(--muted);text-decoration:line-through}.step-text{white-space:pre-wrap;flex:1;font-size:15px;line-height:1.7}.step-check{border:1.5px solid var(--surface-3);color:#0000;background:var(--surface);border-radius:50%;flex:none;place-items:center;width:24px;height:24px;margin-top:3px;display:grid}.step-check.on{background:var(--green);border-color:var(--green);color:#fff}.notes-text{white-space:pre-wrap;color:var(--text-soft);font-size:14px;line-height:1.75}.source-link{color:var(--green);word-break:break-all;align-items:center;gap:6px;font-size:13.5px;font-weight:600;display:inline-flex}.page-top{align-items:center;gap:12px;padding:8px 0 18px;display:flex}.page-title{font-size:20px;font-weight:800}.form-section{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);margin-bottom:14px;padding:17px}.form-section>.section-title{margin-bottom:14px}.field{flex-direction:column;gap:7px;margin-bottom:15px;display:flex}.field:last-child{margin-bottom:0}.field label{color:var(--text-soft);letter-spacing:.2px;font-size:12.5px;font-weight:700}.field input,.field textarea,.field select{border:1px solid var(--line);background:var(--surface-2);border-radius:var(--radius-sm);outline:none;width:100%;padding:12px 13px;font-size:15px;transition:border-color .15s,box-shadow .15s,background .15s}.field textarea{resize:vertical;min-height:86px;line-height:1.65}.field input:focus,.field textarea:focus,.field select:focus{background:var(--surface);border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}.field-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.segmented{gap:8px;display:flex}.segmented button{border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface-2);height:42px;color:var(--text-soft);flex:1;font-size:13.5px;font-weight:600}.segmented button.active{background:var(--brand);border-color:var(--brand);color:#fff}.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;display:grid}.photo{aspect-ratio:1;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;position:relative;overflow:hidden}.photo img{object-fit:cover;width:100%;height:100%}.photo-remove{color:#fff;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#140c089e;border-radius:50%;place-items:center;width:26px;height:26px;display:grid;position:absolute;top:5px;right:5px}.photo-cover{color:#fff;background:#e8622ce6;border-radius:6px;padding:2px 6px;font-size:10px;font-weight:700;position:absolute;bottom:5px;left:5px}.photo-set-cover{color:#fff;text-align:center;background:linear-gradient(#0000,#00000080);padding:4px;font-size:10.5px;position:absolute;inset:auto 0 0}.photo-add{aspect-ratio:1;border:1.5px dashed var(--surface-3);color:var(--muted);cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:5px;font-size:11.5px;font-weight:600;display:flex;position:relative;overflow:hidden}.photo-add.uploading{pointer-events:none;opacity:.6}.photo-input{z-index:2;opacity:0;cursor:pointer;width:100%;height:100%;font-size:16px;position:absolute;inset:0}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.photo-add:hover{border-color:var(--brand);color:var(--brand-dark);background:var(--brand-soft)}.inline-row{grid-template-columns:minmax(0,1fr) 92px 34px;align-items:center;gap:8px;margin-bottom:9px;display:grid}.inline-row input{border:1px solid var(--line);background:var(--surface-2);border-radius:11px;outline:none;width:100%;padding:11px 12px;font-size:14px}.inline-row input:focus{background:var(--surface);border-color:var(--brand)}.row-remove{width:34px;height:38px;color:var(--muted);border-radius:10px;place-items:center;display:grid}.row-remove:hover{color:var(--danger);background:#fdf2f0}.step-editor{align-items:flex-start;gap:8px;margin-bottom:9px;display:flex}.step-editor .step-index{margin-top:9px}.step-editor textarea{border:1px solid var(--line);background:var(--surface-2);resize:vertical;border-radius:11px;outline:none;flex:1;min-height:64px;padding:11px 12px;font-size:14px;line-height:1.6}.step-editor textarea:focus{background:var(--surface);border-color:var(--brand)}.form-actions{bottom:calc(14px + var(--safe-bottom));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fbf6efe0;border-radius:18px;gap:10px;margin-top:6px;padding:10px;display:flex;position:sticky}.setting-item{border-bottom:1px solid var(--surface-2);justify-content:space-between;align-items:center;gap:14px;padding:13px 0;display:flex}.setting-item:last-child{border-bottom:none;padding-bottom:0}.setting-item:first-child{padding-top:0}.setting-main{flex-direction:column;gap:4px;min-width:0;display:flex}.setting-label{font-size:14px;font-weight:700}.setting-desc{color:var(--muted);font-size:12px;line-height:1.5}.category-row{border-bottom:1px dashed var(--surface-3);justify-content:space-between;align-items:center;gap:10px;padding:11px 0;display:flex}.category-row:last-child{border-bottom:none}.category-name{align-items:center;gap:8px;font-size:14.5px;font-weight:600;display:flex}.category-count{color:var(--muted);font-size:11px;font-weight:500}.row-actions{gap:4px;display:flex}.text-danger{color:var(--danger)}.hint{color:var(--muted);font-size:12px;line-height:1.6}.toast-wrap{z-index:60;left:50%;bottom:calc(92px + var(--safe-bottom));pointer-events:none;flex-direction:column;gap:8px;width:min(92vw,420px);display:flex;position:fixed;transform:translate(-50%)}.toast{color:#fff;box-shadow:var(--shadow);text-align:center;background:#33291f;border-radius:13px;padding:12px 16px;font-size:13.5px;animation:.22s toast-in}.toast.error{background:#8f2b21}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.backdrop{z-index:50;background:#23180f70;justify-content:center;align-items:flex-end;padding:16px;animation:.16s fade-in;display:flex;position:fixed;inset:0}@media (width>=560px){.backdrop{align-items:center}}.sheet{background:var(--surface);width:100%;max-width:420px;box-shadow:var(--shadow);border-radius:24px;padding:22px;animation:.22s cubic-bezier(.22,1,.36,1) sheet-in}.sheet h3{margin-bottom:8px;font-size:17px}.sheet p{color:var(--text-soft);font-size:13.5px;line-height:1.65}.sheet-actions{gap:10px;margin-top:20px;display:flex}.sheet-actions .btn{flex:1}.sheet .field{margin-top:16px}@keyframes fade-in{0%{opacity:0}}@keyframes sheet-in{0%{opacity:0;transform:translateY(18px)}}.chip-wrap{flex-wrap:wrap;gap:8px;display:flex}.setting-actions-row{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.divider{background:var(--surface-2);height:1px;margin:4px 0}.tag{color:var(--green);background:var(--green-soft);border-radius:999px;align-items:center;gap:5px;padding:4px 10px;font-size:11.5px;font-weight:600;display:inline-flex}.muted{color:var(--muted)}.center{text-align:center}.mt-8{margin-top:8px}.mt-14{margin-top:14px}.version-note{text-align:center;color:var(--muted);margin:26px 0 8px;font-size:11.5px;line-height:1.7}@media (prefers-reduced-motion:reduce){*{transition-duration:.01ms!important;animation-duration:.01ms!important}}
