/* 文章导航（上一篇/下一篇） */
.article-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 25px;
    border-top: 1px solid #f0f0f0;
}
.article-nav a {
    font-size: 13px;
    color: #666;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}
.article-nav a:hover {
    color: #2d8cf0;
}
.article-nav a i {
    margin: 0 5px;
}

/* ==================== 评论区域 ==================== */
.comment-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    padding: 25px;
    margin-bottom: 20px;
}
.comment-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 12px;
}
.comment-section h3 i {
    color: #2d8cf0;
    margin-right: 8px;
}
.comment-section h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 18px;
    background: #2d8cf0;
    border-radius: 2px;
}

/* 评论表单 */
.comment-form {
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 20px;
}
.comment-form-fields {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.comment-form-fields .form-field {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    padding: 0 12px;
    transition: border-color 0.3s;
}
.comment-form-fields .form-field:focus-within {
    border-color: #2d8cf0;
}
.comment-form-fields .form-field i {
    color: #c0c4cc;
    font-size: 13px;
    margin-right: 8px;
    flex-shrink: 0;
}
.comment-form-fields .form-field input {
    flex: 1;
    height: 40px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #333;
    font-family: inherit;
}
.comment-form-fields .form-field input::placeholder {
    color: #c0c4cc;
}
.comment-form-reply-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    margin-bottom: 10px;
    background: #eef5ff;
    border-radius: 6px;
    font-size: 13px;
    color: #2d8cf0;
}
.comment-form-reply-hint strong {
    font-weight: 600;
}
.comment-form-reply-hint a {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.comment-form-reply-hint a:hover {
    color: #ff4d4f;
}
.comment-form textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    resize: vertical;
    outline: none;
    background: #fff;
    transition: border-color 0.3s;
    font-family: inherit;
    line-height: 1.6;
}
.comment-form textarea:focus {
    border-color: #2d8cf0;
}
.comment-form textarea::placeholder {
    color: #c0c4cc;
}
.comment-form .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.comment-form .form-footer .tips {
    font-size: 12px;
    color: #aaa;
}
.comment-form .form-footer .tips i {
    margin-right: 4px;
    color: #c0c4cc;
}
.comment-form .submit-btn {
    padding: 9px 28px;
    background: linear-gradient(135deg, #2d8cf0, #1a6dd4);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.comment-form .submit-btn:hover {
    background: linear-gradient(135deg, #409eff, #2d8cf0);
    box-shadow: 0 4px 12px rgba(45, 140, 240, 0.3);
}
.comment-form .submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 评论列表 */
.comment-list {
    margin-top: 25px;
}
.comment-item {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid #f2f3f5;
}
.comment-item:first-child {
    padding-top: 0;
}
.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 140, 240, 0.3), #409eff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}
.comment-body {
    flex: 1;
    min-width: 0;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.comment-header .name {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}
.comment-header .time {
    font-size: 12px;
    color: #bbb;
}
.comment-body .comment-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    word-break: break-word;
}
.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.comment-actions a {
    font-size: 12px;
    color: #bbb;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
}
.comment-actions a:hover {
    color: #2d8cf0;
}

/* 回复列表（嵌套） */
.reply-list {
    margin-top: 14px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #2d8cf0;
}
.reply-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #ebedf0;
}
.reply-item:first-child {
    padding-top: 0;
}
.reply-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.reply-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #36d1dc, #5b86e5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.reply-body {
    flex: 1;
    min-width: 0;
}
.reply-body .comment-header {
    margin-bottom: 4px;
}
.reply-body .comment-header .name {
    font-size: 13px;
}
.reply-body .comment-header .time {
    font-size: 11px;
}
.reply-body .comment-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 评论空状态 */
.comment-empty {
    text-align: center;
    padding: 50px 20px;
    color: #ccc;
}
.comment-empty i {
    font-size: 48px;
    margin-bottom: 14px;
    display: block;
}
.comment-empty p {
    font-size: 14px;
    color: #bbb;
}

/* Toast 提示 */
.comment-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}
.comment-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.comment-toast-success {
    background: #f0f9eb;
    color: #67c23a;
    border: 1px solid #e1f3d8;
}
.comment-toast-error {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}

/* 作者信息卡片 */
.author-card {
    padding: 20px;
    text-align: center;
}
.author-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}
.avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    margin: 0 auto;
}
.author-level {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffc53d, #ff7a45);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(255, 122, 69, 0.3);
}
.author-level i {
    font-size: 9px;
    margin-right: 2px;
}
.author-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.author-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.7;
    margin-bottom: 15px;
    padding: 0 5px;
}
.author-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 15px;
    border-top: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
    padding: 12px 0;
}
.author-stats .stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.author-stats .stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: #f0f0f0;
}
.author-stats .stat strong {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}
.author-stats .stat span {
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
}
.author-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.author-actions a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}
.author-actions a i {
    margin-right: 5px;
    font-size: 12px;
}
.author-actions .btn-follow {
    background: #2d8cf0;
    color: #fff;
}
.author-actions .btn-follow:hover {
    background: #1e6fd0;
    box-shadow: 0 4px 12px rgba(45, 140, 240, 0.3);
}
.author-actions .btn-msg {
    background: #f5f7fa;
    color: #666;
    border: 1px solid #e8e8e8;
}
.author-actions .btn-msg:hover {
    color: #2d8cf0;
    border-color: #2d8cf0;
    background: #f0f7ff;
}

/* 详情页响应式 */
@media (max-width: 768px) {
    .article-nav {
        flex-direction: column;
        gap: 10px;
    }
    .article-nav a {
        max-width: 100%;
    }
    .comment-section {
        padding: 18px 15px;
    }
    .comment-section h3 {
        font-size: 16px;
    }
    .comment-form {
        padding: 15px;
    }
    .comment-form-fields {
        flex-direction: column;
        gap: 10px;
    }
    .comment-form textarea {
        height: 80px;
        font-size: 13px;
    }
    .comment-form .form-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .comment-form .submit-btn {
        width: 100%;
        justify-content: center;
    }
    .comment-item {
        gap: 10px;
        padding: 14px 0;
    }
    .comment-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .reply-list {
        padding: 10px 12px;
        margin-top: 10px;
    }
    .reply-avatar {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    .comment-empty {
        padding: 35px 15px;
    }
    .comment-empty i {
        font-size: 36px;
    }
    .author-card {
        padding: 15px;
    }
    .avatar-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .author-name {
        font-size: 15px;
    }
    .author-stats .stat strong {
        font-size: 15px;
    }
    /* 下载区域响应式 */
    .download-pay-methods {
        padding: 12px 14px 8px;
    }
    .download-pay-methods__head {
        flex-wrap: wrap;
        font-size: 12px;
        margin-bottom: 10px;
    }
    .download-pay-methods__buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .download-pay-methods__buttons .download-btn {
        width: 100%;
        justify-content: center;
    }
    .download-box-header {
        padding: 16px 18px;
    }
    .download-box-icon {
        width: 38px;
        height: 38px;
    }
    .download-box-icon i {
        font-size: 17px;
    }
    .download-box-title h4 {
        font-size: 15px;
    }
    .download-list {
        padding: 12px 14px;
    }
    .download-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px 16px;
    }
    .download-card-meta {
        flex-wrap: wrap;
        gap: 10px 20px;
    }
    .download-btn {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 12px 0;
        border-radius: 8px;
    }
    .download-box-tips {
        padding: 10px 14px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
}