/* Content page styles (content.html) */

/* 内容页：右侧两列整体居中 */
.content-page .content-area {
    justify-content: center;
}

.content-page .content-inner {
    width: min(1100px, 100%);
    display: flex;
    gap: 0;
}

/* 内容详情页 */
.post-detail {
    background: #ffffff;
    border: none;
    border-radius: 0;
    padding: 20px;
}

.post-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-back-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    background: none;
    border: none;
    flex: 0 0 auto;
}

.post-back-btn:hover {
    background-color: #f5f5f5;
    color: #181C1F;
}

.post-back-btn i {
    font-size: 14px;
}

.post-detail-sub {
    font-weight: 600;
    color: #181C1F;
}

.post-detail-dot {
    color: #999;
}

.post-detail-author {
    color: #181C1F;
}

.post-detail-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

/* 标题链接：保持与纯文本标题一致（无下划线） */
.post-detail-title .post-link,
.post-detail-title .post-link:visited,
.post-detail-title .post-link:hover,
.post-detail-title .post-link:active {
    color: inherit;
    text-decoration: none;
}

.post-detail-body {
    font-size: 18px;
    line-height: 1.75;
    color: #181C1F;
    margin-bottom: 20px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 正文内图片：最大宽度 80%，换行并居中 */
.body_img {
    display: block;
    max-width: 80%;
    height: auto;
    margin: 16px auto;
}

.post-detail-body p {
    margin: 0 0 12px 0;
    text-indent: 24px;
}

.post-detail-link {
    color: #2b6cb0;
    text-decoration: none;
    word-break: break-all;
}

.post-detail-link:hover {
    text-decoration: underline;
}

.post-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    margin-top: 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.comment-composer {
    padding-top: 20px;
    border-top: none;
}

.comment-composer-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.comment-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    background: #fafafa;
}

.comment-input:focus {
    background: #ffffff;
    border-color: #ff6600;
}

.comment-composer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.comment-submit-btn {
    border: none;
    background: #FF7A1A;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s, filter 0.2s;
}

.comment-submit-btn:hover:not(:disabled) {
    background: #FF8A00;
}

.comment-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-submit-btn-login {
    background: #FF7A1A;
    color: #FFFFFF;
}

.comment-submit-btn-login:hover:not(:disabled) {
    background: #FF8A00;
}

.comment-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.comments-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.comments-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.comments-title {
    font-size: 16px;
    font-weight: 700;
}

.comments-count {
    font-size: 13px;
    color: #999;
}

.comment-item {
    display: flex;
    gap: 0;
    padding: 14px 0;
    position: relative;
    border: none;
}

.comment-item:first-of-type {
    border-top: none;
}

/* 回复评论的样式（层级缩进，类似 Reddit） */
.comment-item-reply {
    margin-top: 0;
}

.comment-children {
    margin-top: 10px;
    margin-left: 30px;
    position: relative;
    border-left: 1px solid #e0e0e0;
    padding-left: 14px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-meta .comment-avatar {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    margin-right: 0;
}

.comment-meta .comment-avatar i {
    font-size: 24px;
}

.comment-meta .comment-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* 评论头像链接样式 */
.comment-avatar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.comment-avatar-link:hover {
    opacity: 0.8;
}

/* 评论作者名字样式 */
.comment-author {
    color: #181C1F;
    font-weight: 500;
}

/* 评论作者链接样式 */
.comment-author-link {
    color: #181C1F;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-author-link:hover {
    color: #1E9FFF;
    text-decoration: none;
}

.comment-meta .comment-view-link {
    color: #999 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    opacity: 0.6;
}

.comment-meta .comment-view-link:hover {
    color: #666 !important;
    opacity: 1;
}

.comment-meta .comment-view-link i {
    font-size: 10px;
}

/* 评论删除按钮样式 */
.comment-delete-btn {
    background: none;
    border: none;
    padding: 4px 6px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    opacity: 0.6;
}

.comment-delete-btn:hover {
    color: #dc3545;
    opacity: 1;
}

.comment-delete-btn i {
    font-size: 11px;
}

/* 评论项独立的头像样式（已弃用，头像现在在 comment-meta 内） */
.comment-avatar {
    width: 0;
    height: 0;
    flex: 0 0 0;
    display: none;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f0f0f0;
    color: #666;
    font-weight: 500;
}

.comment-body {
    font-size: 15px;
    line-height: 1.6;
    color: #1c1c1c;
    margin-bottom: 5px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    padding-left:24px;
}

.comment-actions-links {
    display: flex;
    align-items: center;
    gap: 10px;
    /*padding-top: 4px;*/
    padding-left:20px;
}

/* 评论操作按钮样式（类似 Reddit） */
.comment-actions-links .post-action {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    background: none;
    border: none;
    color: #878a8c;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s;
}

.comment-actions-links .post-action:hover {
    background-color: transparent;
    color: #1c1c1c;
}

.comment-actions-links .post-action i {
    font-size: 12px;
}

.comment-actions-links .post-action.liked {
    color: #ff4500;
}

/* 查看更多回复链接样式 */
.comment-view-more {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.view-more-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.view-more-link:hover {
    color: #5568d3;
    gap: 10px;
}

.view-more-link i:first-child {
    font-size: 16px;
}

.view-more-link i:last-child {
    font-size: 12px;
    margin-left: auto;
}

.view-more-link span {
    flex: 1;
}

/* 移动端响应式布局 */
@media (max-width: 768px) {
    /* 隐藏右侧边栏 */
    .content-page .right-sidebar {
        display: none;
    }

    /* 内容区占满全宽 */
    .content-page .content-inner {
        width: 100%;
        flex-direction: column;
    }

    .content-page .main-content {
        width: 100%;
        max-width: 100%;
    }

    /* 调整内容详情页内边距 */
    .post-detail {
        padding: 16px 12px;
        border-radius: 0;
    }

    /* 标题大小调整 */
    .post-detail-title {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 16px;
    }

    /* 正文样式 */
    .post-detail-body {
        font-size: 18px;
        line-height: 1.9;
        color: #181C1F;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* 图片样式 */
    .body_img {
        max-width: 100%;
        margin: 12px auto;
    }

    /* 操作按钮 */
    .post-action {
        font-size: 14px;
        padding: 6px 10px;
    }

    .post-detail-actions {
        gap: 8px;
        padding: 10px 0;
    }

    /* 评论区 */
    .comment-composer {
        padding-top: 16px;
    }

    .comment-input {
        padding: 10px 12px;
        font-size: 15px;
    }

    .comment-submit-btn {
        padding: 8px 16px;
    }

    .comments-header {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .comments-title {
        font-size: 16px;
        font-weight: 700;
    }

    .comments-count {
        font-size: 14px;
        color: #999;
    }

    /* 评论项 */
    .comment-item {
        padding: 12px 0;
        gap: 0;
    }

    /* 元信息 */
    .post-detail-meta {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .comment-meta {
        font-size: 12px;
    }

    .comment-meta .comment-avatar {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
    }

    .comment-meta .comment-avatar i {
        font-size: 20px;
    }

    .comment-meta .comment-avatar img {
        width: 20px;
        height: 20px;
    }

    .comment-body {
        font-size: 15px;
        line-height: 1.7;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        padding-left:24px;
    }

    .comment-children {
        margin-left: 28px;
        padding-left: 10px;
    }
}

#content-notice{
    font-size:12px;
    background:#efefef;
    border-radius:10px;
    text-align:center;
}
#content-notice p{
    margin:0px;
}