/* 问答持续讨论：仅作用于问答详情和评论弹框。 */
.wenda-discussion{margin-top:28px;padding-top:24px;border-top:1px solid #eaecee}
.wenda-comment-open,.wenda-comment-submit{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;border:0;border-radius:7px;background:#e86d3f;color:white;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.wenda-comment-open:hover,.wenda-comment-submit:hover{background:#cf562b}
.wenda-discussion-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:32px 0 22px}
.wenda-discussion-heading h2{position:relative;margin:0;padding-left:15px;font-size:23px;color:#292d31}
.wenda-discussion-heading h2:before{content:"";position:absolute;left:0;top:5px;width:4px;height:24px;background:#e86d3f;border-radius:3px}
#wenda-comment-count,#wenda-comment-status{font-size:13px;color:#8a8e92}
#wenda-comment-status:empty{display:none}
.wenda-comment-card{padding:24px;margin:0 0 18px;border:1px solid #eaecee;border-radius:10px;background:white}
.wenda-comment-meta{display:flex;align-items:center;gap:10px;font-size:13px;color:#63717b;flex-wrap:wrap}
.wenda-comment-meta strong{font-weight:500}.wenda-comment-meta time{margin-left:auto;color:#8a8e92;font-size:12px}
.wenda-comment-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f3f4ee;color:#8a9794}
.wenda-comment-content{margin:18px 0 0;font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#63717b}
#wenda-comment-more{display:block;margin:20px auto 0;padding:10px 24px;border:1px solid #eaecee;border-radius:7px;background:white;color:#63717b;cursor:pointer}
.wenda-comment-layer{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
.wenda-comment-backdrop{position:absolute;inset:0;background:#19242b66;backdrop-filter:blur(3px)}
.wenda-comment-dialog{position:relative;box-sizing:border-box;width:540px;max-width:100%;max-height:calc(100dvh - 48px);overflow:auto;padding:32px;border-radius:16px;background:white;box-shadow:0 18px 80px #19242b26}
.wenda-comment-dialog h2{margin:0 32px 8px 0;font-size:24px;color:#292d31}.wenda-comment-intro{font-size:13px;line-height:1.9;color:#8a8e92;margin:0 0 20px}
.wenda-comment-close{position:absolute;right:17px;top:17px;width:28px;height:28px;border:0;border-radius:50%;background:#f7f8f8;color:#8b969e;font-size:23px;cursor:pointer}
#wenda-comment-feedback{font-size:13px;line-height:1.8;color:#63717b}#wenda-comment-form label{display:block;margin:18px 0 8px;font-size:13px;color:#63717b}
#wenda-comment-text{box-sizing:border-box;width:100%;min-height:150px;padding:12px;border:1px solid #eaecee;border-radius:8px;font:inherit;font-size:14px;line-height:1.8;resize:vertical}
.wenda-comment-limit{font-size:12px;color:#8a8e92;margin:6px 0 18px}.wenda-comment-submit{width:100%}
#wenda-comment-login{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px}#wenda-comment-login a{color:#e86d3f}#wenda-comment-login-retry{padding:9px 12px;border:1px solid #eaecee;border-radius:7px;background:white;color:#63717b;cursor:pointer}
.wenda-discussion [hidden],.wenda-comment-layer[hidden],.wenda-comment-layer [hidden]{display:none!important}.wenda-comment-submit:disabled,#wenda-comment-more:disabled{opacity:.6;cursor:wait}
@media(max-width:600px){.wenda-comment-layer{padding:15px}.wenda-comment-dialog{padding:27px 22px;max-height:calc(100dvh - 30px);border-radius:13px}.wenda-comment-card{padding:18px}.wenda-comment-meta time{margin-left:42px}.wenda-discussion-heading h2{font-size:21px}}

/* 问答讨论区与日记保持一致：标题、按钮同行，评论与阅读导航分区。 */

#detail-root[data-type="wenda"] .wenda-discussion{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px 16px;margin:36px 0 0;padding:24px;border:1px solid #e6eaed;border-radius:12px;background:#fff;box-shadow:0 4px 18px #24374606}
#detail-root[data-type="wenda"] .wenda-discussion-heading{grid-column:1;grid-row:1;display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:8px 16px;margin:0;min-width:0}
#detail-root[data-type="wenda"] .wenda-discussion-heading h2{font-size:21px;line-height:1.6;white-space:nowrap}
#detail-root[data-type="wenda"] .wenda-discussion-heading h2:before{height:20px;top:7px}
#detail-root[data-type="wenda"] #wenda-discussion-title{scroll-margin-top:180px}
#detail-root[data-type="wenda"] .wenda-comment-open{grid-column:2;grid-row:1;align-self:center;min-height:38px;padding:8px 16px;font-size:13px;white-space:nowrap}
#detail-root[data-type="wenda"] :is(#wenda-comment-status,#wenda-comment-list,#wenda-comment-more){grid-column:1/-1;min-width:0}
#detail-root[data-type="wenda"] #wenda-comment-status{margin:0;line-height:1.9}
#detail-root[data-type="wenda"] .wenda-comment-card{padding:20px;margin:0 0 14px;background:#f8fafb;border:1px solid #edf0f2;border-radius:8px}
#detail-root[data-type="wenda"] .wenda-comment-card:last-child{margin-bottom:0}
#detail-root[data-type="wenda"] .wenda-comment-content{margin-top:14px;line-height:1.95;color:#64737e}
#detail-root[data-type="wenda"] #wenda-comment-more{margin:0 auto;padding:9px 24px;background:white;border-color:#e2e8ec;font-size:13px}
#detail-root[data-type="wenda"] .article-prevnext{margin:36px 0 0;padding-top:24px;border-top:1px solid #e9edf0;gap:14px}
#detail-root[data-type="wenda"] .article-prevnext:before{content:"继续阅读";grid-column:1/-1;display:block;font-size:15px;line-height:1.8;font-weight:600;color:#64737e;margin:0 0 2px}
#detail-root[data-type="wenda"] .article-prevnext .article-pn__card{background:#f8f9fa;border:1px solid #edf0f2;padding:16px 18px;border-radius:8px;box-shadow:none}
#detail-root[data-type="wenda"] .article-prevnext .article-pn__dir{font-size:12px;color:#919da5;font-weight:400;margin-bottom:8px}
#detail-root[data-type="wenda"] .article-prevnext .article-pn__title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:1.8;color:#546570}
#detail-root[data-type="wenda"] .article-prevnext .article-pn__card:hover{background:#fffaf7;border-color:#efcdbb;box-shadow:none}
@media(max-width:600px){#detail-root[data-type="wenda"] .wenda-discussion{padding:18px 16px;gap:18px 10px}#detail-root[data-type="wenda"] .wenda-discussion-heading h2{font-size:19px}#detail-root[data-type="wenda"] .wenda-comment-open{padding:8px 10px;font-size:12px}#detail-root[data-type="wenda"] .wenda-comment-card{padding:16px}#detail-root[data-type="wenda"] .article-prevnext{margin-top:28px;padding-top:20px}}
