@import url("common.css");

/* 作者信息区域 */
.author-header {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    background: #f5f5f5;
    border-bottom: 1px solid #e9e9e9;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-right: 30px;
    overflow: hidden;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.author-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
    color: #666;
}

.stat-item strong {
    color: #333;
    margin-right: 5px;
}

.follow-btn {
    padding: 8px 25px;
    border-radius: 20px;
    border: 1px solid #0084ff;
    background: #0084ff;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.follow-btn.unfollow {
    background: white;
    color: #0084ff;
}

/* 作品列表 */
.works-container {
    margin: 30px auto;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.work-item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-cover {
    height: 350px;
    border-bottom: 1px solid #eee;
}

.work-info {
    padding: 12px;
}

.work-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.work-stats {
    font-size: 14px;
    color: #666;
}


.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}

.work-category {
    background: #e8f4ff;
    color: #0084ff;
    padding: 2px 6px;
    border-radius: 3px;
}

.work-stats span {
    display: inline-block;
    margin-right: 10px;
}

.work-desc {
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.action-btn {
    flex: 1;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.detail-btn {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.detail-btn:hover {
    background: #e5e5e5;
}

.shelf-btn {
    background: #0084ff;
    color: white;
    border: 1px solid #0084ff;
}

.shelf-btn.added {
    background: #e8f4ff;
    color: #0084ff;
}