/* 评论区前台样式：沿用 ptme 的红色主色和 rem 尺寸体系 */
.pt-comment-section{box-sizing:border-box;padding:.15rem}.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:.12rem}.pt-comment-header{margin-bottom:.15rem;padding-bottom:.1rem;border-bottom:1px solid #eee}.pt-comment-title{padding-left:.08rem;border-left:.05rem solid #f55;color:#323237;font-size:.16rem;font-weight:700}.pt-comment-link,.pt-comment-total{flex-shrink:0;color:#777;font-size:.13rem}.pt-comment-link:hover{color:#f55}
.pt-comment-form{margin-bottom:.18rem;padding:.14rem;border:1px solid #eee;border-radius:.06rem;background:#fafafa}.pt-comment-label{display:block;margin-bottom:.06rem;color:#323237;font-size:.13rem;font-weight:700}.pt-comment-label[hidden],.pt-comment-identity__saved[hidden],.pt-comment-identity__editor[hidden]{display:none}.pt-comment-identity{margin-bottom:.12rem}.pt-comment-identity__saved,.pt-comment-identity__editor{display:flex;align-items:center;gap:.08rem}.pt-comment-avatar,.pt-comment-item__avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:50%;background:#f55;color:#fff;font-weight:700}.pt-comment-avatar{width:.3rem;height:.3rem;font-size:.13rem}.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:.05rem;background:#fff;color:#323237;font-family:inherit;font-size:.14rem}.pt-comment-input{max-width:3rem;padding:.09rem .11rem}.pt-comment-textarea{min-height:.92rem;padding:.1rem .12rem;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:#f55;box-shadow:0 0 0 2px rgba(255,85,85,.12)}.pt-comment-field{margin-bottom:.1rem}.pt-comment-count{margin-top:.05rem;color:#999;font-size:.12rem;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:.12rem}.pt-comment-text-button:hover{color:#f55}.pt-comment-secondary-button{flex-shrink:0;padding:.07rem .11rem;border:1px solid #ddd;border-radius:.05rem;background:#fff;color:#f55;font-size:.13rem;font-weight:700}.pt-comment-actions{display:flex;justify-content:flex-end}.pt-comment-submit{min-width:1.1rem;padding:.09rem .18rem;border:0;border-radius:.05rem;background:#f55;color:#fff;font-size:.14rem;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:.1rem 0;padding:.09rem .11rem;border-radius:.05rem;font-size:.13rem;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:.09rem 0;border-bottom:1px solid #eee;color:#777;font-size:.13rem}.pt-comment-list-header>span:first-child{color:#323237;font-size:.15rem;font-weight:700}.pt-comment-sort{display:flex;gap:.03rem;padding:.02rem;border:1px solid #eee;border-radius:.2rem}.pt-comment-sort a{min-width:.48rem;padding:.05rem .1rem;border-radius:.18rem;color:#777;font-size:.12rem;text-align:center}.pt-comment-sort a.is-active{background:#f55;color:#fff;font-weight:700}.pt-comment-item{position:relative;display:flex;gap:.1rem;padding:.15rem 0;border-bottom:1px solid #eee}.pt-comment-item--pinned,.pt-comment-item--featured{margin:.07rem 0;padding:.14rem;border:1px solid #f1d7b5;border-radius:.06rem;background:#fffaf2}.pt-comment-item__badges{position:absolute;top:.1rem;right:.1rem;display:flex;gap:.05rem}.pt-comment-item--pinned .pt-comment-item__meta,.pt-comment-item--featured .pt-comment-item__meta{padding-right:1.08rem}.pt-comment-item__pinned,.pt-comment-item__featured{padding:.02rem .07rem;border-radius:.12rem;background:#f8e7ca;color:#8a5815;font-size:.1rem;font-weight:700}.pt-comment-item__avatar{width:.34rem;height:.34rem;background:#777;font-size:.13rem}.pt-comment-item__body{flex:1;min-width:0}.pt-comment-item__meta{margin-bottom:.05rem;color:#999;font-size:.12rem}.pt-comment-item__user{overflow:hidden;color:#323237;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:.14rem;line-height:1.7}.pt-comment-item__actions{display:flex;align-items:center;gap:.14rem;margin-top:.08rem}.pt-comment-reply-toggle,.pt-comment-report-toggle{padding:0;border:0;background:transparent;color:#777;font-size:.12rem}.pt-comment-reply-toggle:hover,.pt-comment-report-toggle:hover{color:#f55}.pt-comment-helpful{display:inline-flex;align-items:center;gap:.05rem;min-height:.27rem;padding:.03rem .09rem;border:1px solid #ddd;border-radius:.16rem;background:#fff;color:#777;font-size:.12rem}.pt-comment-helpful:hover,.pt-comment-helpful.is-active{border-color:#f99;background:#fff4f4;color:#e44}.pt-comment-helpful__count:before{margin-right:.05rem;color:#ccc;content:'·'}
.pt-comment-replies{margin-top:.1rem;padding-left:.1rem;border-left:2px solid #eee}.pt-comment-reply{padding:.08rem 0;border-bottom:1px solid #eee}.pt-comment-reply:last-child{border-bottom:0}.pt-comment-reply__meta{display:flex;gap:.09rem;margin-bottom:.03rem;color:#999;font-size:.12rem}.pt-comment-reply__meta strong{color:#666}.pt-comment-reply__content{overflow-wrap:anywhere;color:#555;font-size:.13rem;line-height:1.65}.pt-comment-reply--admin{padding:.08rem .1rem;border-radius:.05rem;background:#f5f5f5}.pt-comment-reply-form,.pt-comment-report-form{margin-top:.09rem;padding:.1rem;border:1px solid #eee;border-radius:.05rem;background:#fafafa}.pt-comment-reply-form .pt-comment-input{margin-bottom:.07rem}.pt-comment-reply-form .pt-comment-textarea{min-height:.7rem}.pt-comment-reply-identity{margin-bottom:.07rem}.pt-comment-reply-form__actions{display:flex;align-items:center;justify-content:flex-end;gap:.08rem;margin-top:.07rem}.pt-comment-reply-status,.pt-comment-report-status{margin-right:auto;color:#777;font-size:.12rem}.pt-comment-report-form label{display:block;margin-bottom:.08rem;color:#777;font-size:.12rem}.pt-comment-report-form select,.pt-comment-report-form textarea{display:block;margin-top:.04rem;padding:.08rem .09rem}.pt-comment-empty{display:flex;flex-direction:column;align-items:center;gap:.04rem;padding:.3rem .14rem;color:#999;font-size:.13rem;text-align:center}.pt-comment-empty strong{color:#555;font-size:.15rem}.pt-comment-empty__icon{display:inline-flex;align-items:center;justify-content:center;width:.36rem;height:.36rem;margin-bottom:.03rem;border-radius:50%;background:#fff0f0;color:#f55}.pt-comment-more{display:flex;align-items:center;justify-content:space-between;gap:.12rem;margin-top:.12rem;padding:.11rem .13rem;border:1px solid #eee;border-radius:.05rem;color:#777;font-size:.13rem}.pt-comment-more a{flex-shrink:0;color:#f55;font-weight:700}
.pt-comment-pagination{padding:.15rem 0}.pt-comment-pagination .chapter-pagination{padding:.1rem 0}.pt-comment-pagination .index-container-btn{background:#f55!important;color:#fff!important}.pt-comment-pagination #indexselect{color:#323237}
@media(max-width:767px){.pt-comment-section{padding:.12rem}.pt-comment-form{padding:.12rem}.pt-comment-item--pinned,.pt-comment-item--featured{padding:.12rem}.pt-comment-item--pinned .pt-comment-item__meta,.pt-comment-item--featured .pt-comment-item__meta{padding-top:.2rem;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:.13rem}}
.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:#fff;color:#777}}
