.author-header {
    text-align: center;
    margin-bottom: 30px;
}

.author-header .author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.author-header .author-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.author-desc {
    font-size: 15px;
    color: #555;
    max-width: 600px;
    margin: 0 auto 10px;
}

.author-work-count {
    font-size: 14px;
    color: #777;
}
/* ============================================================
   B3‑1‑A‑2：收藏按钮 CSS（动画 + 状态）
============================================================ */

.cw-fav-btn {
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 点击动画 */
.cw-fav-btn.clicked {
    transform: scale(1.2);
}

/* 收藏图标 */
.cw-fav-icon {
    font-size: 22px;
    transition: color .2s ease;
}

/* 未收藏 */
.cw-fav-icon.off {
    color: #999;
}

/* 已收藏 */
.cw-fav-icon.on {
    color: #ff4d4f;
}

/* 收藏数量 */
.cw-fav-count {
    font-size: 14px;
    color: #666;
    transition: opacity .2s ease;
}

/* ============================================================
   B3‑2‑B：点赞按钮动画（轻跳 + 亮度）
============================================================ */

.cw-like-btn {
    transition: transform .25s ease, filter .25s ease;
}

.cw-like-btn.active .thumb-icon {
    filter: brightness(1.2);
}

.cw-like-btn.clicked .thumb-icon {
    transform: scale(1.25);
}

/* ============================================================
   B3‑3‑A：分享面板动画（淡入淡出）
============================================================ */

.share-panel {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;

    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.share-panel.show {
    opacity: 1;
    pointer-events: auto;
}

.share-box {
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    width: 260px;
    text-align: center;
    transform: translateY(20px);
    transition: transform .25s ease;
}

.share-panel.show .share-box {
    transform: translateY(0);
}

/* 微信二维码区域 */
.wechat-qrcode {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

/* 分享按钮点击动画 */
.cw-share-btn.clicked .share-icon {
    transform: scale(1.2);
    transition: transform .25s ease;
}

/* ============================================================
   B3‑4‑C：分享按钮图标美化 + 动画
============================================================ */

.cw-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    transition: transform .25s ease, opacity .25s ease;
}

.cw-share-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.share-icon {
    transition: transform .25s ease, stroke .25s ease;
}

/* 悬停时轻微放大 */
.cw-share-btn:hover .share-icon {
    transform: scale(1.15);
}

/* 点击动画（来自 B3‑3） */
.cw-share-btn.clicked .share-icon {
    transform: scale(1.25);
}

/* ============================================================
   B3‑5‑B：Toast 样式（淡入淡出）
============================================================ */

.cw-toast {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;

    transition: opacity .3s ease, transform .3s ease;
}

.cw-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   B3‑6‑B：保存二维码按钮
============================================================ */

#share-save-qrcode {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background .25s ease;
    text-align: center;
}

#share-save-qrcode:hover {
    background: #e9e9e9;
}

/* ============================================================
   B4‑1：评论输入框 UI 升级
============================================================ */

.cw-comment-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.cw-comment-box:focus-within {
    border-color: #4BAF9F;
    box-shadow: 0 0 0 3px rgba(75, 175, 159, 0.15);
}

.cw-comment-textarea {
    width: 100%;
    border: none;
    resize: none;
    outline: none;
    font-size: 15px;
    line-height: 1.6;
    min-height: 24px;
    background: transparent;
}

.cw-comment-textarea::placeholder {
    color: #aaa;
    transition: opacity .25s ease;
}

.cw-comment-textarea:focus::placeholder {
    opacity: 0.4;
}

.cw-char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* ============================================================
   B4‑2‑3：评论列表 UI 样式
============================================================ */

.cw-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cw-comment-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.cw-comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.cw-comment-body {
    flex: 1;
}

.cw-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.cw-comment-author {
    font-weight: 600;
    color: #2F2F2F;
}

.cw-comment-date {
    font-size: 13px;
    color: #999;
}

.cw-comment-content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.cw-comment-footer {
    margin-top: 4px;
}

.cw-comment-reply {
    font-size: 14px;
    color: #4BAF9F;
    cursor: pointer;
    transition: opacity .25s ease;
}

.cw-comment-reply:hover {
    opacity: .7;
}

/* ============================================================
   B4‑2‑5：长评论折叠按钮
============================================================ */
.cw-comment-toggle {
    color: #4BAF9F;
    cursor: pointer;
    font-size: 14px;
    margin-left: 6px;
}

/* ============================================================
   B4‑3‑3：回复按钮样式
============================================================ */

.cw-comment-reply a,
.comment-reply-link {
    color: #4BAF9F;
    font-size: 14px;
    cursor: pointer;
    transition: opacity .25s ease;
}

.cw-comment-reply a:hover,
.comment-reply-link:hover {
    opacity: .7;
}

/* 取消回复按钮 */
#cancel-comment-reply-link {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    color: #999;
    cursor: pointer;
}

#cancel-comment-reply-link:hover {
    color: #666;
}

/* ============================================================
   B4‑3‑4：楼中楼缩进
============================================================ */
.cw-comment-item .children {
    margin-left: 62px; /* 头像宽度 + 间距 */
    border-left: 2px solid #f0f0f0;
    padding-left: 20px;
    margin-top: 12px;
}

/* ============================================================
   B4‑4‑5：评论点赞样式
============================================================ */

.cw-comment-like {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    margin-right: 12px;
    transition: color .25s ease;
}

.cw-comment-like.active {
    color: #4BAF9F;
}

.cw-like-icon.pop {
    transform: scale(1.4);
    transition: transform .25s ease;
}

/* ============================================================
   B4‑5‑4：加载更多按钮
============================================================ */
#cw-load-more-comments {
    display: block;
    width: 100%;
    padding: 10px 0;
    margin-top: 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background .25s ease;
}

#cw-load-more-comments:hover {
    background: #e9e9e9;
}

#cw-load-more-comments:disabled {
    background: #ddd;
    cursor: not-allowed;
}

/* ============================================================
   B4‑6‑3：评论排序栏样式
============================================================ */
.cw-comment-sort {
    display: flex;
    gap: 16px;
    margin: 10px 0 20px;
}

.cw-comment-sort a {
    font-size: 15px;
    color: #666;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color .25s ease, border-color .25s ease;
}

.cw-comment-sort a:hover {
    color: #4BAF9F;
}

.cw-comment-sort a.active {
    color: #4BAF9F;
    border-color: #4BAF9F;
}

/* ============================================================
   B4‑7‑2：评论空状态样式
============================================================ */
.cw-comment-empty {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.cw-comment-empty .empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.cw-comment-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2F2F2F;
    margin-bottom: 6px;
}

.cw-comment-empty p {
    font-size: 14px;
    color: #888;
}

/* ============================================================
   B4‑8‑2：评论成功提示（Toast）
============================================================ */
.cw-toast {
    position: absolute;
    top: -10px;
    right: 0;
    transform: translateY(-100%);
    background: #4BAF9F;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.cw-toast.show {
    opacity: 1;
    transform: translateY(-110%);
}
