/* 评论区前台样式：沿用 ptme 的红色主色和 rem 尺寸体系 */
.pt-comment-section{box-sizing:border-box;padding:15px}.pt-comment-section>.pt-comment-section{margin:0;padding:0}.pt-comment-header,.pt-comment-list-header,.pt-comment-item__meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.pt-comment-header{margin-bottom:15px;padding-bottom:10px;border-bottom:1px solid #eee}.pt-comment-title{padding-left:8px;border-left:5px solid var(--color-accent);color:var(--color-text);font-size:16px;font-weight:700}.pt-comment-link,.pt-comment-total{flex-shrink:0;color:#777;font-size:13px}.pt-comment-link:hover{color:var(--color-accent)}
.pt-comment-form{margin-bottom:18px;padding:14px;border:1px solid #eee;border-radius:6px;background:#fafafa}.pt-comment-label{display:block;margin-bottom:6px;color:var(--color-text);font-size:13px;font-weight:700}.pt-comment-label[hidden],.pt-comment-identity__saved[hidden],.pt-comment-identity__editor[hidden]{display:none}.pt-comment-identity{margin-bottom:12px}.pt-comment-identity__saved,.pt-comment-identity__editor{display:flex;align-items:center;gap:8px}.pt-comment-avatar,.pt-comment-item__avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:50%;background:var(--color-accent);color:var(--color-bg-elevated);font-weight:700}.pt-comment-avatar{width:30px;height:30px;font-size:13px}.pt-comment-input,.pt-comment-textarea,.pt-comment-report-form select,.pt-comment-report-form textarea{width:100%;box-sizing:border-box;border:1px solid #ddd;border-radius:5px;background:var(--color-bg-elevated);color:var(--color-text);font-family:inherit;font-size:14px}.pt-comment-input{max-width:300px;padding:9px 11px}.pt-comment-textarea{min-height:92px;padding:10px 12px;line-height:1.6;resize:vertical}.pt-comment-input:focus,.pt-comment-textarea:focus,.pt-comment-report-form select:focus,.pt-comment-report-form textarea:focus{outline:0;border-color:var(--color-accent);box-shadow:0 0 0 2px rgba(255,85,85,.12)}.pt-comment-field{margin-bottom:10px}.pt-comment-count{margin-top:5px;color:#999;font-size:12px;text-align:right}.pt-comment-count--invalid{color:#d33}
.pt-comment-text-button,.pt-comment-secondary-button,.pt-comment-reply-toggle,.pt-comment-report-toggle,.pt-comment-helpful{font-family:inherit;cursor:pointer}.pt-comment-text-button{padding:0;border:0;background:transparent;color:#777;font-size:12px}.pt-comment-text-button:hover{color:var(--color-accent)}.pt-comment-secondary-button{flex-shrink:0;padding:7px 11px;border:1px solid #ddd;border-radius:5px;background:var(--color-bg-elevated);color:var(--color-accent);font-size:13px;font-weight:700}.pt-comment-actions{display:flex;justify-content:flex-end}.pt-comment-submit{min-width:110px;padding:9px 18px;border:0;border-radius:5px;background:var(--color-accent);color:var(--color-bg-elevated);font-size:14px;font-weight:700;cursor:pointer}.pt-comment-submit:hover{background:#f33}.pt-comment-submit:disabled,.pt-comment-secondary-button:disabled{cursor:wait;opacity:.6}.pt-comment-status{margin:10px 0;padding:9px 11px;border-radius:5px;font-size:13px;line-height:1.5}.pt-comment-status--success{background:#eaf7ef;color:#18794e}.pt-comment-status--error{background:#fff0f0;color:#b42318}
.pt-comment-list-header{padding:9px 0;border-bottom:1px solid #eee;color:#777;font-size:13px}.pt-comment-list-header>span:first-child{color:var(--color-text);font-size:15px;font-weight:700}.pt-comment-sort{display:flex;gap:3px;padding:2px;border:1px solid #eee;border-radius:20px}.pt-comment-sort a{min-width:48px;padding:5px 10px;border-radius:18px;color:#777;font-size:12px;text-align:center}.pt-comment-sort a.is-active{background:var(--color-accent);color:var(--color-bg-elevated);font-weight:700}.pt-comment-item{position:relative;display:flex;gap:10px;padding:15px 0;border-bottom:1px solid #eee}.pt-comment-item--pinned,.pt-comment-item--featured{margin:7px 0;padding:14px;border:1px solid #f1d7b5;border-radius:6px;background:#fffaf2}.pt-comment-item__badges{position:absolute;top:10px;right:10px;display:flex;gap:5px}.pt-comment-item--pinned .pt-comment-item__meta,.pt-comment-item--featured .pt-comment-item__meta{padding-right:108px}.pt-comment-item__pinned,.pt-comment-item__featured{padding:2px 7px;border-radius:12px;background:#f8e7ca;color:#8a5815;font-size:10px;font-weight:700}.pt-comment-item__avatar{width:34px;height:34px;background:#777;font-size:13px}.pt-comment-item__body{flex:1;min-width:0}.pt-comment-item__meta{margin-bottom:5px;color:#999;font-size:12px}.pt-comment-item__user{overflow:hidden;color:var(--color-text);font-weight:700;text-overflow:ellipsis;white-space:nowrap}.pt-comment-item__time{flex-shrink:0}.pt-comment-item__content{overflow-wrap:anywhere;color:#555;font-size:14px;line-height:1.7}.pt-comment-item__actions{display:flex;align-items:center;gap:14px;margin-top:8px}.pt-comment-reply-toggle,.pt-comment-report-toggle{padding:0;border:0;background:transparent;color:#777;font-size:12px}.pt-comment-reply-toggle:hover,.pt-comment-report-toggle:hover{color:var(--color-accent)}.pt-comment-helpful{display:inline-flex;align-items:center;gap:5px;min-height:27px;padding:3px 9px;border:1px solid #ddd;border-radius:16px;background:var(--color-bg-elevated);color:#777;font-size:12px}.pt-comment-helpful:hover,.pt-comment-helpful.is-active{border-color:#f99;background:#fff4f4;color:#e44}.pt-comment-helpful__count:before{margin-right:5px;color:#ccc;content:'·'}
.pt-comment-replies{margin-top:10px;padding-left:10px;border-left:2px solid #eee}.pt-comment-reply{padding:8px 0;border-bottom:1px solid #eee}.pt-comment-reply:last-child{border-bottom:0}.pt-comment-reply__meta{display:flex;gap:9px;margin-bottom:3px;color:#999;font-size:12px}.pt-comment-reply__meta strong{color:#666}.pt-comment-reply__content{overflow-wrap:anywhere;color:#555;font-size:13px;line-height:1.65}.pt-comment-reply--admin{padding:8px 10px;border-radius:5px;background:#f5f5f5}.pt-comment-reply-form,.pt-comment-report-form{margin-top:9px;padding:10px;border:1px solid #eee;border-radius:5px;background:#fafafa}.pt-comment-reply-form .pt-comment-input{margin-bottom:7px}.pt-comment-reply-form .pt-comment-textarea{min-height:70px}.pt-comment-reply-identity{margin-bottom:7px}.pt-comment-reply-form__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:7px}.pt-comment-reply-status,.pt-comment-report-status{margin-right:auto;color:#777;font-size:12px}.pt-comment-report-form label{display:block;margin-bottom:8px;color:#777;font-size:12px}.pt-comment-report-form select,.pt-comment-report-form textarea{display:block;margin-top:4px;padding:8px 9px}.pt-comment-empty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:30px 14px;color:#999;font-size:13px;text-align:center}.pt-comment-empty strong{color:#555;font-size:15px}.pt-comment-empty__icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;margin-bottom:3px;border-radius:50%;background:#fff0f0;color:var(--color-accent)}.pt-comment-more{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:11px 13px;border:1px solid #eee;border-radius:5px;color:#777;font-size:13px}.pt-comment-more a{flex-shrink:0;color:var(--color-accent);font-weight:700}
.pt-comment-pagination{padding:15px 0}.pt-comment-pagination .chapter-pagination{padding:10px 0}.pt-comment-pagination .index-container-btn{background:var(--color-accent)!important;color:var(--color-bg-elevated)!important}.pt-comment-pagination #indexselect{color:var(--color-text)}
@media(max-width:767px){.pt-comment-section{padding:12px}.pt-comment-form{padding:12px}.pt-comment-item--pinned,.pt-comment-item--featured{padding:12px}.pt-comment-item--pinned .pt-comment-item__meta,.pt-comment-item--featured .pt-comment-item__meta{padding-top:20px;padding-right:0}.pt-comment-input{max-width:none}.pt-comment-identity__editor{align-items:stretch;flex-wrap:wrap}.pt-comment-submit{width:100%}.pt-comment-pagination .index-container-btn,.pt-comment-pagination #indexselect{font-size:13px}}
.pt-comment-helpful.is-active,.pt-comment-helpful.is-active:hover{border-color:#f99;background:#fff4f4;color:#e44;font-weight:700}
@media(hover:hover){.pt-comment-helpful:not(.is-active):hover{border-color:#ccc;background:#f7f7f7;color:#555}}
@media(hover:none){.pt-comment-helpful:not(.is-active):hover{border-color:#ddd;background:var(--color-bg-elevated);color:#777}}

.pt-comment-chapter-source { color:#888; font-size:12px; line-height:1.7; margin:0 0 7px; }
.pt-comment-chapter-source a { color:#547da0; text-decoration:none; margin:0 .25em; }
.pt-comment-chapter-source a:hover { text-decoration:underline; }
.pt-comment-mount { max-width:100%; clear:both; }
.pt-comment-pages { display:flex; justify-content:center; align-items:center; gap:12px; margin:15px 0; font-size:13px; }
.pt-comment-pages button, .pt-comment-loading button { border:1px solid #ddd; padding:6px 10px; background:var(--color-bg-elevated); color:#547da0; border-radius:4px; cursor:pointer; }
.pt-comment-loading { padding:16px; color:#888; font-size:13px; }

.pt-comment-section > .pt-comment-mount > .pt-comment-section { margin:0; padding:0; }

.pt-read .pt-reader-comments { box-sizing:border-box; margin:20px 0; max-width:100%; }
.pt-read .pt-reader-comments .pt-comment-section { padding:0; margin:0; }
.pt-read .pt-reader-comments .pt-comment-form { box-sizing:border-box; max-width:100%; }

/* 信息页和章节页的阅读讨论区：沿用站点红色，只让书写入口突出。 */
.pt-comment-section--inline { --comment-ink:var(--color-text); --comment-muted:var(--color-text-soft); --comment-line:var(--color-border-subtle); --comment-accent:var(--color-accent); color:var(--comment-ink); }
.pt-comment-section--inline .pt-comment-header { margin:0 0 16px; padding:0; border:0; min-height:24px; align-items:center; }
.pt-comment-section--inline .pt-comment-title { margin:0; padding-left:8px; border-left:5px solid var(--color-accent); font-size:16px; line-height:1.4; }
.pt-comment-section--inline .pt-comment-link { color:var(--comment-muted); font-size:12px; }
.pt-comment-section--inline .pt-comment-link:hover { color:var(--comment-accent); }
.pt-comment-compose { margin:0; padding-bottom:16px; border:0; border-bottom:1px solid var(--comment-line); border-radius:0; background:transparent; }
.pt-comment-compose > summary { display:flex; align-items:stretch; gap:10px; box-sizing:border-box; padding:0; border:0; border-radius:0; background:transparent; list-style:none; cursor:pointer; font-size:14px; line-height:1.5; }
.pt-comment-compose > summary::-webkit-details-marker { display:none; }
.pt-compose-input { display:flex; align-items:center; flex:1; min-width:0; gap:9px; padding:10px 13px; border:1px solid #e9ebef; border-radius:7px; background:#f6f7f9; }
.pt-compose-icon { display:flex; align-items:center; justify-content:center; flex:0 0 auto; color:#9199a5; }
.pt-compose-icon svg { width:17px; height:17px; }
.pt-compose-prompt { flex:1; min-width:0; color:#858c98; line-height:1.5; }
.pt-compose-action { display:flex; align-items:center; justify-content:center; gap:5px; flex-shrink:0; box-sizing:border-box; min-width:88px; min-height:42px; padding:10px 14px; border-radius:7px; background:var(--comment-accent); color:var(--color-bg-elevated); font-size:13px; font-weight:600; line-height:1.5; }
.pt-compose-action svg { width:12px; height:12px; }
.pt-compose-open { display:none; }
.pt-comment-compose[open] { background:transparent; }
.pt-comment-compose[open] > summary { margin-bottom:14px; align-items:center; }
.pt-comment-compose[open] .pt-compose-closed { display:none; }
.pt-comment-compose[open] .pt-compose-open { display:inline; }
.pt-comment-compose[open] .pt-compose-input { padding:0; border-color:transparent; background:transparent; }
.pt-comment-compose[open] .pt-compose-prompt { color:var(--comment-ink); font-weight:600; }
.pt-comment-compose[open] .pt-compose-action { min-width:0; min-height:0; padding:4px 0 4px 10px; background:transparent; color:var(--comment-muted); font-size:12px; }
.pt-comment-compose[open] .pt-compose-action svg { transform:rotate(180deg); }
.pt-comment-compose > summary:hover .pt-compose-input { border-color:#d9dde4; }
.pt-comment-compose[open] > summary:hover .pt-compose-input { border-color:transparent; }
.pt-comment-compose > summary:focus-visible { outline:2px solid var(--comment-accent); outline-offset:4px; border-radius:7px; }
.pt-comment-section--inline .pt-comment-compose .pt-comment-form { margin:0; padding:0; border:0; border-radius:0; background:var(--color-bg-elevated); }
.pt-comment-section--inline .pt-comment-identity { margin-bottom:14px; }
.pt-comment-section--inline .pt-comment-identity__saved { font-size:13px; }
.pt-comment-section--inline .pt-comment-avatar { width:28px; height:28px; background:#fff0f1; color:#c74952; font-size:12px; }
.pt-comment-section--inline .pt-comment-identity__saved .pt-comment-text-button { margin-left:5px; color:var(--comment-muted); }
.pt-comment-section--inline .pt-comment-label { color:#616874; font-size:12px; font-weight:500; }
.pt-comment-section--inline .pt-comment-input { border-color:#e4e7eb; border-radius:6px; background:#fafbfc; }
.pt-comment-section--inline .pt-comment-textarea { min-height:112px; padding:12px; border-color:#e4e7eb; border-radius:7px; background:#fafbfc; color:var(--comment-ink); }
.pt-comment-section--inline .pt-comment-textarea::placeholder { color:#9399a3; }
.pt-comment-section--inline .pt-comment-field { position:relative; margin-bottom:12px; }
.pt-comment-section--inline .pt-comment-count { font-size:11px; color:var(--comment-muted); }
.pt-comment-section--inline .pt-comment-count--invalid { color:#c43c43; }
.pt-comment-section--inline .pt-comment-submit { min-width:100px; width:auto; padding:9px 20px; border-radius:6px; background:var(--comment-accent); font-size:13px; }
.pt-comment-section--inline .pt-comment-submit:hover { background:#da424b; }
.pt-comment-section--inline .pt-comment-list-header { padding:0 0 12px; border-color:var(--comment-line); }
.pt-comment-section--inline .pt-comment-list-header>span:first-child { font-size:14px; color:#616874; }
.pt-comment-section--inline .pt-comment-item { gap:12px; padding:20px 0; border-color:var(--comment-line); }
.pt-comment-section--inline .pt-comment-item__avatar { width:32px; height:32px; background:#eef1f5; color:#657184; font-size:13px; }
.pt-comment-section--inline .pt-comment-item__meta { justify-content:flex-start; gap:10px; margin-bottom:7px; line-height:1.6; }
.pt-comment-section--inline .pt-comment-item__user { font-size:13px; color:#444c59; }
.pt-comment-section--inline .pt-comment-item__time { color:#9298a1; font-size:11px; }
.pt-comment-section--inline .pt-comment-item__content { color:var(--color-text); line-height:1.85; }
.pt-comment-section--inline .pt-comment-chapter-source { margin-bottom:8px; font-size:11px; color:#9298a1; }
.pt-comment-section--inline .pt-comment-chapter-source a { color:#64819d; }
.pt-comment-section--inline .pt-comment-item__actions { justify-content:flex-end; gap:8px; margin-top:6px; flex-wrap:wrap; }
.pt-comment-section--inline .pt-comment-helpful { min-height:25px; padding:2px 9px; border-color:#e5e8ed; color:#828995; font-size:11px; }
.pt-comment-section--inline .pt-comment-helpful.is-active { color:#d84750; border-color:#f6b9bd; }
.pt-comment-section--inline .pt-comment-helpful,
.pt-comment-section--inline .pt-comment-reply-toggle,
.pt-comment-section--inline .pt-comment-report-toggle { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:28px; padding:4px 10px; border:1px solid #e5e8ed; border-radius:999px; background:transparent; color:#737c89; font-size:11px; font-weight:400; line-height:1.5; }
.pt-comment-section--inline .pt-comment-reply-toggle:hover,
.pt-comment-section--inline .pt-comment-report-toggle:hover { border-color:#f6b9bd; color:#d84750; }
.pt-comment-section--inline .pt-comment-helpful.is-active { border-color:#f6b9bd; background:#fff4f4; color:#d84750; font-weight:600; }
.pt-comment-section--inline .pt-comment-reply-toggle:focus-visible,
.pt-comment-section--inline .pt-comment-report-toggle:focus-visible,
.pt-comment-section--inline .pt-comment-helpful:focus-visible { outline:2px solid var(--color-accent); outline-offset:2px; }
.pt-comment-section--inline .pt-comment-replies { margin:6px 0 0 -16px; padding:0; border:0; border-radius:0; background:transparent; }
.pt-comment-section--inline .pt-comment-reply { display:flex; gap:9px; align-items:flex-start; padding:4px 0; border:0; background:transparent; }
.pt-comment-section--inline .pt-comment-reply__avatar { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; width:25px; height:25px; border-radius:50%; background:#eef1f5; color:#657184; font-size:11px; font-weight:600; line-height:1; }
.pt-comment-section--inline .pt-comment-reply__body { flex:1; min-width:0; }
.pt-comment-section--inline .pt-comment-reply__meta { align-items:center; justify-content:flex-start; gap:10px; margin-bottom:7px; line-height:1.6; }
.pt-comment-section--inline .pt-comment-reply--admin .pt-comment-reply__avatar { background:#fff0f1; color:#c74952; }
.pt-comment-section--inline .pt-comment-reply__meta { font-size:11px; color:#9298a1; }
.pt-comment-section--inline .pt-comment-reply__meta strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#444c59; font-size:13px; }
.pt-comment-section--inline .pt-comment-reply__meta time { flex-shrink:0; white-space:nowrap; }
.pt-comment-section--inline .pt-comment-reply__content { font-size:14px; color:var(--color-text); line-height:1.85; }
@media(max-width:767px) {
 .pt-comment-compose > summary { gap:8px; padding:0; }
 .pt-compose-input { gap:7px; padding:10px; }
 .pt-compose-prompt { font-size:13px; }
 .pt-compose-action { min-width:84px; padding:10px 12px; }
 .pt-comment-section--inline .pt-comment-compose .pt-comment-form { padding:0; }
 .pt-comment-section--inline .pt-comment-item { gap:10px; padding:17px 0; }
}

/* modern 模板采用站内配色、原有栏目竖条和阅读容器。 */
.pt-comment-section { padding:0; font-family:inherit; }
.pt-comment-section--inline { --comment-accent:var(--color-accent); --comment-ink:var(--color-text); --comment-muted:var(--color-text-soft); --comment-line:var(--color-border-subtle); }
.pt-comment-section--inline .pt-comment-title { border:0; padding-left:15px; position:relative; color:var(--color-text); font-size:20px; font-weight:700; }
.pt-comment-section--inline .pt-comment-title::before { content:''; position:absolute; left:0; top:4px; bottom:4px; width:4px; border-radius:3px; background:#356b9d; }
.pt-comment-section--inline .pt-comment-header { margin-bottom:20px; }
.pt-comment-section--inline .pt-compose-input,.pt-comment-section--inline .pt-comment-input,.pt-comment-section--inline .pt-comment-textarea { background:var(--color-bg); border-color:var(--color-border-subtle); color:var(--color-text); }
.pt-comment-section--inline .pt-comment-compose .pt-comment-form { background:var(--color-bg-elevated); }
.pt-comment-section--inline .pt-comment-item__content,.pt-comment-section--inline .pt-comment-reply__content { font-size:15px; line-height:1.85; }
.pt-comment-section--inline .pt-comment-item__user,.pt-comment-section--inline .pt-comment-reply__meta strong { color:var(--color-text); font-size:14px; }
.pt-comment-section--inline .pt-comment-item__meta,.pt-comment-section--inline .pt-comment-reply__meta { flex-wrap:wrap; }
.pt-comment-section--inline .pt-comment-item__actions button { min-height:32px; font-size:12px; border-color:var(--color-border-subtle); color:var(--color-text-soft); }
.pt-comment-section--inline .pt-comment-helpful.is-active { color:var(--color-accent); border-color:var(--color-accent); background:var(--color-accent-soft); }
.pt-comment-section--inline .pt-comment-submit:hover { background:#1d4ed8; }
.pt-comment-section--inline .pt-comment-chapter-source a { color:var(--color-accent); }
.modern-reader-comments { margin-top:24px; }
.pt-comment-section [hidden] { display:none !important; }
.pt-comment-reply-form,.pt-comment-report-form { background:var(--color-bg); border-color:var(--color-border-subtle); }
.pt-comment-input,.pt-comment-textarea,.pt-comment-report-form select,.pt-comment-report-form textarea { color:var(--color-text); background:var(--color-bg-elevated); }
.pt-comment-section button,.pt-comment-compose > summary { touch-action:manipulation; }
@media(max-width:600px) { .pt-comment-section--inline .pt-comment-title { font-size:18px; } .pt-comment-section--inline .pt-comment-item__avatar { width:30px; height:30px; } .pt-comment-section--inline .pt-comment-replies { margin-left:-12px; } }

/* Comment heading uses the existing section marker. */
.pt-comment-section.pt-comment-section--inline { border-top:0; margin-top:0; }

/* 章节评论末尾不重复显示分隔线，保留下方推荐区的顶线。 */
.modern-reader-comments .pt-comment-list > .pt-comment-item:last-child { border-bottom:0; }
