[v-cloak] {
    display: none;
}

/*
 *-------------------------------------------------------------------------------
 * 用户前端页面
 * /author/user_id
 *-------------------------------------------------------------------------------
*/
.author-page .el-main {
    margin-bottom: 10px;

}

/* 基础样式 */
.author-public {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 头部封面样式 */
.author-header {
    width: 100%;
    margin-bottom: 10px;
}

.author-cover-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.author-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mi-UploadBackground {
    position: absolute;
    top: 15px;
    right: 15px;
}

.mi-UploadBackground button {
    color: #ffff;
    background: #00000054;
    border-color: #00000054;
}

/* 用户信息区域 */
.author-user-section {
    display: flex;
    z-index: 3;
    position: relative;
    background-color: #ffff;
    padding: 20px;
}

.author-avatar-container {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.author-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex-grow: 1;
    padding: 0px 10px;
}

.author-main-info {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.author-nickname {
    font-size: 17px;
    font-weight: bold;
    margin: 0 10px 0 0;
    color: #333;
}

.author-badge {
    background-color: #f5a623;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-right: 12px;
}

.author-location {
    color: #666;
    font-size: 14px;
}

.author-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 操作按钮样式 */
.author-actions {
    display: flex;
    align-items: self-end;
    gap: 15px;
}

.author-follow-btn {
    padding: 8px 10px;
    border-radius: 4px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: none;
    border: 1px solid #DCDFE6;
}

.author-message-btn {
    color: #ffffff;
    background-color: #67c23a;
    border: 1px solid #ddd;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: none;
}

/* .author-message-btn:hover {
    border-color: #ccc;
    background-color: #f9f9f9;
} */
.author-sidebar{
    flex: 1;
}
/* 最近访客样式 */
.author-recent-visitors {
    width: 260px;
    float: left;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 15px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.author-section-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.author-visitors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.author-visitor-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-visitor-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.author-visitor-name {
    font-size: 14px;
    color: #333;
    flex-grow: 1;
    width: 50%;
}
.author-visitor-name a{
    font-weight: 500;
    color: #2c3e50;
}
.author-visitor-desc{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 12px;
}
.author-visit-time {
    font-size: 12px;
    color: #999;
}

.author-content {
    display: flex;
}

/* 标签页样式 */
.author-tabs-container {
    border-radius: 8px;
    overflow: hidden;
    margin-right: 10px;
    width: 100%;
    background-color: #fff;
}

.author-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    white-space: nowrap;
}

.author-tab {
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.author-tab.active {
    color: #ffcc00;
    border-bottom: 2px solid #ffcc00;
    font-weight: bold;
}

.author-tab:hover {
    color: #333;
    background-color: #f9f9f9;
}

/* 标签内容样式 */
.author-tab-content {
    padding: 20px;
}

.author-category-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.author-category-label {
    font-size: 14px;
    color: #999;
}

.author-category-item {
    font-size: 14px;
    padding: 3px 10px;
    border-radius: 12px;
}

.author-category-item.active {
    background-color: #fff8e6;
    color: #ff9800;
}

.author-creation-process {
    margin-left: auto;
    font-size: 14px;
    color: #ff9800;
    text-decoration: none;
}

.author-creation-process:hover {
    text-decoration: underline;
}

.author-tabs-container .el-tabs--border-card>.el-tabs__content {
    padding: 15px 15px 0;
}

/* 作品展示样式 */
.author-works-section {
    margin-top: 20px;
}

.author-works-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
}

.author-works-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(192px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.author-work-item {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
    background-color: #fff;
    border: 1px solid #dcdfe678;
}

.author-work-item:hover {
    transform: translateY(-3px);
}

.author-work-top {
    margin: 10px 10px 0;
}

.author-work-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.author-work-info {
    margin: 10px 15px;
}

.author-work-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-work-desc {
    font-size: 12px;
    color: #747474;
    line-height: 1.6;
    margin-bottom: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    border-bottom: 1px dashed #6666662e;
}
.author-work-tag,.author-work-i-info i{
    margin-right: 5px;
    font-size: 12px;
}
.author-work-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.author-pagination-container {
    margin: 20px 0;
}

.author-tabs-container .el-tabs--border-card {
    background: none;
    padding: 10px 0;
}

.author-tabs-container .el-tabs__header {
    margin: 0 10px;
    background-color: #0000000a;
}

.el-tabs--border-card>.el-tabs__header .el-tabs__item {
    padding: 5px 20px;
}

.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active,
.el-tabs--border-card>.el-tabs__header .el-tabs__item:hover {
    background-color: #fff;
    padding: 5px 20px;
}

/* 评论卡片容器 */
.author-comments-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
    gap: 10px;
}

/* 评论卡片样式 */
.author-comments-card {
    background-color: #ffff;
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 10px;
    border: 1px solid #dcdfe678;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-comments-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 评论内容（重点突出） */
.author-comments-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f5f5f5;
    word-break: break-word;
}

/* 评论元信息区域 */
.author-comments-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* 评论来源标识（文章/商店） */
.author-comments-source {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.author-comments-tag {
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 3px 5px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 10px;
}

/* 商店类型标签 */
.author-comments-tag-store {
    background-color: #f0f8fb;
    color: #38b2ac;
}

.author-comments-post-title {
    font-size: 12px;
    color: #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    transition: color 0.3s ease;
    flex: 1;
}

.author-comments-post-title:hover {}

/* 评论时间 */
.author-comments-time {
    font-size: 13px;
    color: #999999;
    display: flex;
    align-items: center;
}

.author-comments-time i {
    margin-right: 4px;
    font-size: 12px;
}

/* 无评论状态 */
.author-comments-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.author-comments-empty i {
    font-size: 48px;
    color: #e5e5e5;
    margin-bottom: 16px;
    display: inline-block;
}

.author-comments-empty p {
    font-size: 15px;
    color: #999999;
}

/* 分页容器 */
.author-comments-pagination {
    margin-top: 30px;
    text-align: center;
}

/* 加载状态 */
.author-comments-loading {
    text-align: center;
    padding: 40px 0;
}

.author-comments-tag-article {
    color: #606266;
    background-color: #0000000a;
}

/* 关注和粉丝列表容器 */
.author-follow-fan-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(192px, 1fr));
    gap: 10px;
    padding: 20px 0;
}

/* 用户卡片样式 */
.author-user-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #dcdfe678;
    transition: transform 0.2s ease;
}

.author-user-card:hover {
    transform: translateY(-3px);
}

/* 卡片头部封面 */
.author-card-header {
    height: 85px;
    position: relative;
}

.author-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.author-user-card:hover .author-card-cover {
    transform: scale(1.05);
}
.author-card-top{
    display: flex;
    align-items: center;
    justify-content: left;
    margin-top: -28px;
    z-index: 3;
    position: absolute;
}
.author-card-userinfo{
    margin-top: 5px;
    background-color: #ffff;
    padding: 5px 5px 0;
}
/* 头像样式 */
.author-card-avatar {
    width: 60px;
    height: 60px;
    border: 4px solid #fff;
    overflow: hidden;
    margin-left: 30px;
    margin-top: -5px;
}

.author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 卡片内容区 */
.author-card-content {
    padding: 40px 10px 10px;
}

/* 用户信息 */
.author-user-info {
    margin-bottom: 15px;
}

.author-user-name {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.author-user-role {
    font-size: 12px;
    border-radius: 12px;
    color: #666;
}

.author-user-desc {
    color: #66666691;
    font-size: 12px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-weight: 500;
    margin-bottom: 5px;
    background-color: #f5f5f5;
    padding: 5px;
}

/* 统计数据 */
.author-user-stats {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    font-size: 12px;
    align-items: center;
    justify-content: space-between;
}

.author-stat-item {
    color: #666;
    border-right: 1px solid #dcdfe678;
    padding-right: 10px;
}

.author-stat-item:last-child {
    border-right: none;
}

.author-stat-number {
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* 操作按钮 */
.author-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}


/* 无数据样式 */
.author-no-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.author-no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

/* 添加背景图片上传对话框样式 */
.cover-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px;
}

.cover-uploader .el-upload:hover {
    border-color: #409EFF;
}

.cover-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 100%;
    height: 200px;
    line-height: 200px;
    text-align: center;
}

.cover-uploader .cover {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    object-fit: cover;
}
/* 骨架屏基础样式 */
.author-visitors-skeleton {
    width: 100%;
}

.author-visitors-skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

.author-visitors-skeleton-item {
    display: flex;
    align-items: center;
    gap: 10px; 
}

/* 骨架屏头像 */
.author-visitors-skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* 假设头像是圆形，若为方形可去掉 */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: authorVisitorsSkeletonLoading 1.5s infinite;
    flex-shrink: 0;
}

/* 骨架屏信息区（名称+描述） */
.author-visitors-skeleton-info {
    flex-grow: 1;
    width: 50%; /* 与实际布局一致的宽度 */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 骨架屏名称 */
.author-visitors-skeleton-name {
    height: 16px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: authorVisitorsSkeletonLoading 1.5s infinite;
    border-radius: 4px;
}

/* 骨架屏描述 */
.author-visitors-skeleton-desc {
    height: 14px;
    width: 80%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: authorVisitorsSkeletonLoading 1.5s infinite;
    border-radius: 3px;
}

/* 骨架屏时间 */
.author-visitors-skeleton-time {
    height: 14px;
    width: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: authorVisitorsSkeletonLoading 1.5s infinite;
    border-radius: 3px;
}

/* 骨架屏加载动画 */
@keyframes authorVisitorsSkeletonLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}