 :root{--bg:#f8f5f1;--paper:#fffdfa;--ink:#443a35;--muted:#8e8178;--line:#e8ded5;--accent:#a87970;--accent2:#efe1d8;--rose:#b67e88;--shadow:0 8px 28px #5c42330c}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}.hidden{display:none!important}
.topbar{max-width:1200px;margin:auto;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px}.logo{width:44px;height:44px;border-radius:15px;background:#eee0d8;display:grid;place-items:center;font-size:24px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--muted);font-weight:700}.brand h1{font-size:21px;margin:3px 0 0}.header-actions{display:flex;gap:10px;align-items:center}.user-label{font-size:12px;color:var(--muted)}main{max-width:1200px;margin:auto;padding:10px 22px 50px}
.btn{border-radius:12px;padding:11px 15px;font-size:13px;font-weight:650}.btn.primary{background:var(--accent);color:white}.btn.ghost{background:white;border:1px solid var(--line);color:var(--ink)}.btn.danger{background:#fff0ee;color:#a34f4b}.btn:disabled{opacity:.55;cursor:wait}
.hero{border-radius:24px;padding:27px 30px;background:linear-gradient(120deg,#efe1d8,#f5eae3 55%,#e9d9d2);margin-bottom:16px}.hero h2{font-size:25px;margin:8px 0}.hero p{margin:0;color:#7d675d;font-size:13px;line-height:1.7}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:22px}.stat{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:17px}.stat span{display:block;font-size:12px;color:var(--muted)}.stat strong{display:block;font-size:23px;margin-top:7px}
.toolbar{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0 14px}.toolbar input,.toolbar select{border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--paper);color:var(--ink)}.search{flex:1;min-width:190px}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.tab{border:1px solid var(--line);background:white;color:#76685f;border-radius:999px;padding:8px 13px;font-size:12px}.tab.active{background:#55453e;color:white;border-color:#55453e}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.section-title-group{display:flex;align-items:center;gap:10px;min-width:0}.section-head h2{font-size:17px;margin:0}.section-head span,.muted,.hint,.footnote{font-size:12px;color:var(--muted)}.view-switch{display:flex;gap:5px;padding:4px;background:#eee5df;border-radius:12px;flex-shrink:0}.view-btn{background:transparent;color:#786960;border-radius:9px;padding:8px 11px;font-size:12px;white-space:nowrap}.view-btn.active{background:#fffdfa;color:#443a35;box-shadow:0 2px 8px #5c423310;font-weight:700}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card{background:var(--paper);border:1px solid var(--line);border-radius:17px;overflow:hidden;box-shadow:var(--shadow);min-width:0}.cover{height:220px;background:#eee5df;position:relative;display:grid;place-items:center;overflow:hidden;cursor:pointer}.cover img{width:100%;height:100%;object-fit:cover}.placeholder{font-size:46px;opacity:.6}.pill{position:absolute;left:10px;top:10px;background:#fffdf0e8;border-radius:999px;padding:5px 9px;font-size:10px;color:#756259}.heart{position:absolute;right:10px;top:8px;background:#fffdf0e8;border-radius:50%;width:30px;height:30px;color:#b87f87;font-size:17px}.card-body{padding:13px 14px}.card-title{font-weight:700;font-size:14px;overflow-wrap:anywhere;margin-bottom:7px}.meta{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:6px}.price-row{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:10px;border-top:1px solid #f0e8e1}.estimate{font-size:11px;color:var(--muted)}.card-actions{margin-top:10px}.mini{width:100%;padding:8px;border:1px solid var(--line);background:white;border-radius:8px;font-size:11px;color:#786960}
.grid.gallery-mode{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.gallery-mode .card{border-radius:14px}.gallery-mode .cover{height:auto;aspect-ratio:1/1}.gallery-mode .cover img{object-fit:cover;transition:transform .25s ease}.gallery-mode .cover:hover img{transform:scale(1.035)}.gallery-mode .card-body{padding:10px 11px}.gallery-mode .card-title{margin-bottom:0;font-size:13px}.gallery-mode .meta,.gallery-mode .price-row,.gallery-mode .card-actions{display:none}.gallery-mode .pill{left:7px;top:7px;padding:4px 7px}.gallery-mode .heart{right:7px;top:7px;width:28px;height:28px}.empty{grid-column:1/-1;text-align:center;padding:55px 20px;border:1px dashed #d9c8bc;border-radius:20px;color:var(--muted);background:#fffaf6}.empty h3{color:var(--ink)}.empty-icon{font-size:40px}
.auth-card{max-width:480px;margin:30px auto;background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:26px;box-shadow:var(--shadow)}.auth-card h2{margin:9px 0}.auth-card form{display:grid;gap:14px}.auth-card label,.modal label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#7e6f66;font-weight:650}.auth-card input,.modal input:not([type=checkbox]):not([type=file]),.modal select,.modal textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:white;padding:11px;color:var(--ink);outline:none}.auth-actions{display:flex;gap:8px}.hint{line-height:1.6}.message{font-size:12px;line-height:1.6;color:#5b7965}.message.error{color:#a34f4b}.notice{background:#fff4db;border:1px solid #edd6a1;border-radius:14px;padding:16px;margin-bottom:16px}.notice h2{font-size:16px;margin:0 0 8px}.notice p{font-size:13px;line-height:1.7;margin:0}
.backdrop{position:fixed;inset:0;background:#342a2680;display:flex;align-items:center;justify-content:center;padding:15px;z-index:10}.modal{background:var(--paper);width:min(700px,100%);max-height:92vh;overflow:auto;border-radius:22px;padding:23px;box-shadow:0 24px 80px #0003}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.modal-head h2{font-size:20px;margin:0}.x{background:#f1e8e2;border-radius:50%;width:34px;height:34px;font-size:20px;color:#6d5b51}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:16px}.full{grid-column:1/-1}.check-label{display:flex!important;flex-direction:row!important;align-items:center}.preview{display:block;max-width:150px;max-height:180px;object-fit:contain;border-radius:12px;margin:10px 0}.modal-foot{display:flex;justify-content:space-between;gap:8px;margin-top:20px}.right{display:flex;gap:8px}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#443a35;color:white;padding:11px 17px;border-radius:999px;font-size:12px;display:none;z-index:20;max-width:90%;text-align:center}.toast.show{display:block}.footnote{text-align:center;margin-top:26px;line-height:1.7}
@media(max-width:1000px){.grid.gallery-mode{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.gallery-mode{grid-template-columns:repeat(3,minmax(0,1fr))}.cover{height:200px}}
@media(max-width:650px){.topbar{padding:16px 15px}.brand h1{font-size:17px}.logo{width:40px;height:40px}main{padding:10px 15px 38px}.hero{padding:22px 20px}.hero h2{font-size:22px}.stats{gap:8px}.stat{padding:12px}.stat strong{font-size:18px}.stat span{font-size:11px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid.gallery-mode{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.cover{height:auto;aspect-ratio:4/5}.gallery-mode .cover{aspect-ratio:1/1}.gallery-mode .card-body{padding:7px}.gallery-mode .card-title{font-size:11px;line-height:1.4}.gallery-mode .pill{font-size:9px;max-width:calc(100% - 12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-mode .heart{width:25px;height:25px;font-size:15px}.card-body{padding:10px}.card-title{font-size:13px}.toolbar>*{min-width:0;flex:1}.toolbar .search{flex-basis:100%}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.modal{padding:17px}.user-label{max-width:110px;overflow:hidden;text-overflow:ellipsis}.header-actions{gap:5px}.header-actions .btn{padding:9px}.auth-card{padding:20px;margin:15px auto}}

@media(max-width:390px){.section-head{align-items:flex-start;flex-direction:column}.view-switch{align-self:flex-end}.grid.gallery-mode{grid-template-columns:repeat(2,minmax(0,1fr))}}
