/* 評論功能樣式 - 使用pt-comment前綴避免衝突 */

.pt-comment-section {
    padding: 0.15rem 0;
}

.pt-comment-title-new {
    font-weight: bold;
    /* 不使用margin-left，避免右移 */
    margin-bottom: .15rem;
    padding-left: .05rem;
    border-left: .06rem solid #F55;
}

.pt-comment-list {
    margin-bottom: 0.15rem;
    padding-top: 0.1rem;
}

.pt-comment-item {
    padding-top: 0.1rem;
}

.pt-comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pt-comment-form {
    margin-top: 0.15rem;
    padding-top: 0.15rem;
    border-top: 1px solid #e9e9e9;
}

.pt-comment-form-inner {
    width: 100%;
}

.pt-comment-input,
.pt-comment-textarea {
    width: 100%;
    padding: 0.1rem 0.15rem;
    border: 1px solid #e9e9e9;
    border-radius: 0.05rem;
    font-size: 0.14rem;
    color: #323237;
    background-color: #f9f9f9;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.pt-comment-input:focus,
.pt-comment-textarea:focus {
    outline: none;
    border-color: #f55;
    background-color: #fff;
}

.pt-comment-textarea {
    resize: vertical;
    min-height: 1rem;
    line-height: 1.5;
}

.pt-comment-submit {
    width: 100%;
    padding: 0.1rem 0.2rem;
    background-color: #f55;
    color: #fff;
    border: none;
    border-radius: 0.05rem;
    font-size: 0.14rem;
    cursor: pointer;
    transition: background-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.5;
}

.pt-comment-submit:hover {
    background-color: #f33;
}

.pt-comment-submit:active {
    background-color: #d44;
}

.pt-comment-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 評論分頁樣式 */
.pt-comment-pagination {
    padding: 0.15rem 0;
}

.pt-comment-pagination .chapter-pagination {
    padding: 0.1rem 0;
}

.pt-comment-pagination .index-container-btn {
    background-color: #f55 !important;
    color: #fff !important;
}

.pt-comment-pagination .index-container-btn:hover {
    background-color: #f33 !important;
}

.pt-comment-pagination #indexselect {
    color: #323237;
}

/* 移動端適配 */
@media screen and (max-width: 768px) {
    .pt-comment-section {
        padding: 0.15rem 0;
    }
    
    .pt-comment-input,
    .pt-comment-textarea {
        font-size: 0.14rem;
        padding: 0.1rem 0.15rem;
    }
    
    .pt-comment-submit {
        font-size: 0.14rem;
        padding: 0.1rem 0.2rem;
    }
    
    .pt-comment-pagination .index-container-btn {
        font-size: 0.13rem;
        padding: 0.08rem 0.15rem;
    }
    
    .pt-comment-pagination #indexselect {
        font-size: 0.13rem;
        padding: 0.08rem 0.12rem;
    }
}
