/* 关于作者小工具 */

/* 未登录 */
.YXYH-pc-widget-author-info .author-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    color: var(--ls-text-color-secondary);
}

.YXYH-pc-widget-author-info .author-empty i {
    font-size: 32px;
    opacity: 0.3;
}

.YXYH-pc-widget-author-info .author-empty p {
    font-size: 13px;
    margin: 0;
}

/* 背景横幅 - 负 margin 抵消 widget-body 的 padding */
.YXYH-pc-widget-author-info .author-banner {
    height: 65px;
    margin: -15px -15px 0;
    background-size: cover;
    background-position: center;
    background-color: var(--jinsom-theme-color);
}

/* 头像 + 信息卡片 */
.YXYH-pc-widget-author-info .author-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: -20px;
}

.YXYH-pc-widget-author-info .author-avatar {
    position: relative;
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: var(--jinsom-border-radius-avatar, 4px);
    box-shadow: 0 0 0 3px var(--ls-bg-color, #fff);
    overflow: visible;
    z-index: 1;
}

.YXYH-pc-widget-author-info .author-avatar > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.YXYH-pc-widget-author-info .author-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
}

/* 昵称行 */
.YXYH-pc-widget-author-info .author-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 25px;
    line-height: 25px;
}

.YXYH-pc-widget-author-info .author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ls-text-color);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.YXYH-pc-widget-author-info .author-name:hover {
    color: var(--jinsom-theme-color);
}

/* 签名 */
.YXYH-pc-widget-author-info .author-sign {
    font-size: 12px;
    color: var(--ls-text-color-secondary);
    height: 20px;
    line-height: 20px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 统计数据 */
.YXYH-pc-widget-author-info .author-stats {
    display: flex;
    margin-top: 12px;
}

.YXYH-pc-widget-author-info .stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 0;
    text-decoration: none;
    position: relative;
    transition: background 0.2s;
}

.YXYH-pc-widget-author-info .stat-item:hover {
    background: var(--ls-bg-color-secondary, #f8f8f8);
}

.YXYH-pc-widget-author-info .stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: var(--ls-border-color, #e5e5e5);
}

.YXYH-pc-widget-author-info .stat-item b {
    font-size: 16px;
    font-weight: 700;
    color: var(--ls-text-color);
    line-height: 1;
}

.YXYH-pc-widget-author-info .stat-item span {
    font-size: 11px;
    color: var(--ls-text-color-secondary);
}

/* 关注 + 私信按钮 */
.YXYH-pc-widget-author-info .author-btns {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.YXYH-pc-widget-author-info .btn-follow,
.YXYH-pc-widget-author-info .btn-chat {
    flex: 1;
    height: 35px;
    border-radius: var(--jinsom-border-radius-btn, 4px);
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    user-select: none;
}

.YXYH-pc-widget-author-info .btn-follow {
    background: var(--jinsom-theme-color);
    color: #fff;
}

.YXYH-pc-widget-author-info .btn-follow:hover {
    opacity: 0.85;
}

.YXYH-pc-widget-author-info .btn-follow.had {
    background: rgba(var(--jinsom-theme-color-rgb), 0.08);
    color: var(--jinsom-theme-color);
}

.YXYH-pc-widget-author-info .btn-chat {
    background: var(--ls-bg-color-secondary, #f0f0f0);
    color: var(--ls-text-color);
}

.YXYH-pc-widget-author-info .btn-chat:hover {
    opacity: 0.7;
}

/* 最新发布 */
.YXYH-pc-widget-author-info .author-posts {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--ls-border-color, #eee);
}

.YXYH-pc-widget-author-info .posts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.YXYH-pc-widget-author-info .posts-head span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ls-text-color);
}

.YXYH-pc-widget-author-info .posts-head a {
    font-size: 12px;
    color: var(--ls-text-color-secondary);
    text-decoration: none;
}

.YXYH-pc-widget-author-info .posts-head a:hover {
    color: var(--jinsom-theme-color);
}

.YXYH-pc-widget-author-info .posts-list {
    display: flex;
    flex-direction: column;
}

.YXYH-pc-widget-author-info .post-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    text-decoration: none;
    border-bottom: 1px dashed var(--ls-border-color, #eee);
}

.YXYH-pc-widget-author-info .post-item:last-child {
    border-bottom: none;
}

.YXYH-pc-widget-author-info .post-item:hover .post-name {
    color: var(--jinsom-theme-color);
}

/* 彩色索引 */
.YXYH-pc-widget-author-info .post-idx {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: #c2c8d1;
}

.YXYH-pc-widget-author-info .post-item:nth-child(1) .post-idx { background: #f56c6c; }
.YXYH-pc-widget-author-info .post-item:nth-child(2) .post-idx { background: #e6a23c; }
.YXYH-pc-widget-author-info .post-item:nth-child(3) .post-idx { background: #409eff; }

.YXYH-pc-widget-author-info .post-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--ls-text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    transition: color 0.2s;
}

.YXYH-pc-widget-author-info .post-name img {
    height: 1em;
    width: auto;
    vertical-align: middle;
}

.YXYH-pc-widget-author-info .post-date {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--ls-text-color-secondary);
}
