/* 基础卡片样式 */
.author-card {
    position: relative;
    margin: 10px 5px 25px;
    padding: 20px;
    background: radial-gradient(circle at center, #ffffff 0%, #e8f5e9 100%);
	
/*



    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 100%);
    background: linear-gradient(120deg, #f0f7f0 0%, #e0f0e0 100%);	
    background: linear-gradient(180deg, #ffffff 0%, #f0f9f0 100%);
    background: linear-gradient(45deg, #f5faf5 0%, #e8f5e9 100%);
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 50%, #d4edda 100%);
    background: radial-gradient(circle at center, #ffffff 0%, #e8f5e9 100%);
*/
	
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #090;
    overflow: hidden;
    transition: all 0.3s ease;
}

.author-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 文章作者标签 */
.author-tag {
    position: absolute;
    top: 15px;
    right: -25px;
    background: #060;
    color: white;
    padding: 5px 30px;
    font-size: 14px;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* 内容区域 */
.author-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 头像样式 */
.author-avatar {
    flex: 0 0 80px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.author-avatar:hover img {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* 信息区域 */
.author-info {
    flex: 1;
}

/* 用户名行 */
.info-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.info-username {
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
}

.info-space {
    padding: 4px 12px;
    background: #090;
    color: #ffd12a;
    border-radius: 20px;
    font-size: 0.85em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.info-space:hover {
    background: #060;
    color: white;
}

/* 信息网格布局 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-label {
    color: #7f8c8d;
    font-weight: 500;
    margin-right: 5px;
    flex-shrink: 0;
}

.info-value {
    color: #34495e;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 - 平板 */
@media (max-width: 992px) {
    .author-content {
        gap: 15px;
    }
    
    .author-avatar {
        flex: 0 0 70px;
    }
    
    .author-avatar img {
        width: 70px;
        height: 70px;
    }
    
    .info-username {
        font-size: 1.3em;
    }
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .author-card {
        padding: 15px;
    }
    
    .author-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .info-row {
        justify-content: center;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .info-item {
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
    
    .author-tag {
        top: 10px;
        right: -30px;
        font-size: 12px;
        padding: 4px 25px;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .author-card {
        padding: 12px;
        margin: 5px 3px 20px;
        border-radius: 4px;
        border-left: 1px solid #090;
        border-right: 1px solid #090;
    }
    
    .author-tag {
        top: 8px;
        right: -35px;
    }
    
    .info-username {
        font-size: 1.2em;
    }
}
