:root{--bg:#f5f5f1;--paper:#fff;--ink:#151515;--muted:#71716c;--line:#deded8;--green:#176b58;--green-dark:#105443;--wash:#eef3ef;--danger:#a4332e;--shadow:0 14px 34px rgba(18,34,28,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;font-size:15px;letter-spacing:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(23,107,88,.28);outline-offset:2px}.shell{min-height:100vh}.topbar{height:64px;border-bottom:1px solid var(--line);background:rgba(245,245,241,.92);backdrop-filter:blur(12px);position:sticky;top:0;z-index:4}.topbar-inner{max-width:1480px;height:100%;margin:0 auto;padding:0 28px;display:flex;align-items:center;gap:22px}.brand{font-size:19px;font-weight:800;white-space:nowrap}.brand span{color:var(--green)}.search{flex:1;max-width:520px;position:relative}.search input{width:100%;height:38px;border:1px solid var(--line);background:var(--paper);border-radius:5px;padding:0 12px;color:var(--ink)}.search input::placeholder{color:#969690}.member{margin-left:auto;display:flex;align-items:center;gap:10px;min-width:0}.avatar{width:30px;height:30px;border-radius:50%;background:#c6ddd4;color:var(--green-dark);display:grid;place-items:center;font-size:13px;font-weight:800;flex:0 0 auto}.member-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px}.icon-button{border:0;background:transparent;color:var(--muted);width:34px;height:34px;display:grid;place-items:center;border-radius:4px;font-weight:700}.icon-button:hover{background:#e9ece7;color:var(--ink)}.layout{max-width:1480px;margin:0 auto;padding:30px 28px 64px;display:grid;grid-template-columns:182px minmax(0,1fr);gap:34px}.sidebar{position:sticky;top:94px;align-self:start}.sidebar h2{font-size:12px;color:var(--muted);font-weight:600;margin:0 0 9px}.category-list{display:grid;gap:3px}.category-button{border:0;background:transparent;text-align:left;color:#454540;height:34px;padding:0 10px;border-radius:4px;font-size:14px}.category-button:hover,.category-button[aria-current="true"]{background:#e4ece6;color:var(--green-dark);font-weight:700}.sidebar-note{font-size:12px;line-height:1.65;color:var(--muted);margin:24px 10px}.feed-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.eyebrow{margin:0 0 6px;color:var(--green);font-size:12px;font-weight:800}.feed-head h1{font-size:26px;margin:0;line-height:1.2}.feed-subtitle{color:var(--muted);margin:8px 0 0;line-height:1.5}.primary-button,.quiet-button{min-height:38px;border-radius:5px;padding:0 14px;font-weight:700;border:1px solid transparent}.primary-button{background:var(--green);color:#fff}.primary-button:hover{background:var(--green-dark)}.quiet-button{color:var(--ink);background:#fff;border-color:var(--line)}.quiet-button:hover{background:#f6f7f4}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.post-card{border:0;background:transparent;text-align:left;padding:0;min-width:0;display:grid;gap:10px;align-content:start}.post-card:focus-visible{outline:3px solid rgba(23,107,88,.35);outline-offset:4px}.post-image{aspect-ratio:4/3;width:100%;display:block;object-fit:cover;background:#dfe7e1;border-radius:6px;transition:transform .2s ease,filter .2s ease}.post-card:hover .post-image{transform:translateY(-2px);filter:saturate(1.05)}.post-card h2{font-size:16px;line-height:1.45;margin:0;overflow-wrap:anywhere}.post-card .excerpt{margin:0;color:var(--muted);font-size:13px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-meta{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;min-width:0}.card-meta .author{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta-actions{margin-left:auto;display:flex;gap:8px;white-space:nowrap}.tag{color:var(--green-dark);background:var(--wash);border-radius:3px;font-size:11px;padding:3px 6px}.empty-state{grid-column:1/-1;border-top:1px solid var(--line);padding:46px 0;color:var(--muted);text-align:center}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--bg)}.auth-box{width:min(420px,100%);text-align:center}.auth-box h1{font-size:30px;margin:12px 0}.auth-box p{line-height:1.7;color:var(--muted);margin:0 0 24px}.auth-box .primary-button{min-width:190px}.auth-box small{display:block;color:var(--muted);margin-top:14px;line-height:1.6}.loading{min-height:100vh;display:grid;place-items:center;color:var(--muted)}dialog{border:0;border-radius:8px;padding:0;width:min(620px,calc(100% - 32px));max-height:calc(100vh - 32px);background:var(--paper);color:var(--ink);box-shadow:var(--shadow)}dialog::backdrop{background:rgba(18,23,20,.38)}dialog form{padding:24px;display:grid;gap:16px;max-height:calc(100vh - 32px);overflow:auto}.dialog-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.dialog-head h2{margin:0;font-size:21px}.dialog-head .icon-button{font-size:20px}label{font-weight:700;font-size:13px;display:grid;gap:7px}input,textarea,select{border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);padding:9px 10px;min-width:0}textarea{resize:vertical;min-height:130px;line-height:1.55}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}.detail{position:relative}.detail-close{position:absolute;right:15px;top:14px;z-index:1}.detail-image{display:block;width:100%;aspect-ratio:16/8;object-fit:cover;background:#e2e9e4}.detail-body{padding:24px}.detail-body h2{font-size:24px;line-height:1.35;margin:8px 38px 12px 0;overflow-wrap:anywhere}.detail-copy{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}.detail-tools{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin:22px 0;display:flex;gap:8px}.reaction{background:#fff;border:1px solid var(--line);border-radius:4px;height:34px;padding:0 10px;color:#4e4e49}.reaction.active{color:var(--green-dark);border-color:#a6c5b8;background:var(--wash)}.comments h3{font-size:15px;margin:0 0 14px}.comment-list{display:grid;gap:14px;margin-bottom:18px}.comment{border-bottom:1px solid #eeeeea;padding-bottom:12px}.comment strong{font-size:13px}.comment p{margin:5px 0 0;white-space:pre-wrap;line-height:1.65}.comment-form{display:flex;gap:8px}.comment-form input{flex:1}.error{color:var(--danger);font-size:13px;margin:0}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#1c2c25;color:#fff;border-radius:5px;padding:10px 14px;box-shadow:var(--shadow);z-index:10}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1024px){.layout{gap:24px;padding:24px}.topbar-inner{padding:0 24px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:768px){.topbar{height:auto;position:static}.topbar-inner{height:auto;min-height:58px;padding:10px 16px;gap:12px;flex-wrap:wrap}.brand{font-size:17px}.search{order:3;flex-basis:100%;max-width:none}.member-name{display:none}.layout{display:block;padding:20px 16px 48px}.sidebar{position:static;margin-bottom:25px}.category-list{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:0}.category-button{white-space:nowrap;border:1px solid var(--line);background:#fff;height:32px}.sidebar-note{display:none}.feed-head{align-items:start;gap:14px}.feed-head h1{font-size:23px}.feed-subtitle{font-size:14px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.post-card h2{font-size:14px}.post-card .excerpt{display:none}.card-meta{gap:5px}.card-meta .author{display:none}.tag{display:none}.meta-actions{margin-left:0}.primary-button{padding:0 11px}.detail-body{padding:18px}.detail-body h2{font-size:21px}.comment-form{align-items:stretch;flex-direction:column}.comment-form .primary-button{align-self:flex-end}.auth-box h1{font-size:27px}}
@media(max-width:390px){.post-grid{grid-template-columns:1fr}.post-card .excerpt{display:-webkit-box}.feed-head{flex-direction:column}.feed-head .primary-button{width:100%}}
