/* ============================================
   评论详情页独立样式 comment-pl.css
   适配现有两栏布局，PC/手机通用
   ============================================ */

/* 外层容器，承接左侧 .article-column */
.pl-container {
    padding: 18px 0 30px;
}

/* 顶部评论标题栏：参考截图的标题区 + 右侧原文链接 */
.pl-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f7f8fa;
    border: 1px solid #d6e0eb;
    border-radius: 8px;
    margin-bottom: 22px;
}

.pl-topbar-title {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.pl-topbar-title span {
    color: #888;
    font-weight: normal;
    margin-left: 4px;
}

.pl-topbar-origin {
    font-size: 14px;
    color: #e74c3c;
    text-decoration: none;
    white-space: nowrap;
}

.pl-topbar-origin:hover {
    text-decoration: underline;
}

/* 评论区大标题 */
.pl-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
    padding-left: 10px;
    border-left: 4px solid #1677ff;
}

/* 评论提交框 */
.pl-form-area {
    margin-bottom: 28px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 8px;
}

.pl-form-area textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    resize: vertical;
}

.pl-form-area textarea:focus {
    border-color: #1677ff;
    outline: none;
}

.pl-form-area button {
    margin-top: 8px;
    padding: 8px 22px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.pl-form-area button:hover {
    background: #0d5fd1;
}

/* 评论列表 */
.pl-list {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 8px;
    overflow: hidden;
}

/* 每条评论：参考截图的横向列表结构 */
.pl-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f2f5;
}

.pl-item:last-child {
    border-bottom: none;
}

.pl-main {
    flex: 1;
    min-width: 0;
}

.pl-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pl-name {
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.pl-meta {
    font-size: 12px;
    color: #999;
}

.pl-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #333;
    word-break: break-word;
}

/* 右侧点赞区：星星 + 数字 */
.pl-right {
    flex-shrink: 0;
}
/* 大拇指点赞图标 */
.pl-like {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #999;
    background: #f7f8fa;
    border: 1px solid #eceef2;
    border-radius: 20px;
    padding: 2px 2px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pl-like:hover {
    color: #1677ff;
    border-color: #1677ff;
    background: #eef4ff;
}

.pl-like .star-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("//v.imgsina.com/images/top.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pl-like:hover .star-icon {
    background-image: url("//v.imgsina.com/images/top.png");
}

/* 分页 */
.pl-page {
    margin-top: 24px;
    text-align: center;
}

.pl-page a,
.pl-page span {
    display: inline-block;
    border: 1px solid #d9d9d9;
    padding: 7px 14px;
    margin: 0 3px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    background: #fff;
}

.pl-page a:hover {
    border-color: #1677ff;
    color: #1677ff;
}

.pl-page span {
    background: #f3f4f6;
    color: #666;
    border-color: #eee;
}

/* 查看原文底部按钮（备用） */
.pl-back-origin {
    margin-top: 24px;
    text-align: center;
}

.pl-back-origin a {
    display: inline-block;
    background: #e9edf2;
    color: #333;
    padding: 10px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.pl-back-origin a:hover {
    background: #dde2e8;
}

/* ============================================
   手机端自适应：沿用现有 768px 断点
   ============================================ */

@media (max-width: 768px) {
    .pl-container {
        padding: 12px 0 24px;
    }

    .pl-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .pl-topbar-origin {
        align-self: flex-end;
    }

    .pl-item {
        flex-direction: column;
        padding: 14px;
    }

    .pl-right {
        align-self: flex-end;
    }

    .pl-head {
        gap: 8px;
    }

    .pl-name {
        font-size: 13.5px;
    }

    .pl-meta {
        font-size: 12px;
    }

    .pl-text {
        font-size: 14px;
    }

    .pl-page a,
    .pl-page span {
        padding: 6px 10px;
        margin: 0 2px;
        font-size: 13px;
    }
}
