/* 《日子未完待續》文章交流區｜V2.3 */
.community-section{--cm-tea:#846b59;--cm-text:#473b34;--cm-line:#e4d8cd;--cm-soft:#f7f1ea;--cm-sage:#61765c;box-sizing:border-box;width:100%;padding:46px 18px 64px;margin:0 auto;background:linear-gradient(180deg,transparent,#f8f3ed 28%,#f7f2ec 100%);color:var(--cm-text);font:400 15px/1.8 -apple-system,BlinkMacSystemFont,"Noto Sans TC","Microsoft JhengHei",sans-serif}
.community-section *{box-sizing:border-box}
.community-section [hidden]{display:none!important}
.community-shell{max-width:860px;margin:0 auto;padding:32px clamp(18px,4vw,42px);border:1px solid var(--cm-line);border-radius:26px;background:#fffdf9;box-shadow:0 12px 32px rgba(83,65,50,.05)}
.community-eyebrow{display:block;letter-spacing:.15em;font-size:11px;font-weight:700;color:var(--cm-sage)}
.community-head h2{font-size:clamp(23px,4.2vw,31px);font-weight:700;letter-spacing:.04em;line-height:1.5;color:var(--cm-text);margin:7px 0 8px}
.community-head p{font-size:14px;color:#7d6b60;margin:0 0 17px}
.community-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:22px 0 10px}
.community-like{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:45px;padding:9px 19px;border:1px solid #d6b7a8;border-radius:999px;background:#fff8f4;color:#805d55;font-size:15px;font-weight:700;cursor:pointer;transition:background .18s,transform .18s,color .18s}
.community-like:hover:not(:disabled){background:#fae9e3;transform:translateY(-1px)}
.community-like[aria-pressed="true"]{background:#a95e63;border-color:#a95e63;color:#fff}
.community-like:disabled{opacity:.55;cursor:not-allowed}
.community-like svg{width:17px;height:17px;fill:currentColor;stroke:currentColor;stroke-width:1.5}
.community-count{color:#8a786c;font-size:13px}
.community-rule{height:1px;margin:26px 0;background:var(--cm-line);border:0}
.community-status{font-size:14px;line-height:1.75;padding:11px 14px;margin:12px 0;border-radius:12px;color:#655448;background:var(--cm-soft)}
.community-status[data-state="error"]{background:#fff0eb;color:#97524a}
.community-status[data-state="success"]{background:#edf4e9;color:#486545}
.community-compose h3,.community-list-head h3{font-weight:700;font-size:18px;line-height:1.6;color:var(--cm-text);margin:0 0 8px}
.community-compose p{font-size:13px;color:#8b796d;margin:0 0 13px}
.community-form{display:grid;gap:11px}
.community-form label{font-size:13px;font-weight:600;color:#635248}
.community-form input:not([type="checkbox"]),.community-form textarea{display:block;width:100%;font:inherit;font-size:14px;color:#493e35;border:1px solid #dccfc3;border-radius:12px;background:#fffdfb;padding:11px 13px;outline-offset:2px;outline-color:#ad8d79}
.community-form textarea{min-height:105px;resize:vertical;line-height:1.7}
.community-form input:focus,.community-form textarea:focus{border-color:#927966}
.community-fields{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.community-submit{min-height:45px;white-space:nowrap;padding:10px 22px;border:0;background:#73866d;color:#fff;border-radius:12px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.community-submit:disabled{opacity:.55;cursor:not-allowed}
.community-counter{font-size:12px;color:#8d7c72;text-align:right}
.community-form small{color:#8b786c;font-size:12px;line-height:1.7}
.community-trap{position:absolute!important;left:-99999px!important;opacity:0!important;width:1px!important;height:1px!important;overflow:hidden!important}
.community-reply-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f1eee7;border-radius:10px;padding:8px 12px;font-size:13px;margin:0 0 12px}
.community-cancel-reply,.community-reply-btn{border:0;background:none;color:#587252;font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:3px 5px}
.community-cancel-reply:hover,.community-reply-btn:hover{text-decoration:underline}
.community-list-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}
.community-thread{list-style:none;padding:0;margin:0;display:grid;gap:15px}
.community-message{margin:0;border:1px solid #eee5dc;border-radius:16px;padding:17px 17px 12px;background:#fff}
.community-message-top{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.community-author{font-size:14px;font-weight:700;color:#5b5148}
.community-date{font-size:12px;color:#93877d}
.community-message-body{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;line-height:1.75;color:#54493f;margin:0 0 10px}
.community-replies{list-style:none;margin:12px 0 0 0;padding:0 0 0 17px;border-left:2px solid #e5dbc9;display:grid;gap:10px}
.community-replies .community-message{background:#fdfaf6;padding:14px 14px 11px}
.community-empty{background:#f9f5ef;border:1px dashed #e4d8cb;padding:22px 17px;border-radius:14px;text-align:center;color:#8b786b;font-size:14px}
.community-privacy{margin-top:16px!important;color:#8d7b6f!important;font-size:12px!important}
@media(max-width:600px){.community-section{padding:30px 12px 44px}.community-shell{padding:24px 17px;border-radius:19px}.community-fields{grid-template-columns:minmax(0,1fr)}.community-submit{width:100%}.community-replies{padding-left:10px}.community-actions{gap:11px}.community-message{padding:14px 12px 9px}}
@media(prefers-reduced-motion:reduce){.community-like{transition:none}}

.community-official-badge{font-size:11px;font-weight:700;color:#426e4a;background:#edf4e8;border:1px solid #cadfc5;border-radius:16px;padding:1px 9px;white-space:nowrap}
